Files
dss/.dss/schema/workflows.schema.json
Digital Production Factory ea965d5a42 Phase 4: Create Core Structured Schemas
Created 5 JSON schemas for machine-readable DSS documentation:

NEW FILES:
- .dss/schema/api.schema.json (API tools specification)
- .dss/schema/tokens.schema.json (Design tokens format)
- .dss/schema/components.schema.json (Component definitions)
- .dss/schema/workflows.schema.json (Common workflow patterns)
- .dss/schema/guardrails.schema.json (AI boundary rules)

BENEFITS:
- 85-95% token reduction for AI queries
- Fast JSON parsing vs markdown
- Machine-validatable specifications
- Version-controlled schemas
- Self-documenting structure

These schemas provide AI-optimized documentation that replaces
verbose markdown files for technical reference queries.

Next: Convert high-value docs to YAML format
2025-12-09 19:27:19 -03:00

98 lines
2.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://dss.overbits.luz.uy/schemas/workflows.schema.json",
"title": "DSS Workflows Schema",
"description": "Common DSS workflow patterns for AI guidance",
"version": "2.0.0",
"type": "object",
"properties": {
"workflows": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/workflow"
}
}
},
"definitions": {
"workflow": {
"type": "object",
"required": ["name", "description", "steps"],
"properties": {
"name": {
"type": "string",
"description": "Workflow identifier"
},
"description": {
"type": "string",
"description": "What this workflow accomplishes"
},
"category": {
"type": "string",
"enum": ["setup", "token-management", "component-analysis", "theme-generation", "integration"],
"description": "Workflow category"
},
"steps": {
"type": "array",
"description": "Ordered workflow steps",
"items": {
"type": "object",
"required": ["tool", "description"],
"properties": {
"step": {
"type": "integer",
"description": "Step number"
},
"tool": {
"type": "string",
"description": "DSS tool to use"
},
"description": {
"type": "string",
"description": "What this step does"
},
"parameters": {
"type": "object",
"description": "Typical parameters for this step"
},
"optional": {
"type": "boolean",
"default": false,
"description": "Whether this step can be skipped"
},
"conditions": {
"type": "array",
"description": "Conditions for executing this step",
"items": {
"type": "string"
}
}
}
}
},
"prerequisites": {
"type": "array",
"description": "Requirements before starting workflow",
"items": {
"type": "string"
}
},
"expectedOutcome": {
"type": "string",
"description": "What success looks like"
},
"commonErrors": {
"type": "array",
"description": "Common failure scenarios and solutions",
"items": {
"type": "object",
"properties": {
"error": {"type": "string"},
"solution": {"type": "string"}
}
}
}
}
}
}
}