openspec-check-overlay
Check that the intent-driven Codex overlay is compatible with the installed OpenSpec CLI. Use after installing/updating OpenSpec or the template.
SKILL.md.codex/skills/openspec-check-overlay/SKILL.md
GitHubProject context preflight before workflow actions: before this skill takes a workflow action, follow the project-constitution skill. Read root CONSTITUTION.md when present, enforce relevant project rules, stop on material conflicts, and follow the strict missing-constitution bootstrap/diagnostic policy. For architecture-sensitive work, also read ARCHITECTURE.md, adr/README.md, and relevant in-force adr/*.md. Read .secrets.local.env only when the current workflow actually needs a listed external system, and never reveal secret values.
OpenSpec Overlay Check
Validate the project-local intent-driven overlay without patching OpenSpec. Prefer scripts/check-overlay when present; otherwise follow the manual steps below.
Steps
Show the OpenSpec version:
openspec --versionList schemas and confirm
intent-drivenis project-local:openspec schemas --jsonValidate the schema:
openspec schema validate intent-drivenList active changes with a command valid in OpenSpec 1.3.x:
openspec list --jsonCreate a temporary smoke change using the intent-driven schema:
openspec new change zz-smoke-intent-overlay-<unique> --schema intent-driven openspec status --change zz-smoke-intent-overlay-<unique> --json # after writing minimal proposal/specs/grill/design/design-review/adr/test-plan/tasks artifacts: openspec instructions apply --change zz-smoke-intent-overlay-<unique> --jsonReport the compatibility layer for any failure:
- OpenSpec CLI command changed
- local
intent-drivenschema invalid - Codex prompt/skill adapter mismatch
- generated skill mismatch
- existing project artifact issue
Cleanup policy:
- The script may automatically delete only a
zz-smoke-intent-overlay-*change that it created in the same run. - Use
--keep-smokewhen the user wants to inspect the smoke change. - Never delete user-created changes or project artifacts silently.
- The script may automatically delete only a
Guardrails
- Do not run bare
openspec status --json; OpenSpec 1.3.x requires--change. - Do not modify OpenSpec package files.
- Do not overwrite
openspec/changes/**,openspec/specs/**, oradr/**.