madappgang/claude-code/state-machine
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Task lifecycle state transitions with validation gates. Defines states, triggers, and required proofs.
Install
npx vskill@latest install madappgang/claude-code/state-machineSKILL.md
plugin: autopilot updated: 2026-01-20
Task Lifecycle State Machine
Version: 0.1.0 Purpose: Manage task state transitions with validation gates Status: Phase 1
When to Use
Use this skill when you need to:
- Understand valid state transitions for tasks
- Implement validation gates before state changes
- Handle iteration loops (In Review -> In Progress)
- Manage escalation to blocked state
- Enforce iteration limits
States
State Definitions
| State | Description | Entry Condition | |
|---|---|---|---|
| Todo | Task queued for execution | Created with @autopilot label | |
| In Progress | Task being executed | Passed start gate | |
| In Review | Awaiting validation | Proof generated | |
| Done | Task completed | Auto-approved or user approved | |
| Blocked | Cannot proceed | Dependency issue or escalation |
Transition Triggers
| From | To | Trigger | Gate | |
|---|---|---|---|---|
| Todo | In Progress | Label @autopilot added | Has acceptance criteria | |
| In Progress | In Review | Work complete | Proof >= 80% confidence | |
| In Review | Done | Confidence >= 95% | Auto-approval | |
| In Review | Done | User approves | User feedback = APPROVAL | |
| In Review | In Progress | Confidence < 80% | Validation failed | |
| In Review | In Progress | User requests changes | Feedback = REQUESTED_CHANGES | |
| In Progress | Blocked | Max iterations | Escalation | |
| * | Blocked | Unresolvable blocker | Manual trigger |
Validation Gates
Gate 1: Start Work (Todo -> In Progress)
Gate 2: Submit for Review (In Progress -> In Review)
Gate 3: Complete (In Review -> Done)
Iteration Limits
| Loop Type | Max Iterations | Escalation | |
|---|---|---|---|
| Execution retry | 2 | Block task | |
| Feedback rounds | 5 | Manual intervention | |
| Quality check fixes | 2 | Report to user |
Implementation
State Transition Diagram
Examples
Example 1: Happy Path
Example 2: Iteration Loop
Example 3: Escalation
Best Practices
- Always validate before transitioning
- Log all transitions for audit trail
- Include proof artifacts when transitioning to In Review
- Enforce iteration limits to prevent infinite loops
- Escalate gracefully rather than failing silently
- Comment on Linear when state changes for visibility
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/autopilot/skills/state-machine/SKILL.md
Popularity
- Repository stars
- 268
- Repository forks
- 32
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/madappgang/claude-code/state-machine)