cleanproject
I'll help clean up development artifacts while preserving your working code.
I'll intelligently run tests based on your current context and actively help fix failures.
How it fires
How this command gets triggered: by you, by Claude, or both.
/testContext preview
What this command does when you run it.
I'll intelligently run tests based on your current context and actively help fix failures.
I'll intelligently run tests based on your current context and actively help fix failures.
**Context Detection First:** Let me understand what context I'm in:
1. **Cold Start** (no previous context):
2. **Active Session** (you're implementing features):
3. **Post-Command Context**:
4. **Debug Context** (previous test failures):
5. **Pre-Commit Context**:
**Phase 1: Deep Project Analysis** Using native tools to understand your testing setup:
I'll detect:
**Phase 2: Intelligent Test Execution** I'll run tests with appropriate flags for maximum insight based on your project's testing framework, using verbose output and fail-fast when available to quickly identify issues.
**Build & Compilation Check:**
**Real-time Monitoring:**
# Monitor test execution with timestamps # Capture both stdout and stderr # Watch for timeout patterns # Track memory usage if tests hang
**Phase 3: Failure Analysis & Auto-Fix** When tests fail, I'll:
1. **Parse failure output** to understand exact issues 2. **Read failing test** to understand expectations 3. **Read implementation** to find the bug 4. **Analyze patterns** from similar tests that pass 5. **Apply fixes** when confident
**Common fixes I'll attempt:**
**Phase 4: Advanced Diagnostics** For complex failures:
**Log Analysis:**
**Console Pattern Detection:**
**Phase 5: Coverage & Quality** After fixing tests:
When I find multiple issues, I'll create a todo list to fix them systematically.
**Build Failure Recovery:** If build fails before tests:
**Smart Context-Based Strategy:** Based on the detected context, I'll choose the optimal approach:
**Intelligent Test Selection:**
# Context: After implementing UserService # I'll run: UserService tests + integration tests that use it # Context: After /scaffold user-auth # I'll run: New user-auth tests + smoke tests # Context: Fixing failing tests # I'll run: Only the specific failing test with debug info
**Session Awareness:**
**Integration with other commands:**
**Important**: I will NEVER:
This ensures your tests truly validate your code while maximizing development speed.
Best Claude Code framework that actually save time. Built by a dev tired of typing "please act like a senior engineer" in every conversation.
Repo: notlikeDev/CCPlugins
I'll help clean up development artifacts while preserving your working code.
I'll analyze recent operations and create contextual TODO comments in your code.
I'll intelligently manage your project documentation by analyzing what actually happened and updating ALL relevant docs accordingly.
I'll explain this code as a senior developer would, focusing on the why behind decisions.
I'll locate all TODO comments and unfinished work markers in your codebase.