Skip to content
Back to skills

State Machine Change

ASecurity

Modify the Session or Grant state machine in packages/core with exhaustive transition tables and tests. Use whenever a state, event, guard, or effect changes.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 8, 2026
ai-agentsbash

Security analysis

A100/100

Scanned October 8, 2026

npx -y skills add NicholasFlemmer/styx-app --skill state-machine-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of State Machine Change?

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

Security grade badge for State Machine Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nicholasflemmer-state-machine-change/badge)](https://www.skillsdirectory.com/skills/nicholasflemmer-state-machine-change)

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-machine-change
description: Modify the Session or Grant state machine in packages/core with exhaustive transition tables and tests. Use whenever a state, event, guard, or effect changes.
argument-hint: '<session|grant> <change summary>'
allowed-tools: Read, Grep, Edit, Write, Bash(pnpm:*)
---

# State machine change: $ARGUMENTS

1. Quote the spec §1 rule being implemented (`/spec-lookup 1`).
2. Update the `State`/`Event` unions and the transition table in `packages/core/src/machines/<name>.ts` (object-literal table, not if-chains) so exhaustiveness errors surface missing cells. Invalid pairs return `null`.
3. Effects are data (`{ type: 'startExpiryTimer', grantId, at }`), executed by main.
4. Tests: table-driven over every (state, event) pair incl. invalid; invariants: needs-you never times out; `always` never expires; one open grant ask per session.
5. Update the Mermaid diagram in `docs/state-machines.md`.
6. Run `pnpm test -F @styx/core --coverage` (100% on machines) and the `state-machine-auditor` subagent.

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.

Comments

Loading comments…

Newsletter

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