Skip to content

intent-driven-dev/openspec-schemas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSpec Schemas

Custom OpenSpec schemas packaged as copyable folders under openspec/schemas/.

Default OpenSpec includes the spec-driven schema, which is a strong general-purpose workflow. This repo adds more focused workflows for specific delivery contexts, and also demonstrates how to customise OpenSpec for different styles of work.

Install a Schema

Ask your coding agent to read this file and install the schema you want:

Read this file: https://raw.githubusercontent.com/intent-driven-dev/openspec-schemas/refs/heads/main/README.md and install schema <schema-name>.

Example:

Read this file: https://raw.githubusercontent.com/intent-driven-dev/openspec-schemas/refs/heads/main/README.md and install schema event-driven.

If you prefer to install the schema yourself, clone this repository locally or otherwise download it locally, then copy the relevant schema folder from openspec/schemas/ into one of these locations:

  1. Project Local: Create openspec/schemas/ in your project if it does not exist, then copy your schema to openspec/schemas/<schema-name>/.

  2. User Level: Copy your schema to $HOME/.openspec/schemas/<schema-name>/.

Once the schema exists in either location, update openspec/config.yaml to activate it and run openspec schema validate.

config.yaml guidance:

  • Set schema: <schema-name>.
  • Ensure rules keys correspond to artifact IDs in your schema's schema.yaml (artifacts[].id).
  • For example, when using minimalist, artifacts are specs and tasks, so use rules.specs and rules.tasks.

Example: minimalist

schema: minimalist

context: |
 Tech Stack:
  - Pure HTML5, CSS3, vanilla JavaScript
  - No build tools, package managers

rules:
  specs:
    - Note accessibility requirements (WCAG 2.1 AA)
  tasks:
    - Include responsiveness checks.

Artifact alignment source: openspec/schemas/minimalist/schema.yaml (specs, tasks).

AI Agent Install Instructions

Use this flow when installing any schema from this repository into an existing OpenSpec project.

  1. Run openspec --version before cloning or copying any schema files. Confirm OpenSpec is installed and the CLI version is at least 1.0.0.
  2. If openspec --version fails, reports a version below 1.0.0, or openspec/config.yaml is missing in the target project, stop and ask the user to install or upgrade OpenSpec and run openspec init first. Exit with a message that schema installation can only proceed after initialization.
  3. Clone this repository locally, then copy the full schema directory recursively so you keep schema.yaml, the schema README.md, and all nested templates/ files together.
  4. Update openspec/config.yaml to activate the installed schema.
  5. Run openspec schema validate to confirm the copied schema loads correctly.

Example install flow using event-driven:

openspec --version

# Stop here if OpenSpec is missing, below 1.0.0, or openspec/config.yaml does not exist yet.
git clone https://github.com/intent-driven-dev/openspec-schemas.git /tmp/openspec-schemas
cp -R /tmp/openspec-schemas/openspec/schemas/event-driven ./your-project/openspec/schemas/event-driven

Example activation in openspec/config.yaml:

schema: event-driven

This activation snippet is only an example for the event-driven install flow. Replace the schema name when installing a different schema from this repository.

Validate the installed schema:

openspec schema validate

Expected success output for this example:

Validation Results:
✓ event-driven

Contributing

See CONTRIBUTING.md for how to create/customize schemas using openspec schema init / openspec schema fork, and how to validate before opening a PR.

Video

Watch on YouTube

Minimalist

Fast path from spec to execution using user-story requirements and Gherkin acceptance-criteria style.

For more details, see openspec/schemas/minimalist/README.md.

Event-Driven

Structured workflow for event-centric systems with Event Storming discovery followed by AsyncAPI specification.

For more details, see openspec/schemas/event-driven/README.md.

About

Collection of OpenSpec Schema for Workflows other than standard spec-driven schema that is included in OpenSpec.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors