From claude-workflow
A 3-step demo workflow that enforces completion via the verify-completion Stop hook. Use to test workflow enforcement or as a template for your own skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-workflow:workflow-demoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A 3-step demo skill that demonstrates workflow enforcement. The Stop hook blocks session completion until all steps are marked done.
A 3-step demo skill that demonstrates workflow enforcement. The Stop hook blocks session completion until all steps are marked done.
Write the workflow state file to begin tracking:
import json, os
state_path = os.path.expanduser("~/.claude/runtime/workflow-state.json")
os.makedirs(os.path.dirname(state_path), exist_ok=True)
state = {
"workflow": "workflow-demo",
"steps": ["initialize", "process", "finalize"],
"completed": ["initialize"],
}
with open(state_path, "w") as f:
json.dump(state, f, indent=2)
Announce: "Step 1/3 complete -- initialized workflow state."
Read the state file, perform the main work, then mark this step complete:
import json
state_path = os.path.expanduser("~/.claude/runtime/workflow-state.json")
with open(state_path) as f:
state = json.load(f)
state["completed"].append("process")
with open(state_path, "w") as f:
json.dump(state, f, indent=2)
Announce: "Step 2/3 complete -- processing done."
Mark the final step complete. The Stop hook will now allow session completion:
import json
state_path = os.path.expanduser("~/.claude/runtime/workflow-state.json")
with open(state_path) as f:
state = json.load(f)
state["completed"].append("finalize")
with open(state_path, "w") as f:
json.dump(state, f, indent=2)
Announce: "Step 3/3 complete -- all steps finished. Session completion is now allowed."
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub jl-cmd/claude-workflow --plugin workflow