Recursive Decomposition Skill — Development skill for Claude Code
Handle long-context tasks (100+ files, 50k+ tokens) through recursive decomposition strategies based on RLM research.
How to install Recursive Decomposition Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open massimodeluisa/recursive-decomposition-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Recursive Decomposition Skill does
When analyzing large codebases, processing many documents, or aggregating information across dozens of files, Claude's context window becomes a bottleneck. As context grows, **"context rot"** degrades performance:
Alternatives in Development
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Ralph Loop — Autonomous coding loop — works through tasks, commits, repeats 14k ★
- Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
README
Recursive Decomposition Skill
Handle long-context tasks with Claude Code through recursive decomposition
What It Does • Installation • Usage • How It Works • Benchmarks • Acknowledgments
The Problem
When analyzing large codebases, processing many documents, or aggregating information across dozens of files, Claude's context window becomes a bottleneck. As context grows, **"context rot"** degrades performance:
- Missed details in long documents
- Decreased accuracy on information retrieval
- Hallucinated connections between distant content
- Degraded reasoning over large evidence sets
The Solution
This skill implements **Recursive Language Model (RLM)** strategies from [Zhang, Kraska, and Khattab's 2025 research](https://arxiv.org/abs/2512.24601), enabling Claude Code to handle inputs **up to 2 orders of magnitude beyond normal context limits**.
Instead of cramming everything into context, Claude learns to:
- Filter — Narrow search space before deep analysis
- Chunk — Partition inputs strategically
- Recurse — Spawn sub-agents for independent segments
- Verify — Re-check answers on smaller, focused windows
- Synthesize — Aggregate results programmatically
What It Does
| Task Type | Without Skill | With Skill |
|---|---|---|
| Analyze 100+ files | Context overflow / degraded results | Systematic coverage via decomposition |
| Multi-document QA | Missed information | Comprehensive extraction |
| Codebase-wide search | Manual iteration | Parallel sub-agent analysis |
...
Related Skills
Claude Rlm
Recursive Language Models for Claude Code — process arbitrarily long inputs via recursive sub-agent delegation
Ccd Worker
Use when this session is running as a ccd worker or dispatcher (CCD_HANDLE is set and you were told to act as
Recursive Research
Claude Code skill for recursive research up to PhD level across any domain. Source tiering, WDM + Munger inver
Billion Context
基本稳定可用 A context-compression plugin for small context windows (a 100K context is enough), token savings (5x fe
Context Engineering Fundamentals
Understand how Claude manages attention and when context degrades. Activate for long sessions, complex tasks,
Openclaw Nim Skill
OpenClaw skill for offloading heavy tasks to NVIDIA NIM models and saving context tokens
Related Agents
Rlm Subcall
Acts as the RLM sub-LLM (llm_query). Given a chunk of context (usually via a file path) and a query, extract o
Literature Review Planner
Plans comprehensive literature review structure for research proposals. Analyzes research ideas and creates do
Conversation Compacter
Compacts long conversations into ~300 token summaries preserving critical context, todos, file paths, and deci