Install
$ agentstack add skill-andremoreira73-useful-skills-from-lyfx-rlm ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Recursive Language Model (RLM) Skill
> Adapted from the RLM skill by BowTiedSwan > for the Claude Code CLI environment. > > License notice: The original repository does not specify a license. > This adaptation is provided with attribution; upstream licensing status is unresolved.
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 every file yourself, but to orchestrate sub-agents that read code in parallel and report back summaries.
Protocol: The RLM Loop
Phase 1: Choose Your Engine
| Engine | Use Case | Tool | | --------------- | ------------------------------------------------------- | ------------------------------------------------------- | | Native Mode | General codebase traversal, finding files, structure. | Glob, Grep, Bash | | Strict Mode | Dense data analysis (logs, CSVs, massive single files). | python3 ~/.claude/skills/rlm/scripts/rlm.py |
Phase 2: Index & Filter (The "Peeking" Phase)
Goal: Identify relevant data without loading it into your main context.
- Native: Use
Globfor file patterns,Grepwithoutput_mode: "files_with_matches"for content. - Strict: Use
python3 ~/.claude/skills/rlm/scripts/rlm.py peek "query".
Phase 3: Parallel Map (The "Sub-Query" Phase)
Goal: Process chunks in parallel using fresh agent contexts.
- Divide: Split the work into atomic units (one file or chunk per agent).
- Strict Mode:
python3 ~/.claude/skills/rlm/scripts/rlm.py chunk --pattern "*.log"-> JSON chunks.
- Spawn: Use the Task tool to launch parallel sub-agents.
- Launch 3-5+ agents in parallel for broad tasks.
- Give each agent one specific file or chunk and a focused question.
- Use
subagent_type="Explore"for read-only analysis,subagent_type="general-purpose"if the agent needs to write. - Set
run_in_background=truefor true parallelism.
Example — launch in a single message with multiple Task tool calls:
Task(subagent_type="Explore", run_in_background=true,
prompt="Read src/api/routes.ts. Extract all endpoints and their @Auth decorators.")
Task(subagent_type="Explore", run_in_background=true,
prompt="Read src/api/users.ts. Extract all endpoints and their @Auth decorators.")
...
Phase 4: Reduce & Synthesize (The "Aggregation" Phase)
Goal: Combine results into a coherent answer.
- Collect: Read background agent outputs via the
Readtool onoutput_filepaths,
or use TaskOutput to retrieve results.
- Synthesize: Look for patterns, consensus, or specific answers in the aggregated data.
- Refine: If the answer is incomplete, perform a second RLM recursion on the missing pieces.
Critical Instructions
- NEVER read more than 3-5 files into your main context at once.
- ALWAYS prefer the Task tool for reading/analyzing files when count > 1.
- Use
rlm.pyfor programmatic slicing of large files that Grep can't handle well. - 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):
- Read
src/api/routes.ts, thensrc/api/users.ts, then ... (context fills up, reasoning degrades)
RLM Way (Recursive):
- Filter:
Grep(pattern="@Controller", output_mode="files_with_matches")-> 20 files. - Map: Launch 20 Task agents in parallel (background), each extracting endpoints + auth decorators from one file.
- Reduce: Collect all 20 outputs. Compile into a single table. Identify missing auth.
Recovery Mode
If Task tool agents are unavailable or failing:
- Fall back to Iterative Python Scripting.
- Write a Python script that loads each file, runs a regex/AST check, and prints results to stdout.
- Read the script's stdout via Bash.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: andremoreira73
- Source: andremoreira73/Useful-Skills-from-lyfX
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.