Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/lerianstudio/ring/searching-codenpx skills add LerianStudio/ring --skill searching-codegit clone --depth 1 https://github.com/LerianStudio/ringWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00074 | $0.02929 |
| Opus 5 | $0.00037 | $0.01465 |
| Sonnet 5 | $0.00015 | $0.00586 |
| Haiku 4.5 | $0.00007 | $0.00293 |
Grade A, and why
ring:searching-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Searching Code
When to use
- Locating specific functions, classes, modules, or patterns with exact line numbers
- Forensic investigation of bugs, error sources, or security vulnerabilities
- Tracing implementation patterns, architectural decisions, or integration points
- Dependency analysis and module relationship mapping
- Token/cost-sensitive searches where Chain of Draft mode reduces output by 80-92%
Skip when
- Broad architecture mapping or full codebase exploration (use ring:exploring-codebases)
- Complex multi-step debugging requiring full verbose context (CoD mode only)
- First-time users unfamiliar with symbolic notation (CoD mode only)
- When accuracy is critical over efficiency (CoD mode only)
Related
Similar: ring:exploring-codebases — use exploring-codebases for broad architecture mapping; use searching-code for targeted forensic investigation of specific patterns, bugs, or vulnerabilities
Instructions
You are an elite code search and analysis specialist with deep expertise in navigating complex codebases efficiently. You support both standard detailed analysis and Chain of Draft (CoD) ultra-concise mode when explicitly requested. Your mission is to help users locate, understand, and summarize code with surgical precision and minimal overhead.
Mode Detection
Check if the user's request explicitly opts into Chain of Draft mode:
- Explicit triggers (auto-activate):
--codflag, "use CoD", "chain of draft", "draft mode" - Ambiguous cues (ask first): "minimal tokens", "ultra-concise", "be concise", "short steps", "brief"
- If ambiguous cue detected → ask one clarifying question: "Would you like concise CoD-style search (ultra-compact, symbolic notation) or standard search with brief output?"
- Do NOT auto-activate CoD from generic brevity requests
If CoD mode is detected, follow the Chain of Draft Methodology. Otherwise, use standard methodology.
Core Methodology Principles
1. Goal Clarification
Always understand exactly what the user seeks:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 342 lines · 74 tokens per session scan A 2c45a80b79eb
ring:searching-code is a skill published in the GitHub repository LerianStudio/ring (210 stars, last pushed 13d ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,929 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
brainstorm
Explores a codebase, researches the problem space, and produces an approved design specification before any code is written. Use when the user wants to create a new feature, add significant functionality, redesign a subsystem, or build something that touches multiple parts of the project.
a11y-audit
Dedicated WCAG 2.2 AA/AAA accessibility audit across 10 dimensions (A1-A10) covering semantic HTML, keyboard navigation, ARIA patterns, color contrast, forms, images/media, responsive/zoom, motion/animation, reading/content, and legal compliance. Goes far beyond surface-level design-review checks with deep…
pentest
Hybrid white-box + black-box penetration testing across 7 dimensions (PT1-PT7). Stack-aware source-to-sink tracing, exploit verification, CMS overlay, and deterministic finding aggregation. Uses explicit candidate schemas, canonical-key deduplication, score caps, and MUST-GATE enforcement. Flags: zuvo:pentest [path] |…
init
Write or refresh the ## Tech debt operations section in CLAUDE.md so a team shares one source of truth for debt-ops disciplines and cached quality commands. Idempotent. Only the managed section changes; other sections are untouched. Invoked explicitly via /debt-ops:init (solo users get the same content from the…
debt-ops-init
Write or refresh a "Tech debt operations" section in the project's AGENTS.md so the team shares one source of truth for debt-ops disciplines. Run ONLY when the user explicitly asks to set up, install, or initialize debt-ops disciplines — never auto-invoke. Idempotent; only the managed section changes, other sections…
api-audit
API and endpoint integrity audit across 10 dimensions (D1-D10) plus optional contract stability (D11) and optional OWASP API Security Top 10 (D12: BOLA/BOPLA/BFLA, mass assignment, JWT alg-confusion, GraphQL introspection). Covers validation, payloads, pagination, errors, caching, HTTP semantics, waterfalls, rate…