Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add VoDaiLocz/kilo-kit-mcp --skill workflow-state-machinesgit clone --depth 1 https://github.com/VoDaiLocz/kilo-kit-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/workflow-state-machines)<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/workflow-state-machines"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/workflow-state-machines/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/workflow-state-machines"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/workflow-state-machines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Memory Poisoning · line 31 Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00046 | $0.00857 |
| Opus 5.5 | $0.00018 | $0.00343 |
| Sonnet 5.5 | $0.00009 | $0.00171 |
| Haiku 4.5 | $0.00005 | $0.00086 |
Grade A, and why
workflow-state-machines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
- Define State Schema: Identify all necessary data attributes required for the entire lifecycle.
- Decompose into Nodes: Break down the process into atomic, idempotent functions.
- Map Edges: Implement conditional routing logic (e.g., success paths, failure paths, human-approval branches).
- Configure Persistence: Set up a store for state snapshots and execution history.
- Implement HITL Points: Add explicit breakpoints where the workflow yields control to the user.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 69 lines · 46 tokens per session scan A e4a2724e13a2
workflow-state-machines is a skill published in the GitHub repository VoDaiLocz/kilo-kit-mcp (28 stars, last pushed 15d ago), licensed Apache-2.0. It adds 46 tokens to every session and 857 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
workflow-state-machines compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| workflow-state-machinesVoDaiLocz/kilo-kit-mcp | Skill | 28 | 15d ago | Apache-2.0 | A | 46 | Claude Code, Codex |
| llm-structured-outputhybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 42 | Claude Code, Codex |
| drizzle-orm-experthybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 41 | Claude Code, Codex |
| landing-page-generatorhybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| tdmcp-pipelinehybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 128 | Claude Code, Codex |
| memb-skillhybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| startcycle-graph-userhybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 102 | Claude Code, Codex |