ledger
Skill1 starsChanged 3 months agoMITView on GitHub
This skill should be used for anything involving the waybill ledger's storage, entry schema, configuration, or integrity rules — when the user asks to "initialize my waybill ledger", "set up waybill", "what's in my ledger", "what have I logged", "show my ledger", "verify my ledger", "what can waybill do", "waybill help", "how do I use waybill", or whenever another waybill skill (log, spend, sync, report, forecast) needs to read or write ledger data.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- pche-broken-artist/forge-of-thoughttheir own version, first seen Oct 4, 2026
- IamK77/Skilltheir own version, first seen Sep 19, 2026
- simota/agent-skillstheir own version, first seen Sep 17, 2026
- kaofelix/ledgertheir own version, first seen Aug 29, 2026
- Dupflo/decision-ledgertheir own version, first seen Aug 10, 2026
- qsunyi/skillstheir own version, first seen Jul 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- simota/agent-skills★ 87same name
- Dupflo/decision-ledger★ 6same name
- pche-broken-artist/forge-of-thought★ 3same name
- IamK77/Skill★ 2same name
- qsunyi/skills★ 2same name
- kaofelix/ledger★ 0same name
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.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 5 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
All deterministic operations go through the bundled dependency-free CLI — never hand-build ids or hand-append JSONL (hand-built events fail …
- Very specific: line 43
All data lives under $WAYBILL_HOME, defaulting to ~/.waybill/, itself a git repo (the audit trail).
- Very specific: line 61
Read references/schema.md (in this skill's directory) before constructing any entry, and references/methodology.md before making any claim …
- Very specific: line 67
When the user asks what Waybill can do (or for help with it), answer from the real surface, briefly: metering (every token from local …
- Distinctive: line 79
When the user asks to initialize or set up the ledger:
- Very specific: line 81
Run "${CLAUDE_PLUGIN_ROOT}/bin/waybill" init.
- Distinctive: line 110
Only then, optionally interview for the upgrade path (one question at a time, skip anything derivable): Jira project keys, GitHub repos, …
- Distinctive: line 115
Commit happens automatically.
- Very specific: line 119
Use jq over streams/*/*.jsonl for ad-hoc reads.
- Distinctive: line 134
Never invent tracker keys, points, or PR URLs.
- Very specific: line 139
Never edit or delete an existing line.
- Very specific: line 164
Conservation: Every metered token lands in exactly one account, including unattributed.
“Common” is measured: kept by at least 6 in 10 of the 5 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
The Waybill Ledger
The ledger is a local, append-only record of the user's shipped work, Claude's metered token usage, and the attribution joining the two. It exists to make value claims checkable: every number in a report traces to an event id, every event id recomputes from its content, and every metered token is conserved (Σ attributed = Σ observed, per session).
The engine
All deterministic operations go through the bundled dependency-free CLI — never hand-build ids or hand-append JSONL (hand-built events fail verification):
# If CLAUDE_PLUGIN_ROOT is empty in this context, locate the installed copy:
# ls -d ~/.claude/plugins/cache/waybill/waybill/*/ | sort -V | tail -1 → use <that>/bin/waybill
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" init # create/refresh the ledger home
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" bootstrap # receipt from local git history (zero auth)
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" mine --all # catch-up: meter every local transcript
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" append --stream ledger --event '<json>' --commit # the write path
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" status # one screen of ledger health — run this first when unsure
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" verify # full integrity + conservation check
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" query <question> --json # projections for reports (see report skill)Storage layout
All data lives under $WAYBILL_HOME, defaulting to ~/.waybill/, itself a
git repo (the audit trail). Streams are monthly-sharded, append-only JSONL;
every event has a deterministic ULID id and schema_version: 2:
~/.waybill/
├── config.json # scope, pricing, budgets, metering rules
├── identity.json # git emails, GitHub login, Jira accountId
├── streams/
│ ├── ledger/YYYY-MM.jsonl # work entries, pins, corrections
│ ├── usage/YYYY-MM.jsonl # metered usage events
│ ├── sessions/YYYY-MM.jsonl # per-session receipts (source totals)
│ └── exceptions/YYYY-MM.jsonl # attribution inbox, discrepancies, gaps
├── meter_state.json # per-session checkpoints
├── rollups/ # derived caches; deletable
└── pending-sessions/ # raw SessionEnd captures awaiting miningRead references/schema.md (in this skill's directory) before constructing
any entry, and references/methodology.md before making any claim about
time saved or work "with vs. without Claude".
"What can waybill do?"
When the user asks what Waybill can do (or for help with it), answer from
the real surface, briefly: metering (every token from local transcripts,
subagents included, attributed to the story it served), the receipts
readers (standup, spend, report/token pitch, retro, invoice, disclose,
salvage, forecast, sync), the zero-token dashboard, and the verification
pack (export --pack). Offer the two highest-value next steps for their
state — usually "initialize my waybill ledger" if uninitialized, else
"sync my ledger" or "what did I do yesterday". Never invent features;
the README's "How it works" table is the canonical list.
Initialization
When the user asks to initialize or set up the ledger:
- Run
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" init. It creates the home as a git repo, seedsidentity.jsonfromgit config(plusghlogin if already authenticated — never start an auth flow), seeds the repo scope from the current repo, auto-imports bundled Anthropic list-price rates (so USD costs appear from day one), checks whetherGITHUB_MCP_PATis set, reports the transcript-retention setting, and meters every existing Claude Code transcript — subagent transcripts included — so the first receipt carries real token totals. Months of history can take a minute; init prints its own progress line, so run it and wait rather than re-running. - Relay the setup summary faithfully — init prints a "Configured" /
"Needs action" report. Pricing auto-imports whenever the rate table is
empty (fresh install or an upgrade from a pre-rates version); it never
overwrites a rate set by hand. If init printed a re-price hint
(
waybill meter --all) orGITHUB_MCP_PATinstructions, relay them exactly. - Relay the retention result: if
cleanupPeriodDaysis 0, warn that transcripts are deleted immediately and metering will only cover sessions mined before deletion; otherwise recommend raising it (e.g. 99999) so history stays meterable. Never change the user's Claude Code settings yourself; tell them the exact edit. - Offer the zero-auth first value immediately:
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" bootstraprenders a receipt from local git history in under a minute. Two one-time upgrades worth offering in the same breath:"${CLAUDE_PLUGIN_ROOT}/bin/waybill" conventionsprints a CLAUDE.md block and commit-msg hook that make future commits receipt-friendly (install only with the user's yes, in their repo), and"${CLAUDE_PLUGIN_ROOT}/bin/waybill" dashboardwrites a local page the miner keeps fresh — their numbers, zero tokens to read. - Only then, optionally interview for the upgrade path (one question at a
time, skip anything derivable): Jira project keys, GitHub repos, default
branch, allocation history for utilization reporting. Update
config.jsonfields the user confirms (read, modify the specific field, write back, validate withjq -e .). - Commit happens automatically; nothing else to do.
Reading the ledger
Use jq over streams/*/*.jsonl for ad-hoc reads. Rules:
- Resolve supersedes: an event is authoritative iff no other event's
supersedespoints at itsid. When multiple entries share atracker_key, the latest authoritative one wins. - Totals: sum
pointsand token classes; sumtime_saved_hours.lowand.highseparately — never average them into a single number. - Metered token totals come from the usage stream (joined via
attribution.tracker_key), not from the manualtokensfield; label which one a report used.
Writing to the ledger
- Construct the event body per
references/schema.md— without anid(ids are derived from content). Unknown values arenull, never guessed. Never invent tracker keys, points, or PR URLs. - Append via
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" append --stream <stream> --event '<json>' --commit. It validates the envelope, seals pre-registered estimates with a SHA-256 escrow hash, refuses backdated pre-registration, assigns the ULID, appends to the right shard, and commits. - Never edit or delete an existing line. Corrections are new events with
kind: "correction"andsupersedesset to the old event'sid.
The ledger follows the user (career ledger & exit)
The ledger is the user's professional record, not the employer's or the plugin's. When they change jobs, want a copy, or want out:
- Portable career ledger — the externally-redacted full export:
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" export --format json --audience external(no--from/--to= all history). Keys, titles, and repos are deterministically pseudonymized; every number, date, evidence tier, and confidence survives — a career's worth of "shipped, with receipts" that can leave an employer without leaking one identifier. The internal mapping stays behind; note it exists. - The raw copy —
$WAYBILL_HOMEis a plain git repo:git cloneit anywhere (seedocs/multi-machine.mdfor keeping several machines on one ledger). No export step, no lock-in. - Full exit — the same clone IS the exit: plain JSONL + JSON readable
with
jq, schema documented inreferences/schema.md, engine optional ever after. Nothing is held hostage; say so plainly when asked.
Integrity invariants (enforce these everywhere)
- Append-only. History is the product; rewriting it destroys credibility.
- Conservation. Every metered token lands in exactly one account,
including
unattributed. Never re-bucket tokens by hand. - Evidence or null. A
time_saved_hoursvalue requires abasis; an artifact list requires real URLs the user or MCP tools provided. - Ranges, not points. Counterfactual estimates are always
{low, high}. - Own data only. The ledger records the user's work. Never query, store,
or compare individual colleagues' issues, PRs, or stats — decline and point
to
references/methodology.mdif asked. - On any doubt about ledger health, run
"${CLAUDE_PLUGIN_ROOT}/bin/waybill" verifyand report its findings verbatim.
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.

