From rockets-sdk-config
Implement a full project from a requirements document (PRD/spec/RFC). Coordinates planning, orchestrated CRUD generation, business logic, and validation — end to end.
How this command is triggered — by the user, by Claude, or both
Slash command
/rockets-sdk-config:rockets-from-doc <path/to/spec.md>The summary Claude sees in its command listing — used to decide when to auto-load this command
# Rockets From Doc Command Single command to go from spec to working project. ## Usage ## Execution Flow ### Step 1: Plan (rockets-planner agent) Invoke the `rockets-planner` agent with the spec document. The planner: 1. Reads the spec and extracts entities, fields, relations, ACL, non-CRUD modules 2. Produces a **human-readable plan** (shown to user) 3. Writes **`.rockets/plan.json`** (machine-readable, for orchestrate.js) 4. **Waits for user approval** before proceeding Do NOT duplicate planning logic here. The planner is the single owner of plan creation. ### Step 2: Bootstrap (...
Single command to go from spec to working project.
/rockets-from-doc examples/PRD.md
/rockets-from-doc /path/to/spec.md
/rockets-from-doc docs/requirements.md into ./apps/api
Invoke the rockets-planner agent with the spec document. The planner:
.rockets/plan.json (machine-readable, for orchestrate.js)Do NOT duplicate planning logic here. The planner is the single owner of plan creation.
If no project exists at the target path:
node skills/rockets-project-bootstrap/scripts/bootstrap.js --dest <target>
Verify: package.json exists, src/ directory present, dependencies installed, database accessible.
If Agent Teams enabled AND plan has 3+ entities:
→ Form team per CLAUDE.md > Agent Teams section
→ Lead creates tasks with blockedBy from topological sort
→ Teammates self-claim and execute
→ All CRUD generation costs 0 tokens (pure scripts)
Otherwise (sequential fallback):
node skills/rockets-orchestrator/scripts/orchestrate.js \
--project <project-path> \
--spec .rockets/plan.json
→ Topological sort + wave-based execution (0 tokens)
→ Quality gates: stops on validation failure
→ Resume on failure: orchestrate.js --project <path> --resume
For modules listed in plan.json.nonCrud[]:
CRITICAL: Non-CRUD services MUST NOT use DataSource or repositories directly (non-model services must consume model services, never repositories).
Inject CrudService/ModelService from CRUD modules. For aggregation, use getMany() + in-memory processing.
Only exception: DataSource.transaction() for transaction boundaries (workflow services use model services for entity access except DataSource.transaction()).
rockets-business-logic skilldevelopment-guides/BUSINESS_LOGIC_PATTERNS_GUIDE.md# Structural + build validation
node skills/rockets-crud-generator/scripts/validate.js --project <path> --build
# Endpoint smoke test (optional but recommended)
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project <path>
Return:
| Step | Tool | Tokens |
|---|---|---|
| Plan | rockets-planner (opus) | ~15k |
| Bootstrap | script | 0 |
| CRUD generation | orchestrate.js (scripts) | 0 |
| Business logic | agent (sonnet) | ~10k/module |
| Validation | validate.js (script) | 0 |
| Smoke test | smoke-test-endpoints.js (script) | 0 |
Enforced automatically by validate.js + hooks/hooks.json. See CLAUDE.md Mandatory Engineering Rules for the full list.
agents/rockets-planner.md — owns plan creationskills/rockets-orchestrator/SKILL.md — owns CRUD orchestrationskills/rockets-crud-generator/SKILL.md — owns file generationskills/rockets-business-logic/SKILL.md — owns non-CRUD patternsdevelopment-guides/ROCKETS_AI_INDEX.md — guide routingnpx claudepluginhub btwld/skills --plugin rockets-sdk-config/devteam-planConducts interactive requirements gathering, researches codebase, creates PRD, and generates development plan with tasks and sprints. Supports spec files, folders, and auto-detection.
/specInterviews the user (or scans existing codebase with 'retrofit') to generate requirements.md, design.md, and tasks.md before any code is written. Enforces spec-driven development for consistent project planning.
/specStarts spec-driven development: asks clarifying questions on objectives, features, tech stack, and boundaries; generates structured SPEC.md covering six core areas; confirms before proceeding.
/specGenerates feature specs via step-by-step dialogue: requirements.md (EARS notation), design.md (diagrams/TS interfaces), tasks.md (tasks/best practices).
/planGenerates project spec and requirements backlog (no args) or feature FRD grounded in project spec (with feature arg). Tracks progress in tasks/todo.md.
/specGenerates spec-driven development docs from a feature description: requirements.md (EARS user stories), design.md (Mermaid diagrams, TypeScript interfaces), tasks.md (implementation plan).