Implement code following TDD/RGRC cycle with real-time test feedback
Implements code using TDD/RGRC cycle with real-time test feedback and quality checks.
/plugin marketplace add thkt/claude-config/plugin install complete-workflow-system@thkt-development-workflows[implementation description] [--frontend] [--principles] [--storybook]opusImplement code with TDD/RGRC cycle and quality checks.
/code "implement user validation" # Default mode
/code --frontend "implement LoginForm" # + Frontend patterns
/code --principles "refactor auth module" # + Full principles
/code --storybook "implement Button" # + Storybook integration
Load with flags when needed:
| Flag | Context | When to Use |
|---|---|---|
--frontend | [@../skills/applying-frontend-patterns/SKILL.md] | React/UI components |
--principles | [@../skills/applying-code-principles/SKILL.md] | Design decisions, refactoring |
--storybook | [@../skills/integrating-storybook/SKILL.md] | Component Stories |
!`git status --porcelain 2>/dev/null | head -5 || echo "(no git)"`
!`ls package.json 2>/dev/null && echo "package.json found" || echo "(no package.json)"`
For spec.md detection: @../references/commands/code/spec-context.md
For spec-driven test generation: @../references/commands/code/test-preparation.md
For detailed cycle: @../references/commands/code/rgrc-cycle.md
For quality checks and verification: @../references/commands/code/quality-gates.md
For definition of done: @../references/commands/code/completion.md
Before writing code, ask:
After implementation is complete, generate an IDR (Implementation Decision Record) to document implementation decisions.
Before generating IDR, check if it's required:
idr_required field (Section 11)idr_required: false → Skip IDR generationidr_required: true → Generate IDRSpec check: ~/.claude/workspace/planning/**/spec.md → Section 11
For detailed logic: @../references/commands/shared/idr-generation.md
Search for SOW:
Glob pattern: ~/.claude/workspace/planning/**/sow.md
If SOW found:
[SOW directory]/idr.mdIf SOW not found (standalone mode):
~/.claude/workspace/idr/[feature-name]/idr.mdGenerate /code section with:
## /code - [YYYY-MM-DD HH:MM]
### Changed Files
| File | Change Type | Description |
| --------------- | ---------------- | ----------- |
| path/to/file.ts | Created/Modified | [summary] |
### Implementation Decisions
| Decision | Rationale | Alternatives Considered |
| ---------- | ----------- | ----------------------- |
| [decision] | [rationale] | [alternatives] |
### Attention Points
- [attention points]
### Applied Principles
- [applied principles]
### Confidence: [C: 0.XX]
If SOW exists, update its Implementation Records section with IDR link and status.
/test or /audit/research first