Skip to content
Back to skills

Explore Codebase

ASecurity

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

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsnode

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add afu-it/safe-code --skill explore-codebase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Explore Codebase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Explore Codebase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/afu-it-explore-codebase/badge)](https://www.skillsdirectory.com/skills/afu-it-explore-codebase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: explore-codebase
description: Navigate and understand codebase structure using the codegraph index. Use for repo orientation, AGENTS.md authoring, architecture mapping, or finding relevant code.
---

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.