audit-state-machines

audit-state-machines is a skill for Claude Code from doodledood/manifest-dev. It costs 105 tokens per session (709 once invoked), scanned A, original, MIT.

A codebase audit that finds explicit and hidden state machines and checks their allowed transitions. It reports bugs such as reachable invalid states, forbidden changes, and states with no exit, without changing code.

In plain words
What is it for?
Use it to examine a whole repository or selected area, confirm state-machine problems against the code, describe fixes, and optionally turn findings into tickets.
Why use it?
It reveals lifecycle bugs that can be spread across status fields or combinations of flags and may be missed by reading individual functions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Audit [the scope] for state machines, implicit and explicit, following `../review-code/references/code-bugs.md` → *State machines*. Every bug you find counts, w.

Part of the manifest-dev plugin — 21 skills shipped together

Good fit Use it to examine a whole repository or selected area, confirm state-machine problems against the code, describe fixes, and optionally turn findings into tickets.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/doodledood/manifest-dev
agentmods
npx agentmods add skills/doodledood/manifest-dev/audit-state-machines

Made for: Claude Code.

Or install manifest-dev, the plugin that ships this one along with the rest of its 21 skills.

Wrote 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.

agentmods badge for audit-state-machines

README.md
[![agentmods](https://agentmods.dev/badge/skills/doodledood/manifest-dev/audit-state-machines/github.svg)](https://agentmods.dev/skills/doodledood/manifest-dev/audit-state-machines)
Your own site
<a href="https://agentmods.dev/skills/doodledood/manifest-dev/audit-state-machines"><img src="https://agentmods.dev/badge/skills/doodledood/manifest-dev/audit-state-machines/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.

agentmods 80×15 button for audit-state-machines

Your own site · 80×15
<a href="https://agentmods.dev/skills/doodledood/manifest-dev/audit-state-machines"><img src="https://agentmods.dev/badge/skills/doodledood/manifest-dev/audit-state-machines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.00709
Opus 5.5 $0.00042 $0.00284
Sonnet 5.5 $0.00021 $0.00142
Haiku 4.5 $0.00011 $0.00071

Measured 22d ago against content hash d513513454b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-state-machines 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 22d 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.

claude-plugins/manifest-dev/skills/audit-state-machines/SKILL.md · 23 lines

What it actually says

Audit a codebase for state-machine bugs. A state machine is a value whose changes follow a lifecycle — a status, or flags whose combinations act as states — and ../review-code/references/code-bugs.md → State machines says how to find one, rebuild it, check it and confirm what the check finds. figure-out runs the audit with its whole investigation discipline; this skill adds the brief below and the offer at the end.

Invoke the figure-out skill with the brief below, the arguments given, --autonomous and --no-docs. --no-docs keeps figure-out's project-document writes out of the audited project; forward --no-log when given. With no path or area, the scope is the whole repository. With no codebase in reach, say so and stop.

Brief:

Audit [the scope] for state machines, implicit and explicit, following ../review-code/references/code-bugs.md → State machines. Every bug you find counts, whether or not anything changed recently: this is an audit, not a review of a change. Machines written as instructions count too, checked as that section says.

  • List every machine in the scope searched: what it tracks, explicit or implicit, its states, and its writers by file and line. Say which parts of the scope you searched and which you did not, with why. On a large repository, record each machine in your log, when one is kept, as you finish it.
  • Rank confirmed bugs by consequence. For each, give each site by file and line, the sequence that reaches the bad state, and the model that found it — its saved path, or its scratch path when no log is kept. For a bug in an implicit machine, the fix is to make the machine explicit: one owner of its transitions, and a test or a type that fails when anything else writes the state.
  • After the bugs, ranked lower: each implicit machine with no bug but writers in several files, with the recommendation to make it explicit. A machine whose writers are all in one function gets no recommendation.
  • For a machine whose model found nothing, say what the model covered; never call the machine correct.
  • Write no file in the audited project. Models and scripts stay outside it.

When figure-out returns its read, give the person the read and offer to turn the confirmed bugs and the make-explicit recommendations into Tickets — self-contained work items in the project's tracker or files — recorded as debt, the issues found and not yet fixed. On their yes, invoke the ticket-up skill with those findings. With no person to answer, as when another workflow runs this skill, list the offer in the result and invoke ticket-up only where that caller's assignment authorizes writing Tickets.

Changes

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.

  1. 22d ago First seen · 23 lines · 105 tokens per session scan A d513513454b3

Subscribe to this mod's changes

audit-state-machines is a skill published in the GitHub repository doodledood/manifest-dev (80 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 709 once invoked, about $0.0004 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-11-08.

Related

audit-state-machines compared with skills from other repositories

audit-state-machines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
audit-state-machinesdoodledood/manifest-devSkill80yesterdayMITA105Claude Code
skeptical-triageavelikiy/great_ctoSkill11714d agoMITA49Claude Code
anti-patternsavelikiy/great_ctoSkill11714d agoMITA59Claude Code
observability-baselineavelikiy/great_ctoSkill11714d agoMITA100Claude Code
systematic-debuggingHigorAlves/orcSkill73d agoMITA33Claude Code
ci-routingHigorAlves/orcSkill73d agoMITA40Claude Code
error-handling-patternsHigorAlves/orcSkill73d agoMITA21Claude Code