Orchestrates parallel subagents for task implementation and code review, with robust sequential fallback when needed.

Install

mkdir -p .claude/skills/rlm-subagent && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16347" && unzip -o skill.zip -d .claude/skills/rlm-subagent && rm skill.zip

Installs to .claude/skills/rlm-subagent

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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. Trigger phrases: "parallelize", "dispatch subagent", "split into sub-phases", "code review subagent", "parallel testing".
407 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Dispatch implementer subagents for independent sub-phases
  • Run code review subagents after implementation
  • Execute parallel testing for different test types
  • Fall back to sequential execution when subagents are unavailable
  • Verify subagent outputs include completed TODOs
  • Manage two-stage review for sub-phase completion

How it works

The skill detects subagent availability to either dispatch parallel subagents for implementation, code review, and testing, or execute tasks sequentially if subagents are not available. It enforces a TODO discipline for subagent completion reports.

Inputs & outputs

You give it
a plan with multiple independent sub-phases or a request for code review/parallel testing
You get back
completed sub-phases, code review verdict, or aggregated test results

When to use rlm-subagent

  • Parallelizing implementation phases
  • Running code review subagents
  • Managing independent sub-tasks

About this skill

Subagent-Driven Execution with Fallback

This skill provides parallel subagent execution for RLM Phase 3 (Implementation), Phase 3.5 (Code Review), and Phase 4 (Testing) with automatic fallback to sequential mode when subagents are unavailable.

Trigger examples

  • Parallelize Phase 3 across independent sub-phases
  • Dispatch an implementer subagent for each SP
  • Run a separate code-reviewer subagent before Phase 4
  • Subagents aren't available; fall back to sequential mode

Quick Reference

ScenarioAction
Multiple independent sub-phasesUse Parallel Mode (subagents)
Single sub-phase or subagents unavailableUse Sequential Mode (fallback)
Code review neededUse Phase 3.5 (subagent or self-review)
Parallel testingUse Phase 4 parallel dispatch

TODO Discipline for Subagents

The Iron Law: NO SUBAGENT COMPLETION REPORT WITHOUT ALL TODOS CHECKED.

Subagent TODO Requirements

Each subagent (implementer, code-reviewer) MUST:

  1. Include ## TODO section in their work output
  2. Check off items as work progresses
  3. Verify ALL items checked before reporting completion

Implementer Subagent TODO Template

## 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

Code Reviewer Subagent TODO Template

## 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 completion

Controller TODO Management

The controller MUST:

  1. Verify subagent outputs include completed TODOs
  2. NOT accept completion reports with unchecked items
  3. Request subagent to complete remaining items

Capability Detection

At start of Phase 3, detect subagent availability:

IF can invoke "agent" or "Task" tool -> Use Parallel Mode
ELSE -> Use Sequential Fallback Mode

Detection rule: If the platform provides a subagent/task primitive, use parallel mode; otherwise fallback to sequential.

Parallel Mode (Subagents Available)

Phase 3: Parallel Sub-Phase Implementation

Controller responsibilities:

  1. Read locked Phase 2 TO-BE plan once
  2. Extract all sub-phases (SP1, SP2, SP3...)
  3. Determine dependencies (independent vs sequential)
  4. Dispatch implementer subagent per independent SP
  5. Two-stage review after each SP completion
  6. Integration testing after all approved

Dispatch pattern:

// 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) })
])

Two-stage review:

  1. Spec Review: Verify SP requirements met (plan alignment)
  2. Code Quality Review: Assess code quality, TDD compliance, standards

Phase 3.5: Code Review Subagent

Trigger: After Phase 3 implementation Action: Dispatch agents/code-reviewer.md subagent with:

  • BASE_SHA and HEAD_SHA of changes
  • Phase 2 TO-BE plan for alignment check
  • Severity classification (Critical/Important/Minor)

Review loop: Issues found -> implementer fixes -> re-review

Phase 4: Parallel Testing

Required before dispatching tests:

  • Audit 03-implementation-summary.md against 00-requirements.md and 02-to-be-plan.md
  • Document mismatches and remediation/addenda in Phase 4 artifact

Dispatch pattern:

// 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") })
])

Result aggregation:

  • Collect results from all subagents
  • Summarize pass/fail counts
  • Identify any critical failures

Sequential Fallback Mode (No Subagents)

Trigger: Subagent capability check fails

Characteristics:

  • Execute sub-phases sequentially in main agent context
  • Extended self-review checklist per sub-phase
  • Integration testing between each sub-phase
  • Full context preservation

Fallback trigger flow:

**Subagent Check:** NOT AVAILABLE
**Reason:** [Tool not found / Platform limitation / User request]
**Action:** Using SEQUENTIAL fallback mode

Sequential Execution Pattern

For 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 SP

Sequential Review Pattern

Phase 3.5 equivalent:

  • Main agent performs extended self-review
  • Use comprehensive checklist from agents/code-reviewer.md
  • Document findings in Phase 3.5 artifact

Subagent Prompts

Implementer Subagent

File: agents/implementer.md

Key requirements:

  • Self-contained context (full SP text provided)
  • TDD discipline enforcement
  • Question-before-work protocol
  • Self-review checklist before completion

Usage:

You 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.md

Code Reviewer Subagent

File: agents/code-reviewer.md

Key requirements:

  • Plan alignment verification
  • Code quality assessment
  • Severity classification (Critical/Important/Minor)
  • Clear verdict (Approved / Changes Required)

