Start · chosen once, from the situation a request begins in

explain

about 2,700 tokens

explain as it installs, each line coloured by where its words came from.

  • 3 files
  • 0 edits
  • 0 sentences left out
  • 1 source
  • last changed 2026-11-08

The text

SKILL.md

about 300 tokens
  • greenline

---

name: "explain"

description: "Explain how a part of the code works, the mental model needed to start working in it, traced from the real code; and keep the repository's atlas: propose its candidate subsystems, write one page per subsystem in the explain form with a journey or more through it, and refresh a page reported drifting on the owner's yes. Use for \"how does X work\", \"walk me through\" or \"end to end\", before changing an area you cannot yet narrate end to end, to map a repository's subsystems, or when a page of the atlas drifts."

---

greenlineOpens the start: explains in the reply; a fresh agent writes pagesgreenlineOpens the start: explains in the reply; a fresh agent writes pages

explain is the start for "how does X work", for an area the work must change that you cannot yet narrate end to end, for the map of a repository's subsystems, and for a page of the atlas reported drifting. An explanation asked for in a question is answered in the reply, traced from the files, and writes nothing.

greenlinePoints at the references page for its homes and commands

Greenline's paths and commands for this skill stand on its references page, [references/greenline.md](references/greenline.md): read it when the work lands in the workspace.

greenlinePoints at the method page at the moment it is needed

Before the first file is traced, read [method.md](method.md): the atlas's mode, the walk, the form, and the atlas's discovery, pages and refresh.

greenlineHands the atlas's writing to frame under an approved mode

## Handoff

Consumes: the question and the code it names; for the atlas, the repository's tree, entry points, dependency graph and history, or its plan's modules; for a refresh, the pages reported drifting and the commits since each was read Produces: the explanation in the reply; the candidate subsystems in the reply for the owner's pick; through the change, the atlas's pages, journeys and index Next: frame, under the mode the owner approves, when the atlas is written or refreshed; otherwise none, the explanation staying in the reply

SKILL.md as installed, byte for byte SHA-256 8961fc68909ffb238e94995b810082017e9f2f21583de405f320a9c9f35e9e6a

method.md

about 1,600 tokens
  • greenline

greenlineOpens the start: explains in the reply; a fresh agent writes pages

"How does X work" and "end to end" mean the code's path, unless the owner names the practice.

greenlineOpens the start: explains in the reply; a fresh agent writes pages

The atlas is durable: its pages, its journeys and its index are edits, so propose the mode and wait, as AGENTS.md says, open the change's record with a `## start` section naming explain and the pages it will write, and run the line from `frame`. A fresh agent, started by the change's build or its close with the skill's brief, makes the map, each atlas page and its journey and every durable diagram; the session draws only inline. The close names the pages it wrote.

greenlineWalks from the question to a traced model, never a guess

## The walk

Produce the explanation someone needs to start working in a part of the code: enough for a working mental model, never annotated source code. When the question is "what is wrong with it", the findings are review's or diagnose's, and the explanation stays clear of verdicts.

1. **Scope the question**: a subsystem, a feature flow, a runtime trace ("what happens when..."). If the subject is vague, state your best reading of it in one line and proceed; the owner will redirect you.

2. **Assess the size.** A single module or a narrow function: one pass, read and explain. A cross-cutting subsystem: split the ground into two to four slices (the data model, the driving path, the configuration and composition is a common cut), cover each, then reconcile them.

3. **Trace, never guess.** From an entry point, follow the call chain: callers, callees, data flow, types. Read the code; a file's name does not say what it does at run time. You are done tracing when you can describe the whole path from input to output without hand-waving one step. "I could not determine how X connects to Y", said plainly, beats a smooth invention.

4. **Collect what a newcomer would get wrong**: the surprising default, the invariant that lives one file away from where it fires, the historical remnant. When the question is really why, read the history and the repository's decision home.

greenlineThe explanation's form, ending with the offer to keep it

## The form

- **Overview**: a paragraph or two: what it is, what it does, why it exists. Enough to decide whether to keep reading.

