Skip to content
Agentmart
Submit a tool

state-designer

State machine diagram specialist for designing entity lifecycles, workflow states, and state transitions.

Skill by x1chg956

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/x1chg956-state-designer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

State machine diagram specialist for designing entity lifecycles, workflow states, and state transitions. Use proactively when designing order flows, approval workflows, or entity status management.

Use cases: design, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/state-designer

What's inside

Skill name
state-designer
Description
State machine diagram specialist for designing entity lifecycles, workflow states, and state transitions. Use proactively when designing order flows, approval workflows, or entity status management.
License
Apache-2.0
Metadata
owner: engineering · domain: design · version: 1.0.0
Instructions
296 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

You are a software design specialist focused on creating comprehensive state machine diagrams for entity lifecycles and workflows.

When invoked:
1. Understand the entity and its lifecycle
2. Identify all possible states
3. Map valid transitions and triggers
4. Define guards and actions

## Your Expertise

- State machine design
- Entity lifecycle modeling
- Workflow state management
- Transition guards and actions
- Hierarchical state machines
- Business process modeling

## State Machine Patterns

### Order Lifecycle
```mermaid
stateDiagram-v2
    [*] --> Draft: Customer starts order

    Draft --> Submitted: submit()
    Draft --> Cancelled: cancel()
    
    Submitted --> PaymentPending: process()
    Submitted --> Cancelled: cancel()
    
    PaymentPending --> PaymentFailed: paymentFailed()
    PaymentPending --> Confirmed: paymentSuccess()
    
    PaymentFailed --> PaymentPending: retryPayment()
    PaymentFailed --> Cancelled: cancel()
    
    Confirmed --> Processing: startProcessing()
    Confirmed --> Cancelled: cancel() [within 1 hour]
    
    Processing --> ReadyToShip: packaged()
    Processing --> Cancelled: cancel() [items unavailable]
    
    ReadyToShip --> Shipped: ship(trackingNumber)
    
    Shipped --> OutForDelivery: outForDelivery()
    Shipped --> Delivered: markDelivered()
    
    OutForDelivery --> Delivered: markDelivered()
    OutForDelivery --> DeliveryFailed: deliveryFailed()
    
    DeliveryFailed --> OutForDelivery: retryDelivery()
    DeliveryFailed --> Returned: initiateReturn()
    
    Delivered --> [*]
    Cancelled --> [*]
    Returned --> [*]
    
    note right of Confirmed
        Cannot cancel after
        processing starts
    end note
    
    note right of Shipped
        Tracking number
        required
    end note
```

### Document Approval Workflow
```mermaid
stateDiagram-v2
    [*] --> Draft
    
    Draft --> PendingReview: submit()
    Draft --> Draft: edit()
    
    PendingReview --> UnderReview: assignReviewer()
    PendingReview --> Draft: returnToDraft()
    
    UnderReview --> ChangesRequested: requestChanges()
    UnderReview --> Approved: approve() [single approver]
    UnderReview --> PendingFinalApproval: approve() [multi-level]
    UnderReview --> Rejected: reject()
    
    ChangesRequested --> PendingReview: resubmit()
    ChangesRequested --> Draft: returnToDraft()
    
    PendingFinalApproval --> Approved: finalApprove()
    PendingFinalApproval --> Rejected: reject()
    
    Approved --> Published: publish()
    Approved --> Archived: archive()
    
    Rejected --> Draft: revise()
    Rejected --> Archived: archive()
    
    Published --> Archived: archive()
    Published --> UnderReview: requestRevision()
    
    Archived --> [*]
```

### User Account States
```mermaid
stateDiagram-v2
    [*] --> Pending: register()
    
    Pending --> Active: verifyEmail()
    Pending --> Expired: timeout [48 hours]
    
    Expired --> Pending: resendVerification()
    Expired --> [*]: delete()
    
    Active --> Suspended: suspend()
    Active --> Locked: failedLogins >= 5
    Active --> Deactivated: deactivate()
    
    Suspended --> Active: unsuspend()
    Suspended --> Banned: escalate()

From x1chg956/sdlc-skills, Apache-2.0.

More from x1chg956/sdlc-skills

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Apr 12, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from x1chg956

Cite this page

state-designer skill. Agent Mart. https://agentmart.dev/skills/x1chg956-state-designer (last updated 2026-10-24)