Usage:

You 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

Artifact Documentation

Phase 4 artifact must include:

## Pre-Test Implementation Audit
- Requirements alignment (`00-requirements.md`): [summary + evidence]
- Plan alignment (`02-to-be-plan.md`): [summary + evidence]
- Mismatches and remediation/addenda: [details]

## 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"]
...

Phase 3.5 artifact (if used):

## 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]

Phase 4 artifact must include:

## Pre-Test Implementation Audit
- Requirements alignment (`00-requirements.md`): [summary + evidence]
- Plan alignment (`02-to-be-plan.md`): [summary + evidence]
- Mismatches and remediation/addenda: [details]

## 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]x

Decision Tree

Starting Phase 4
  |
  v
Subagent available? --NO--> SEQUENTIAL MODE
  |                         - Execute SPs sequentially
  |                         - Extended self-review
  |                         - Document as sequential
 YES
  |
  v
3+ independent SPs? --NO--> SEQUENTIAL MODE
  |                         - Single sub-phase
  |                         - No parallelism benefit
 YES
  |
  v
PARALLEL MODE
- Dispatch implementer per SP
- Two-stage review
- Integration after all done

Quality Maintenance

Both modes enforce:

  • TDD discipline
  • Artifact locking
  • Gate compliance
  • Integration testing

Parallel Mode advantages:

  • Fresh context per sub-phase
  • Independent verification
  • Faster execution (3-5x)

Sequential Mode advantages:

  • No subagent dependency
  • Simpler coordination
  • Full context accumulation

Common Patterns

Pattern 1: Multi-Domain Feature

Scenario: Feature touches API, UI, and database

Phase 2 TO-BE plan:

## Sub-phases
- SP1: API changes (backend/)
- SP2: UI changes (frontend/)
- SP3: Database migration (migrations/)

Phase 4 execution:

  • SP1, SP2, SP3 dispatched in parallel (independent domains)
  • Each implementer works on isolated files
  • Integration testing after all complete

Pattern 2: Sequential Dependencies

Scenario: SP2 depends on SP1 output

Phase 3 execution:

  • Dispatch SP1 -> wait -> review -> approve
  • Dispatch SP2 (with SP1 context) -> wait -> review -> approve
  • Sequential, not parallel

Pattern 3: High-Risk Change

Scenario: Critical auth system change

Phase 3: Implement with TDD Phase 3.5: Mandatory code review Phase 4: Parallel testing (unit + integration + E2E)

Troubleshooting

Subagent fails to complete

  • Check if prompt was self-contained
  • Verify BASE_SHA was provided
  • Review logs for errors
  • Retry with clearer instructions

Integration tests fail after parallel SPs

  • Check for file conflicts between SPs
  • Verify no shared mutable state
  • Review commit history f

Content truncated.

When not to use it

  • When a task involves sequential dependencies between sub-phases
  • When only a single sub-phase is present and parallelism offers no benefit

Limitations

  • Subagent completion reports are not accepted without all TODOs checked
  • Integration tests may fail after parallel sub-phases due to file conflicts or shared mutable state

How it compares

This skill automates the parallel execution and review of development phases with an automatic sequential fallback, unlike manual coordination of independent tasks.

Compared to similar skills

rlm-subagent side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
rlm-subagent (this skill)05moNo flagsIntermediate
autonomous-agents106moNo flagsAdvanced
agent-goal-planner26moNo flagsAdvanced
planner16moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

autonomous-agents

davila7

Autonomous agents are AI systems that can independently decompose goals, plan actions, execute tools, and self-correct without constant human guidance. The challenge isn't making them capable - it's making them reliable. Every extra decision multiplies failure probability. This skill covers agent loops (ReAct, Plan-Execute), goal decomposition, reflection patterns, and production reliability. Key insight: compounding error rates kill autonomous agents. A 95% success rate per step drops to 60% b

1041

agent-goal-planner

ruvnet

Agent skill for goal-planner - invoke with $agent-goal-planner

215

planner

solatis

Interactive planning and execution for complex tasks. Use when user asks to use or invoke planner skill.

18

hierarchical-coordinator

MadAppGang

Prevent goal drift in long-running multi-agent workflows using a coordinator agent that validates outputs against original objectives at checkpoints. Use when orchestrating 3+ agents, multi-phase features, complex implementations, or any workflow where agents may lose sight of original requirements. Trigger keywords - "hierarchical", "coordinator", "anti-drift", "checkpoint", "validation", "goal-alignment", "decomposition", "phase-gate", "shared-state", "drift detection".

13

workflow-router

parcadei

Goal-based workflow orchestration - routes tasks to specialist agents based on user goals

13

loki-mode

davila7

Multi-agent autonomous startup system for Claude Code. Triggers on "Loki Mode". Orchestrates 100+ specialized agents across engineering, QA, DevOps, security, data/ML, business operations, marketing, HR, and customer success. Takes PRD to fully deployed, revenue-generating product with zero human intervention. Features Task tool for subagent dispatch, parallel code review with 3 specialized reviewers, severity-based issue triage, distributed task queue with dead letter handling, automatic deployment to cloud providers, A/B testing, customer feedback loops, incident response, circuit breakers, and self-healing. Handles rate limits via distributed state checkpoints and auto-resume with exponential backoff. Requires --dangerously-skip-permissions flag.

12

Search skills

Search the agent skills registry