- **Key concepts**: the few types, modules or contracts needed to understand the rest, one line each. Never exhaustive.

- **How it works**: what triggers it, the steps, where the data goes, the decision points. Prose that names real files and functions so the reader can go and look; a code block only where the snippet is load-bearing.

- **A journey**: the path a request, an event or a value takes through it, drawn in one of the reply's six forms, most often a call tree or a box drawing, at most 72 columns and twelve nodes.

- **Where things live**: the short map of the directories and files a reader needs to start working here. Not every file.

- **Gotchas**: the non-obvious things that trip people, each with its anchor.

Match the depth to the question: a narrow ask gets the overview and how it works, and stops. The explanation stands alone, so that someone who only wants to understand never wades through anything else. A subsystem's page and its journey are kept in the atlas only on the owner's ask; nothing is offered.

greenlineThe atlas: a page per subsystem, its journeys, an index

## The atlas

The atlas is the repository's map kept as pages: one page per subsystem in the form above, with the files it covers and the commit it was read at, one or more journeys through it, and an index the inspector reads, beside the map `architecture-map` draws. Its pages are for the next agent and the owner, who read them cold. show-me's table of kinds says which journey fits which shape.

greenlineProposes the candidate subsystems and the documents for the owner's pick

### Discovery

When the atlas has no pages, propose the candidate subsystems before writing any; the owner's ask for the map runs this discovery:

- A repository with code: read its tree, its entry points (the commands, the servers, the exported packages, the jobs), the dependency graph between its directories or modules, and its hot spots, the files the history changes most. Propose one subsystem per cohesive part, four to twelve, each with a name, a one-line summary, the files it covers and its layer, from the entry points down to the foundations.

- A repository with little or no code: propose them from its plan's modules, its design or the request's parts, each as it will stand once built, its files the paths it will hold.

Show the candidates in the reply as a table with a box drawing of their layers, and write nothing until the owner picks; the owner's pick, a rename or a merge included, is final. Beside them, list the repository's own documents, the README at the top and the pages under `docs/`, each with the files it covers and whether the owner wrote it, for the documents index; a repository with many pages gets the pages the owner picks. A document the owner wrote is named for its refresh, never rewritten unasked. A map the owner asked for is carried to its last page under the change's record, and the close names any page not made.

greenlineWrites a page and its journeys per picked subsystem

### Pages and journeys

For each picked subsystem, the fresh agent writes its page in the form above and at least one journey: the path a newcomer would trace first, then any other worth keeping, a request through it, an event, a state chart of what it holds, a sequence across its neighbours. A journey is a durable visual of any kind and either system: a drawing `diagram-design` makes, or a text page with a box drawing in one of the six forms. Read before you write: every claim on a page is one you traced. Before the fresh agent draws a journey, write its brief, one line a field: the question the journey answers, in its reader's words; its form; its node count; its finish, text, branded SVG or interactive; its palette; and its reader.

greenlineThe close refreshes touched pages, up to three; a larger refresh offered

### Refresh

A page drifts when a commit since it was read touched a file it covers; the status line counts the drifting pages, and the close names the pages its change touched. The close refreshes them without asking: one fresh agent, started with this skill's brief, re-reads only the files that changed since each page's commit and rewrites only those pages and their journeys, and the map when a page changed, up to three pages; every other page stays as it stands, and the record's `refreshes` line names the pages and the agent's cost. Past three pages, or for the whole atlas, the refresh waits for the owner's ask and is a change of its own. The whole atlas is re-read at most once per minor version of the practice, unless the owner names it.

references/greenline.md

about 780 tokens
  • greenline
greenlineOpens explain's references page and says when to read it

# explain: the practice's mechanics

This page holds where explain's work lands in the workspace and the commands its refresh reads, which `SKILL.md` names by their nouns. Read it with `SKILL.md` when the work lands in the workspace.

greenlineThe atlas's index, its pages and journeys, with their manifests

## Where its work lands

