Skip to content
Back to skills

Rlm Distill Agent

ASecurity

Distills uncached files into the Recursive Language Model (RLM) Summary cache Ledger by reading files deeply and injecting high-quality 1-sentence summaries via inject_summary.py.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythongobashgit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill rlm-distill-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rlm Distill Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rlm Distill Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-rlm-distill-agent-agent-plugins-skills/badge)](https://www.skillsdirectory.com/skills/richfrem-rlm-distill-agent-agent-plugins-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rlm-distill-agent
plugin: agent-memory
description: Distills uncached files into the Recursive Language Model (RLM) Summary cache Ledger by reading files deeply and injecting high-quality 1-sentence summaries via inject_summary.py.
allowed-tools: Bash, Read, Write
---

# RLM Distill Agent (`rlm-distill-agent`)

Distills uncached files into the RLM Summary Ledger to avoid re-reading full files repeatedly across agent sessions.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Batch Swarm Protocol](#batch-swarm-protocol)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Never Edit Cache Manually**: Always inject summaries via `python3 scripts/inject_summary.py`.
2. **Deep File Reading**: Read the entire file; extract core purpose, key components, and dependencies.
3. **Source Transparency**: Report which files were summarized and their injected summaries.

## Quick start

Check for missing summaries and inject a 1-sentence distillation:

```bash
python3 scripts/inventory.py --profile project
python3 scripts/inject_summary.py --profile project --file path/to/file.py --summary "Concise 1-sentence summary of behavior and components."
```

## Workflow

1. **Identify Gaps**: Run `python3 scripts/inventory.py --profile project` to list unindexed files.
2. **Deep Inspection**: Read target files thoroughly to identify architectural roles and interfaces.
3. **Inject Summary**: Execute `scripts/inject_summary.py` providing a dense, informative 1-sentence description.
4. **Transparent Output**: Output the file path and injected summary to the user.

## Batch Swarm Protocol

For large numbers of missing files (10+), delegate to `scripts/swarm_run.py` using the appropriate engine:
- **GitHub Copilot CLI**: `python3 scripts/swarm_run.py --engine copilot --workers 2 --files-from tasks.md`
- **Google Antigravity CLI**: `python3 scripts/swarm_run.py --engine gemini --workers 5 --files-from tasks.md`
- **Claude Code**: `python3 scripts/swarm_run.py --engine claude --workers 3 --files-from tasks.md`

## Verification

Verify updated inventory coverage metrics after distillation:

```bash
python3 scripts/inventory.py --profile project
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria for RLM distillation quality.
- [cheapest_models.md](references/cheapest_models.md) — Model tiers and pricing guidance for distillation engines.
- [RLM_ARCHITECTURE.md](references/RLM_ARCHITECTURE.md) — Architectural overview of RLM semantic cache.

Files in this skill

  • SKILL.md4.6 KB
  • acceptance-criteria.md298 B
  • assets/diagrams/rlm_late_binding_flow.mmd53 B
  • assets/diagrams/rlm_tool_enrichment_flow.mmd56 B
  • assets/resources/distiller_manifest.json52 B
  • assets/resources/jobs/distill_wiki.job.md49 B
  • assets/resources/manifest-index.json48 B
  • assets/resources/prompts/rlm/rlm_summarize_general.md71 B
  • assets/resources/prompts/rlm/rlm_summarize_tool.md68 B
  • assets/resources/rlm_manifest.json46 B
  • evals/evals.json1004 B
  • evals/results.tsv172 B
  • references/BLUEPRINT.md32 B
  • references/RLM_ARCHITECTURE.md39 B
  • references/acceptance-criteria.md42 B
  • references/cheapest_models.json40 B
  • references/cheapest_models.md38 B
  • references/diagrams/distillation_process.mmd56 B
  • references/diagrams/logic.mmd41 B
  • references/diagrams/rlm-factory-architecture.mmd60 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.