agentleFS
LucaDominiciLucaDominici/arbiter/.claude/skills/understand-code/SKILL.md

understand-code

Skill0 starsChanged 54 days agoApache-2.0View on GitHub

Use when exploring an unfamiliar code path, tracing a feature end-to-end, or when asked "how does X work?". Structured 4-step comprehension protocol. READ-ONLY.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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:

    Mode: READ-ONLY throughout. No edits during this skill.

    line 17
  2. Distinctive:

    Use Glob and Grep to locate relevant files:

    line 21
  3. Distinctive:

    Test files (unit + integration)

    line 33
  4. Distinctive:

    Read files in dependency order:

    line 37
  5. Very specific:

    Check which invariants apply.

    line 48
  6. Distinctive:

    Read-only. Do not edit files.

    line 92
  7. Distinctive:

    Do not propose fixes — only document gaps.

    line 93
  8. Distinctive:

    Do not run tests or gate.

    line 94

≈ “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

Understand Code

Mode: READ-ONLY throughout. No edits during this skill.

Step 1: Scope Discovery

Use Glob and Grep to locate relevant files:

Glob: src/**/*<keyword>*
Grep: "<keyword>" in src/

Collect:

  • Entry point (controller, command, route handler, event listener)
  • Domain / business logic files
  • Adapter files (repository, HTTP client, external service)
  • Test files (unit + integration)

Step 2: Code Tracing

Read files in dependency order:

  1. Entry point — what triggers this code path?
  2. Application layer — what orchestration happens?
  3. Domain — what business rules apply?
  4. Adapters — how does the system persist or call out?

Limit: Read at most 8 files. If scope is larger, narrow the argument.

Step 3: Invariant Mapping

Check which invariants apply. The registry is at GLOBAL_INVARIANTS.md.

For each applicable INV:

  • Is it currently enforced in the code you read?
  • Are there gaps? (Note them — do NOT fix during this skill)

Step 4: Summary Report

## Code Understanding: <argument>

**Entry Point:** <file:line — method/endpoint/event>

**Call Chain:**
<Layer1> → <Layer2> → <Layer3>

**Key Data Flow:**

1. <input> received at <layer>
2. <transformation or validation>
3. <persistence/response>

**Domain Rules:**

- <rule 1>

**Test Coverage:**

- Unit: <files or "none found">
- Integration: <files or "none found">

**Gaps / Risks (observe only — do not fix here):**

- <gap 1>

**Next Step:**

- <if debugging>: hypothesis to test first
- <if modifying>: safe entry point for edits

Constraints

  • Read-only. Do not edit files.
  • Do not propose fixes — only document gaps.
  • Do not run tests or gate.

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.