tools-code-search

tools-code-search is a skill for Claude Code, Codex from alexei-led/architect. It costs 117 tokens per session (1,137 once invoked), scanned A, original, MIT.

A set of instructions for searching a local codebase with tools such as fd, rg, git grep, and git log. It focuses on finding files, text, entry points, boundaries, and relevant history.

In plain words
What is it for?
Use it to locate application entry points, package roots, routes, configuration, ownership files, documentation, and code related to a specific concept.
Why use it?
It provides a focused way to discover how a repository is organized before doing deeper architecture analysis.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to locate application entry points, package roots, routes, configuration, ownership files, documentation, and code related to a specific concept.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexei-led/architect/tools-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 alexei-led/architect --skill tools-code-search
Clone the repo
git clone --depth 1 https://github.com/alexei-led/architect

Made for: Claude Code, Codex.

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 tools-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexei-led/architect/tools-code-search/github.svg)](https://agentmods.dev/skills/alexei-led/architect/tools-code-search)
Your own site
<a href="https://agentmods.dev/skills/alexei-led/architect/tools-code-search"><img src="https://agentmods.dev/badge/skills/alexei-led/architect/tools-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 tools-code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/architect/tools-code-search"><img src="https://agentmods.dev/badge/skills/alexei-led/architect/tools-code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 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.00117 $0.01137
Opus 5.5 $0.00047 $0.00455
Sonnet 5.5 $0.00023 $0.00227
Haiku 4.5 $0.00012 $0.00114

Measured 1mo ago against content hash 7a294d7dc9cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tools-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 1mo 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.

src/skills/tools-code-search/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code search and targeted reading

Local search is the first evidence pass. It discovers where the architecture is implemented before heavier tools spend time proving graph or semantic facts.

Evidence dimensions: discovery and lightweight structural context.

When to use

Use during the system-map step and whenever a finding needs scoped file:line support before graph, AST, LSP, or language-tool confirmation. Good questions:

  • Where are the entrypoints, deploy units, public interfaces, and package roots?
  • Which files mention a domain concept, config key, route, queue, or dependency?
  • Which modules import a boundary package or framework type?
  • What docs, ADRs, manifests, or ownership files describe intended structure?
  • Which exact files should the review read next?

This skill supports architecture-review; it does not assign architecture scores or make findings by itself.

Commands

Run from the repo root. Prefer fd for paths and rg for text. Use the runtime's file-read tool for targeted reads after search narrows the scope.

# High-signal structure and intent files
fd -H '(^README|CONTEXT|ARCHITECTURE|adr|decisions|ownership|CODEOWNERS|package.json|pyproject.toml|go.mod|Chart.yaml|kustomization.yaml|Dockerfile|\.github)' .

# Files by language / package marker
fd 'package.json|tsconfig.json|pyproject.toml|requirements.txt|go.mod|main.tf|Chart.yaml|kustomization.yaml'

# Exact concepts, routes, config keys, or dependency names
rg -n --hidden --glob '!{.git,node_modules,dist,build,vendor}/**' 'Order|Payment|Auth|Session|Repository|Controller|Handler|typeorm|sqlalchemy|kafka|redis'

# Import/dependency hints before AST or graph tools
rg -n --glob '!{.git,node_modules,dist,build,vendor}/**' "from ['\"]|import |require\(|package "

# Git-tracked scope, useful for generated/vendor exclusion
git ls-files

# Change hints when GitNexus is missing or stale
git log --name-only --pretty=format: -- <path> | sort | uniq -c | sort -nr | head

Prefer git grep -n <pattern> when the review should ignore untracked/generated files and only search the versioned source. If the target is not a git repo, record that limit and use scoped fd / rg instead.

Read the full file on GitHub · 110 lines

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. 1mo ago First seen · 110 lines · 117 tokens per session scan A 7a294d7dc9cb

Subscribe to this mod's changes

tools-code-search is a skill published in the GitHub repository alexei-led/architect (3 stars, last pushed 3mo ago), licensed MIT. It adds 117 tokens to every session and 1,137 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

kirby-debugging-and-tracing

Diagnoses Kirby rendering/runtime issues using MCP runtime rendering, dump traces, and template/snippet/controller indexes. Use when outputs are wrong, errors occur, or tracing execution paths is required.

bnomei/kirby-mcp · 45 tokens

systematic-debugging

A four-phase method for investigating software bugs and test failures before changing code. It focuses on finding and confirming the underlying cause.

huangwb8/skills · 43 tokens

bensz-collect-bugs

A process for recording bugs caused by defects in Bensz skills. It stores a structured local report and can publish one only when the user explicitly asks.

huangwb8/skills · 68 tokens

bug-fix-protocol

8-step disciplined bug-fix protocol that treats every production bug as two failures — the code defect itself and the testing system that allowed it through. Use when fixing a production bug, investigating a regression, writing a post-mortem, or auditing a missed defect. Triggers on "fix this bug", "production bug"…

CodeAlive-AI/ai-driven-development · 94 tokens

challenge-resolve

Independently review and fix a bounded task through convergence rounds, with evidence-backed closure and explicit stop/remediation decisions. Use for existing implementations, features, problems, or diffs needing adversarial review and repair.

Borda/AI-Rig · 47 tokens

grace-fix

Debug and fix issues in a GRACE 4 project using .grace semantic navigation, assertions, and verification evidence.

osovv/grace-marketplace · 29 tokens