The change that writes or refreshes the atlas has its record at `.greenline/ledger/<id>.md`, its `## start` section naming explain and the pages. The atlas lives in the visual home, `.greenline/visuals/`:

- `atlas.json`, the index: its layers in order from the entry points to the foundations; each subsystem with its name, title, layer, one-line summary, the files it covers (a trailing `/` for a directory), the commit its page was read at, the date and the subsystems it calls; the refreshes, each with its change, its commit, whether it was whole, the pages it rewrote, the version of the practice it ran under and its cost.

- `subsystems/<name>.md`, each subsystem's page.

- `subsystems/<name>/<slug>.svg`, `.html` or `.md`, each journey, with its manifest `<slug>.visual.json` beside it in the form `.greenline/WORK.md` gives ("Durable visuals"), its `skill` `explain` or `diagram-design` and its `form` `journey`, and its `brief`, the six fields of the brief written first at `.greenline/tmp/<id>/pictures/<slug>.brief.md`, which the fresh agent copies into the manifest.

- `documents.json`, the documents index: each of the repository's own documents with its `path`, its `author`, `practice` or `owner`, the `files` it covers, the `commit` it was kept at and the `change` that kept it, null for discovery's; the hooks keep a listed document's commit when a change writes it.

```json

{

"schema": "greenline.atlas/v1",

"layers": ["entry", "core", "foundations"],

"subsystems": [

{

"name": "http",

"title": "The HTTP layer",

"layer": "entry",

"summary": "Hands each request to its handler and writes the answer.",

"files": ["src/http/"],

"commit": "0123abc",

"read": "2026-10-25",

"calls": []

}

],

"refreshes": [

{

"change": "2026-10-25-atlas",

"commit": "0123abc",

"whole": true,

"pages": ["http"],

"greenline": "0.2.0",

"cost": "one agent, four minutes"

}

]

}

```

A page's commit is `git rev-parse HEAD` when it was read, and the version is the one `greenline --version` prints.

greenlineThe drift notices, the dirty files' diff, the refresh's record and hold

## Drift and the refresh

`greenline status` reports a page whose covered files changed since the commit it was read at (GL0603), and a listed document that drifted the same way (GL0607). The files a page's refresh re-reads are those `git diff --name-only <commit>..HEAD -- <files>` names. The close's refresh writes each page's new commit into `atlas.json` and its refresh with its cost, and the record's `refreshes` line names the agent apart, counted nowhere, with its pages and its cost: `{ by: explain, pages: "http, map", cost: "one agent, four minutes" }`. Done waits until the touched pages are refreshed, or the owner's words "leave the pages" stand in the close section; a refresh of its own change records its cost in its front matter's `agents` and `rounds`.

What greenline wrote

