agentleFS
romermaromerma/mstack/skills/understand/SKILL.md

understand

Skill1 starsChanged 13 days agoMITView on GitHub

Build a traced mental model of a subsystem before changing it, covering both how it works now and why it ended up this way. Use before designing or fixing anything in unfamiliar code, or when asked how something works, why a decision was made, or to explain a part of the codebase.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use understand-chat, understand-dashboard and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • pwizzangSkill

    understand-chat

    Use when you need to ask questions about a codebase or understand code using a knowledge graph

    Also in 3 projects that use this

  • pwizzangSkill

    understand-dashboard

    Launch the interactive web dashboard to visualize a codebase's knowledge graph

    Also in 3 projects that use this

  • atopileSkill

    graph

    How the Zig-backed instance graph works (GraphView/NodeReference/EdgeReference), the real Python API surface, and the invariants around allocation, attributes, and cleanup. Use when working with low-level graph APIs, memory management, or building systems that traverse the instance graph.

    Also in 3 projects that use this

  • Google CloudSkill

    triage

    Gather context on a change or bug and plan the implementation.

    Also in 3 projects that use this

  • +2 more from pwizzang

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 0

    Distinctive

    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:

    When you fan out, each reader writes to .mstack/progress/explore_<topic>.md and returns the path.

    line 30

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “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

Two questions, and they have different sources.

How does it work is answered by the code. Why is it like this is answered by history: git log -p and git blame on the seam, the commit messages, whatever issue tracker or chat the repo is wired to. Code cannot tell you what was rejected, and that is usually the part that matters.

For why, references/sources.md has one playbook per kind of source — what it holds, how to search it, and what it systematically lies about. Read the playbook for the source before you search it; each one exists because that source misleads in a specific, repeatable way. Start with code-archaeology.md, which every repo has and which often ends the investigation on its own.

Scale the effort

ScopeApproach
One file, one functionRead it. No fan-out.
One subsystemOne pass, direct.
Crosses subsystems, or nobody knows the answerTwo or three readers in parallel, each with a narrow disjoint question

When you fan out, each reader writes to .mstack/progress/explore_<topic>.md and returns the path. Narrow questions, disjoint scopes. Three readers given the same broad question return the same shallow answer three times.

For why, one investigator per source, each reading one playbook and nothing else. A source you could not reach is a gap, not an absence: "Slack was not searchable" is a finding, and letting an empty result become "there was no discussion" is how a confident, wrong account gets built.

The account

With a GLOSSARY.md, read it and use its terms in the notes; a term the request uses differently is a fact to settle against the code, not a question for the user.

Present it in this order, and omit any section with nothing in it:

  • Overview. What this is for, in a paragraph.
  • Key concepts. The three to five nouns you need before the rest makes sense.
  • How it works. The path a request or a value actually takes, with file:line.
  • Where things live. The map, so the next person does not repeat this.
  • Gotchas. What is surprising, and what has already bitten someone.

Say what you did not establish

The failure mode of an explanation is that it reads as authoritative whether or not it is true. Mark every claim with where it stopped on the evidence ladder. A claim about structure needs a real file:line. A claim about behaviour needs rung 4: you ran it.

Anything you inferred but did not confirm gets said out loud as an inference.

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.