Spec-Driven Development Kit & Codex CLI Addon. specs brings YAML+Markdown specs, GitHub issue syncing, CI coverage, and Codex wrapper commands to any repository.
npm i -g specs
specs init
codex spec-next- Structured
specs/folder with YAML+Markdown specs - CLI commands:
specs init,specs scan,specs sync,specs next,specs coverage - Codex wrappers in
.codex/commands/forcodex spec-next,codex spec-sync,codex spec-coverage,codex approve - GitHub Action for spec coverage
- Node.js 18+
- GitHub CLI (
gh) installed and authenticated for sync/approval/PR actions
Place executable scripts in .codex/commands/ (provided in this repo) so Codex can invoke specs commands as native subcommands:
codex specs(new): delegates tospecsornpx specsand supports--doctorto report install status/version.codex spec-next,codex spec-sync,codex spec-coverage,codex approve: wrappers that call specs CLI/gh helpers directly.
Install/upgrade/uninstall:
- Global:
npm i -g specs(upgrade withnpm i -g specs@latest, uninstall withnpm rm -g specs). - Local fallback:
npx specs <verb>(used automatically bycodex specsif global is missing). - Optional: set
PATHto the repo-built binary (packages/specs-cli/bin/specs.js) for development.
packages/specs-cli: the main CLIpackages/specs-coverage-action: GitHub Action runner for coveragetemplates/: starter.specs.yml, spec example, and workflowdocs/: guides and reference.codex/commands/: Codex wrapper scriptsexamples/sample-app: example project showing specs usage and coverage workflow
npm install
npm run build --workspaces
# specs init now installs git hooks by default. If you need to reapply:
# git config core.hooksPath .githooks- A sample app lives in
examples/sample-appwith its own.specs.yml, sample spec, and coverage workflow example. - CI workflow
.github/workflows/example-conformance.ymlrunsnpm run example:conformto ensure the example stays in sync with specs.
MIT
- Specs can reuse upstream prompt templates from
github/spec-kit. Usespecs templatesorspecs scan --refresh-spec-kitto pull prompts locally into.specs/spec-kit. - CI includes
npm run spec-kit:checkto verify spec-kit templates are reachable. - Codex wrappers continue to work; specs provides GH issues/project automation while spec-kit remains the canonical prompt source.