Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alenfitz/spec-copilot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@alenfitz/spec-copilot
Spec-Driven Development Framework — One package, six AI coding tools. Turn AI coding from "black-box YOLO" into "white-box step-by-step."
Supported Tools
| Tool | Prompt File | Commands |
|---|---|---|
| opencode | AGENTS.md |
.opencode/commands/ (native) |
| Claude Code | CLAUDE.md |
.claude/commands/ (native) |
| Cursor | .cursor/rules/spec-copilot.mdc |
Prompt routing |
| Windsurf | .windsurf/rules/spec-copilot.md |
Prompt routing |
| GitHub Copilot | .github/copilot-instructions.md |
Prompt routing |
| Cline | .clinerules/spec-copilot.md |
Prompt routing |
Quick Start
# Install — specify your tool
npx @alenfitz/spec-copilot install --tool cursor
npx @alenfitz/spec-copilot install --tool claude-code
npx @alenfitz/spec-copilot install --tool windsurf
# ... any of: opencode, claude-code, cursor, windsurf, copilot, cline
# Verify
npx @alenfitz/spec-copilot doctorThe framework auto-detects your tool on subsequent commands (update, doctor, etc.).
How It Works
- Spec First (No Spec, No Code) — AI evaluates complexity, asks questions, generates spec in segments. No confirmed spec, no code written.
- Task Rhythm — AI completes one atomic task, shows proof, commits immediately, then waits for you to say "continue."
- Knowledge Flywheel — Pitfalls are logged and archived into a tag-indexed knowledge base. Next requirement reads past experience.
Commands
| Command | When | Output |
|---|---|---|
/spec:init |
First time setup | Fills rules/project-context.md |
/spec:bootstrap |
New empty project | Tech stack selection + scaffolding |
/spec:propose <req> |
New requirement | spec.md (+ tasks.md if complex) |
/spec:flow <req> |
Auto mode (simple/medium) | Full pipeline: propose → archive |
/spec:apply <name> |
After spec confirmed | Code committed task by task |
/spec:smoke <name> |
After /spec:apply | Build + API smoke test |
/spec:review <name> |
After /spec:smoke | Spec compliance + code quality report |
/spec:fix <name> |
After review issues | Fix commits + doc sync |
/spec:archive <name> |
After review passes | Knowledge captured, docs updated, merge prompt |
/spec:docs [type] |
Anytime | README + API + Architecture + Deploy docs |
/spec:hotfix <desc> |
Production incident | Minimal fix on hotfix branch |
/spec:test <name> |
Need automated tests | Test code + run results |
CLI Commands
npx @alenfitz/spec-copilot install --tool <name> # Install framework
npx @alenfitz/spec-copilot update [--force] # Upgrade framework
npx @alenfitz/spec-copilot gate <name> <phase> # Phase gate check
npx @alenfitz/spec-copilot lint <name> # Spec completeness check
npx @alenfitz/spec-copilot doctor # Health check
npx @alenfitz/spec-copilot uninstall --confirm # Remove frameworkWhat Gets Installed
your-project/
├── <tool-specific prompt file> ← AI reads this
├── <tool-specific commands/> ← Native commands (if supported)
├── README.md ← Auto-generated project docs
├── docs/ ← API, architecture, deploy docs
│
└── spec_copilot/
├── commands/ ← 12 command definitions
├── rules/
│ ├── coding-style.md ← Universal coding standards
│ ├── security.md ← Security red lines
│ ├── project-context.md ← Your project's tech context
│ └── domain-rules.md ← Business rules (you fill this)
├── stack-adapters/
│ ├── _template.md ← Template for new tech stacks
│ └── spring-boot-vue3.md ← Built-in adapter (example)
├── knowledge/index.md ← Tag-indexed knowledge base
├── changes/templates/ ← spec.md / tasks.md / log.md
├── archives/ ← Completed requirements
└── scripts/ ← Lint, gate, hook scriptsComplexity Tiers
| Tier | Criteria | What's Required |
|---|---|---|
| 🟢 Simple | No API/schema/core flow/new dependency changes | Direct conversation, no spec |
| 🟡 Medium | New APIs, non-core schema, new dependency | Spec (2-segment confirmation) |
| 🔴 Complex | New subsystem, core flow, core schema, concurrency | Spec + tasks + knowledge |
Upgrade Safety
- Overwritten: coding-style.md, security.md, templates, scripts, commands, built-in adapters
- Skipped by default: prompt file (use
--force) - Never touched: project-context.md, domain-rules.md, knowledge/, changes/, archives/, custom adapters
Related Packages
@alenfitz/opencode-copilot— opencode-only version@alenfitz/spec-driven-dev— Claude Code-only version (legacy)
License
MIT