The full reason for every passage greenline wrote, in the order of the text.

  1. SKILL.md:6 rename

    The skill's title, its name.

  2. SKILL.md:8 method

    The start's opening in its own voice: its four situations, the reply that answers a question and writes nothing, and the atlas as edits proposed and run as a change. J-147 S2 and S4: the question's words read as the code's path, and the one maker rule. R1

  3. SKILL.md:8 method

    The start's opening in its own voice: its four situations, the reply that answers a question and writes nothing, and the atlas as edits proposed and run as a change. J-147 S2 and S4: the question's words read as the code's path, and the one maker rule. R1

  4. SKILL.md:10 pointer

    The front points at the references page, where its homes and commands stand.

  5. SKILL.md:12 pointer

    J-180 S1 cut the front under 300 words: the sentences it moved stand on the method page, in their order and unchanged, and the front points there at the moment they are needed.

  6. SKILL.md:14 method

    The start's handoff: what it reads, what it leaves in the reply and through the change, and frame next when the atlas is written. R1

  7. method.md:1 pointer

    J-180 S1 cut the front under 300 words: the sentences it moved stand here, on the page of method its pointers name, in their order and unchanged.

  8. method.md:3 method

    The start's opening in its own voice: its four situations, the reply that answers a question and writes nothing, and the atlas as edits proposed and run as a change. J-147 S2 and S4: the question's words read as the code's path, and the one maker rule. R1

  9. method.md:5 method

    The start's opening in its own voice: its four situations, the reply that answers a question and writes nothing, and the atlas as edits proposed and run as a change. J-147 S2 and S4: the question's words read as the code's path, and the one maker rule. R1

  10. method.md:7 method

    The walk from a question to a traced mental model, lifted from the workshop's explain craft, itself adapted from pstack's how: scope, size, trace and the newcomer's traps, findings left to the review and the diagnosis. R1

    Credits: pstack

  11. method.md:16 method

    The explanation's form, lifted from the workshop's explain craft with pstack's how behind it, and a journey drawn in one of the reply's six forms for a subsystem's path. J-147 S2: the explanation of a subsystem ends with the offer to keep its page and journey. J-175 S1 (the register's rows of 2026-11-05, "The keeper over the oracle" and "The seven cuts"; the 0.2.0 series on Codex): the offer at the end of an explanation leaves (the seven cuts: the offer ritual gone). R2

    Credits: pstack

  12. method.md:27 method

    The atlas as the register's row of 2026-10-22 rules it: a page per subsystem in the explain form with its files and commit, its journeys and an index, beside architecture-map's map. J-147 S4 points at show-me's table of kinds. R1

  13. method.md:31 method

    The discovery mode the register's row of 2026-10-22 asks for: candidates from the tree, the entry points, the dependency graph and the hot spots on a brownfield repository, from the plan's modules on a greenfield one, shown for the owner's pick before any write. J-147 S1 and S2: the map's first offer runs discovery, and discovery seeds the documents index with each document's covered files and author. J-175 S1 (the register's rows of 2026-11-05, "The keeper over the oracle" and "The seven cuts"; the 0.2.0 series on Codex): the map is made on the owner's ask and carried to its last page under a record (j109t-cli F3). R2

  14. method.md:40 method

    One page per picked subsystem and one or more journeys of any kind and either visual system, each traced before it is written. J-147 S4: the fresh agent writes each page and journey. J-204 S1 (the register's row of 2026-11-08, "One offer per change at the caps"): a brief precedes each journey as every durable picture. R3

  15. method.md:44 method

    The refresh rule of the register's row of 2026-10-22: offered, never taken unasked; only dirty files re-read and dirty pages rewritten; the whole atlas at most once per minor version unless the owner names it; every refresh a change whose record holds its cost. J-147 S2 and S4 (the register's row of 2026-10-28 on the permanent pages refreshed at the close): the close's refresh of the touched pages without asking, up to three, by one fresh agent, its cost in the record, a larger or whole refresh offered. J-175 S1 (the register's rows of 2026-11-05, "The keeper over the oracle" and "The seven cuts"; the 0.2.0 series on Codex): a larger refresh waits for the owner's ask, nothing offered. R2

  16. references/greenline.md:1 scope

    Opens explain's references page and says when to read it.

  17. references/greenline.md:5 relocate

    explain's mechanics: the atlas's index with its form, each page and journey with its manifest, held apart from the front. J-147 S1: the documents index, the refresh's cost and the map's offers. J-175 S1 (the register's rows of 2026-11-05, "The keeper over the oracle" and "The seven cuts"; the 0.2.0 series on Codex): the index's offers leave, since J-176 S1 refuses an index that carries them. J-204 S1 (the register's row of 2026-11-08, "One offer per change at the caps"): each journey's brief and its manifest's fields.

  18. references/greenline.md:45 relocate

    explain's mechanics for a refresh: the drift status reports, the diff that names the dirty files, and where the refresh and its cost are recorded. J-147 S1 and S3: GL0607, the close's refresh in the index and the record, and done held until the pages are refreshed or left in the owner's words.

The ledger entry

greenline's ledger logs how each skill was made and changed, with a reason for each entry.

2026-11-08 2026-11-08-explain-brief-before-a-journey

The brief before each journey, carried in its manifest

A brief of the question, form, nodes, finish, palette and reader precedes each journey, its six fields carried in the journey's manifest.

Authorised by
2026-11-08 J-204 S1, on the operator's words of 2026-11-08, "you have my go, see this through release of 0.2.0" and "draft it the way you recommend and we fold this within 0.2.0 as well", fast with the review waived, under the register's row of 2026-11-08, "One offer per change at the caps": the picture decision a table in show-me's method that the block points at, one offer of a kept picture per change at the caps in one line the turn's end counts, never a lost picture's remake, and a brief before every durable picture, read into its manifest and shown on its card
Pages it touched
method.md, references/greenline.md
Rulings, R1 to R11
  1. the register's rows of 2026-10-22 on the visual system, on the operator's words of 2026-10-22 ("we will include all good sources, we will use each source for specific kind of diagram representation" and "nothing goes to trial, all the visual systems are done now and permanently part of the greenline agent and system"): one home for every durable visual, .greenline/visuals/, each visual with its manifest; every visual source a permanent default, each for its kind of picture; the atlas a system of its own whose refresh is offered, never taken unasked; and the register's row of 2026-10-24, no migration code (J-110); the explain start lifted from the workshop's own explain craft, itself adapted from pstack's how (Explain Mode), MIT, credited here: the register's row of 2026-10-22 on the atlas, the explain start with a discovery mode, on the operator's words of 2026-10-22, "they should kind of be a system in itself"
  2. the register's rows of 2026-10-22 on the visual system, on the operator's words of 2026-10-22 ("we will include all good sources, we will use each source for specific kind of diagram representation" and "nothing goes to trial, all the visual systems are done now and permanently part of the greenline agent and system"): one home for every durable visual, .greenline/visuals/, each visual with its manifest; every visual source a permanent default, each for its kind of picture; the atlas a system of its own whose refresh is offered, never taken unasked; and the register's row of 2026-10-24, no migration code (J-110); the explain start lifted from the workshop's own explain craft, itself adapted from pstack's how (Explain Mode), MIT, credited here: the register's row of 2026-10-22 on the atlas, the explain start with a discovery mode, on the operator's words of 2026-10-22, "they should kind of be a system in itself"; J-175 S1, on the operator's lock words of 2026-11-05, "okay then please lock on both these jobs", over the design they accepted that day, "okay we will do this as you laid out": the conduct the 0.2.0 series found missing enters as words with the conduct row or scenario that tests it, and the words a keeper now holds leave
  3. the register's rows of 2026-10-22 on the visual system, on the operator's words of 2026-10-22 ("we will include all good sources, we will use each source for specific kind of diagram representation" and "nothing goes to trial, all the visual systems are done now and permanently part of the greenline agent and system"): one home for every durable visual, .greenline/visuals/, each visual with its manifest; every visual source a permanent default, each for its kind of picture; the atlas a system of its own whose refresh is offered, never taken unasked; and the register's row of 2026-10-24, no migration code (J-110); the explain start lifted from the workshop's own explain craft, itself adapted from pstack's how (Explain Mode), MIT, credited here: the register's row of 2026-10-22 on the atlas, the explain start with a discovery mode, on the operator's words of 2026-10-22, "they should kind of be a system in itself"; and the register's row of 2026-11-08, "One offer per change at the caps", on the operator's words of 2026-11-08, "so did you draft j204? i think you should draft it the way you recommend and we fold this within 0.2.0 as well": the picture decision a table in show-me's method that the block points at, one offer of a kept picture per change only where the shape passes twelve nodes or 72 columns, in one line the turn's end counts, never a lost picture's remake, and a brief before every durable picture read into its manifest
  4. the register's rows of 2026-10-22 on the visual system, on the operator's words of 2026-10-22 ("we will include all good sources, we will use each source for specific kind of diagram representation" and "nothing goes to trial, all the visual systems are done now and permanently part of the greenline agent and system"): one home for every durable visual, .greenline/visuals/, each visual with its manifest; every visual source a permanent default, each for its kind of picture; the atlas a system of its own whose refresh is offered, never taken unasked; and the register's row of 2026-10-24, no migration code (J-110)
  5. J-147, under J-147's finalise words, the operator's words of 2026-10-28: and we get this done earliest so this can be seen in the qa runs as they work or not; and the card of 2026-10-28: Adopt both, with the improvements; on the register's rows of 2026-10-28 on the visual system's flow, the documents' drift, the one maker rule and the offer at every turn with the permanent pages refreshed at the close. The series' finding on the pictures: over 101 runs the agent never offered a lasting visual on its own, never proposed the atlas's first pages and never refreshed a subsystem page
  6. The operator's words of 2026-10-28 on the keeper of a prose method, "ingestion of prose skills from upstream kind of needs a thinking in direction of a cli based keeper, holder kind of architecture which makes sure the prose worked", with the card "Draft J-153 now, with the roster audit" and the card "Adopt the four-part test with the cost classes and the caps": a feature of greenline is prose plus its keeper, and each skill's recipe lists the promises its pages state, each with the fact, hold, record or oracle that keeps it, or its gap marked by the keeper test (J-153 S4)
  7. The operator's words of 2026-11-05, "okay we will do this as you laid out", on the design laid before them, a computed situation line for the proposal widened to the skills a change owes, and the register's row of that day, "The keeper over the oracle": a skill's invocation cases are trigger rows carried as data, widened by rows and bounded by the mode's reading budget, never by sentences in the block
  8. J-175 S1, on the operator's lock words of 2026-11-05, "okay then please lock on both these jobs", over the design they accepted that day, "okay we will do this as you laid out", and the register's rows of that day, "The keeper over the oracle" and "The seven cuts": the conduct the 0.2.0 series on Codex found missing enters the skills as words with the conduct row or scenario that tests it, and the words the mechanisms now hold leave
  9. The operator's words of 2026-11-05, "I saw the linear run inspect and realised very less skills were invoked and I have a feeling that more could have been selected and used; we need widening of invocation cases and make it a bit loose", and "okay then please lock on both these jobs": every start and habit carries its invocation cases as trigger rows, loosened by mode within the mode's reading budget, its description naming the same cases
  10. The operator's card of 2026-11-06, "Finalise at 300 words a front (Recommended)", on the sixth of the seven cuts of the card of 2026-11-05, "Cut all seven (Recommended)": the block under 1,500 words and a skill's front under 300; each front keeps the sentences its step reads first, and every other sentence moves unchanged, in its order, to the page the front points to
  11. J-204 S1, on the operator's words of 2026-11-08, "you have my go, see this through release of 0.2.0" and "draft it the way you recommend and we fold this within 0.2.0 as well", fast with the review waived, under the register's row of 2026-11-08, "One offer per change at the caps": the picture decision a table in show-me's method that the block points at, one offer of a kept picture per change at the caps in one line the turn's end counts, never a lost picture's remake, and a brief before every durable picture, read into its manifest and shown on its card
7 earlier entries
  1. 2026-11-06 2026-11-06-explain-front-under-300-words

    Front cut under 300 words; the rest moved to the method page

    Pages it touched: SKILL.md, method.md

  2. 2026-11-06 2026-11-06-explain-trigger-rows-widened

    Trigger rows widened by mode; the description names the same cases

    Pages it touched: SKILL.md

  3. 2026-11-06 2026-11-06-explain-the-words-the-series-owes

    Pages kept on the owner's ask; an asked map carried through

    Pages it touched: SKILL.md, references/greenline.md

  4. 2026-11-06 2026-11-06-explain-carries-its-trigger-rows

    Trigger row: how the code works asked

  5. 2026-10-28 2026-10-28-explain-lists-its-promises-and-keepers

    Each promise listed with the keeper that holds it, or its gap

  6. 2026-10-28 2026-10-28-explain-refreshes-at-close-and-seeds-the-documents

    Close's refresh, documents index, offer to keep a page

    Pages it touched: SKILL.md, references/greenline.md

  7. 2026-10-25 2026-10-25-explain-enters

    The start explain enters, keeping the repository's atlas

    Pages it touched: SKILL.md, references/greenline.md