Knowledge Ops
alirezarezvani/claude-skills
A skill your agent uses when a Head of Ops, Knowledge Manager, or TPM-Internal needs to author, validate, or clean up company SOPs and internal runbooks (procurement intake, vendor offboarding…
A skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…
$ npx skills add henryqin1997/statem --skill statem -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install henryqin1997/statem statem --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/statem/skills/statem .claude/skills/statem && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .claude/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statemType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add henryqin1997/statem --skill statem -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install henryqin1997/statem statem --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/statem/skills/statem .agents/skills/statem && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .agents/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add henryqin1997/statem --skill statem -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install henryqin1997/statem statem --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/statem/skills/statem .cursor/skills/statem && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .cursor/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/henryqin1997/statem.git --path plugins/statem/skills/statem--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add henryqin1997/statem --skill statem -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install henryqin1997/statem statem --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/statem/skills/statem .gemini/skills/statem && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .gemini/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install henryqin1997/statem statemInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add henryqin1997/statem --skill statem -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/statem/skills/statem .github/skills/statem && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .github/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add henryqin1997/statem --skill statem -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install henryqin1997/statem statem --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/henryqin1997/statem.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/statem/skills/statem .opencode/skills/statem && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "statem" agent skill from https://github.com/henryqin1997/statem/tree/main/plugins/statem/skills/statem into .opencode/skills/statem/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "statem", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
statemA skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…
Statem is an agent skill from henryqin1997/statem. Use when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state, transitioning with goto, saving progress, and reading history.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in DevOps & Cloud, covering Runbooks and postmortems. It works with Python. The repository describes itself as: CLI runbook for agent long run. The licence is Apache-2.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 8c3309a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
python3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Statem loads about 1.2k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 617 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from henryqin1997/statem at commit 8c3309a, republished under its Apache-2.0 licence (© henryqin1997). 617 words, ~1,151 tokens.
.claude/skills/statem/SKILL.md (or your agent's skills folder).Use statem when the task is long-running, iterative, easy to lose track of, or benefits from explicit agent state. Prefer it as a runbook, not as a rigid harness.
statem.yaml.python3 -m statem validate statem.yaml --json.python3 -m statem start statem.yaml --run-id <id> --json.python3 -m statem cur --run-id <id> --json.python3 -m statem goto <node> --run-id <id> --json.python3 -m statem save --run-id <id> --json.python3 -m statem history --run-id <id> --tail 10 --json.Use statem instead of python3 -m statem if the CLI is installed on PATH.
For dynamic servers, company machines, or disposable git checkouts, prefer a
machine-local state directory. Set STATEM_STATE_DIR once, for example
$HOME/.local/state/statem/<project>, so runtime state survives checkout
replacement. After moving to a new checkout, run statem start <spec> --run-id <id> once to rebind the run to the current spec path.
Commit YAML runbooks with the repo. Do not commit runtime state; treat .statem/
or STATEM_STATE_DIR as local, copy-on-use execution data.
Avoid /clear in normal loops. It flushes the conversation, including any
instructions that were supposed to run after it, and can lose useful intent that
was not written to durable files. Prefer explicit transitions plus safe
compaction.
Before a hard clear, generate a durable resume prompt:
python3 -m statem prompt --run-id <id>Paste the generated prompt immediately after /clear. The agent must recover
from .statem with start, cur, and history; it should not rely on any
pre-clear conversation.
For cyclic runbooks, prefer an explicit session hygiene node after a full loop. When continuing another cycle and context is noisy, generate a safe compaction instruction:
python3 -m statem compact-prompt --run-id <id>Run the generated /compact instruction through the host UI, then recover with
statem cur and statem history --tail 10. Do not use hidden self-messaging
to trigger compaction.
Agents may inspect the full graph with statem state; cur, next, and
goto are for disciplined execution and attention anchoring, not for hiding the
runbook.
When the host supports a Stop hook, users may opt into auto-loop behavior with
integrations/hooks/statem_stop_hook.py. The hook runs when the agent is about
to hand control back to the user. If a statem run is active, the current node is
not a terminal/handoff node, and there are outgoing transitions, it returns a
continuation prompt that tells the agent to inspect statem cur and keep
working from the current node.
Registration examples live in:
examples/hooks/README.mdexamples/hooks/codex-stop-autoloop.hooks.jsonexamples/hooks/claude-stop-autoloop.settings.jsonMerge the matching snippet into the host hook configuration and use an absolute script path if the hook is registered outside the statem repository.
Treat this as host-level glue. It must not advance state, run /clear, or hide
the graph. The agent should still transition only with statem goto.
.statem/ runtime state.in_hook for setup after entering a node.before_transfer for redo/check loops while still in the current node.
It is a spec field, not a CLI command; statem goto runs it automatically.out_hook to persist current-node progress before leaving.hook as prepare-transfer work after out_hook and before entering
the target. If a blocking edge hook fails, the pointer stays at the source so
the agent can retry.type: command for deterministic shell checks.type: predicate for file existence, non-empty files, text matches, and JSON-path checks.type: llm_review when another model, agent, or script should review before a transition.Do not manually edit .statem/runs/<run-id>/state.json unless the user explicitly asks for runtime surgery.
© henryqin1997, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/statem/skills/statem of henryqin1997/statem.
Open the folder on GitHubat commit 8c3309a
Statem next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Statem this skillhenryqin1997/statem | 1.3k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Knowledge Opsalirezarezvani/claude-skills | 28k | — | ~4.1k | Automated safety check: Pass | MIT | |
| Flowfile Node DevelopmentEdwardvaneechoud/Flowfile | 373 | — | ~9.3k | Automated safety check: Pass | MIT | |
| Halo Ticket Contextautomateyournetwork/netclaw | 675 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Python Debugpyopenclaw/openclaw | 392k | 1 repos | ~633 | Automated safety check: Pass | MIT | |
| Night Market Operationsathola/claude-night-market | 342 | — | ~3.6k | Automated safety check: Pass | MIT |
alirezarezvani/claude-skills
A skill your agent uses when a Head of Ops, Knowledge Manager, or TPM-Internal needs to author, validate, or clean up company SOPs and internal runbooks (procurement intake, vendor offboarding…
Edwardvaneechoud/Flowfile
End-to-end runbook for adding or modifying a Flowfile node type across all four layers (flowfilecore settings/graph/template, flowfilefrontend UI registry, flowfileframe Python API, flowfilewasm…
automateyournetwork/netclaw
Review a HaloPSA / HaloITSM ticket for resolution context — its detail, action/note history, linked assets, and related KB runbooks — read-only.
openclaw/openclaw
Debug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote attach.
athola/claude-night-market
Run and ship this repo: make targets, artifacts, release runbook.
tradermonty/claude-trading-skills
Track investment theses across their lifecycle — from screening idea to closed position with postmortem.
henryqin1997/statem
Manage long Claude Code work with statem state-machine runbooks.
Works with
Categories
A skill your agent uses when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state…. Statem is an agent skill from henryqin1997/statem. Use when a long coding or research task should be managed with statem state-machine runbooks, including creating specs, starting or resuming runs, checking current state, transitioning with goto, saving progress, and reading history.
Statem fits situations like: research task should be managed with statem state-machine runbooks; including creating specs; checking current state; transitioning with goto.
Run `npx skills add henryqin1997/statem --skill statem -a claude-code`. Or copy the skill folder (plugins/statem/skills/statem in henryqin1997/statem) into .claude/skills/statem in your project. Claude Code loads it when a task matches its description.
Run `npx skills add henryqin1997/statem --skill statem -a codex`. Or copy the skill folder (plugins/statem/skills/statem in henryqin1997/statem) into .agents/skills/statem in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add henryqin1997/statem --skill statem -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/statem, .gemini/skills/statem, .github/skills/statem and .opencode/skills/statem in your project.
Going by SKILL.md and its folder, Statem needs the command-line tools its instructions call (python3). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Statem is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Statem: Knowledge Ops (alirezarezvani/claude-skills, 28k stars), Flowfile Node Development (Edwardvaneechoud/Flowfile, 373 stars), Halo Ticket Context (automateyournetwork/netclaw, 675 stars) and Python Debugpy (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
henryqin1997 (a GitHub user) maintains it in henryqin1997/statem, which has 1,324 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 2, 2026.
Source: henryqin1997/statem on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.