Claude Code plugin for AI-assisted SDLC: definition, architecture, planning, implementation, QA.
- Install the plugin.
claude plugin install spec-to-code@<marketplace-name>or install from local directory:
claude --plugin-dir /path/to/spec-to-code-
The
stcagent activates automatically and loads behavioral rules. If your setup cannot use thestcagent, run/stc:initat session start instead. -
Use plugin skills to run the workflows. Run
/stc:define-productto start a new product, or/stc:create-taskfor a one-off task or bug ticket. See "Skills" section below for more details.
| Step | Command | What it does |
|---|---|---|
| 0. Init (if no agent) | /stc:init |
Load rules into session context |
| 1. Definition | /stc:define-product |
Vision, spec, requirements in docs/ |
| 2. Architecture | /stc:design |
docs/architecture.md |
| 3. Planning | /stc:plan |
docs/implementation-plan.md + task files in tasks/backlog/ |
| 4. Implementation | /stc:implement-task <task> |
One task: detailed design, code, tests |
/stc:implement-phase <N> |
All tasks in phase N (sequential) | |
/stc:implement-plan |
Full plan, phase by phase | |
| 5. Integration test | /stc:qa-integration-test |
Verify phase or ad-hoc work + regression |
| 6. System test | /stc:qa-system-test |
Full product test, release gate |
| Command | What it does |
|---|---|
/stc:create-task |
New task or bug ticket in tasks/backlog/ (dev tasks, bugs, refactors, chores) |
/stc:codebase-review |
Read-only audit, produces backlog tasks |
| Command | What it does |
|---|---|
/stc:commit-code |
Staging and git commit guidance |
/stc:comment-code |
Add explanatory comments to code |
- New product —
/stc:define-product→/stc:design→/stc:plan→/stc:implement-*→/stc:qa-system-test - Bug fix —
/stc:create-task bug→/stc:implement-task→/stc:qa-integration-test→/stc:qa-system-test - Maintenance —
/stc:create-task task→/stc:implement-task→/stc:qa-integration-test - Incremental feature — same as new product, but
/stc:define-productamends existing docs - Codebase optimization —
/stc:codebase-review→/stc:plan→/stc:implement-phase→/stc:qa-system-test
- Build a new product from scratch —
/stc:define-product→/stc:design→/stc:plan→/stc:implement-plan→/stc:qa-system-test. Claude facilitates writing specs, designs the architecture, generates a phased task plan, then autonomously implements and tests each task. - Fix a bug —
/stc:create-task bug→/stc:implement-task→/stc:qa-integration-test. Claude captures the defect, investigates root cause, implements the fix with tests, and validates no regressions. - Add a feature to an existing product —
/stc:define-productamends existing docs with the new feature, then the standard design → plan → implement → QA flow executes scoped to that feature. - Audit and reduce technical debt —
/stc:codebase-reviewproduces a prioritized report of duplication, drift, and fragmentation;/stc:plan→/stc:implement-phaseexecutes the approved improvements.
docs/vision.md
docs/spec.md
docs/requirements.md
docs/architecture.md
docs/implementation-plan.md
tasks/backlog/ | active/ | done/
Created incrementally as you run each stage — no upfront scaffolding.
| Mechanism | How | Survives compaction | When to use |
|---|---|---|---|
stc agent (default) |
Automatic via settings.json |
Yes | Recommended for most users |
/stc:init |
Manual, run once per session | No | When agent conflicts with another plugin |
Rules live in rules/first-principles.md and rules/task-management.md. The agent inlines them in its system prompt; /stc:init injects them via !cat.
# Load the plugin locally without installing:
claude --plugin-dir ./
# After making changes, reload inside Claude Code:
/reload-pluginsSee docs/spec-to-code-specification.md for the full product vision and functional specification.