Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add goldenwo/claude-state-drift --skill update-stategit clone --depth 1 https://github.com/goldenwo/claude-state-driftWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/goldenwo/claude-state-drift/update-state)<a href="https://agentmods.dev/skills/goldenwo/claude-state-drift/update-state"><img src="https://agentmods.dev/badge/skills/goldenwo/claude-state-drift/update-state/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/goldenwo/claude-state-drift/update-state"><img src="https://agentmods.dev/badge/skills/goldenwo/claude-state-drift/update-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00186 | $0.01980 |
| Opus 5 | $0.00093 | $0.00990 |
| Sonnet 5 | $0.00037 | $0.00396 |
| Haiku 4.5 | $0.00019 | $0.00198 |
Grade A, and why
update-state scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
update-state
Draft a precise edit to .claude/state.json and stop. Do not auto-write.
When to invoke
- After substantial work in the session: a deliverable shipped, a new one started, scope deferred, an open question resolved.
- When the user asks to "update state", "log progress", "snapshot where we are", "checkpoint".
- Before declaring a major task done — so the state.json catches up to reality.
Skip for trivial updates (typo fixes, single-line refactors). Trust the SessionStart auto-orientation; only intervene when meaningful state changes.
Procedure
-
Read current state.
Read .claude/state.json. If absent, create the initial scaffold perSCHEMA.md(ask the user forobjective+version+ firstcurrent_focusif needed). -
Inspect what's changed.
git statusandgit diff --cachedfor staged work.git log --since="<last_updated value>" --onelinefor commits since the last state update (ISO timestamp goes after--since=; do NOT use<ts>..HEADsyntax — that's for refs, not timestamps).- Re-read recent assistant turns / TodoWrite list to spot status changes the agent itself made.
-
Detect candidate transitions.
- In-progress deliverables that look done (commits/PRs landed, tests pass, files exist as planned) → propose
status: done+completed_at: <today>. - New work not in
deliverables[]→ propose new entry. Ask the user forid,title,version(or infer from current focus / commits). - Open questions resolved by recent work → propose
resolved_at+resolution. - New deferrals discovered (scope explicitly punted) → propose new deliverable with
status: deferred+deferred_reason. - Items waiting on external factor →
status: blockedwithblocked_on+since.
- In-progress deliverables that look done (commits/PRs landed, tests pass, files exist as planned) → propose
-
Draft the diff. Compose a single
Editthat updates.claude/state.json:- Always update
last_updatedto current ISO timestamp. - Update
current_focusif it's stale. - Apply the deliverable/question changes from step 3.
- Preserve order and formatting (2-space indent, trailing newline).
- Always update
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 96 lines · 186 tokens per session scan A e2ae5f957e61
update-state is a skill published in the GitHub repository goldenwo/claude-state-drift (1 stars, last pushed 23d ago), licensed MIT. It adds 186 tokens to every session and 1,980 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
recall
Must be used at the start of any non-trivial task involving code changes, debugging, repo exploration, file inspection, or environment/tooling investigation to surface stored guidance before analysis or tool use.
alive:session-history
Revive sessions (quick or heavy), browse, and search — 'what happened recently?', 'find the session where we discussed X', 'revive yesterday's session'. For single-session recall and multi-session browsing. If the human needs to merge multiple sessions into one working context or detect conflicts between parallel…
cross-session-handoff
Read, write, snapshot, and lock .arcgentic/state.yaml across planner, dev, audit, and optional test sessions.
knowledge-priming-refiner
Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create…
alive-inbox
Scan 03Inbox/ for unrouted files, present routing suggestions.
alive-mine
Nightly scan of session transcripts -- extract decisions, tasks, people, insights.