helweg/opencode-codebase-index/codebase-search
Claude Code and agent skill by helweg/opencode-codebase-index
- community
Checking that the SKILL.md file is still in the repository.
Task-specific local codebase-understanding workflow for OpenCode, MCP, Pi, omp, and Codex. Use compact context for unfamiliar repository orientation, direct definition and graph tools for known targets.
Install
npx vskill@latest install helweg/opencode-codebase-index/codebase-searchSKILL.md
Codebase Search Skill
Use this skill when you need local repository knowledge before web lookup.
Core workflow
- Run
index_statuswhen index readiness or freshness is unknown. - When repository orientation is needed (layout, relevant symbols, or cross-file intent), use one compact
codebase_context(query, tokenBudget: 600, limit: 5)first pass and inspect returned evidence before broad reads or searches. Do not call it mechanically before every task or tool. - For a known definition, use
implementation_lookup(query)directly. For callers or callees, usecall_graph(name, direction)directly; for relationships between identified endpoints, usecall_graph_path(from, to)directly. - For a change with a known or suspected target symbol, optionally use
codebase_edit_contextfor bounded target source plus direct callers and callees. - Use
codebase_peek(query, ...)when only semantic locations are needed, andcodebase_search(query, ...)when matching source content is needed. Neither requires another context call when the task is already scoped. - Read known paths directly and use
grepfor exact identifiers or exhaustive literal matches. Usefind_similar(code)for analogous implementations and duplicates.
Avoid repeating broad reads or retrieval when existing evidence already answers the question. If results are weak, check readiness, compatibility, and scope with index_status; run index_codebase only when the index is missing, stale, or incompatible.
Tool Priority
codebase_contextfor compact, unfamiliar-repository orientation; explicitsymbolandfrom+torouting remains supported.implementation_lookupfor known definitions.call_graphandcall_graph_pathfor relationships once symbols or endpoints are identified.codebase_edit_contextas an optional bounded pre-edit step.codebase_peekfor metadata-only semantic locations.codebase_searchfor matching implementation content.find_similarfor pattern matching and duplication.index_codebase(force/estimate/dryRun/verbose) for first-time or stale indexes.index_status,index_health_check,index_metrics,index_logsfor operational checks.
Suggested Commands
- Unfamiliar subsystem:
codebase_context("payment processing flow", tokenBudget: 600, limit: 5). - Known definition:
implementation_lookup("validate"). - Callers or callees:
call_graph("chargeCard", "callees"). - Known endpoints:
call_graph_path("submitPayment", "chargeCard"). - Change target:
codebase_edit_context(query: "reject expired tokens", symbol: "validateToken"). - Matching source after scope is known:
codebase_search("payment retry guards"). - Analogous code:
find_similar("function validate(data)").
Additional Notes
- Use
grepfor exact identifiers and tiny, deterministic lookups. - Use
websearchonly when local tools return no results and docs are likely missing. - Choose the next tool from the evidence needed, not a mandatory context → peek → search chain.
Security
- Security scanPassed, 95 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/codebase-search/SKILL.md
Popularity
- Repository stars
- 150
- Repository forks
- 26
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. 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/helweg/opencode-codebase-index/codebase-search)