Skip to content
Back to skills

Search Ladder

ASecurity

Offload code search to deterministic tools instead of hand-grepping or reading whole files (P1). Climb the ladder lexical → structural → semantic, stopping at the first rung that answers. Use whenever locating symbols, call sites, definitions, or concepts in a repo.

  • 28 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
ai-agentsbash

Works with

  • cli

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add move-hoon/claude-pro-minmax --skill search-ladder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Search Ladder?

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

Security grade badge for Search Ladder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/move-hoon-search-ladder/badge)](https://www.skillsdirectory.com/skills/move-hoon-search-ladder)

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: search-ladder
description: Offload code search to deterministic tools instead of hand-grepping or reading whole files (P1). Climb the ladder lexical → structural → semantic, stopping at the first rung that answers. Use whenever locating symbols, call sites, definitions, or concepts in a repo.
---

# Search Ladder Skill (P1)

## Purpose
Never hand-grep, never read a whole file to "look around." Each search is one offloaded call whose result is `file:line` + ~2 lines (P0/P8). Climb only as far as needed.

## The ladder (stop at first rung that answers)
1. **Lexical — `ripgrep`** (default). Exact strings, identifiers, regex.
   ```bash
   rg -n "createSession" --type ts | head -50
   rg -n "TODO|FIXME" -g '!*.test.*' | head -50
   ```
2. **Structural — Probe** (when code structure matters more than exact text).
   ```bash
   probe search "auth middleware" ./src
   ```
3. **Semantic — `mgrep`** — concept queries only, **last resort** (cost + noise).
   ```bash
   mgrep "where is rate limiting enforced" src/
   ```

## Rules
- Pipe high-frequency searches to `| head` — bounded output (P0).
- Prefer structural search over regex when text is too brittle.
- Drop to semantic only when you cannot name the token — never as rung 1.
- Optional tools may be absent; fall back down the ladder (`probe` missing → `rg`).

Need concrete recipes for a rung (regex flags, Probe queries, mgrep phrasing)? Read `references/ladder.md`.

Files in this skill

  • SKILL.md1.4 KB
  • references/ladder.md1.2 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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