leonj1/external-claude-skills/code-searcher
Claude Code and agent skill by leonj1/external-claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Delegates codebase searches to a lightweight agent. Use when searching for existing implementations, classes, or functions without loading search results into context.
Install
npx vskill@latest install leonj1/external-claude-skills/code-searcherSKILL.md
The same SKILL.md was published earlier as leonj1/external-claude-skills/code-searcher.
Code Searcher Skill
This skill delegates codebase searches to a specialized lightweight agent, keeping your context lean.
When to Invoke This Skill
Invoke this skill when ANY of these conditions are true:
- Before implementing: You need to check if a class, function, or service already exists
- Finding reusable code: You want to find existing implementations to reuse or extend
- Duplicate prevention: You need to verify you're not creating something that exists
- Pattern discovery: You want to find how similar functionality is implemented elsewhere
- Dependency tracing: You need to find where a class or function is used
Why Use This Skill?
Without this skill: You would use Grep/Glob directly, loading potentially hundreds of lines of search results into your context.
With this skill: The code-searcher agent (haiku model) performs targeted searches and returns a concise summary with file:line references.
Context savings: 70-90% reduction in search-related context usage.
Invocation
When you need to find existing implementations, invoke the agent:
For specific class/function searches:
For repository/data access searches:
What code-searcher Will Do
The agent will:
- Identify search terms: Extract key terms and naming variations
- Search for exact matches: Find class/function definitions with exact names
- Search for similar implementations: Find related code that could be reused
- Analyze findings: Determine if existing code can be used directly or extended
- Return summary: Concise results with file:line locations and recommendations
Expected Output
You will receive a structured summary like:
Recommendation Types
The agent returns one of three recommendations:
| Recommendation | Meaning | Action | |
|---|---|---|---|
| USE_EXISTING | Exact match found | Import and use directly | |
| MODIFY_EXISTING | Similar found | Extend or modify existing code | |
| CREATE_NEW | Nothing found | Implement from scratch |
Example Usage
Scenario: You need to implement a payment processing service.
Without skill: Run multiple Grep searches, read through results, manually identify matches.
With skill:
Result: You know there's a StripeClient at src/clients/stripe.py:10 you can use, saving implementation time.
Do NOT Invoke When
- You already know exactly which file to read (use Read directly)
- You're searching for a specific string in a known file (use Grep directly)
- The search is very simple (single term, obvious location)
- You just ran code-searcher for the same or similar query
Consumers
This skill is particularly useful for:
coder- Before implementing new functionalitycodebase-analyst- Finding reuse opportunities in specsverifier- Checking if implementations existrefactorer- Finding code to consolidatearchitect- Understanding existing capabilities
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-searcher/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leonj1/external-claude-skills/code-searcher)