Loading...
Loading...
Master skill for parallel subagent-driven execution with automatic fallback to single-agent sequential mode. Use when implementing plans with multiple independent sub-phases (SP1, SP2...) to dispatch parallel subagents, or when requiring code review between implementation and testing.
npx skill4agent add doubleuuser/rlm-workflow rlm-subagent| Scenario | Action |
|---|---|
| Multiple independent sub-phases | Use Parallel Mode (subagents) |
| Single sub-phase or subagents unavailable | Use Sequential Mode (fallback) |
| Code review needed | Use Phase 3.5 (subagent or self-review) |
| Parallel testing | Use Phase 4 parallel dispatch |
## TODO## TODO
- [ ] Read and understand assigned SP specification
- [ ] Ask clarifying questions (if any)
- [ ] Write failing test (RED phase)
- [ ] Run test and verify failure
- [ ] Implement minimal code (GREEN phase)
- [ ] Run test and verify pass
- [ ] Refactor while keeping tests green
- [ ] Run integration tests
- [ ] Self-review against plan
- [ ] Document changes made
- [ ] Report completion to controller## TODO
- [ ] Read original plan (Phase 3)
- [ ] Read implementation summary (Phase 3)
- [ ] Review git diff (BASE_SHA..HEAD_SHA)
- [ ] Verify plan alignment
- [ ] Assess code quality
- [ ] Check TDD compliance
- [ ] Categorize issues (Critical/Important/Minor)
- [ ] Document positive findings
- [ ] Render verdict
- [ ] Report review completionIF can invoke "agent" or "Task" tool → Use Parallel Mode
ELSE → Use Sequential Fallback Mode// Parallel dispatch for independent SPs
await Promise.all([
Task({ description: "Implement SP1", prompt: implementerPrompt(SP1) }),
Task({ description: "Implement SP2", prompt: implementerPrompt(SP2) }),
Task({ description: "Implement SP3", prompt: implementerPrompt(SP3) })
])agents/code-reviewer.md// Parallel test execution
await Promise.all([
Task({ description: "Run unit tests", prompt: testPrompt("unit") }),
Task({ description: "Run integration tests", prompt: testPrompt("integration") }),
Task({ description: "Run E2E tests", prompt: testPrompt("e2e") })
])**Subagent Check:** ❌ NOT AVAILABLE
**Reason:** [Tool not found / Platform limitation / User request]
**Action:** Using SEQUENTIAL fallback modeFor each SP in [SP1, SP2, SP3...]:
1. Execute SP implementation
2. Self-review against plan (extended checklist)
3. Document in Phase 4 artifact
4. Run integration tests
5. Proceed to next SPagents/code-reviewer.mdagents/implementer.mdYou are an Implementer Agent. Implement this sub-phase:
**SP Text:** [full sub-phase text]
**BASE_SHA:** [commit SHA]
**Context:** [relevant files]
Follow the process in agents/implementer.mdagents/code-reviewer.mdYou are a Code Reviewer Agent. Review this implementation:
**Plan:** [Phase 3 TO-BE]
**Git Range:** [BASE_SHA..HEAD_SHA]
**Implementation:** [Phase 4 summary]
Follow the process in agents/code-reviewer.md## Execution Mode
- **Mode:** Parallel / Sequential
- **Subagents Used:** [names and counts]
- **Fallback Reason:** [if applicable]
## Sub-phase Results
- SP1: [status] - [subagent name or "main agent"]
- SP2: [status] - [subagent name or "main agent"]
...
## Review Results
- SP1 Review: [status] - [reviewer name or "self-review"]
- SP2 Review: [status] - [reviewer name or "self-review"]
...## Review Scope
- Git range: [BASE_SHA..HEAD_SHA]
- Execution Mode: Parallel (subagent) / Sequential (self-review)
- Reviewer: [subagent name / self]
## Issues Found
- Critical: [count]
- Important: [count]
- Minor: [count]
## Verdict
[APPROVED / APPROVED WITH NOTES / CHANGES REQUIRED]## Execution Mode
- **Mode:** Parallel / Sequential
- **Test Suites:**
- Unit: [subagent name] / Main agent
- Integration: [subagent name] / Main agent
- E2E: [subagent name] / Main agent
## Results Summary
- Total execution time: [X] minutes
- Estimated sequential time: [Y] minutes
- Speedup: [Z]xStarting Phase 4
│
▼
Subagent available? ──NO──► SEQUENTIAL MODE
│ - Execute SPs sequentially
│ - Extended self-review
│ - Document as sequential
│
YES
│
▼
3+ independent SPs? ──NO──► SEQUENTIAL MODE
│ - Single sub-phase
│ - No parallelism benefit
│
YES
│
▼
PARALLEL MODE
- Dispatch implementer per SP
- Two-stage review
- Integration after all done## Sub-phases
- SP1: API changes (backend/)
- SP2: UI changes (frontend/)
- SP3: Database migration (migrations/)SKILL.mdagents/implementer.mdagents/code-reviewer.mdreferences/artifact-template.md