All contracts

Workspace Intelligence / JSON Schema

Workspai Workspace Skills Index

Defines the versioned workspace skills index v1 boundary used by Workspai and its consumers.

Schema version
workspace-skills-index.v1
Contract path
contracts/workspace-intelligence/workspace-skills-index.v1.json
Publication
embedded-type, json-schema
Defined fields
19
Artifact bindings
1

Why this contract exists

Architecture role

Projects workspace intelligence into stable grounding surfaces for agents and integrations.

Consumption boundary

  • Workspai CLI
  • AI agents
  • IDEs and MCP clients

Related commands

Commands are linked only when the runtime contract identifies a direct production relationship. Supporting contracts may be consumed without having a single producer command.

Produced artifacts

These durable files are emitted by registered commands and validated against this contract.

Artifact pathSchemaProducer
.workspai/reports/workspace-skills-index.jsonworkspace-skills-index.v1
workspai workspace agent-sync --write --json --preset enterprise

Field reference

Every declared schema property or published capability path is listed here. Required means the contract declares or publishes that field at the shown boundary.

Field pathTypeRequiredMeaningConstraints
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
inputsHashstringYesDefines the inputshash value at this contract boundary.minLength: 8
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspace-skills-index.v1"
selectionobjectNoDefines the selection value at this contract boundary.additionalProperties: false
selection.decisionsarrayYesDefines the decisions value at this contract boundary.
selection.decisions[].confidenceenumYesDefines the confidence value at this contract boundary.enum: high, medium
selection.decisions[].reasonsarrayYesDefines the reasons value at this contract boundary.
selection.decisions[].scopedProjectsarrayYesDefines the scopedprojects value at this contract boundary.
selection.decisions[].signalsarrayYesDefines the signals value at this contract boundary.
selection.decisions[].skillIdstringYesDefines the skillid value at this contract boundary.minLength: 1
selection.decisions[].statusenumYesDefines the status value at this contract boundary.enum: generated, suppressed
selection.decisions[].titlestringYesDefines the title value at this contract boundary.
selection.generatedCountintegerYesDefines the generatedcount value at this contract boundary.minimum: 0
selection.suppressedCountintegerYesDefines the suppressedcount value at this contract boundary.minimum: 0
skillsarrayYesDefines the skills value at this contract boundary.
skills[].pathstringYesDefines the path value at this contract boundary.
skills[].schemaVersionstringYesDefines the schemaversion value at this contract boundary.
skills[].skillIdstringYesDefines the skillid value at this contract boundary.
skills[].titlestringYesDefines the title value at this contract boundary.

Canonical machine-readable definition

The raw synchronized contract remains authoritative. The educational sections above are projections of this definition.

Show raw JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/schemas/workspace-intelligence/workspace-skills-index.v1.json",
  "title": "Workspai Workspace Skills Index",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "inputsHash",
    "skills"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspace-skills-index.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "inputsHash": {
      "type": "string",
      "minLength": 8
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "skillId",
          "path",
          "schemaVersion",
          "title"
        ],
        "properties": {
          "skillId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "schemaVersion": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "selection": {
      "type": "object",
      "required": [
        "generatedCount",
        "suppressedCount",
        "decisions"
      ],
      "properties": {
        "generatedCount": {
          "type": "integer",
          "minimum": 0
        },
        "suppressedCount": {
          "type": "integer",
          "minimum": 0
        },
        "decisions": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "skillId",
              "title",
              "status",
              "confidence",
              "reasons",
              "signals",
              "scopedProjects"
            ],
            "properties": {
              "skillId": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "generated",
                  "suppressed"
                ]
              },
              "confidence": {
                "enum": [
                  "high",
                  "medium"
                ]
              },
              "reasons": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "signals": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "scopedProjects": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}