This repo contains OpenSpec workflow schemas (folders under openspec/schemas/). Contributions typically add a new schema or refine an existing one.
- OpenSpec CLI installed and available as
openspec
- Schemas live in
openspec/schemas/<schema-name>/schema.yamltemplates/(markdown templates used byopenspec instructions ...)
In a project, schemas are selected in openspec/config.yaml (for example by setting a default schema name). In this repository, schemas must remain copyable as self-contained folders under openspec/schemas/.
Use the repo skill:
openspec-schema-authoring
It guides you through openspec schema init / openspec schema fork, validation, and repo layout expectations.
Discover available schema sources (repo + upstream):
openspec schemas --jsonCreate a new schema from scratch:
openspec schema init <schema-name> --description "..." --artifacts "proposal,specs,design,tasks"Or customize an existing schema (recommended):
openspec schema fork <source> [new-schema-name]Run validation for each schema you changed under openspec/schemas/:
openspec schema validate <schema-name>If you are debugging schema resolution (e.g., you are not sure which schema folder is being used):
openspec schema which <schema-name>openspec schema validate <schema-name>passes for every schema you changedtemplates/contains templates for every artifact declared inschema.yaml- Schema README added/updated if appropriate
- Any repo docs that reference contributing are updated to point to this guide