NOTE: In CI or automated scripts, prefer a deterministic workspace via --project-root to avoid writing into the repository root.
Example (CI-safe):
# run in CI and keep outputs inside the job workspace
node ./bin/docs-scaffold.mjs init ./ --non-interactive --project-root $GITHUB_WORKSPACEThe workflow also checks that ai_instructions.md in the repo root isn't modified by CI; if it is, CI fails with remediation hints.
Modular docs bundle for AI agent workflows. Ships opinionated templates and a tiny CLI.
npm i -D copilot-rocket30-second hello
npx copilot-rocket init ./docs --init-readme --seed ledger --seed registrynpx copilot-rocket init
# populates ./docs/ai with baseline templatesBundle the project (creates tools/dist/project_bundle.zip):
npx package-bundle project_bundle.zipWrite bundle to project root instead of tools/dist:
npx package-bundle project_bundle.zip --out-rootEvery workflow in copilot-rocket is built around three pillars:
1. Scope Card (task framing)
**Project:** copilot-rocket
**Active module:** ./docs/ai/000_SCOPE_CARD.md
**Goal:** Add pre-share preview
**Artifacts to touch:** ./docs/permissions.md
**DoD:** 3 checks listed
- Rooted Command (always from repo root)
npm run verify
- Work Ledger (task log with What/Why/Risk)
id: T-024 title: Add pre-share preview state: Done changelog: what: Added preview spec why: Phase 4 acceptance risk: Medium — check flags
- Scope Card defines the increment and non-goals.
- Rooted Commands ensure reproducible, root-anchored execution.
- Work Ledger records all actions and references commits/PRs.
These match the templates in ./docs/ai and the guidance in PUBLISH_GUIDE.md.
- License: MIT
- Changelog: Keep a Changelog + SemVer
- CI: eslint + prettier check + npm pack dry-run + test install
Validate example
npm run validateCustom validation
If you want to point a YAML file at a custom schema, include a $schema key in the document that points to a local schema path (relative to the file). The validator will try the $schema first, then fall back to the configured/default schemas.
- Publishing guide:
./PUBLISH_GUIDE.md - Release checklist:
./RELEASE_CHECKLIST.md