Agent skill

Codebase Exploration

by giancarloerra in giancarloerra/SocratiCode

Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts.

AGPL-3.0Auto-check passedDatabases

Install Codebase Exploration

skills CLI
$ npx skills add giancarloerra/SocratiCode --skill codebase-exploration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install giancarloerra/SocratiCode codebase-exploration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/giancarloerra/SocratiCode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codebase-exploration .claude/skills/codebase-exploration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codebase-exploration
GitHub stars
3.3k
Used in
1 other repo
Token cost
~1.5k tokens
SKILL.md length
695 words
Files
2 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts.

  • Works in 6 steps: Start most explorations with… → Follow the graph before following imports → Read files only after narrowing via search → …
  • Understanding architecture
  • SKILL.md covers Workflow and Goal → Tool Quick Reference
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Codebase Exploration is an agent skill from giancarloerra/SocratiCode. 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/codebasesearch 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.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/tool-reference.md`).

It sits in Databases, covering Vector databases, Codebase onboarding and Embeddings. It works with Google Gemini, Model Context Protocol, OpenAI and Qdrant. The repository describes itself as: Enterprise-grade (40m+ LOC) codebase intelligence, zero-setup, local & private Plugin/Skill/Extension or MCP: hybrid semantic search, polyglot dependency graphs, symbol-level… The licence is AGPL-3.0.

When your agent uses it

  • Understanding architecture
  • Finding functions/types
  • Analysing dependencies
  • Searching database schemas

Example prompts

  • “/codebase-exploration”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Start most explorations with codebase_search
  2. Follow the graph before following imports
  3. Read files only after narrowing via search
  4. Leverage context artifacts for non-code knowledge
  5. Check status if something seems wrong
  6. Get an overview of all tools

What it can do on your machine

Read from SKILL.md and the folder at commit 1e829bf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codebase Exploration loads about 1.5k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 116 tokens; SKILL.md has 695 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from giancarloerra/SocratiCode at commit 1e829bf, republished under its AGPL-3.0 licence (© giancarloerra). 695 words, ~1,504 tokens.

Download SKILL.mdSave it as .claude/skills/codebase-exploration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
codebase-exploration
description
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.

SocratiCode Codebase Exploration

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.

Workflow

Hybrid semantic + keyword search (vector + BM25, RRF-fused) runs in a single call.

  • Broad queries for orientation: "how is authentication handled", "database connection setup", "error handling patterns"
  • Precise queries for symbol lookup: exact function names, constants, type names
  • Prefer search results to infer which files to read — do not speculatively open files
  • Use fileFilter to narrow to a specific file path, languageFilter for a specific language
  • Adjust minScore (default 0.10) for precision vs recall — lower for more results, higher for stricter matching

When 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.

2. Follow the graph before following imports

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 breakdown
  • codebase_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.

4. Leverage context artifacts for non-code knowledge

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)
  • Artifacts are auto-indexed on first search and auto-detect staleness

Run codebase_context early to see what's available. Use codebase_context_search before asking about database structure, API contracts, or infrastructure.

Show full SKILL.md (252 more words)Show less
5. Check status if something seems wrong
  • codebase_status — check index status, progress, watcher state, graph status
  • If search returns no results, the project may not be indexed yet
  • If the watcher is inactive, results may be stale — run codebase_update; start the watcher only when status does not say it is disabled
  • In snapshot mode (SOCRATICODE_WATCHER=off plus SOCRATICODE_AUTO_RESUME=off), stale results are expected until an explicit update. Do not enable or start the watcher.
  • In Git mode (SOCRATICODE_WATCHER=git), search, graph, and status requests report refresh state. Do not treat pending, failed, or unverified results as current. Git transitions trigger refreshes; use codebase_update for an immediate refresh of working-tree edits. Do not start the file watcher.
6. Get an overview of all tools
  • codebase_about — quick reference of all SocratiCode tools and a typical workflow

Goal → Tool Quick Reference

GoalTool
Understand what a codebase does / where a feature livescodebase_search (broad query)
Find a specific function, constant, or typecodebase_search (exact name) or grep
Find exact error messages, log strings, or regex patternsgrep / ripgrep
See what a file imports or what depends on itcodebase_graph_query
Get architecture overview (files, edges, most connected)codebase_graph_stats
Spot circular dependenciescodebase_graph_circular
Visualise module structure (text / Mermaid)codebase_graph_visualize
User asks for a visual / interactive / shareable graphcodebase_graph_visualize mode="interactive"
Check graph build statuscodebase_graph_status
Verify index is up to datecodebase_status
Discover available schemas, specs, configscodebase_context
Find database tables, API endpoints, infra configscodebase_context_search
Quick overview of all toolscodebase_about

For full parameter details on every tool, see references/tool-reference.md.

© giancarloerra, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/codebase-exploration of giancarloerra/SocratiCode.

  • SKILL.md
  • references/tool-reference.md

Open the folder on GitHubat commit 1e829bf

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in giancarloerra/SocratiCode, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Codebase Exploration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codebase Exploration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codebase Exploration this skillgiancarloerra/SocratiCode3.3k1 repos~1.5kAutomated safety check: PassAGPL-3.0
RAG ArchitectJeffallan/claude-skills12k1 repos~2kAutomated safety check: PassMIT
Cognee Integrations Setuptopoteretes/cognee32k—~1kAutomated safety check: NotesApache-2.0
Using Vector Databasesancoleman/ai-design-components5261 repos~3.5kAutomated safety check: PassMIT
Chroma Vector DatabaseOrchestra-Research/AI-Research-SKILLs13k8 repos~2.3kAutomated safety check: PassMIT
Youtubeeat-pray-ai/yutu696—~1.1kAutomated safety check: PassMIT

Similar skills

  • RAG Architect

    Jeffallan/claude-skills

    Designs retrieval-augmented generation systems: document chunking, embeddings, vector store setup, hybrid search, reranking and retrieval evaluation, with checks at each step.

    12k GitHub starsUsed in 1 repo~2k tokens
    AI & LLM EngineeringAuto-check passed
  • Cognee Integrations Setup

    topoteretes/cognee

    Switches cognee's LLM, embedding, relational, vector and graph backends through environment variables, with the extras to install and the traps to avoid.

    32k GitHub stars~1k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Using Vector Databases

    ancoleman/ai-design-components

    Vector database implementation for AI/ML applications, semantic search, and RAG systems.

    526 GitHub starsUsed in 1 repo~3.5k tokens
    DatabasesAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Youtube

    eat-pray-ai/yutu

    A skill your agent uses whenever the user mentions YouTube, video uploads, channel management, playlists, video SEO, or any YouTube Data API operation.

    696 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Pgvector Semantic Search

    timescale/pg-aiguide

    A skill your agent uses for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search.

    1.9k GitHub starsUsed in 1 repo~3.8k tokens
    AI & LLM EngineeringAuto-check passed

More from giancarloerra/SocratiCode

  • Codebase Management

    giancarloerra/SocratiCode

    Set up, index, and manage SocratiCode codebase indexing. An agent skill from giancarloerra/SocratiCode.

    3.3k GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed

Questions about Codebase Exploration

What does Codebase Exploration do?

Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts. Codebase Exploration is an agent skill from giancarloerra/SocratiCode. Explore and understand codebases using SocratiCode semantic search, dependency graphs, and context artifacts.

When should I use Codebase Exploration?

Codebase Exploration fits situations like: understanding architecture; finding functions/types; analysing dependencies; searching database schemas.

How do I install Codebase Exploration in Claude Code?

Run `npx skills add giancarloerra/SocratiCode --skill codebase-exploration -a claude-code`. Or copy the skill folder (skills/codebase-exploration in giancarloerra/SocratiCode) into .claude/skills/codebase-exploration in your project. Claude Code loads it when a task matches its description.

How do I install Codebase Exploration in Codex?

Run `npx skills add giancarloerra/SocratiCode --skill codebase-exploration -a codex`. Or copy the skill folder (skills/codebase-exploration in giancarloerra/SocratiCode) into .agents/skills/codebase-exploration in your project. Codex loads it when a task matches its description.

Can I use Codebase Exploration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add giancarloerra/SocratiCode --skill codebase-exploration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codebase-exploration, .gemini/skills/codebase-exploration, .github/skills/codebase-exploration and .opencode/skills/codebase-exploration in your project.

What does Codebase Exploration need to run?

SKILL.md names no scripts, command-line tools or credentials: Codebase Exploration is instructions for the agent only.

Does Codebase Exploration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Codebase Exploration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codebase Exploration use?

Codebase Exploration is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codebase Exploration use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Codebase Exploration?

Skills that share tags, products or a category with Codebase Exploration: RAG Architect (Jeffallan/claude-skills, 12k stars), Cognee Integrations Setup (topoteretes/cognee, 32k stars), Using Vector Databases (ancoleman/ai-design-components, 526 stars) and Chroma Vector Database (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codebase Exploration?

giancarloerra (a GitHub user) maintains it in giancarloerra/SocratiCode, which has 3,335 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 2, 2026.

Source: giancarloerra/SocratiCode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.