rcom/.agents/skills/openspec/references/answers.md
2026-12-05 23:30:06 +03:00

2.8 KiB

Answers to common questions

Use this when the user asks how OpenSpec works or how to set it up. Check an answer against the CLI's own help (openspec <command> --help) before you rely on a flag.

Where things live

  • openspec/specs/<capability>/spec.md: how the system behaves today, as requirements with scenarios.
  • openspec/changes/<name>/: one planned change. Usually proposal.md, specs/ (the spec updates), design.md (optional), and tasks.md.
  • openspec/changes/archive/: finished changes.
  • openspec/config.yaml: the project's schema, context lines every agent reads, and per-artifact rules.

Checking things

  • What is in progress: openspec list. The specs: openspec list --specs.
  • Where one change stands: openspec status --change "<name>".
  • Read a change or a spec: openspec show "<name>".
  • Check the files are well formed: openspec validate "<name>", or openspec validate --all.
  • A dashboard of everything: openspec view.

Setting things up

  • Set up a project, or add an agent to it: openspec init.
  • Choose which skills are installed: openspec config profile, then openspec update in each project.
  • Refresh the skills after upgrading OpenSpec: openspec update.
  • Teach agents something about this project: add a short line under context in openspec/config.yaml. Edit the file only after the user approves the wording.
  • See or change the artifact workflow: openspec schemas lists the schemas, openspec templates shows where each artifact's template comes from.

Set up checks and actions

Configure lifecycle in the project's openspec/config.yaml, or in the selected store's config. Define each action under actions with instructions and an optional title and description. Under triggers, add on, action (the action ID), and mode.

Choose on based on when the user wants the action to run. Use change.create.before or change.create.completed for creation, change.apply.before or change.apply.completed for implementation, and change.archive.before or change.archive.completed for archiving. Create completes before the first planning artifact. Use auto to run the action automatically or suggest to ask first.

Preserve existing actions and triggers. Confirm the proposed configuration with the user before editing. Validate it with openspec lifecycle actions, adding --store <id> for a selected store.

Stores

A store is a separate OpenSpec repository registered on this machine, for specs that live outside the code. openspec store --help lists its commands. Most commands accept --store <id> to work in a store instead of this project.

Something is wrong

  • Run openspec doctor and read what it reports.
  • To tell the maintainers, use openspec feedback "<message>", after the user approves the message.