status-machines
OfficialPrevent invalid status transitions
Authorvobase
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Many business domains require strict lifecycle control for record statuses; unchecked or arbitrary status updates lead to data corruption, broken reports, and lost auditability. This Skill enforces explicit transition maps and server-side validation so handlers cannot perform invalid state jumps or trigger side effects before validation.
Core Features & Use Cases
- Explicit transition maps: Keep allowed edges next to handlers so reviewers see permitted flows at a glance.
- Server-side validation and error semantics: Reject invalid transitions with clear 422 responses and preserve the prior state.
- Audit trail integration: Record old and new status and the actor for every accepted mutation to support accountability and debugging.
- Use Cases: Invoices, purchase orders, payments, and shipments where transitions like draft → paid must be guarded and terminal states enforced.
Quick Start
Use the status-machines skill to validate and apply a status change for an invoice, rejecting invalid transitions and writing an audit entry.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: status-machines Download link: https://github.com/vobase/vobase/archive/main.zip#status-machines Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.