rlm
Runs a Recursive Language Model-style loop over a large file or document directory using a persistent local REPL: load the context once, then search, chunk…
Skill by twistingmercury
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/twistingmercury-rlm
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rlm
What's inside
- Skill name
rlm- Description
- Runs a Recursive Language Model-style loop over a large file or document directory using a persistent local REPL: load the context once, then search, chunk, and extract across multiple queries. Use when the user supplies a context too large to paste into chat, or asks to analyze a corpus of PDFs, DOCX, ODT, or text files.
- License
- MIT
- Instructions
- 101 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- LICENSE
- README.md
- SKILL.md
- 2026-02-23-rlm-corpus-design.md · references/plans/
- 2026-02-23-rlm-corpus-implementation-plan.md · references/plans/
- rlm_repl.py · scripts/
- test_rlm_repl.py · tests/
SKILL.md (first lines)
# rlm (Recursive Language Model workflow)
Use this skill when:
- The user provides a large context file or document directory.
- You need iterative search/chunk/extract over that context.
- You want to reuse loaded context across multiple queries.
## Inputs
Required:
- `context=<path>`: file path (single-file mode) or directory path (corpus mode)
- `query=<question>`: question/task to run against the loaded context
Optional:
- `chunk_chars=<int>` (default ~200000)
- `overlap_chars=<int>` (default 0)
- `strict=true` (corpus mode only, fail on first parse error)
If arguments are missing, ask for:
1. context path
2. query
Resolve `<skill-dir>` to the directory containing this `SKILL.md` before running bundled scripts. Do not assume the repository working directory contains `scripts/rlm_repl.py`.
## Workflow
1. Initialize state.
Single-file mode:
```bash
python3 <skill-dir>/scripts/rlm_repl.py init <context_path>
python3 <skill-dir>/scripts/rlm_repl.py status
```
Corpus mode (recursive, honors `.rlmignore` if present):
```bash
python3 <skill-dir>/scripts/rlm_repl.py init-corpus <context_dir>
python3 <skill-dir>/scripts/rlm_repl.py status
```
Corpus strict mode:
```bash
python3 <skill-dir>/scripts/rlm_repl.py init-corpus <context_dir> --strict
```
2. Check/install optional parsers when needed.
```bash
python3 <skill-dir>/scripts/rlm_repl.py check-deps
python3 <skill-dir>/scripts/rlm_repl.py install-deps --all --dry-run
```
Install missing dependencies only with user approval.
3. Scout the loaded context.
```bash
python3 <skill-dir>/scripts/rlm_repl.py exec -c "print(peek(0, 3000))"
python3 <skill-dir>/scripts/rlm_repl.py exec -c "print(peek(len(content)-3000, len(content)))"
```
4. Materialize chunks for subagent analysis.
```bash
python3 <skill-dir>/scripts/rlm_repl.py exec <<'PY'
paths = write_chunks('.rlm/chunks', size=200000, overlap=0)
print(len(paths))
print(paths[:5])
PY
```
5. Use the host's available subagent mechanism for chunk analysis when useful, then synthesize results. If subagents are unavailable, analyze chunks sequentially.
## Guardrails
- Do not paste large raw chunks into chat.
- Quote only needed excerpts.
- Keep scratch/state files under `.rlm/`.
- For first iteration, refresh manually when sources change:
- run `python3 <skill-dir>/scripts/rlm_repl.py reset`
- then reinvoke the skill with `context=... query=...`
## Notes
- Optional document parsers:
- PDF: `pypdf`
- DOCX: `python-docx`
- ODT: `odfpy`
- Default corpus excludes: `.git/`, `node_modules/`, `bin/`, `_archive/`.
- Corpus-mode design history. Read these only when changing corpus mode, not to run the skill:
- [Design](references/plans/2026-02-23-rlm-corpus-design.md): goals, architecture, ignore and extraction rules, decision log.
- [Implementation plan](references/plans/2026-02-23-rlm-corpus-implementation-plan.md): phased work, test plan, definition of done.From twistingmercury/agents-skills, MIT.
More from twistingmercury/agents-skills
- 0.570score
docker-first-ci
twistingmercury
Implements and hardens Docker-first build, test, and release pipelines, where one build script runs the quality gates, the build, and the e2e tests inside…
SkillAFreshness: AClaude Code +9 - 0.570score
mermaid-diagrams
twistingmercury
Writes Mermaid diagrams as plain-text fenced code blocks, entirely locally, and never sends diagram source to an online renderer, editor, or API.
SkillAFreshness: AClaude Code +9 - 0.570score
python-uv-starter
twistingmercury
Scaffolds an empty directory as a Python CLI project with uv, src/ layout, pytest, ruff, a Makefile, a Docker-first wheel build, and GitHub Actions CI.
SkillAFreshness: AClaude Code +9 - 0.565score
readme-writer
twistingmercury
Creates or updates a concise root README.md from a required template baseline.
SkillAFreshness: AClaude Code +9 - 0.565score
check-push-readiness
twistingmercury
Audits, read-only, the exact unpushed commits before a push: resolves the live remote SHA, checks fast-forward, scans the diff for secrets and debug code…
SkillAFreshness: AClaude Code +9 - 0.565score
design-docs-writer
twistingmercury
Creates and updates architecture documents under docs/design/ from standardized templates, using snake_case filenames and frontmatter versioning, always…
SkillAFreshness: AClaude Code +9 - 0.565score
shell-script
twistingmercury
Create or modify production-grade shell scripts with automatic BATS test coverage and a bounded verification loop.
SkillAFreshness: AClaude Code +9 - 0.565score
capture-requirements
twistingmercury
Elicit, document, and refine software project requirements for handoff to architecture and design agents.
SkillAFreshness: AClaude Code +9 - 0.561score
code-review
twistingmercury
Conduct evidence-based code reviews of files, diffs, pull requests, or working changes using independent general, architectural, and language perspectives.
SkillAFreshness: AClaude Code +9 - 0.559score
prime
twistingmercury
Surveys a repository to build working context by reading its README and listing tracked files.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 5, 2026 (24 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/twistingmercury/agents-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from twistingmercury
- 0.570score
docker-first-ci
twistingmercury
Implements and hardens Docker-first build, test, and release pipelines, where one build script runs the quality gates, the build, and the e2e tests inside…
SkillAFreshness: AClaude Code +9 - 0.570score
mermaid-diagrams
twistingmercury
Writes Mermaid diagrams as plain-text fenced code blocks, entirely locally, and never sends diagram source to an online renderer, editor, or API.
SkillAFreshness: AClaude Code +9 - 0.570score
python-uv-starter
twistingmercury
Scaffolds an empty directory as a Python CLI project with uv, src/ layout, pytest, ruff, a Makefile, a Docker-first wheel build, and GitHub Actions CI.
SkillAFreshness: AClaude Code +9 - 0.565score
readme-writer
twistingmercury
Creates or updates a concise root README.md from a required template baseline.
SkillAFreshness: AClaude Code +9 - 0.565score
check-push-readiness
twistingmercury
Audits, read-only, the exact unpushed commits before a push: resolves the live remote SHA, checks fast-forward, scans the diff for secrets and debug code…
SkillAFreshness: AClaude Code +9 - 0.565score
design-docs-writer
twistingmercury
Creates and updates architecture documents under docs/design/ from standardized templates, using snake_case filenames and frontmatter versioning, always…
SkillAFreshness: AClaude Code +9
Cite this page
rlm skill. Agent Mart. https://agentmart.dev/skills/twistingmercury-rlm (last updated 2026-10-24)