From rlm
Use when deciding whether to delegate to subagents, structuring subagent prompts, encoding task decomposition as a call stack, or when any orchestration decision is ambiguous. Invoke on complex delegation decisions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rlm:rlmThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```
User request arrives
│
├─ Requires reading >50 lines? ──── YES ──→ DELEGATE
│
├─ Requires reading >2 files? ───── YES ──→ DELEGATE
│
├─ Unfamiliar subsystem? ────────── YES ──→ DELEGATE (Explore first)
│
├─ Simple lookup <50 lines
│ in known location? ───────────── YES ──→ DO DIRECTLY
│
├─ Error message / stack trace? ─── YES ──→ READ DIRECTLY, then delegate fix
│
└─ Uncertain? ───────────────────── YES ──→ DELEGATE (err on delegation side)
| Metric | Threshold | Action |
|---|---|---|
| Lines to read | >50 | Delegate |
| Files to read | >2 | Delegate |
| Complexity | Unfamiliar subsystem | Delegate |
| Tool calls accumulated | >8 Read/Grep without delegation | STOP, delegate |
| Response requires | Multi-file synthesis | Delegate |
Every dispatch MUST include these four sections:
**Objective**: [1 sentence — what the subagent must accomplish]
**Scope**: [Specific files, directories, or patterns to examine]
**Return Format**:
- Structured summary, <200 words
- Include file:line references for key findings
- [Any task-specific format requirements]
**Constraints**:
- Do not return raw file contents
- Focus on [specific aspect]
- If scope is insufficient, report what's missing rather than expanding
| Purpose | Agent Type | Prompt Focus |
|---|---|---|
| Find files/structure | Explore | "Find all X, report paths and brief descriptions" |
| Understand code | Explore | "Read X, summarize: purpose, inputs, outputs, dependencies" |
| Search for patterns | Explore | "Find all occurrences of X, report locations and context" |
| Plan changes | Plan | "Given X needs to change, identify affected files and changes" |
| Implement feature | general-purpose | "Implement X following TDD: write test, implement, verify" |
| Review code | general-purpose | "Review changes in X for correctness, security, quality" |
| Run commands | Bash (subagent) | "Execute X, report output and exit code" |
Map task states to recursive call semantics:
| Task State | Call Stack Equivalent |
|---|---|
pending | Unresolved stack frame |
in_progress | Currently executing |
completed | Resolved — return value available |
blockedBy | Waiting on sub-call to resolve |
User request
└─ Task #1: Top-level goal (pending)
├─ Task #2: Sub-problem A (pending, blockedBy: [])
│ └─ Dispatch Explore subagent → on return, mark #2 completed
├─ Task #3: Sub-problem B (pending, blockedBy: [#2])
│ └─ Uses #2's summary → dispatch Plan subagent
└─ Task #4: Synthesize (pending, blockedBy: [#2, #3])
└─ Combine summaries → respond to user → mark #1 completed
When a subagent returns a summary that reveals deeper complexity:
blockedBy relationshipsExample: Subagent returns "found 3 subsystems: auth, routing, storage — each needs analysis"
| Thought | Instead |
|---|---|
| "Let me just quickly read this file" | If >50 lines, delegate |
| "I need to understand the codebase first" | Delegate to Explore subagent |
| "One more grep to confirm" | If >8 tool calls, delegate |
| "I already have context from earlier" | Context rots — re-delegate for fresh reads |
| "A subagent would be overkill" | Unless <50 line config file, delegate |
| "I'll be faster doing this myself" | Short-term true, long-term context rot |
| "Let me just check one more thing" | Batch into a single subagent dispatch |
| "I can synthesize from what I've read" | If you read >50 lines to get here, you already violated the rule |
RLM defines HOW the orchestrator participates in any workflow — by delegating, not accumulating.
| Workflow Phase | RLM Orchestrator Role |
|---|---|
| Brainstorming | Dispatch research subagents, synthesize options |
| Planning | Delegate codebase exploration, synthesize into plan |
| TDD | Delegate test writing/running to subagents |
| Implementation | Decompose tasks, dispatch parallel subagents with thresholds |
| Debugging | Delegate evidence gathering, synthesize diagnosis |
| Verification | Delegate verification runs, synthesize pass/fail |
| Code Review | Delegate review to code-reviewer subagent |
Direct reads (without delegation) are allowed ONLY for:
When in doubt: delegate.
npx claudepluginhub handol-park/claude-plugins --plugin rlmOrchestrates sub-agents with WHERE-WHAT-WHY context patterns and scientific method alignment. For task delegation, sub-agent prompts, multi-agent workflows, specialist coordination.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.