Claude Code skill that decomposes long-context tasks into parallel sub-agent analysis, enabling processing of inputs up to 100x larger through recursive filtering, chunking, and synthesis.
git clone https://github.com/massimodeluisa/recursive-decomposition-skill.gitThe Recursive Decomposition Skill extends Claude Code's ability to handle large-scale analysis tasks that exceed normal context limits. Based on research from Zhang, Kraska, and Khattab (2025), it implements strategies to filter inputs, partition content strategically, spawn parallel sub-agents for independent segments, verify results, and synthesize findings programmatically. The skill activates automatically for tasks involving 10+ files, 50k+ tokens, multi-document processing, or codebase-wide pattern searches. Real-world testing on the Anthropic Cookbook (196 files, 356MB) demonstrated comprehensive coverage of API patterns, error handling, and code structure across large projects—addressing the context rot problem where longer inputs degrade accuracy, cause missed details, and produce hallucinated connections.
Install via Claude Code Marketplace with `claude plugin install recursive-decomposition@recursive-decomposition`, or manually copy to ~/.claude/skills/. Restart Claude Code. The skill activates automatically when describing tasks like 'analyze all files', 'aggregate information from', or 'search across the codebase'.
Analyze error handling patterns across an entire codebase
Find and categorize all TODO comments by priority across multiple files
Aggregate API endpoints defined across scattered route files
Extract information from 50+ meeting notes or documentation files
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/massimodeluisa/recursive-decomposition-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to break down a complex task into smaller, manageable steps. Here's the task: [TASK]. Please use recursive decomposition to create a detailed plan. For each sub-task, provide a brief description and estimate the time required. If any sub-task is still too complex, break it down further. Continue until all sub-tasks are simple enough to execute directly.
# Recursive Decomposition Plan for [TASK] ## Main Task: [TASK] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] ### Sub-Task 1: [SUB-TASK 1] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] #### Sub-Sub-Task 1.1: [SUB-SUB-TASK 1.1] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] #### Sub-Sub-Task 1.2: [SUB-SUB-TASK 1.2] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] ### Sub-Task 2: [SUB-TASK 2] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] ### Sub-Task 3: [SUB-TASK 3] - **Description**: [DESCRIPTION] - **Estimated Time**: [TIME] ## Notes: - Each sub-task is designed to be executable directly. - Estimated times are based on average completion rates. - Adjust times according to your specific context and resources.
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan