agentleFS
afu-itafu-it/safe-code/skills/explore-codebase/SKILL.md

explore-codebase

Skill4 starsChanged 57 days agoMITView on GitHub

Navigate and understand codebase structure using the codegraph index. Use for repo orientation, AGENTS.md authoring, architecture mapping, or finding relevant code.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-triage, explain-code and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • testified-ossSkill

    incident-triage

    Triage production incidents with severity assessment, root cause hypothesis, impact analysis, and escalation recommendations. Use when analyzing outages, errors, or production issues.

    Also in 3 projects that use this

  • zbruhnkeSkill

    explain-code

    Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.

    Also in 3 projects that use this

  • SentrySkill

    write-tests

    Write tests following project conventions. Use when adding new tests or modifying existing ones.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the codegraph index to understand the repository before editing.

    line 8
  2. Very specific:

    Prefer the host's MCP tools when exposed (codegraph_explore, codegraph_node).

    line 12
  3. Distinctive:

    Prefer graph results for entry points, call paths, dependents, and impact.

    line 13
  4. Very specific:

    If the index is missing or stale, run $build-graph first.

    line 14
  5. Distinctive:

    Do not copy raw graph dumps into docs.

    line 36

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Explore Codebase

Use the codegraph index to understand the repository before editing.

Core Rules

  • Prefer the host's MCP tools when exposed (codegraph_explore, codegraph_node); otherwise the same output comes from the CLI (codegraph explore, codegraph node).
  • Prefer graph results for entry points, call paths, dependents, and impact; confirm anything load-bearing by reading the source it points at.
  • If the index is missing or stale, run $build-graph first. If codegraph is unavailable or empty, continue with rg, manifests, README files, and config inspection.

Workflow

  1. Build or sync the index if it is empty or stale ($build-graph).
  2. codegraph files --format grouped for the module layout.
  3. codegraph explore "<task or area>" for the relevant symbols' source plus call paths in one shot; codegraph context "<task>" for a task-shaped bundle.
  4. codegraph node -f <file> --symbols-only for a file's symbols and who depends on it (hubs = files "used by" many others).
  5. codegraph callers|callees <symbol> and codegraph impact <symbol> to narrow to specific symbols and risky chokepoints.

AGENTS.md Use

When helping safe-code write or reconcile AGENTS.md, follow the canonical authoring rules in the safe-code skill's references/agents-md-authoring.md (decision test, investigation order, what to extract/exclude). This skill's job is to supply graph-backed facts that feed those rules, not to define a separate authoring process.

Prefer graph-backed facts:

  • major modules and files
  • entry points and call paths
  • hub files that many others depend on (need caution)
  • languages detected by the index
  • untested hotspots (source files codegraph affected maps to no test)

Do not copy raw graph dumps into docs. Convert them into compact handoff facts.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.