context
Analyze and optimize context configuration. Reviews CLAUDE.md, knowledge-core.md, and active context for optimization…
Quick command to invoke code-implementer to execute implementation with self-correction (up to 3 intelligent retries).
How it fires
How this command gets triggered: by you, by Claude, or both.
/implementContext preview
What this command does when you run it.
Quick command to invoke code-implementer to execute implementation with self-correction (up to 3 intelligent retries).
name: implement description: Quick command to invoke code-implementer to execute implementation with self-correction (up to 3 intelligent retries).
Execute implementation plan using the code-implementer agent with automatic self-correction.
/implement
⚠️ **Requires**: 1. ResearchPack (from `/research`) - passed validation (80+) 2. Implementation Plan (from `/plan`) - passed validation (85+)
1. Checks circuit breaker status (must be closed) 2. Validates ResearchPack exists (80+ score) 3. Validates Implementation Plan exists (85+ score) 4. Invokes `@code-implementer` to execute plan 5. Creates/modifies files as specified in plan 6. Runs tests automatically 7. **Self-corrects on failure** (up to 3 attempts):
8. Records success/failure in circuit breaker 9. Captures patterns in knowledge-core.md (on success)
# After /research and /plan: /implement # That's it! The agent knows what to do from the artifacts.
You'll receive:
If tests fail, implementer will:
**Attempt 1** (targeted fix):
**Attempt 2** (alternative approach):
**Attempt 3** (minimal working version):
**After 3 failures**:
The circuit breaker prevents infinite retry loops:
**States**:
**If blocked**:
# Check status ./.claude/validators/circuit-breaker.sh code-implementer status # Review why it failed # Fix root cause (update ResearchPack/Plan, fix environment, etc.) # Reset after fixing ./.claude/validators/circuit-breaker.sh code-implementer reset
Before implementation starts:
Typical completion:
After `/implement` completes:
**On Success**: 1. ✅ Review implementation report 2. ✅ Verify tests passing 3. ✅ Check patterns captured in knowledge-core.md 4. ✅ Commit changes 5. ✅ Deploy (if appropriate)
**On Failure**: 1. ❌ Review all 3 attempts made 2. ❌ Check error messages 3. ❌ Identify root cause 4. ❌ Fix ResearchPack/Plan/environment 5. ❌ Reset circuit breaker 6. ❌ Retry with fixes
**Tests fail all 3 times**:
**Circuit breaker blocking**:
**Implementation seems stuck**:
---
**Executing command...**
Please invoke: `@code-implementer`
The code-implementer will: 1. Execute plan precisely (no improvisation) 2. Run tests continuously 3. Self-correct intelligently (up to 3 tries) 4. Record circuit breaker state 5. Capture patterns on success
**Protection**: Circuit breaker prevents infinite loops (blocks after 3 failures)
A small, portable workflow for an agent you already use: research what is uncertain, plan proportionally, act, verify, and retain useful knowledge. Start with INSTALL.md.
Analyze and optimize context configuration. Reviews CLAUDE.md, knowledge-core.md, and active context for optimization…
Quick command to invoke implementation-planner to create surgical, reversible implementation plans with rollback procedures.
Quick command to invoke docs-researcher for rapid documentation research. Fetches version-accurate, authoritative sources and…