agentleFS
jhonatan-oliveiradevjhonatan-oliveiradev/agent-skills/skills/mapping-existing-codebase-structure/SKILL.md

mapping-existing-codebase-structure

Skill1 starsChanged 3 months agoMITView on GitHub

Use when you need traceable evidence of the current codebase structure, boundaries, and entrypoints.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Distinctive:

    Use the shared evidence contract.

    line 10
  2. Distinctive:

    Read the optional CodeGraph guide only when CodeGraph tools are callable or the user explicitly asks to install, initialize, or configure …

    line 12
  3. Distinctive:

    Ask one narrow structural question, define its scope, and state the decision it supports.

    line 16
  4. Distinctive:

    Use the narrowest symbol, relation, or targeted search that can answer the question.

    line 18
  5. Distinctive:

    Use an explicit fallback when runtime evidence is unavailable or inconclusive: inspect targeted symbols, search, imports, references, …

    line 19
  6. Very specific:

    Keep an evidence ledger for every material claim: claim, status (observed, inferred, or unresolved), source, location, confidence, and …

    line 20
  7. Distinctive:

    Stop at sufficiency when traceable evidence answers the question, critical dependencies are checked, gaps are classified, and further …

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Ownership

Observe the structure that exists; do not design the structure that should replace it.

Use the shared evidence contract.

Read the optional CodeGraph guide only when CodeGraph tools are callable or the user explicitly asks to install, initialize, or configure CodeGraph.

Workflow

  1. Ask one narrow structural question, define its scope, and state the decision it supports.
  2. Detect whether an optional code-intelligence runtime is available through callable tools only. Do not install a runtime, do not run codegraph init, and do not create .codegraph/ without explicit authorization.
  3. Use the narrowest symbol, relation, or targeted search that can answer the question; expand only to close a named evidence gap.
  4. Use an explicit fallback when runtime evidence is unavailable or inconclusive: inspect targeted symbols, search, imports, references, tests, configuration, and direct reads. A textual match is not proof of a caller, callee, or owner.
  5. Keep an evidence ledger for every material claim: claim, status (observed, inferred, or unresolved), source, location, confidence, and relevance.
  6. Stop at sufficiency when traceable evidence answers the question, critical dependencies are checked, gaps are classified, and further reading is unlikely to change the immediate decision. Hand off to the next owner.

Output contract

  • scope;
  • entrypoints;
  • modules and responsibilities;
  • observed boundaries;
  • dependency direction;
  • ownership signals;
  • hotspots;
  • evidence gaps;
  • source references;

Does not own

Future architecture, pattern selection, or new boundary design; hand those decisions to Architecture & Engineering.

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.