@yoke233/openspec-test-bootstrap
v0.1.1
Published
Bootstrap an OpenSpec workflow schema with change-scoped test-plan/test-cards/test-evidence artifacts.
Maintainers
Readme
openspec-test-bootstrap
Bootstraps an OpenSpec schema (workflow) with change-scoped testing artifacts:
test-plan→evidence/test_plan.mdtest-cards→evidence/test_cards.md(optional; enabled via--addEvidence)test-evidence→evidence/test_evidence.md(optional; enabled via--addEvidence)
Usage
npm run build
node dist/cli.js --projectRoot . --schema my-workflowOr via npx:
npx @yoke233/openspec-test-bootstrap --projectRoot . --schema my-workflowOpenSpec Resolution (Windows-friendly)
This tool tries (in order):
./node_modules/.bin/openspec(.cmd)under--projectRootopenspeconPATHnpx --no-install openspec
You can override with:
node dist/cli.js --openspec <cmdOrPath> --projectRoot . --schema my-workflowCLI Options
--projectRoot <path>: target project root (default: cwd)--schema <name>: schema name to create/update (default:my-workflow)--forkFrom <schema>: base schema to fork from (default:spec-driven)--tools <none|all|csv>: tools foropenspec init(default:none)--evidenceDir <path>: evidence output dir inside schema (default:evidence)--templates <dir>: override source templates directory--openspec <cmdOrPath>: override openspec command/path--no-init: do not auto-runopenspec init--setDefault / --no-setDefault: setopenspec/config.yamlschema--forceRebuild / --no-forceRebuild: delete & recreate schema directory--validate / --no-validate: runopenspec schema validate--addEvidence / --no-addEvidence: include test-cards/test-evidence artifacts--dryRun: print actions without writing/running
Self-check
node dist/cli.js --help