ledger
Skill0 starsChanged 15 days agoCC0-1.0View on GitHub
Use when you create something that has to be removed later (a sandbox, worktree, branch, container, process, deployment or scratch directory), when you hand work and what it holds to another thread or task, or when you clean up after a thread or task. Covers the `ledger` CLI: keys, cleanup commands and instructions, handoff between ledgers, and cleaning up a ledger. Not for running a sandbox (`boat`) or the rest of finishing work (`executing`).
15 other projects use a version of this.
Adopted by
Most recently taken up by
- pche-broken-artist/forge-of-thoughttheir own version, first seen Nov 24, 2026
- sarpaydemir/blindfoldtheir own version, first seen Nov 22, 2026
- rufait77/ledgertheir own version, first seen Nov 1, 2026
- simota/agent-skillstheir own version, first seen Oct 23, 2026
- realdeal88/ledger-fatheir own version, first seen Oct 20, 2026
- runxhq/runxtheir own version, first seen Oct 13, 2026
Used with
Projects with it also use research and release.
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.
NVIDIASkillresearch
Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- simota/agent-skills★ 106same name
- runxhq/runx★ 97same name
- pche-broken-artist/forge-of-thought★ 15same name
- Dupflo/decision-ledger★ 6same name
- ForeignerfromJupiter/foreigners-pov★ 2same name
- IamK77/Skill★ 2same name
- qsunyi/skills★ 2same name
- daviesluo/ledger-skill★ 1same name
- eternal-roman/ledger★ 1same name
- ba0918/claude-skills★ 0same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- boatSkill
- contactSkill
- designingSkill
- epic-orchestrationSkill
- epic-planningSkill
- executingSkill
- public-assetsSkill
- reportingSkill
- reviewSkill
- standardsSkill
- task-authoringSkill
- task-ownershipSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
2
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
- Very specific: line 31
When you remove a resource yourself, rather than through ledger clean, run ledger release <key>.
- Distinctive: line 35
When a resource has to outlive your thread, move it to the ledger that is now responsible for it, and say so in the handover:
- Distinctive: line 45
When the work is finished, which for a thread means it is settled and for a task means it is closed:
“Common” is measured: kept by at least 6 in 10 of the 14 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.
Files
Each thread keeps a ledger: a list of everything it acquired, with the command or instructions that remove each one. Whoever cleans up, whether you later, another agent or a person, works from the ledger instead of searching your transcript. ledger --help lists the commands; ledger.md in the dotfiles says how it works.
Which ledger
Your thread's ledger is the default: ledger uses $T3CODE_THREAD_ID. When a resource belongs to a task rather than to one thread, such as a sandbox the next task in an epic will use, or a branch whose pull request is still open when your thread ends, it belongs in the task's ledger, task-<id>: hand it off there (see Hand off).
Record
Record a resource right after you create it, before anything else can fail:
ledger acquire worktree:/workspace/r/worktrees/x \
--cleanup "git -C /workspace/r worktree remove --force /workspace/r/worktrees/x" \
--verify "test -d /workspace/r/worktrees/x || exit 1"
ledger acquire gh:pr/wyrd-company/r/12 --instructions "Close PR #12 if it was not merged, then delete branch feat-x"- Key.
kind:name, naming the resource itself, so that every ledger names it the same way:boat:sandbox/<id>,worktree:<path>,branch:<repo-path>/<branch>,gh:branch/<owner>/<repo>/<branch>,docker:container/<name>,process:<pid>,dir:<path>,thread:<id>. No whitespace or@, and case is ignored. --cleanupis one shell command that removes the resource completely, with absolute paths and explicit ids, because it runs later from any directory. It must be safe to run twice: a resource handed off halfway can end up in two ledgers. Give--cleanupwhenever a command can do the job.--instructionsreplaces--cleanupwhen removing the resource needs judgement or a person: closing an unmerged pull request, deleting data someone may still want.--verifyis optional. It exits 0 while the resource exists and 1 once it is gone.ledger cleanuses it to release what was already removed without running the cleanup. Make any other failure exit with another status, so that an error is never read as "gone".
Boat sandboxes record themselves: the boat wrapper acquires the sandbox after boat new and boat fork, and releases it after boat delete. Check ledger list once after creating one; the wrapper warns rather than fails when it cannot record.
When you remove a resource yourself, rather than through ledger clean, run ledger release <key>.
Hand off
When a resource has to outlive your thread, move it to the ledger that is now responsible for it, and say so in the handover:
ledger handoff --to task-42 boat:sandbox/sbx_123Hand off to the thread or task that will use it next, and when nothing will, to the task the work belongs to. The receiving thread's own work then decides when it is removed.
Clean up
When the work is finished, which for a thread means it is settled and for a task means it is closed:
ledger listshows what is left. Hand off anything something else still needs.ledger clean --dry-run, thenledger clean. It releases each resource that--verifyshows is gone, and runs the cleanup of the rest, releasing those that succeed.- Each resource it keeps is a failed cleanup or a set of instructions. Do what each one says, then
ledger releaseit. What you cannot remove, such as a pull request still under review, you hand off to the task's ledger.
The step is done when ledger list is empty.
To clean up another thread's or task's ledger, pass --db <name>, and only once that thread is settled or that task is closed. ledger list --all shows every ledger.
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
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.

