code-search

code-search is a skill for Claude Code from atretyak1985/swarmery. It costs 52 tokens per session (1,055 once invoked), scanned A, original, Apache-2.0.

A guide for choosing the right way to find files, symbols, or related code in a monorepo, which is a project containing multiple connected repositories or applications.

In plain words
What is it for?
Use it to locate exact symbols, match file patterns, or investigate how an existing part of the system works.
Why use it?
It avoids inefficient or overly broad searches and reports results with file-and-line locations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 37 skills, 8 commands, 13 agents shipped together

Good fit Use it to locate exact symbols, match file patterns, or investigate how an existing part of the system works.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/code-search
Install

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.

Any agent
npx skills add atretyak1985/swarmery --skill code-search
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 13 agents.

Wrote 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.

agentmods badge for code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/code-search/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/code-search)
Your own site
<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.

agentmods 80×15 button for code-search

Your own site · 80×15
<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>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,055 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 28d ago against content hash 17f17d0c5c5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/core/skills/code-search/SKILL.md · 69 lines

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:line citation, 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 excluding node_modules/vendor/dist/build/.git — that combination is the usual cause of a ripgrep timeout.
  • For Glob, narrow path to the pattern's literal ancestor rather than relying on the pattern alone; if the target is intentionally inside node_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.sh enforces the two rules above as a PreToolUse hook on every Grep/Glob call project-wide, in warn mode — heed its guidance (delivered via additionalContext before 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.md when running a search — tool selection table, procedure, scope defaults, self-check, mistakes, escalation, failure modes.
  • Read resources/query-patterns.md when composing queries — per-repo Grep/Glob patterns and two worked examples.

Read the full file on GitHub · 69 lines

Files

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.

Changes

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.

  1. 28d ago Changed · +3 lines 17f17d0c5c5f
  2. 2mo ago First seen · 66 lines · 52 tokens per session scan A 8f2986709c79

Subscribe to this mod's changes

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.

Related

code-search compared with skills from other repositories

code-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-searchatretyak1985/swarmerySkill92d agoApache-2.0A52Claude Code
gws-quick-reffakoli/fakoli-pluginsSkill4yesterdayMITA29Claude Code
gws-events-subscribefakoli/fakoli-pluginsSkill4yesterdayMITA21Claude Code
gws-gmail-forwardfakoli/fakoli-pluginsSkill4yesterdayMITA16Claude Code
gws-gmail-sendfakoli/fakoli-pluginsSkill4yesterdayMITA13Claude Code
gws-meetfakoli/fakoli-pluginsSkill4yesterdayMITA10Claude Code
recipe-block-focus-timefakoli/fakoli-pluginsSkill4yesterdayMITA19Claude Code