agentleFS
jthiruveedulajthiruveedula/agentkit/skills/smart-navigator/SKILL.md

smart-navigator

Skill0 starsChanged 2 months agoMITView on GitHub

Structure-first repo recon: map manifests and a 2-level tree, then trace entry points instead of reading file by file. Use when in an unfamiliar codebase, finding where something lives or what calls it, or before scoping a change.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Skeleton before flesh: Run the map for a 2-level tree, per-directory file counts and sizes, manifests, guessed entry points.

    line 28
  2. Distinctive:

    Read by weight: the directory holding most of the KB is where understanding pays off.

    line 39
  3. Distinctive:

    Stop when both are answered: Stop mapping when you can say: (1) where X lives — a path, not a guess.

    line 62

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Smart Navigator

Map first, read later. A repo's manifests and skeleton answer "where does X live" and "what calls it" faster than reading code. See reference/recon-playbook.md for the full protocol with a worked example. No source, only a shipped build, binary or bundle? Use ext-rea instead. Repo already indexed by CodeGraph (.codegraph/ exists)? Prefer ext-codegraph for symbol and call-path questions.

Procedure

  1. Map first. python3 scripts/map.py . already extracts manifest key fields. If you still need a manifest, bound it:

    head -n 40 package.json    # likewise pyproject.toml, go.mod, Cargo.toml
    head -n 30 README.md
  2. Skeleton before flesh. Run the map for a 2-level tree, per-directory file counts and sizes, manifests, guessed entry points. Ignored: node_modules, .git, dist, __pycache__, .venv, target.

    python3 scripts/map.py .
    python3 scripts/map.py . --depth 3      # deeper when needed
    python3 scripts/map.py . --json          # machine-readable

    Read by weight: the directory holding most of the KB is where understanding pays off. Skip generated code and lockfiles.

  3. Trace entry points inward. Take the map's entry-point guesses (files named main.*, cli.*, index.*, bin/*, plus manifest main/bin fields) and follow imports one hop at a time:

    rg -n '^(import|from .* import|const .* = require)' <entry> | head -n 40

    Repeat on the next hop. This builds the call spine without opening every file.

  4. Symbol search before full reads. For a specific function, class, or route, list hits first, then read only the one you need:

    rg -n -m 3 '<symbol>' <weighted-dir>/ | head -n 20
    sed -n '<start>,<end>p' <file>
  5. Stop when both are answered. Stop mapping when you can say: (1) where X lives — a path, not a guess; (2) what calls it — the 1-2 callers above it from the trace. Depth belongs to the implementation step, not reconnaissance.

Rules

  • Never read a directory alphabetically. Weight by the map, then trace from entry points.
  • Never read generated code for understanding. dist/, lockfiles, node_modules/, __pycache__ describe the build, not the design.
  • Never re-list what the map already showed. The map is the source of truth for structure; don't ls to confirm it.

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.