Loading...
Loading...
Iterative testing, verification, and improvement supervisor. Triggers when: User requests iterative testing and improvement, code quality review and assurance is needed, automated testing and feedback loops are required, or multiple rounds of refinement are specified. Commands: - /iterate <n> - Run n iterations of test-improve cycle - /iterate stop - Stop current iteration loop - /iterate status - Show current iteration status - /iterate report - Generate iteration report Capabilities: Automated test execution and result analysis, quality metrics tracking across iterations, improvement suggestion generation, convergence detection, and detailed iteration reports.
npx skill4agent add cycleuser/skills iteration-manager/iterate <n>/iterate stop/iterate status/iterate report┌─────────────────────────────────────────────────────────────┐
│ ITERATION CYCLE │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌────────┐│
│ │ TEST │───▶│ ANALYZE │───▶│ SUGGEST │───▶│ APPLY ││
│ │ │ │ │ │ │ │ ││
│ └──────────┘ └──────────┘ └──────────┘ └────────┘│
│ │ │ │
│ │ ┌──────────┐ │ │
│ └──────────────│ VERIFY │◀────────────────────────┘ │
│ │ │ │
│ └──────────┘ │
│ │ │
│ ┌─────▼─────┐ │
│ │ CONVERGE? │ │
│ └─────┬─────┘ │
│ YES │ NO │
│ ┌─────┴─────┐ │
│ ▼ ▼ │
│ [DONE] [NEXT ITERATION] │
│ │
└─────────────────────────────────────────────────────────────┘# Run all tests
pytest tests/ -v --tb=short
# Run with coverage
pytest tests/ --cov=package --cov-report=term-missing
# Run specific test categories
pytest tests/ -m "not slow" # Skip slow tests# Iteration Report - Run #N
## Summary
| Metric | Previous | Current | Change |
|--------|----------|---------|--------|
| Pass Rate | 85% | 92% | +7% |
| Coverage | 72% | 78% | +6% |
| Errors | 5 | 2 | -3 |
## Issues Found
### Critical
- [Issue 1]: Description
### Major
- [Issue 2]: Description
### Minor
- [Issue 3]: Description
## Improvements Applied
1. Fixed [bug] in module X
2. Added test for Y
3. Refactored Z
## Next Iteration Focus
- [ ] Address remaining coverage gaps
- [ ] Fix failing edge case tests
- [ ] Improve performance of slow tests
## Convergence Check
- Score: 92/100
- Trend: Improving
- Recommendation: Continue iterationUser: Run 5 iterations on the current project
Agent: Starting iteration cycle...
Iteration 1/5:
- Tests: 45/50 passed (90%)
- Coverage: 68%
- Errors: 3
- Applying fixes...
Iteration 2/5:
- Tests: 48/50 passed (96%)
- Coverage: 74%
- Errors: 1
- Applying fixes...
Iteration 3/5:
- Tests: 50/50 passed (100%)
- Coverage: 82%
- Errors: 0
- Convergence detected!
Final Report:
- Total iterations: 3
- Time: 5 minutes
- Improvements: 12 fixes appliedUser: Iterate until test coverage reaches 90%
Agent: Starting coverage-focused iteration...
Iteration 1: Coverage 68% → 72%
Iteration 2: Coverage 72% → 78%
Iteration 3: Coverage 78% → 83%
Iteration 4: Coverage 83% → 88%
Iteration 5: Coverage 88% → 91%
Target reached! Coverage: 91%User: /iterate stop
Agent: Iteration stopped at #3
- Current state saved
- Resume with /iterate resume
User: /iterate resume
Agent: Resuming from iteration #3...