search-code

A deeper codebase-search skill for cases where ordinary text and filename searches do not find the needed code.

In plain words
What is it for?
Use it to find API routes, frontend components, database queries, authentication checks, error handling, and environment-variable usage.
Why use it?
It broadens searches with related words and can trace entry points, call chains, and dependencies when the code is hard to locate.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/supersynergy/awesome-agentic-coding/search-code
Any agent
npx skills add Supersynergy/awesome-agentic-coding --skill search-code
Clone the repo
git clone --depth 1 https://github.com/Supersynergy/awesome-agentic-coding

Made for: Claude Code, Codex.

Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00024 $0.00539
Opus 5 $0.00012 $0.00269
Sonnet 5 $0.00005 $0.00108
Haiku 4.5 $0.00002 $0.00054

Measured yesterday against content hash 903979c80d92, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

search-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 yesterday.

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.

skills/search-code/SKILL.md · 51 lines

What it actually says

Search the codebase for: $ARGUMENTS

Strategy (escalating depth)

Level 1: Direct Search (try first)

Grep for exact pattern → if found, return results
Glob for file patterns → if found, read relevant files

Level 2: Semantic Search (if Level 1 fails)

Try related terms:

  • Synonyms: "auth" → "login", "session", "token", "jwt"
  • Abbreviations: "config" → "cfg", "conf", "settings"
  • Naming conventions: camelCase, snake_case, kebab-case variants

Level 3: Structural Search (if Level 2 fails)

Spawn a Haiku researcher agent to:

  1. Find all entry points (main files, route handlers, exports)
  2. Trace the call chain to the target functionality
  3. Map the dependency graph

Common Search Patterns

Looking for Search with
API routes Grep("app\.(get|post|put|delete)") or Grep("router\.")
React components Glob("src/**/*.tsx") + Grep("export.*function|export default")
Database queries Grep("\.query|\.select|\.insert|\.update|\.delete")
Auth checks Grep("auth|middleware|session|token|jwt")
Error handling Grep("catch|throw|Error|error")
Environment vars Grep("process\.env|import\.meta\.env|Deno\.env")
Test files Glob("**/*.{test,spec}.{ts,tsx,js,jsx}")
Config files Glob("**/*.{config,rc}.{ts,js,json,yml,yaml}")

Output Format

Return:

  1. File path + line number
  2. Relevant code snippet (5-10 lines, not full file)
  3. Brief explanation of what it does
  4. Related files (if part of a larger pattern)
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. yesterday First seen · 51 lines · 24 tokens per session scan A 903979c80d92

Subscribe to this mod's changes

search-code is a skill published in the GitHub repository Supersynergy/awesome-agentic-coding (1 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 539 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

aiwiki-research-refresh-privacy

定期为 AiWiki「LLM 隐私保护」主题做一次「高质量一手来源研究 → 去重 → 三道硬闸门把关 → 走隐私条目流水线 → 过闸门」的扩充。当需要发现并新增 LLM 隐私攻防新选题(尤其由月度定时触发器拉起的无人值守会话),且要保证一手出处、不与现有条目重复、不制造假安全时使用。.

XuebinMa/AIWiki · 116 tokens

aiwiki-privacy-entry-author

为 AiWiki「LLM 隐私保护」主题撰写或修订一条攻防条目(privacy/ 下的 .mdx)。当需要新增/改写隐私条目、并保证第一人称红线、九节结构、三道硬闸门、隐私 frontmatter 与一手出处时使用。.

XuebinMa/AIWiki · 81 tokens

aiwiki-research-refresh

定期为 AiWiki 做一次「高质量来源研究 → 去重 → 质量把关 → 走条目流水线 → 过闸门」的扩充。当需要发现并新增「AI 使用误区」新选题(尤其由月度定时触发器拉起的无人值守会话),且要保证来源质量、不与现有条目重复时使用。.

XuebinMa/AIWiki · 91 tokens

aiwiki-entry-author

为 AiWiki 撰写或修订一条「误区」条目(docs/ 下的 .mdx)。当需要新增/改写误区条目、并保证第一人称 AI 声音、七段结构、frontmatter 规范与可核查出处时使用。.

XuebinMa/AIWiki · 68 tokens

aiwiki-translator

把一条 AiWiki 中文误区条目(docs/ 下的 .mdx)翻译成英文镜像,输出到 i18n/en/ 对应路径。当需要为新增或修订的中文条目生成/更新英文版时使用。.

XuebinMa/AIWiki · 60 tokens

issue-triage

Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.

rtk-ai/rtk · 70 tokens