Skip to content

6hostsRus/copilot_rocket

Repository files navigation

copilot-rocket

npm CI

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_WORKSPACE

The 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.

Install

npm i -D copilot-rocket

30-second hello

npx copilot-rocket init ./docs --init-readme --seed ledger --seed registry

Use

npx copilot-rocket init
# populates ./docs/ai with baseline templates

Bundle the project (creates tools/dist/project_bundle.zip):

npx package-bundle project_bundle.zip

Write bundle to project root instead of tools/dist:

npx package-bundle project_bundle.zip --out-root

The Triad in Action

Every 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
  1. Rooted Command (always from repo root)

npm run verify

Reads: ./package.json

Writes: ./dist/*

  1. 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

Triad Rules (Scope • Path • Ledger)

  • 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.

Conventions

  • License: MIT
  • Changelog: Keep a Changelog + SemVer
  • CI: eslint + prettier check + npm pack dry-run + test install

Validate example

npm run validate

Custom 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.

Links

  • Publishing guide: ./PUBLISH_GUIDE.md
  • Release checklist: ./RELEASE_CHECKLIST.md

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published