task-state-ledger
Skill27 starsChanged 8 months agoMITView on GitHub
Maintain an external state ledger for any multi-step task (3+ steps, multi-PR, anything spanning more than one turn or touching production). Triggered when you notice yourself re-deriving "where am I" with repeated gh/git/curl dumps, when a task crosses turns, or when the user asks "why are you stuck/lost". Prevents the "lost" failure mode: re-discovering state every turn instead of reading it.
In this repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .well-known/llms.txtllms.txt
- article-syndication-pipelineSkill
- autonomous-execution-mandateSkill
- aws-strands-harness-not-cloneSkill
- ci-gha-buildkite-patterns-not-cloneSkill
- cobble-hot-store-compare-not-cloneSkill
- colab-compute-honesty-not-cloneSkill
- comet-session-loggerSkill
- cyberstrike-compare-not-cloneSkill
- datadog-llm-obs-compare-not-cloneSkill
- deeppattern-discipline-honesty-not-cloneSkill
- gitlab-sandbox-allowlist-not-trustSkill
- graphifySkill
- halo-trace-optimize-not-cloneSkill
- ideabrowser-connectorSkill
- infoq-architect-honesty-not-cloneSkill
- jit-harness-compare-not-cloneSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- nvidia-specdecode-al-doctorSkill
- openui-catalog-compose-honestySkill
- package-manager-honesty-doctorSkill
- salt-code-policy-honesty-not-cloneSkill
- show-meSkill
- skool-headless-readerSkill
- tailscale-p2p-governance-not-cloneSkill
- thumbgate-board-loopSkill
- thumbgate-daily-discoveriesSkill
- thumbgateSkill
- token-shunt-honesty-not-cloneSkill
- typesafe-typed-questions-not-cloneSkill
- zvec-grep-compare-not-cloneSkill
- ci-failure-triageSkill
- evidence-first-answerSkill
- fleet-coordinationSkill
- revenue-truthSkill
- scope-disciplineSkill
- thumbgateSkill
- thumbgateSkill
- agent-architect-kitSkill
- Agent MemorySkill
- applyops-deploySkill
- article-syndication-pipelineSkill
- aws-strands-harness-not-cloneSkill
- bluesky-engagementSkill
- comet-session-loggerSkill
- configure-analyticsSkill
- context-engineering-checklistSkill
- gsd-ralph-context-loopSkill
- meko-datapack-honesty-not-cloneSkill
- mintlify-knowledge-honesty-not-cloneSkill
- model-distress-governanceSkill
- pull-funnel-dataSkill
- salt-code-policy-honesty-not-cloneSkill
- solve-architecture-autonomySkill
- thumbgate-blockedSkill
- ThumbGate Brand VoiceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
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
- Distinctive: line 67
When you run the verifying command, write its result + timestamp into the ledger.
- Very specific: line 68
One step
in_progressat a time: If you're tempted to start a second, stop — see the scope-discipline skill. - Distinctive: line 70
Log corrections inline: When "are you sure?" reveals you were wrong, write the WRONG→corrected line.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task State Ledger — Stop Getting Lost
The failure this prevents
You re-derive state every turn (where's the PR, what's on main, what's deployed)
with expensive gh/git/curl dumps. The dumps flood context, bury the signal,
and you lose the thread. This is the "constantly stuck and lost" failure. The fix
is mechanical: write state down once, update it as you go, read it instead of
re-deriving it. (Anthropic context-engineering: external structured note-taking
is one of the three core long-horizon techniques, alongside compaction and
sub-agents — see https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents)
The rule
For any task with 3+ steps or that crosses a turn, the FIRST action is to create
or open a ledger at .thumbgate/implementation-notes.md or a task-specific
gitignored .thumbgate/implementation-notes/<date>-<task>.md. Do not write
operator scratchpads under tracked .claude/implementation-notes/; those are
private working notes, not product documentation. The ledger is the single
source of truth.
Ledger format (keep it short — it's a dashboard, not a diary)
# <task> — <date>
## Goal (one sentence)
<the actual end state that means "done">
## Current step
<the ONE thing in flight right now>
## State (verified facts only — each with how/when verified)
- main HEAD: <sha> (git rev-parse origin/main @ HH:MM)
- deployed buildSha: <sha> (curl /health @ HH:MM)
- PR #NNNN: <state>/<mergeState> (gh pr view @ HH:MM)
## Steps (sequential — one in_progress at a time)
- [x] step that's done — evidence
- [ ] step in flight ← YOU ARE HERE
- [ ] next step
- [ ] ...
## Decisions & corrections
- <decision> because <why> (mark VERIFIED / UNVERIFIED)
- WRONG: <thing I claimed that was false> → corrected to <truth> @ HH:MM
## Blockers / open questions for the CEO
- <thing only the user can unblock>Protocol
- Open the ledger before doing anything else on a multi-step task. If it exists, read it instead of re-deriving state.
- Update "Current step" + "State" after each verification, not at the end. When you run the verifying command, write its result + timestamp into the ledger.
- One step
in_progressat a time. If you're tempted to start a second, stop — see thescope-disciplineskill. - Log corrections inline. When "are you sure?" reveals you were wrong, write the WRONG→corrected line. This stops you re-making the same wrong claim.
- Read the ledger at the start of every turn on a continuing task. That is how you stop being "lost": the answer to "where am I" is a file read, not 10 tool calls.
Anti-patterns
| Pattern | Fix |
10 gh/git calls to recover "where am I" | Read the ledger; it has verified state + timestamps |
| State lives only in your head across turns | State lives in the file; head is cache |
| "I'll remember to update notes at the end" | Update after each step — there may be no clean end |
| Re-running a verify you already ran this session | Check the ledger's State block first |
Exit criteria
The ledger's Goal is met, every step is [x] with evidence, and the State block's
verified facts confirm it (e.g. deployed buildSha == main HEAD). Then — and only
then — say "done", once, with the evidence inline.
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.

