Clawfu mcp skills

From eric861129/SKILLS_All-in-one · View interactive version

Clawfu mcp skills is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Process large codebases (>100 files) using the Recursive Language Model pattern. Treats code as an external environment, using parallel background agents to map-reduce complex tasks without context rot.

How to use this skill

Skill file

Recursive Language Model (RLM) Skill

Core Philosophy

"Context is an external resource, not a local variable."

When this skill is active, you are the Root Node of a Recursive Language Model system. Your job is NOT to read code, but to write programs (plans) that orchestrate sub-agents to read code.

Protocol: The RLM Loop

Phase 1: Choose Your Engine

Decide based on the nature of the data:

| Engine | Use Case | Tool |

|--------|----------|------|

| Native Mode | General codebase traversal, finding files, structure. | find, grep, bash |

| Strict Mode | Dense data analysis (logs, CSVs, massive single files). | python3 ~/.claude/skills/rlm/rlm.py |

Phase 2: Index & Filter (The "Peeking" Phase)

Goal: Identify relevant data without loading it.

  1. Native: Use find or grep -l.
  2. Strict: Use python3 .../rlm.py peek "query".

Phase 3: Parallel Map (The "Sub-Query" Phase)

Goal: Process chunks in parallel using fresh contexts.

  1. Divide: Split the work into atomic units.
  1. Spawn: Use background_task to launch parallel agents.

Phase 4: Reduce & Synthesize (The "Aggregation" Phase)

Goal: Combine results into a coherent answer.

  1. Collect: Read the outputs from background_task (via background_output).
  2. Synthesize: Look for patterns, consensus, or specific answers in the aggregated data.
  3. Refine: If the answer is incomplete, perform a second RLM recursion on the specific missing pieces.

Critical Instructions

  1. NEVER use cat * or read more than 3-5 files into your main context at once.
  2. ALWAYS prefer background_task for reading/analyzing file contents when the file count > 1.
  3. Use rlm.py for programmatic slicing of large files that grep can't handle well.
  4. Python is your Memory: If you need to track state across 50 files, write a Python script (or use rlm.py) to scan them and output a summary.

Example Workflow: "Find all API endpoints and check for Auth"

Wrong Way (Monolithic):

RLM Way (Recursive):

  1. Filter: grep -l "@Controller" src/**/*.ts -> Returns 20 files.
  2. Map:
  1. Reduce:

Recovery Mode

If background_task is unavailable or fails:

  1. Fall back to Iterative Python Scripting.
  2. Write a Python script that loads each file, runs a regex/AST check, and prints the result to stdout.
  3. Read the script's stdout.

What Claude Does vs What You Decide

| Claude handles | You provide |

|---------------|-------------|

| Orchestrating parallel agents | Initial query and success criteria |

| Chunking large files for processing | Judgment on result quality |

| Synthesizing results from subagents | Final interpretation and action |

| Writing filtering scripts | Validation of completeness |

| Managing context isolation | Decision on when to stop recursing |


Skill Boundaries

This skill excels for:

This skill is NOT ideal for:


Skill Metadata

name: rlm
category: meta
version: 2.0
author: GUIA
source_expert: Recursive Language Model pattern
difficulty: advanced
mode: cyborg
tags: [rlm, large-codebase, parallel-agents, map-reduce, context-management]
created: 2026-02-03
updated: 2026-02-03
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.