agentleFS
hawkyrehawkyre/hawk-skills/skills/learn-system/SKILL.md

learn-system

Skill30 starsChanged 2 months agoMITView on GitHub

Explore and explain how a system, module, or codebase works. Use when the user is onboarding, trying to understand unfamiliar code, or building a mental model.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the active system's exploration subagent when available.

    line 16
  2. Distinctive:

    Start broad, go deep on specific areas when asked

    line 48
  3. Distinctive:

    Always trace at least one concrete scenario — abstract explanations don't stick

    line 49
  4. Distinctive:

    When the user states their understanding, correct misconceptions specifically

    line 50
  5. Distinctive:

    Use diagrams to compress understanding

    line 51
  6. Distinctive:

    Write down what you learned — it compounds across sessions

    line 52

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

Learn How Something Works

Process

  1. Entry point exploration:

    • What triggers this code to run
    • High-level flow (what calls what, in what order)
    • Key data structures and how they transform
    • Where important decisions/branching happens

    Use the active system's exploration subagent when available. Give it a narrow brief and collect its findings.

  2. Visual mental model: Draw a diagram (mermaid or ASCII) showing:

    • Main components/modules
    • Data flow between them
    • External dependencies (DB, APIs, filesystem)
    • Error handling boundaries

    Save the diagram — visual models compress understanding.

  3. Trace a specific flow: Walk through a concrete scenario step by step:

    • Which functions are called, in what order
    • What data looks like at each step
    • "Interesting" parts (complex logic, non-obvious behavior)

    Pick the most common scenario first, then trace edge cases.

  4. Socratic verification (when the user states their understanding):

    • What did they get wrong?
    • What's missing?
    • What would surprise them?

    Telling the AI what you think is true and asking for corrections is dramatically more effective than open-ended questions.

  5. Capture the understanding (if asked): Write a brief architecture doc:
    • Purpose and scope
    • Key concepts and data flow
    • Common modification points
    • Gotchas and non-obvious behavior

Rules

  • Start broad, go deep on specific areas when asked
  • Always trace at least one concrete scenario — abstract explanations don't stick
  • When the user states their understanding, correct misconceptions specifically
  • Use diagrams to compress understanding
  • Write down what you learned — it compounds across sessions
  • Big-output discipline. Heavy command output (project check, full git diff, repo-wide search, long log, large fetch) goes to /tmp/hawk-learn-system-<step>.log, then rg -n '<pattern>' /tmp/hawk-learn-system-<step>.log | head -50 extracts what you need. Read only the required lines from the file. See README → Big-output discipline. Explore subagents must apply the same recipe to their captures.

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.