Orchestrate concurrent agents through brownfield modernization phases with checkpoint-based resumable workflows...
This skill manages the entire lifecycle of a brownfield modernization project by:
Claude will automatically use this skill when the user:
# Pseudo-code for checkpoint handling
if exists("MODERNIZATION_CHECKPOINT.md"):
checkpoint = parse_checkpoint()
if checkpoint.status == "Complete":
offer_new_modernization_or_review()
else:
resume_from_checkpoint(checkpoint)
else:
initialize_new_checkpoint()
start_phase_1()
Spawn agents using the Task tool with specific subagent types:
# Concurrent exploration agents (Phase 1)
Task(subagent_type="Explore", prompt="Analyze architecture...")
Task(subagent_type="Explore", prompt="Map dependencies...")
Task(subagent_type="Explore", prompt="Assess technical debt...")
# Implementation agents (Phase 2)
Task(subagent_type="general-purpose", prompt="Set up validation harness...")
Task(subagent_type="general-purpose", prompt="Execute modernization tasks...")
# Documentation agents (Phase 3)
Task(subagent_type="general-purpose", prompt="Generate documentation...")
Every agent output goes through validation:
1. Agent produces output
2. Run validation gates (lint, type-check, test, security)
3. If any gate fails:
- Feed error back to agent
- Agent self-corrects
- Re-run validation
4. If all gates pass:
- Accept output
- Update checkpoint
- Proceed to next task
After each significant action:
## Agent Status
### [Agent Name]
- **Status**: Completed
- **Last Update**: 2026-01-19T15:30:00Z
- **Task Completed**: Analyzed 47 modules, found 12 architectural violations
- **Output Files**: docs/architecture-analysis.md
Goal: Understand the current state of the codebase
Concurrent Agents:
Deliverables:
Duration: Agents work concurrently, typically completes in one session
Goal: Implement modernization improvements
Sequential Tasks (with validation gates):
Deliverables:
Duration: Multiple sessions, checkpoint enables resumption
Goal: Ensure quality and document everything
Concurrent Agents:
Deliverables:
Duration: Agents work concurrently, typically completes in one session
Agent output: def foo(x): return x+1
Lint error: E225 missing whitespace around operator
Self-correction: def foo(x): return x + 1
Agent output: def process(data: list) -> dict:
Type error: Missing type parameters
Self-correction: def process(data: list[str]) -> dict[str, Any]:
Agent output: Changed authentication from bcrypt to argon2
Test failure: Expected bcrypt hash format
Analysis: Check git history for intentional bcrypt usage
Self-correction: Preserve bcrypt, update only non-auth code
Agent claim: "Project uses FastAPI"
Verification: grep -r "fastapi" requirements.txt → Not found
Self-correction: Remove incorrect claim, verify actual framework
This skill works in conjunction with the comprehensive checklist at:
docs/AI_ASSISTED_BROWNFIELD_MODERNIZATION_CHECKLIST.md
The checklist provides:
When resuming from a checkpoint:
Completed: Skip, use resultsIn Progress: Resume from last known stateBlocked: Report blocker, attempt resolution or skipPending: Start freshUsers can invoke this skill by:
/modernize