Skip to content
Back to skills

State Machines

ASecurity

Use when an object moves through statuses such as an order, a payment or a deployment: models the states and allowed transitions explicitly, rejects transitions that are not allowed, records each transition with its time and cause, and tests every edge of the graph.

  • 1,567 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 26, 2026
ai-agents

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add autonomous-ai/openharness --skill state-machines --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of State Machines?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for State Machines
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/autonomous-ai-state-machines/badge)](https://www.skillsdirectory.com/skills/autonomous-ai-state-machines)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: state-machines
description: "Use when an object moves through statuses such as an order, a payment or a deployment: models the states and allowed transitions explicitly, rejects transitions that are not allowed, records each transition with its time and cause, and tests every edge of the graph."
---

List the states and draw the transitions before writing code. Put the transition table in one place and route every status change through it. Store the history of transitions rather than only the current state. Write a test per allowed transition and one that shows a forbidden one is refused.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.