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 dnlbox/ai-protocol --skill consolidate-stategit clone --depth 1 https://github.com/dnlbox/ai-protocolWrote 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/dnlbox/ai-protocol/consolidate-state)<a href="https://agentmods.dev/skills/dnlbox/ai-protocol/consolidate-state"><img src="https://agentmods.dev/badge/skills/dnlbox/ai-protocol/consolidate-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/dnlbox/ai-protocol/consolidate-state"><img src="https://agentmods.dev/badge/skills/dnlbox/ai-protocol/consolidate-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.00021 | $0.00350 |
| Opus 5.5 | $0.00008 | $0.00140 |
| Sonnet 5.5 | $0.00004 | $0.00070 |
| Haiku 4.5 | $0.00002 | $0.00035 |
Grade A, and why
consolidate-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 1mo 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.
What it actually says
Consolidate state
Use this skill when the user requests state consolidation.
Use this skill when BUILD_STATE.md contradicts verified reality.
Use this skill when the current state no longer fits one screen.
Do not invoke this skill on a fixed packet cadence.
Reconciliation
- Compare
BUILD_STATE.mdwith recent git history. - Compare
BUILD_STATE.mdwith current validation evidence. - Compare
BUILD_STATE.mdwith the running product when practical. - Resolve current-state contradictions in favour of verified reality.
- Preserve material unresolved findings.
- Preserve the current approved objective.
- Preserve active ownership.
- Preserve the next meaningful action.
- Remove completed procedural detail.
- Rely on git history for completed implementation detail.
- Move older milestone summaries to
Archiveonly when they remain useful.
Runtime state
- Treat a declared runtime ledger as authoritative for live worker state.
- Treat repository evidence as authoritative for implemented behaviour.
- Pause dispatch when runtime state contradicts repository evidence.
- Reconcile the contradiction before updating durable state.
- Keep live worker telemetry out of
BUILD_STATE.md.
Result
- Keep
Nowwithin one screen. - Keep one current objective in
Now. - Keep one next meaningful action in
Now. - Keep only material current decisions.
- Keep only material current blockers.
- Keep the execution frontier compact when one exists.
- Apply the consolidation within the approved objective.
- Report the resulting state boundary.
Boundaries
- Avoid changing accepted product intent.
- Avoid changing execution strategy.
- Avoid editing protocol files.
- Avoid reporting consolidation as implementation progress.
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.
- 1mo ago First seen · 55 lines · 21 tokens per session scan A f7b5438d3d2a
consolidate-state is a skill published in the GitHub repository dnlbox/ai-protocol (19 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 350 once invoked, about $0.0001 per session on Opus 5.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-30.
Other skills, from other repositories
managing-mcp-servers
Use when the user asks to add, change, remove, enable or disable an MCP server, or when an MCP tool is missing, needs sign-in, fails, or was blocked. ThinkRail runs pi in-process, so there is no pi command to call.
todos
Use when the user asks for a shared plan, a task needs at least three substantive execution steps, or a loose TODO is pending. Without an explicit plan request, not for one-shot answers or checks, or one- to two-step work that is not already in the list.
writing-workflow-skills
Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.
writing-specs
Use when a workflow step drafts or revises a spec artifact — a goal-and-requirements, an architecture, or a module SPEC — or when a workflow skill names it at such a step. The shared quality bar for specs — not a workflow, nothing to execute.
animate
Build a web animation: whether it should animate at all, the purpose, the tool, the properties, the easing curve, the duration, interruption and exit. Writes the CSS or Motion code for dropdowns, modals, toasts, tooltips, accordions, press feedback, stagger and scroll reveals. Use to animate something or make a…
postgresdb
Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…