workflow-state-machines
Use when designing, implementing, or debugging complex agentic workflows using state machine patterns.
Skill by VoDaiLocz
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/vodailocz-workflow-state-machines
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.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo 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 and code. 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/workflow-state-machines
What's inside
- Skill name
workflow-state-machines- Description
- Use when designing, implementing, or debugging complex agentic workflows using state machine patterns. Keywords: state machine, durable execution, agent orchestration, graph-based agents, workflow checkpoints, C4 protocol.
- License
- Apache-2.0
- Instructions
- 63 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Workflow State Machines ## Overview This skill provides a structured framework for building resilient, predictable agentic workflows using directed graph-based state machines. It emphasizes durable execution, explicit state transitions, and auditability to ensure complex agent interactions remain stable and debuggable. ## When To Use - When orchestrating multi-step, multi-agent processes that require durability and fault tolerance. - When you need to integrate human-in-the-loop (HITL) checkpoints into long-running tasks. - When debugging non-deterministic agent behavior through state history inspection. - When enforcing KILO-KIT C4 Runtime Protocol stages as formal state transitions. ## Core Concepts ### Directed Graph Topologies - **Nodes**: Represent distinct agent actions, tool executions, or decision points. - **Edges**: Define the transition logic based on input, output, or conditions. - **Immutable State**: Workflow state is treated as immutable, with transitions resulting in new state snapshots to ensure clean history. ### Durable Execution & Checkpointing - Workflows automatically persist the state after every transition. - **Resumption**: Failed workflows can resume precisely from the last successful node (checkpoint) without re-executing completed prior computations. ### Human-in-the-Loop (HITL) Interrupts - **Pause States**: Workflows can enter a suspended state to await external input, human approval, or parameter adjustments. - **Manual Overrides**: Operators can inject or edit state data while the workflow is paused before triggering the next transition. ### Time-Travel Debugging - All state changes are logged as events in a durable store. - **Replay**: Developers can isolate a failing branch, modify inputs, and re-execute that specific subgraph to verify fixes without running the entire workflow from scratch. ## Workflow 1. **Define State Schema**: Identify all necessary data attributes required for the entire lifecycle. 2. **Decompose into Nodes**: Break down the process into atomic, idempotent functions. 3. **Map Edges**: Implement conditional routing logic (e.g., success paths, failure paths, human-approval branches). 4. **Configure Persistence**: Set up a store for state snapshots and execution history. 5. **Implement HITL Points**: Add explicit breakpoints where the workflow yields control to the user. ## Key Patterns - **LangGraph Integration**: Use Graph-based definitions for complex stateful loops and branching. - **Temporal/Workflow Separation**: Decouple task execution (activities) from orchestration logic (workflow). - **C4 Protocol Mapping**: - `Brainstorming Gate` → Entry Node (Validation of Intent) - `Workflow Execution` → Graph Traversal - `Verification Gate` → Terminal Validation Node (Ensures success criteria) ## Quality Gates - **Loop Prevention**: Every cycle must have an exit condition or max-depth limit defined. - **Terminal States**: Every graph MUST have defined success and failure termination nodes. - **Shared State Safety**: Never share mutable state between parallel branches; always rely on state reducers or explicit state merging. - **Idempotency**: All node-level functions must be idempotent to support safe retries. ## Anti-patterns - **Unchecked Loops**: Infinite recursion in agent planning steps. - **Implicit State**: Relying on global variables instead of the explicit State Schema. - **Missing Terminal States**: Workflows that hang without finishing or erroring out. - **Heavy Side-Effects in Nodes**: Side effects that are difficult to rollback or reconcile during state replay. ## References - [KILO-KIT Documentation](https://kilo-kit.dev/docs) - [C4 Runtime Protocol Specification](https://kilo-kit.dev/protocol/c4) - [LangGraph Patterns](https://langchain-ai.github.io/langgraph/) - [Durable Execution Principles](https://temporal.io/docs)
From VoDaiLocz/kilo-kit-mcp, Apache-2.0.
More from VoDaiLocz/kilo-kit-mcp
- 0.654score
backend-development
VoDaiLocz
Build robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB…
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
mobile-design
VoDaiLocz
Mobile-first design thinking and decision-making for iOS and Android apps.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
databases
VoDaiLocz
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin).
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
docs-seeker
VoDaiLocz
Searching internet for technical documentation using llms.txt standard, GitHub repositories via Repomix, and parallel exploration.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
context-engineering
VoDaiLocz
Master context engineering for AI agent systems.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
better-auth
VoDaiLocz
Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
media-processing
VoDaiLocz
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation…
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
code-review
VoDaiLocz
Use when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before…
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
aesthetic
VoDaiLocz
Create aesthetically beautiful interfaces following proven design principles.
SkillAFreshness: A★ 28Claude Code +9 - 0.651score
lint-and-validate
VoDaiLocz
Automatic quality control, linting, and static analysis procedures.
SkillAFreshness: A★ 28Claude Code +9 - 0.651score
i18n-localization
VoDaiLocz
Internationalization and localization patterns.
SkillAFreshness: A★ 28Claude Code +9 - 0.649score
agentic-rag
VoDaiLocz
Use when building self-correcting retrieval systems for AI agents.
SkillAFreshness: A★ 28Claude Code +9
Compare and alternatives
Featured in
Signals
- Stars
- 28
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Aug 21, 2026 (2 months ago)
- Last release
- Oct 24, 2026 (3 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/VoDaiLocz/kilo-kit-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from VoDaiLocz
- 0.654score
better-auth
VoDaiLocz
Implement authentication and authorization with Better Auth - a framework-agnostic TypeScript authentication framework.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
aesthetic
VoDaiLocz
Create aesthetically beautiful interfaces following proven design principles.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
mobile-design
VoDaiLocz
Mobile-first design thinking and decision-making for iOS and Android apps.
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
backend-development
VoDaiLocz
Build robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB…
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
media-processing
VoDaiLocz
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation…
SkillAFreshness: A★ 28Claude Code +9 - 0.654score
code-review
VoDaiLocz
Use when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before…
SkillAFreshness: A★ 28Claude Code +9
Cite this page
workflow-state-machines skill. Agent Mart. https://agentmart.dev/skills/vodailocz-workflow-state-machines (last updated 2026-10-24)