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 skills add atretyak1985/swarmery --skill code-searchgit clone --depth 1 https://github.com/atretyak1985/swarmeryWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/atretyak1985/swarmery/code-search)<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-search"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-search/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/code-search"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00052 | $0.01055 |
| Opus 5.5 | $0.00021 | $0.00422 |
| Sonnet 5.5 | $0.00010 | $0.00211 |
| Haiku 4.5 | $0.00005 | $0.00105 |
Grade A, and why
code-search 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 28d 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 — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Selects the most efficient search tool — Grep for exact symbol lookup, Glob for file-name patterns, codebase-retrieval for semantic/architectural questions — to locate code across the project's repositories (.claude/project.json → repos). Produces matching file paths with line numbers and context. Read-only, tool-selection skill. Placeholders: <mainApp>, <device>, <infrastructure-repo> come from project.json.
Rules (never violate)
- Grep for exact symbols, Glob for name patterns, codebase-retrieval for "how does X work?" — never swap them.
- Every result carries a
file:linecitation, never a bare file path; max 50 results per search. - Verify the top 2 codebase-retrieval results with Read; anything mismatched is marked
[POTENTIALLY-STALE], never presented as authoritative. - No hardcoded absolute paths, never search the filesystem root — scope to the workspace; repo names come from
.claude/project.json→repos. - Never run an unscoped
path: "."Grep over a large repo without excludingnode_modules/vendor/dist/build/.git— that combination is the usual cause of a ripgrep timeout. - For Glob, narrow
pathto the pattern's literal ancestor rather than relying on the pattern alone; if the target is intentionally insidenode_modules/vendor/.pnpm/build caches, use Bash (find/rg --files) with an explicit timeout instead of retrying Glob/Grep. plugins/core/hooks/search-scope-guard.shenforces the two rules above as aPreToolUsehook on everyGrep/Globcall project-wide, inwarnmode — heed its guidance (delivered viaadditionalContextbefore the call runs, not just its log) instead of retrying the same call, even in a session that never loaded this skill.- Zero-result searches report the alternatives attempted before saying "not found".
- Refuse searches outside the project workspace; stop and ask on >50 results or an ambiguous query.
Resources
- Read
resources/search-procedure.mdwhen running a search — tool selection table, procedure, scope defaults, self-check, mistakes, escalation, failure modes. - Read
resources/query-patterns.mdwhen composing queries — per-repo Grep/Glob patterns and two worked examples.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 28d ago Changed · +3 lines 17f17d0c5c5f
- 2mo ago First seen · 66 lines · 52 tokens per session scan A 8f2986709c79
code-search is a skill published in the GitHub repository atretyak1985/swarmery (9 stars, last pushed 2d ago), licensed Apache-2.0. It adds 52 tokens to every session and 1,055 once invoked, about $0.0002 per session on Opus 5.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-09-03.
code-search compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-searchatretyak1985/swarmery | Skill | 9 | 2d ago | Apache-2.0 | A | 52 | Claude Code |
| gws-quick-reffakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 29 | Claude Code |
| gws-events-subscribefakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 21 | Claude Code |
| gws-gmail-forwardfakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 16 | Claude Code |
| gws-gmail-sendfakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 13 | Claude Code |
| gws-meetfakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 10 | Claude Code |
| recipe-block-focus-timefakoli/fakoli-plugins | Skill | 4 | yesterday | MIT | A | 19 | Claude Code |