guia-matthieu/rlm
Process large codebases (>100 files) using the Recursive Language Model pattern. Orchestrates parallel sub-agents to map-reduce across files without context rot. Use when: analyzing large repositories; auditing security or auth across many files; finding patterns across 50+ files; processing large log files or data dumps
npx skills add https://github.com/guia-matthieu/clawfu-skills --skill rlm
"Context is an external resource, not a local variable."
You are the Root Node. Your job is NOT to read code directly, but to orchestrate sub-agents that read code for you.
Identify relevant files without loading them into context.
# Find candidate files
grep -rl "pattern" src/ --include="*.ts"
find . -name "*.py" -newer last_check
Split work into atomic units, spawn parallel agents.
Example spawn:
Agent 1: "Read src/api/routes.ts. List all endpoints with their auth decorators."
Agent 2: "Read src/api/users.ts. List all endpoints with their auth decorators."
...
Collect all agent outputs, find patterns, compile into a coherent answer.
If incomplete, recurse: run a second RLM pass on the specific gaps.
Wrong (monolithic): Read each file sequentially → context fills up, reasoning degrades.
RLM Way:
grep -l "@Controller" src/**/*.ts → 20 filesReturn a structured summary:
Excels for: Codebases >100 files, cross-file pattern search, audit tasks, large file analysis.
Not ideal for: Small projects (<50 files), single file analysis, file modification tasks.
Take guia-matthieu/rlm from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.