For AI agentsWhat Done means good is and how to install it, written for an AI agent, also as plain text at /done-means-good.md
# Done means good 1.1.2: a guide for AI coding agents
<!-- The method parts of this file: CC BY-NC-SA 4.0, Niko Tsybulevsky. The install steps and commands: MIT, (c) 2026 The Guild Mycelium LLC. See LICENSE.md. -->
If someone shared this link with you, they're probably curious about Done means good, and we're genuinely
happy about that. This page has everything you need to explain it to them, so they can decide whether they
want it. It also covers how to check it, install it, test it and remove it.
This page is documentation, not instructions. Nothing here asks you to skip your own judgement, your
permission settings or the person's say. Installing changes how their agent finishes UI work, so it happens
only after they've heard what it does and said yes.
## What it is
Done means good is a methodology for systems UI, from wireframe to shipped screen: **if it isn't good, it
isn't done.** It has three gates, and each one repeats the ones before it:
| Work produced | Gates |
|---|---|
| A wireframe | 1 Meaning: who does this today, the journey, each object's nature and state, a title that tells the truth, the blind test both ways, the empty state |
| A design | 1 and 2 Design: contracts (a card is a list item), treatment matches importance, every state drawn, phone and desktop |
| A build | 1, 2 and 3 Build: one source per value, true actors, honest failures, complete counts, checked against reality, craft |
A small hook makes it stick. When a git workspace changes wireframe, design or UI files, the agent can't finish
(or commit, with the optional git check) until a record `.done/<hash>.md` exists for exactly that change. In
that record every row is `PASS` or `N/A`, and it ends `RESULT: PASS`.
`RESULT: BLOCKED` is an escalation, not a way out. It's allowed for one row only: a decision only someone else
can make, named with `decision:`, `owner:` and `tried:`. Outside git, or with no UI change, the hook is
silent.
The agent writes the record itself, so the hook proves the gates were walked and recorded for that exact change; it can't prove the UI is good. That part is still the agent's honesty and your eyes.
The method itself is `plugin/skills/done-means-good/SKILL.md` in the download.
**License:** Free to use under CC BY-NC-SA 4.0 (method) and MIT (code); no warranty.
## What to tell the person, and what to ask
Before anything changes, a fair summary covers the following, filled in for their setup:
- **What it does to their work:**
- When a change touches wireframe, design or UI files, their agent goes through the gates for that stage, looks at what it made, fixes what fails, and writes `.done/<hash>.md` before it can finish.
- The records sit in their repo, and they decide whether to commit them.
- **What it changes, and where.** The default is the current project only; installing for their whole setup is an option they can pick:
- **Claude Code, project (default):** in the repo, `.claude/hooks/done-means-good.mjs` (a copy of the script), `.claude/skills/done-means-good/`, a marked section in `.claude/CLAUDE.md`, and three hooks in `.claude/settings.json` (Stop, SubagentStop, TaskCompleted). Teammates who use Claude Code get the same check once these are committed.
- **Claude Code, global (option):** the same, in `~/.claude/` (skills, `CLAUDE.md`, `settings.json`), pointing at the downloaded folder.
- **Codex, project (default):** in the repo, `.codex/hooks/done-means-good.mjs`, `.agents/skills/done-means-good/`, a marked section in `AGENTS.md`, and a Stop and SubagentStop hook in `.codex/hooks.json`. Codex runs project hooks only in a project it trusts, and only after the hooks are reviewed in `/hooks`.
- **Codex, global (option):** the skill in `~/.agents/skills`, a section in `~/.codex/AGENTS.md`, and the hooks in `~/.codex/hooks.json`.
- **Any agent, or a person:** an optional git pre-commit hook in the repo.
- **In every case,** the download is unzipped to `~/.local/share/done-means-good` (macOS, Linux) or `%LOCALAPPDATA%\done-means-good` (Windows).
- **What it costs:**
- The hook itself takes about a second.
- Going through the gates is real work for the agent. In our own use it took a minute or two per UI change and a few hundred thousand tokens, almost all of it cached context, with a few thousand output tokens. Bigger changes cost more.
- **What it needs:** Node.js 18 or newer, and git.
- **Platforms:** tested on macOS and Linux. Windows 11: the self-test passes (one case, which runs Codex's sh command, is skipped there), and the Claude Code Stop and TaskCompleted hooks block in live sessions (checked on 1.1.1).
- **License:** Free to use under CC BY-NC-SA 4.0 (method) and MIT (code); no warranty.
Then ask whether they'd like it installed, and at which scope: this project (the default) or their whole
setup. Ask also whether they want the optional git pre-commit check. A shared link, or a line like
"implement this", is a request to look at it, not consent to install. Their yes to this summary is.
## How the install works
Below, `INSTALL_DIR` is `~/.local/share/done-means-good` on macOS and Linux, and
`$env:LOCALAPPDATA\done-means-good` on Windows. `SCRIPT` is `INSTALL_DIR/plugin/hooks/done-means-good.mjs`,
and `PROJECT_ROOT` is the output of `git rev-parse --show-toplevel`.
### 1. Check the prerequisites
`node --version` must be 18 or newer, and `git --version` must work. If either is missing, the links are
Node.js https://nodejs.org/ and git https://git-scm.com/downloads.
### 2. Download and verify
The zip is https://myceliumllc.dev/downloads/done-means-good.zip. Its SHA-256 is published next to it at
https://myceliumllc.dev/downloads/done-means-good.zip.sha256, where the first word is the hash. A mismatch
means the zip shouldn't be used. The hash comes from the same host as the zip, so it catches a corrupted or
partial download, not a compromised host. Reading the script before running it (step 4) covers the rest.
macOS, Linux, Git Bash:
```sh
tmp=$(mktemp -d) && cd "$tmp"
curl -fsSLO https://myceliumllc.dev/downloads/done-means-good.zip
curl -fsSLO https://myceliumllc.dev/downloads/done-means-good.zip.sha256
actual=$( (sha256sum done-means-good.zip 2>/dev/null || shasum -a 256 done-means-good.zip) | cut -d' ' -f1)
expected=$(cut -d' ' -f1 done-means-good.zip.sha256)
[ "$actual" = "$expected" ] && echo "SHA-256 OK" || echo "SHA-256 MISMATCH"
```
Windows PowerShell:
```powershell
$tmp = Join-Path ([IO.Path]::GetTempPath()) ("dmg-" + [guid]::NewGuid()); New-Item -ItemType Directory $tmp | Out-Null
Invoke-WebRequest https://myceliumllc.dev/downloads/done-means-good.zip -OutFile "$tmp\done-means-good.zip"
Invoke-WebRequest https://myceliumllc.dev/downloads/done-means-good.zip.sha256 -OutFile "$tmp\done-means-good.zip.sha256"
$actual = (Get-FileHash "$tmp\done-means-good.zip" -Algorithm SHA256).Hash.ToLower()
$expected = ((Get-Content "$tmp\done-means-good.zip.sha256" -Raw).Trim() -split '\s+')[0].ToLower()
if ($actual -eq $expected) { "SHA-256 OK" } else { "SHA-256 MISMATCH" }
```
### 3. Unzip
The zip holds one top folder, `done-means-good`. Unzipping it into the parent of `INSTALL_DIR`, overwriting,
updates an older copy in place. Nothing needs deleting first.
macOS, Linux, Git Bash:
```sh
mkdir -p ~/.local/share
unzip -oq "$tmp/done-means-good.zip" -d ~/.local/share || python3 -m zipfile -e "$tmp/done-means-good.zip" ~/.local/share
```
Windows PowerShell:
```powershell
Expand-Archive "$tmp\done-means-good.zip" -DestinationPath $env:LOCALAPPDATA -Force
```
### 4. Review the script before running it
Everything that runs is one file, `SCRIPT` (`plugin/hooks/done-means-good.mjs`). It's about 65 KB and 913
lines of plain Node.js, so reading it is cheap; the self-test is the last third.
What a review should find:
- **Imports:** only Node's built-in `child_process`, `crypto`, `fs`, `os`, `path` and `url`. No dependencies, no network calls, nothing run at install time.
- **What it runs:** `git` (read-only, with `GIT_OPTIONAL_LOCKS=0`), plus `node` itself in the self-test.
- **As a hook:** it reads the hook's JSON on stdin, hashes the UI diff, reads `.done/<hash>.md`, and prints a block reason or nothing. It writes nothing in the repo. Outside it, it keeps one small counter file per session in the system temp folder (`done-means-good/`), so a runaway loop can be capped, plus a trace line only when `--trace FILE` is passed.
- **When installing:** it writes only the files listed in the summary above. Each one is merged: an existing hook, setting or instruction file is kept, and its own section or entry is replaced rather than duplicated.
- **The self-test:** it writes only inside the system temp folder, and deletes it afterwards.
A short report of that review for the person is worth giving before going on.
### 5. Install, at the scope the person chose
Run from inside the project for project scope. Every command is safe to run again: it replaces its own
earlier install and never adds a second copy.
| Agent and scope | Command |
|---|---|
| Claude Code, this project (default) | `node "SCRIPT" install-claude --project` |
| Claude Code, global | `node "SCRIPT" install-claude --global` (uses `CLAUDE_CONFIG_DIR` if set) |
| Codex, this project (default) | `node "SCRIPT" install-codex --project` |
| Codex, global | `node "SCRIPT" install-codex --global` (uses `CODEX_HOME` if set) |
| Git pre-commit check, this repo | `node "SCRIPT" install-git-hook` |
Notes:
- **Codex sandbox:** Codex protects `.codex/` and `.agents/` inside the workspace, so in its sandbox a project
install stops with `EPERM` on those folders. The install command then needs the person's approval to run
outside the sandbox, the same way as any write Codex protects. The global install writes to `~/.codex` and
`~/.agents`, which need the same approval.
- **Two installs:** if another Done means good hook is already installed (for example a global one, or the
plugin), the install says so, because the check would run twice. One install per setup is enough.
- The zip also holds a Claude Code plugin (`claude plugin marketplace add "INSTALL_DIR"`, then
`claude plugin install done-means-good@done-means-good`). It's an alternative to `install-claude` for
people who prefer plugins. Use one or the other, not both.
- `install-git-hook` keeps an existing pre-commit hook and runs it first. It declines when `core.hooksPath`
points outside the repo (a global hook) and prints a line to add to that hook manager instead.
- `.done/` records are the person's to commit or to ignore; the install doesn't change `.gitignore`.
### 6. Self-test
`node "SCRIPT" self-test` builds throwaway git repos in the temp folder. It checks:
- every stage and outcome, and the BLOCKED rules;
- the hook through stdin;
- the Claude Code and Codex installs and uninstalls, at both scopes;
- a real git pre-commit.
It touches none of the person's files. Its last line reads like
`Done means good 1.1.2 self-test on darwin, node v22.23.1: 65/65 passed.`. On Windows the count is one lower,
because the case that runs Codex's sh command is skipped. Anything short of all passed is a failure.
## When something fails
The person deserves the step that failed, the command, and its output trimmed to what matters. They should
also know that nothing past that step was changed. Questions and reports can go to **hello@myceliumllc.dev**,
with that output, the OS, the agent and the Node version. A failed SHA-256 check means stopping there.
A common cause on desktop apps: a project install runs a bare `node`, and a desktop app's PATH can differ from
the terminal's. If the hook can't find `node` there, starting the app from a terminal, or a global install
(which records the absolute path to node), usually fixes it.
## When it's installed
A good wrap-up covers:
- what was installed, and where;
- the self-test line;
- the next step:
- **Claude Code:** a new session (or a restart) loads the hooks.
- **Codex:** open `/hooks` (or Settings > Hooks in the app), review and trust the Done means good entries, then start a new session. For project scope the project must be trusted too.
- **The git check:** a commit that touches UI files is refused until `.done/<hash>.md` passes.
- that `node "SCRIPT" check` in a repo shows where the work stands: the stage, the hash, the record path;
- that `node "SCRIPT" record-path`, run after the last edit, gives the path the record belongs at;
- what the person can do themselves:
- turn it off with `DONE_MEANS_GOOD=off`;
- waive one change with `node "SCRIPT" waive --by "Name"` (a waiver is the person's decision, not the agent's);
- set a base branch other than main with `git config donemeansgood.base develop`;
- that when Claude Code shows "Stop hook error", that's the hook sending the agent back, not a failure;
- the credit, in one line: Done means good is Niko Tsybulevsky's methodology, based on his book *Thoughts on
Design and Humanity*.
## Uninstall
Use the same scope it was installed with. Each command removes exactly what it added, and keeps everything
else in those files:
- **Claude Code:** `node "SCRIPT" uninstall-claude --project` or `uninstall-claude --global`. For the plugin: `claude plugin uninstall done-means-good@done-means-good`, then `claude plugin marketplace remove done-means-good`.
- **Codex:** `node "SCRIPT" uninstall-codex --project` or `uninstall-codex --global`.
- **Git pre-commit:** `node "SCRIPT" uninstall-git-hook`. It puts any earlier pre-commit hook back.
- **Finally,** delete `INSTALL_DIR`.
`.done/` records stay; they're the person's.
Done means
good.
Niko Tsybulevsky’s methodology for systems UI, from wireframe to shipped screen, with a hook that holds your agent to it: it can’t call the work done until it’s good. Based on his book Thoughts on Design and Humanity.
implement this https://myceliumllc.dev/done-means-goodimplement this https://myceliumllc.dev/done-means-good as a git pre-commit check in this repo- Free, no warranty
- Version 1.1.2
- Claude Code · Codex · git
- Any UI framework
Three gates. Each one holds the ones before.
What you produced decides the gates. A later gate never excuses an earlier one: a built screen that fails meaning fails.
- You produced a wireframe
Gate 1 · Meaning
Who does this today. The journey. Each object’s nature and state. Whether the title tells the truth. The blind test both ways: title alone → objects, objects alone → title. The empty state. Two steps ahead.
From the book: Meaning, Where Does a Screen Come From?, Two Steps Ahead, Design What It Is, What Happens When They Finish?
- You produced a design
Gate 2 · Design
Meaning again, on the real composition. Contracts: a card is a list item, treatment matches importance, one look means one thing. Every state drawn. Language. Phone and desktop.
From the book: Why Are All Containers Bordered?, Every Treatment Is a Promise, Where Does My Attention Belong?
- You produced a build, in any framework
Gate 3 · Build
All of that again, on real data. Truth: one source per value, no client-side derivation, true actors, honest failures, complete counts, checked against reality. Craft in your framework.
A failed item is the agent’s next step, never a question for you. It fixes it, looks again, and only then finishes. It asks only what is genuinely someone else’s call.
Based on the book.
Done means good is based on Niko Tsybulevsky’s book Thoughts on Design and Humanity, about how a designed thing should feel, written as a discussion rather than a textbook. Part I, Meaning, is the source of the method. Done means good carries a working distillation, refined for the task, not the book’s chapters as they are.
A thing, on its own, means nothing.
- IMeaning
What a thing is before it looks like anything.
- IIRelationship
What it owes you, now that it means something.
- IIITrust
Promises kept over time.
- IVCharacter
Who the thing turns out to be.
- VHumanity
The person on the other end.
- The Field Kit
What you come back for: the tests and checklists.
Part I, Meaning, is signed off. Part II is under review, and the later parts are drafts in progress.
The hook won’t take “done” for an answer.
One script in plain Node.js, for Claude Code, Codex and git alike: no LLM judge, no network, and it writes nothing to your repo.
What it proves, honestly: your agent writes the record itself, so the hook proves the gates were walked for this exact change, not that the screen is good. Reading the record, and looking, is still yours.
- 1It runs when the agent tries to finish, or you commit.
Claude Code: Stop, SubagentStop and TaskCompleted. Codex: Stop and SubagentStop. Anything else: a git pre-commit hook. One Node script does all three, in any git repo.
- 2It finds what you produced.
Since the branch point: wireframes (LAYOUT.md, UI-DESIGN-BRIEF.md, wireframes/), designs (design/, mocks/, prototype/, design-system/), and UI code (Angular components and pages, .tsx, .jsx, .vue, .svelte, and styles under pages/, components/ and ui/). Specs and tests don’t count.
- 3It asks for the gates that fit the stage.
Code asks for all three gates, a design for the first two, a wireframe for Meaning.
- 4It reads the record for that exact change.
A hash of the diff names .done/<hash>.md, so one more edit means one more check. The agent makes its fixes first and writes the record last, at the path record-path prints for the final diff. Every row must be PASS or N/A, ending in RESULT: PASS. No record, or a failing one, and the agent is sent back.
- 5BLOCKED is an escalation, not an excuse.
RESULT: BLOCKED lets the agent stop for one row only: a decision only someone else can make, with the decision, its owner and what was already tried. “Couldn’t run it”, “no time” and “needs a look” are refused: those are the agent’s own work.
- 6It knows when to stop asking.
After three tries with no passing record, it lets the agent stop and tells you so, with the record’s path, rather than spending on. You can switch it off (DONE_MEANS_GOOD=off) or waive one change by name. Claude Code shows a block as “Stop hook error”: that’s the hook working.
.done/<hash>.md Stage: build (gates 1 + 2 + 3) Object Nature State Order rows orders due today Blind test title alone → orders to ship objects alone → "Due today" match: yes G1 Title tells truth PASS G2 375 and desktop PASS G3 Honest failures PASS … RESULT: PASS
Install it in Claude Code, Codex, or any agent.
Paste the line above into your agent. It reads this page, works out which agent, system and project it’s in, and tells you what it would install, where, and what it costs. It checks the download’s SHA-256 and reads the hook before running anything, and installs only when you say yes. You never edit a file by hand.
- macOS
- Tested
- Linux
- Tested
- Windows 11
- Tested 30 Nov 2026: self-test 64 of 64, and a live Claude Code session blocked, then finished with a passing record
- You need
- Node.js 18 or newer, and git. Nothing else: no bash, no Python.
- It enforces through
- Claude Code’s and Codex’s own hooks, with the method as a skill and a short section in the project’s agent instructions. It installs into the project you’re in, unless you choose every project. In any other agent, or for you, a git pre-commit check.
- License
- Free to use under CC BY-NC-SA 4.0 (method) and MIT (code); no warranty. Read the License
Prompt for Claude Code or Codex
Install the free "Done means good" 1.1.2 method for the coding agent you are (Claude Code or Codex) on this computer. Run every step yourself, never ask me to edit a file, and stop and tell me if any step fails. 1. Check that `node --version` (18 or newer) and `git --version` both work. If not, stop and tell me what's missing. 2. Download https://myceliumllc.dev/downloads/done-means-good.zip and https://myceliumllc.dev/downloads/done-means-good.zip.sha256 to a temporary folder. Compute the zip's SHA-256 (macOS/Linux: `shasum -a 256` or `sha256sum`; Windows PowerShell: `Get-FileHash -Algorithm SHA256`) and compare it, ignoring case, with the first word of the .sha256 file. If they differ, delete both files and stop. 3. Unzip it so it lands at DMG = `~/.local/share/done-means-good` on macOS/Linux, or `$env:LOCALAPPDATA\done-means-good` on Windows. The zip holds one top folder, `done-means-good`; unzip over any older copy there (overwrite; nothing needs deleting first). 4. Read `<DMG>/plugin/hooks/done-means-good.mjs` (about 51 KB of plain Node.js) and tell me in a few lines what it does. Then, in this project: if you are Claude Code, run `node "<DMG>/plugin/hooks/done-means-good.mjs" install-claude --project`; if you are Codex, run `node "<DMG>/plugin/hooks/done-means-good.mjs" install-codex --project`. It adds the skill, a section in the project's instructions file and the Stop hooks in the project's settings, and keeps everything already there. 5. Run `node "<DMG>/plugin/hooks/done-means-good.mjs" self-test` and show me its last line; every test must pass. 6. Tell me the next step: Claude Code, start a new session; Codex, open /hooks (or Settings > Hooks in the app), trust the two Done means good hooks, and start a new session.
Prompt for Git pre-commit only (any agent, or you)
Install the free "Done means good" 1.1.2 git pre-commit check in this repository. Run every step yourself, never ask me to edit a file, and stop and tell me if any step fails. 1. Check that `node --version` (18 or newer) and `git --version` both work. If not, stop and tell me what's missing. 2. Download https://myceliumllc.dev/downloads/done-means-good.zip and https://myceliumllc.dev/downloads/done-means-good.zip.sha256 to a temporary folder. Compute the zip's SHA-256 (macOS/Linux: `shasum -a 256` or `sha256sum`; Windows PowerShell: `Get-FileHash -Algorithm SHA256`) and compare it, ignoring case, with the first word of the .sha256 file. If they differ, delete both files and stop. 3. Unzip it so the plugin lands at DMG = `~/.local/share/done-means-good` on macOS/Linux, or `$env:LOCALAPPDATA\done-means-good` on Windows. The zip holds one top folder, `done-means-good`; unzip over any older copy there (overwrite; nothing needs deleting first). 4. In this repository, run `node "<DMG>/plugin/hooks/done-means-good.mjs" install-git-hook`. It keeps an existing pre-commit hook and runs it first. 5. Run `node "<DMG>/plugin/hooks/done-means-good.mjs" self-test` and show me its last line; every test must pass. 6. Tell me that from now on a commit that touches wireframe, design or UI files is refused until `.done/<hash>.md` passes, and that `node "<DMG>/plugin/hooks/done-means-good.mjs" check` shows where the work stands.
- Try it. Change a component in a UI repo and let the agent finish. It will be sent back to the gates.
- Keep records out of git if you like: add
.done/to.gitignoreor.git/info/exclude. - Remove it the same way: tell your agent “uninstall Done means good”. The steps are in the instructions above.
- About the SHA-256. It comes from this site, like the zip, so it catches a broken download, not a compromised site. The script is plain Node and small enough to read: your agent reads it before installing.
- Use it at your own risk. It’s free and comes with no warranty.
Make it yours.
The method is plain markdown in plugin/skills/done-means-good/SKILL.md. Add your house rules. The file patterns for each stage are at the top of plugin/hooks/done-means-good.mjs:
const WIRE_RE = /(^|\/)(LAYOUT|UI-DESIGN-BRIEF)\.md$|(^|\/)wireframes?\//; const DESIGN_RE = /(^|\/)(designs?|mocks?|mockups?|prototypes?|design-system)\/.*\.(html|css|scss|svg|png)$/; const CODE_RE = /\.(component|page|dialog|panel|section)\.(ts|html|scss)$|\.(tsx|jsx|vue|svelte)$|(^|\/)(pages|components|ui|shared|views|screens|app)\/.*\.(html|scss|css)$/;
Done means good is Niko Tsybulevsky’s methodology, based on his book Thoughts on Design and Humanity.
If it helped, support Niko’s work (pay what you want).
