Skip to content
Back to skills

Rlm Search

ASecurity

3-Phase Knowledge Search strategy enforcing optimal lookup order - RLM Summary Scan -> Vector DB Semantic Search -> Grep/Exact Match.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
ai-agentspythonbash

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-search --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rlm Search?

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

Security grade badge for Rlm Search
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-rlm-search-agent-plugins-skills/badge)](https://www.skillsdirectory.com/skills/richfrem-rlm-search-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-search
plugin: agent-memory
description: 3-Phase Knowledge Search strategy enforcing optimal lookup order - RLM Summary Scan -> Vector DB Semantic Search -> Grep/Exact Match.
allowed-tools: Bash, Read, Write
---

# RLM Knowledge Search (`rlm-search`)

Enforces the 3-phase knowledge search protocol to locate repository context with minimal token overhead.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Search Order Protocol](#search-order-protocol)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Start at Phase 1**: Never skip directly to full-repo grep or read files cold without checking summary cache first.
2. **Scope Grep Searches**: Restrict regex or grep searches to files identified in Phase 1 or Phase 2.
3. **Never Edit Ledgers**: Reading summaries is purely non-destructive.

## Quick start

Execute a Phase 1 scan across pre-computed summary caches:

```bash
python3 scripts/query_cache.py "session memory persistence" --profile wiki
```

## Search Order Protocol

```
Phase 1: RLM Summary Scan    -> O(1), ~1ms       -> Table of Contents
Phase 2: Vector DB Semantic  -> O(log N), 1-5s   -> Back-of-book Index
Phase 3: Scoped Exact Grep   -> O(N), scoped     -> Ctrl+F
```

## Workflow

1. **Phase 1 (RLM Scan)**: Scan summaries using `scripts/query_cache.py` or `grep_search .agent/learning/*_cache/`. Stop if answered.
2. **Phase 2 (Vector Search)**: If ranked similarity across chunks is needed, query `scripts/query.py "query" --profile wiki`. Stop if answered.
3. **Phase 3 (Scoped Grep)**: If exact symbol or function names are required, run targeted `rg "pattern" <scoped-dir>`.
4. **Transparent Citations**: State which search phase resolved the target and provide exact file links.

## Verification

Confirm query tool responsiveness and cache availability:

```bash
python3 scripts/query_cache.py "health" --profile wiki
```

## References

- [acceptance-criteria.md](references/acceptance-criteria.md) — Acceptance criteria for 3-phase search retrieval accuracy.
- [cheapest_models.md](references/cheapest_models.md) — Model tiers and pricing guidance for semantic query engines.
- [RLM_ARCHITECTURE.md](references/RLM_ARCHITECTURE.md) — Architectural overview of the 3-phase lookup design.

Files in this skill

  • SKILL.md6 KB
  • acceptance-criteria.md291 B
  • assets/diagrams/rlm-factory-architecture.mmd56 B
  • assets/diagrams/rlm-factory-dual-path.mmd53 B
  • assets/diagrams/rlm_late_binding_flow.mmd53 B
  • assets/diagrams/rlm_tool_enrichment_flow.mmd56 B
  • assets/diagrams/search_process.mmd46 B
  • assets/resources/distiller_manifest.json52 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.json1.2 KB
  • 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

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.