返回技能列表

rlm

guia-matthieu
更新于 2 days ago
6 次查看
111
20
111
在 GitHub 上查看
开发data

关于

The rlm skill enables processing of large codebases (100+ files) using a Recursive Language Model pattern that orchestrates parallel sub-agents in a map-reduce workflow. It's designed for analyzing repositories, security audits, and finding patterns across many files while avoiding context rot. Use it when you need to distribute analysis across multiple agents to handle codebases or data dumps too large for single-context processing.

快速安装

Claude Code

推荐
主要方式
npx skills add guia-matthieu/clawfu-skills -a claude-code
插件命令备选方式
/plugin add https://github.com/guia-matthieu/clawfu-skills
Git 克隆备选方式
git clone https://github.com/guia-matthieu/clawfu-skills.git ~/.claude/skills/rlm

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Recursive Language Model (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.

The RLM Loop

Phase 1: Index & Filter

Identify relevant files without loading them into context.

# Find candidate files
grep -rl "pattern" src/ --include="*.ts"
find . -name "*.py" -newer last_check

Phase 2: Parallel Map

Split work into atomic units, spawn parallel agents.

  • Launch 3-5+ agents in parallel for broad tasks
  • Give each agent ONE specific file or chunk
  • Each agent returns a structured summary

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."
...

Phase 3: Reduce & Synthesize

Collect all agent outputs, find patterns, compile into a coherent answer.

If incomplete, recurse: run a second RLM pass on the specific gaps.

Critical Rules

  1. NEVER read more than 3-5 files into your main context
  2. ALWAYS use parallel agents when file count > 5
  3. Write Python scripts for state tracking across 50+ files — let the script scan and summarize
  4. If parallel agents are unavailable, fall back to iterative Python scripting

Example: "Find all API endpoints, check for Auth"

Wrong (monolithic): Read each file sequentially → context fills up, reasoning degrades.

RLM Way:

  1. grep -l "@Controller" src/**/*.ts → 20 files
  2. Spawn 20 agents, each extracts endpoints + auth status
  3. Collect outputs, compile table, identify missing auth

Output Format

Return a structured summary:

  • Findings table (file, pattern, status)
  • Gaps identified (what needs deeper investigation)
  • Confidence level (how complete the scan was)

Skill Boundaries

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.

GitHub 仓库

guia-matthieu/clawfu-skills
路径: skills/meta/rlm
0
ai-skillsanthropicclaude-codeclaude-skillsmarketingmcp-server

相关推荐技能

qmd

开发

这是一个本地搜索和索引的CLI工具,支持BM25、向量搜索和重排序功能。开发者可以用它快速索引本地文件(如Markdown文档)并进行混合搜索,特别适合代码库或文档的本地检索。它还提供MCP模式,能轻松集成到Claude开发环境中使用。

查看技能

subagent-driven-development

开发

该Skill用于在当前会话中执行包含独立任务的实施计划,它会为每个任务分派一个全新的子代理并在任务间进行代码审查。这种"全新子代理+任务间审查"的模式既能保障代码质量,又能实现快速迭代。适合需要在当前会话中连续执行独立任务,并希望在每个任务后都有质量把关的开发场景。

查看技能

mcporter

开发

mcporter Skill 让开发者能在Claude中直接管理和调用MCP服务器。它支持列出可用服务器、调用工具、处理OAuth认证以及管理服务器守护进程。开发者可以通过命令行式交互快速执行`mcporter list`查看服务器,或使用`mcporter call`直接调用工具,简化了MCP工作流程。

查看技能

adk-deployment-specialist

开发

这是一个用于部署和编排Google Vertex AI ADK智能体的Claude Skill,专为构建生产级多智能体系统而设计。它支持通过A2A协议进行智能体通信,提供代码执行沙箱和记忆库功能,并能处理智能体发现与任务提交。当开发者需要部署ADK智能体或编排多智能体协作时,可使用此Skill来简化Vertex AI Agent Engine的部署流程。

查看技能