helweg/open-codebase-index/skill
Claude Code and agent skill by helweg/open-codebase-index
- community
Checking that the SKILL.md file is still in the repository.
Task-specific semantic code and documentation retrieval. Use compact context for unfamiliar repository orientation, direct lookup for known definitions, graph tools for relationships, and grep for exhaustive literal matches.
Install
npx vskill@latest install helweg/open-codebase-index/skillSKILL.md
Codebase Search Skill
Important: Indexed Content
The indexed codebase contains two types of content:
- Project Source Code — all code files in the current workspace
- Knowledge Base Documentation — external documentation, usage guides, API references, and example programs added via
add_knowledge_base(MCP/OpenCode) orknowledge_base_add(Pi).
When to Use What
| Scenario | Tool | Why | |
|---|---|---|---|
| Unfamiliar repository layout or subsystem | codebase_context | Compact orientation before broad reads | |
| Code/library/API question | codebase_search | Search local knowledge first | |
| Just need file locations | codebase_peek | Metadata only, saves ~90% tokens | |
| Need to see actual code | codebase_search | Returns full code content | |
| Find duplicates/patterns | find_similar | Given code snippet → similar code | |
| Understand code flow | call_graph | Find callers/callees of any function | |
| Trace dependency paths | call_graph_path | Find a shortest known path between two symbols | |
| Analyze PR blast radius | pr_impact | Find affected symbols, communities, hub nodes, and risk | |
| Don't know function/class names | codebase_context | Natural-language orientation with bounded evidence | |
| Know a symbol and need its definition | implementation_lookup | Authoritative source without a context prerequisite | |
| Need ALL occurrences | grep | Semantic returns top N only | |
| Access specific URL | webfetch | Direct URL access, no codebase search needed | |
| Local search fails | websearch | Fallback when codebase has no results | |
| Local and web search fails | suggest adding knowledge base | Notify user to add related folder |
Task-specific Workflow
- Check
index_statuswhen readiness or freshness is unknown. Index only when missing, stale, or incompatible. - For unfamiliar repository orientation, use one compact
codebase_contextfirst pass (tokenBudget: 600,limit: 5) and inspect its evidence before broad reads or searches. - For known definitions, use
implementation_lookupdirectly. For callers/callees or dependency paths, usecall_graphorcall_graph_pathdirectly once endpoints are identified. - For known or suspected edit targets, optionally use
codebase_edit_contextfor bounded source plus direct graph evidence. - Use
codebase_peekfor semantic locations orcodebase_searchfor matching content when needed. Neither requires another context call when scope is already known. - Read known paths directly; use
grepfor exact identifiers and exhaustive literal matches. Apply directory/file filters when the scope is known, rather than guessing a narrower scope.
For repository implementation questions, use local source evidence before web search. External library/API documentation questions may need web sources when the local index lacks relevant documentation. Avoid repeating retrieval when existing evidence already answers the task.
Tools
codebase_peek
Find WHERE code is. Returns metadata only (file, line, name, type).
codebase_search
Find code with full content. Use when you need to see implementation.
find_similar
Find code similar to a given snippet. Use for duplicate detection, pattern discovery, refactoring.
call_graph
Query callers or callees of a function/method.
index_codebase
Manually trigger indexing. Required before first search.
index_status
Check if indexed and ready.
MCP/OpenCode knowledge-base tools
add_knowledge_base(path="/path/to/docs")list_knowledge_basesremove_knowledge_base(path="/path/to/docs")
Pi knowledge-base tools
knowledge_base_add(path="/path/to/docs")knowledge_base_listknowledge_base_remove(path="/path/to/docs")
Query Tips
Describe behavior, not syntax:
- Good:
"function that hashes passwords securely" - Bad:
"hashPassword"(use grep for exact names)
Search across documentation:
- Good:
"how to configure WiFi in ESP-IDF" - Good:
"GPIO initialization example"
Filters
| Filter | Example | |
|---|---|---|
chunkType | function, class, interface, type, method | |
directory | "src/api", "tests" | |
fileType | "ts", "py", "rs" | |
blameAuthor | "jane@example.com" or "Jane Doe" | |
blameSha | "abc1234" | |
blameSince | "2025-01-01" | |
blameUntil | "2025-01-31" |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/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/helweg/open-codebase-index/skill)