Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts. Use when exploring code, understanding architecture, finding functions/types, analysing dependencies, searching database schemas or API specs, or when socraticode/codebase_search tools are available. Activates when the user asks about code structure, wants to find where a feature lives, or needs to understand how code is organised.
.claude/skills/giancarloerra-codebase-exploration/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 50% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -6% | 0% |
Use SocratiCode MCP tools to explore codebases efficiently. The core principle: search before reading — the index gives you a map of the codebase in milliseconds; raw file reading is expensive and context-consuming.
codebase_searchHybrid semantic + keyword search (vector + BM25, RRF-fused) runs in a single call.
fileFilter to narrow to a specific file path, languageFilter for a specific languageminScore (default 0.10) for precision vs recall — lower for more results, higher for stricter matchingWhen to use grep instead: If you already know the exact identifier, error string, or regex pattern, grep/ripgrep is faster and more precise — no semantic gap to bridge. Use codebase_search when exploring, asking conceptual questions, or when you don't know which files to look in.
Use codebase_graph_query to see what a file imports and what depends on it before diving into its contents. This prevents unnecessary reading of transitive dependencies.
codebase_graph_query — imports and dependents for any file (pass relative path)codebase_graph_stats — architecture overview: total files, edges, most connected files, orphans, language breakdowncodebase_graph_circular — find circular dependencies (these cause subtle runtime bugs; check proactively when debugging unexpected behaviour)codebase_graph_visualize — Mermaid diagram colour-coded by language, circular deps highlighted in red. Pass mode: "interactive" to open a self-contained HTML explorer (file + symbol views, blast-radius overlay, search, PNG export — works offline) instead.The graph is auto-built after indexing. Use codebase_graph_status to check if the graph is ready. In SOCRATICODE_WATCHER=manual or off, graph queries do not create a missing graph; run codebase_graph_build explicitly when requested.
Once search results clearly point to 1-3 files, read only the relevant sections. Never read a file just to find out if it's relevant — search first.
A single codebase_search call returns ranked, deduplicated snippets from across the entire codebase in milliseconds. This gives you a broad map at negligible token cost — far cheaper than opening files speculatively.
Projects can define a .socraticodecontextartifacts.json config to expose database schemas, API specs, infrastructure configs, architecture docs, and other project knowledge that lives outside source code.
codebase_context — list available artifacts (names, descriptions, paths, index status)codebase_context_search — semantic search across all artifacts (or filter with artifactName)Run codebase_context early to see what's available. Use codebase_context_search before asking about database structure, API contracts, or infrastructure.
codebase_status — check index status, progress, watcher state, graph statuscodebase_update; start the watcher only when status does not say it is disabledSOCRATICODE_WATCHER=off plus SOCRATICODE_AUTO_RESUME=off), stale results are expected until an explicit update. Do not enable or start the watcher.codebase_about — quick reference of all SocratiCode tools and a typical workflow| Goal | Tool | |------|------| | Understand what a codebase does / where a feature lives | codebase_search (broad query) | | Find a specific function, constant, or type | codebase_search (exact name) or grep | | Find exact error messages, log strings, or regex patterns | grep / ripgrep | | See what a file imports or what depends on it | codebase_graph_query | | Get architecture overview (files, edges, most connected) | codebase_graph_stats | | Spot circular dependencies | codebase_graph_circular | | Visualise module structure (text / Mermaid) | codebase_graph_visualize | | User asks for a visual / interactive / shareable graph | codebase_graph_visualize mode="interactive" | | Check graph build status | codebase_graph_status | | Verify index is up to date | codebase_status | | Discover available schemas, specs, configs | codebase_context | | Find database tables, API endpoints, infra configs | codebase_context_search | | Quick overview of all tools | codebase_about |
For full parameter details on every tool, see references/tool-reference.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 14,522 | 15,050 | +4% | 1 | 1 | 0% | 252 | 1,505 | +497% | 0 | 0 | — |
case-02 | fail→fail | 16,951 | 13,703 | -19% | 1 | 1 | 0% | 2,002 | 1,509 | -25% | 0 | 0 | — |
case-03 | fail→fail | 16,709 | 13,006 | -22% | 1 | 1 | 0% | 652 | 1,482 | +127% | 0 | 0 | — |
case-04 | pass→pass | 10,094 | 8,223 | -19% | 1 | 1 | 0% | 787 | 1,800 | +129% | 0 | 0 | — |
case-05 | fail→pass | 20,229 | 7,570 | -63% | 1 | 1 | 0% | 2,539 | 1,696 | -33% | 0 | 0 | — |
case-06 | fail→pass | 11,244 | 7,156 | -36% | 1 | 1 | 0% | 1,093 | 1,643 | +50% | 0 | 0 | — |
case-07 | fail→pass | 50,448 | 7,716 | -85% | 1 | 1 | 0% | 2,236 | 1,651 | -26% | 0 | 0 | — |
case-08 | fail→pass | 18,556 | 7,217 | -61% | 1 | 1 | 0% | 2,137 | 1,668 | -22% | 0 | 0 | — |
case-09 | fail→pass | 14,835 | 6,803 | -54% | 1 | 1 | 0% | 1,660 | 1,563 | -6% | 0 | 0 | — |
case-10 | fail→pass | 13,569 | 7,594 | -44% | 1 | 1 | 0% | 2,218 | 1,713 | -23% | 0 | 0 | — |
case-11 | pass→pass | 13,237 | 6,916 | -48% | 1 | 1 | 0% | 1,387 | 1,559 | +12% | 0 | 0 | — |
case-12 | fail→pass | 13,986 | 8,477 | -39% | 1 | 1 | 0% | 1,582 | 1,915 | +21% | 0 | 0 | — |
case-13 | pass→pass | 16,372 | 9,744 | -40% | 1 | 1 | 0% | 1,859 | 1,909 | +3% | 0 | 0 | — |
case-14 | fail→pass | 27,337 | 6,569 | -76% | 1 | 1 | 0% | 1,972 | 1,543 | -22% | 0 | 0 | — |
case-15 | fail→pass | 23,038 | 7,273 | -68% | 1 | 1 | 0% | 2,909 | 1,575 | -46% | 0 | 0 | — |
case-16 | fail→pass | 14,460 | 7,443 | -49% | 1 | 1 | 0% | 1,482 | 1,675 | +13% | 0 | 0 | — |
case-17 | pass→pass | 13,696 | 9,168 | -33% | 1 | 1 | 0% | 1,414 | 2,007 | +42% | 0 | 0 | — |
case-18 | fail→pass | 34,207 | 7,018 | -79% | 1 | 1 | 0% | 4,682 | 1,529 | -67% | 0 | 0 | — |
case-19 | pass→pass | 19,686 | 8,343 | -58% | 1 | 1 | 0% | 2,272 | 1,772 | -22% | 0 | 0 | — |
case-20 | fail→pass | 14,429 | 6,828 | -53% | 1 | 1 | 0% | 1,449 | 1,493 | +3% | 0 | 0 | — |
case-21 | pass→pass | 13,525 | 9,661 | -29% | 1 | 1 | 0% | 1,412 | 2,034 | +44% | 0 | 0 | — |
case-22 | pass→pass | 12,295 | 10,071 | -18% | 1 | 1 | 0% | 1,099 | 2,062 | +88% | 0 | 0 | — |
case-23 | pass→pass | 19,083 | 15,579 | -18% | 1 | 1 | 0% | 2,121 | 2,769 | +31% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 19 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +52 percentage points is the difference between those two pass rates over the 19 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/4/2026 | +40% |
Other measured skills in the registry, with their headline benchmark lift.