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 re-anchorgit 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/re-anchor)<a href="https://agentmods.dev/skills/goldenwo/claude-state-drift/re-anchor"><img src="https://agentmods.dev/badge/skills/goldenwo/claude-state-drift/re-anchor/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/re-anchor"><img src="https://agentmods.dev/badge/skills/goldenwo/claude-state-drift/re-anchor.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.00108 | $0.01173 |
| Opus 5 | $0.00054 | $0.00587 |
| Sonnet 5 | $0.00022 | $0.00235 |
| Haiku 4.5 | $0.00011 | $0.00117 |
Grade A, and why
re-anchor 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 11d 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 — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
re-anchor
Pause, re-read the master objective, audit the current session's recent work for alignment, report. Inspired by Reflexion's "re-pass the original task each iteration" pattern.
When to invoke
- After ~30+ minutes of intensive work without checking back to the objective.
- When noticing scope drift mid-session (extra refactors, shaving yaks, exploratory rabbit holes).
- Before declaring a task complete — sanity-check that what was built is what was asked for.
- On user request: "re-anchor", "check we're on track", "are we still on the right path", "sanity check direction".
- After resuming a session that was paused for hours/days.
This skill does NOT modify state.json — that's update-state's job. Its only write is one verdict line appended to the state-history.jsonl audit log (step 4).
Procedure
-
Re-read the master objective.
Read .claude/state.jsonand extractobjective,version,current_focus, and the IDs ofin_progressdeliverables. -
Inspect recent work. Recent assistant turns (the last 10-20 messages of the session),
git log --oneline -10,git statusfor uncommitted changes. Identify what was actually worked on. -
Compare and assess. Produce a short audit with this structure:
=== RE-ANCHOR AUDIT === Original objective: <verbatim from state.json> Current version: <state.version> State.json current_focus: <verbatim> In-progress deliverables: <list of titles> Recent work (this session): <one-paragraph summary of what was actually done> Drift assessment: <on-track | mild | significant> - On-track: recent work directly advances in-progress deliverables AND current_focus - Mild: recent work is adjacent (e.g., refactor that supports the deliverable) but not on the critical path - Significant: recent work is unrelated to the objective; new scope discovered or attention captured elsewhere Recommendations: - <one to three concrete next moves> -
Log the verdict. Append the drift verdict to the project's append-only audit log so accumulated logs can answer "how often is drift actually caught?":
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.
- 11d ago First seen · 82 lines · 108 tokens per session scan A ec5329db8f4a
re-anchor is a skill published in the GitHub repository goldenwo/claude-state-drift (1 stars, last pushed 24d ago), licensed MIT. It adds 108 tokens to every session and 1,173 once invoked, about $0.0005 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
create-site
Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…
google-ads-audit
Google Ads account audit and business context setup. Use for account-health audits and business-context setup. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should I fix in my ads", or when the user is new to NotFair and hasn't run…
review
5-pass structured code review — correctness, security, performance, readability, consistency.
alive:system-upgrade
Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.
extract-resume
Parse a resume's uploaded PDF into structured JSON (basics, experience, projects, skills, education) and save it to the editor.
ensure-pipelines-host
Ensures the tenant has a usable Power Platform Pipelines host environment before any pipeline operation runs. Detects host state via the same resolution order as the Power Apps UI (org-db setting → BAP env metadata → default-custom-host setting); if any existing host (Platform or Custom) is found, uses it. If no host…