walk-observer
Skill0 starsChanged 5 months agoMITView on GitHub
Walk a Guide. Activate when the user asks to walk, run, execute, perform, or resume a Guide; or when they reference a multi-step workflow by name and want it driven end-to-end. Trigger phrases: "walk the X guide", "run the X guide", "execute the X workflow", "drive the X runbook", "resume the X walk".
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- walk-inlineSkill
- walkSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
Run prerequisites declared in GUIDE.md before any step.
- Distinctive: line 45
When all prereqs pass:
- Very specific: line 73
When a verifier rejects or an action exits non-zero, honor the step's on_failure.strategy:
- Distinctive: line 83
When all steps reach terminal status without failure:
- Distinctive: line 90
Never touch run files directly — only through MCP tools.
- Very specific: line 91
Use only the walk_* hint-surface tools (plus Bash, AskUserQuestion, Read).
- Distinctive: line 93
One active walk per Guide: If the current-run query returns a non-terminal run id, do not start a new one without explicit user action.
- Very specific: line 94
Resume safety: When resuming, do not auto-decide steps that were running or verifying mid-walk.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Walking a Guide
You are the Guide v0.2 runtime for this session. All state mutations go through the guide MCP server tools, never through direct file I/O on run files.
This Skill is configured for observer mode. A harness-side observer reconstructs tool calls, prompts, and step-reasoning prose into the audit log automatically. Your job is the small hint surface — call walk_* tools at step boundaries; let the observer do the rest.
If at session start you see walk_start_run, walk_update_step, walk_append_event in the MCP tools instead of the walk_begin / walk_step / walk_end hint set, the runtime degraded from observer to in_band because the observer was unhealthy at startup (ADR 012). Tell the user once, then ask them to re-run guide setup with --mode inline so the installed Skill matches the active toolset.
Required MCP tools
walk_begin({guide_root, parent_run_id?}) → {run_id, position}— start a walk.parent_run_idis set when this walk was triggered by aguide_refaction in a parent step.walk_step({run_id, step_id, phase, verdict?, verify_result?, reasoning_anchor?}) → {position}— step lifecycle hint.phase: "enter"opens a step;phase: "exit"closes it with averdict(succeeded/failed/skipped/rolled_back).walk_end({run_id, status}) → {position}— terminate the walk with the run's finalRunStatus(succeeded/failed/abandoned).walk_mark_prereqs_checked({run_id, value: true}) → {run_id, position}— project the prereqs-passed boolean into the run frontmatter.walk_current({guide_id, wait_for_position?}) → {run_id, stale}— check for an active run (used on resume).walk_load_run({run_id, wait_for_position?}) → {run, stale}— re-read state when you need it (resume, passing context to a verifier).walk_read_step({guide_root, step_id})— read a step's frontmatter and body.
Prerequisites phase
Run prerequisites declared in GUIDE.md before any step. For each:
performer: agentand acheck:script provided → run viaBash.performer: human→ ask viaAskUserQuestion.
When all prereqs pass:
walk_mark_prereqs_checked({run_id, value: true})
Prereqs are NOT steps; do not synthesize a prereqs step in the audit.
Step protocol
For each step in topological order:
walk_step({phase: "enter", step_id}). Save the returnedpositionif you need read-after-write later.- Execute the action by
action.type:- script →
Bash. Run the ABSOLUTE path fromwalk_read_step'sresolved_scripts.action(cwd-independent; the bareaction.scriptis Guide-root-relative and will fail if your shell's cwd isn't the Guide root). Honorargs+timeout_seconds. - manual / prompt → emit instructions; yield; the next user message is the report (the observer captures it as
human.reportautomatically). - skill_ref → activate the referenced Skill.
- guide_ref → call
walk_begin({guide_root: <sub>, parent_run_id: <current>}); block until the sub-walk terminates.
- script →
- Apply
interactionsperwhenusingAskUserQuestion(confirm/choice/text) or tool-less turn capture (multiline). - Execute the verifier by
verify.type:- script →
Bash(runresolved_scripts.verify, the absolute path); check exit againstsuccess_exit(default 0). Ifoutput_schema: json, parse stdout into a dict and pass asverify_result. - agent_judgment → reason briefly in prose (the observer captures it verbatim as
step.reasoning), thenwalk_step({phase: "exit", verdict, reasoning_anchor: true}). - human_confirm →
AskUserQuestionwith yes/no. - none → action completion is success.
- script →
walk_step({phase: "exit", verdict, verify_result?}). Passverify_resultwhen the verifier produced structured output (script exit + parsed JSON).
Failure handling
When a verifier rejects or an action exits non-zero, honor the step's on_failure.strategy:
- abort → terminate the run (mode-specific tool call below).
- retry → re-execute the action up to the declared retry count.
- recover → start a rescue sub-walk for the declared
recover_withGuide withparent_run_idset (observer) or as a child run (inline). On success, ifresume_after_recovery: true, retry the failed step. - ask →
AskUserQuestionwith options "retry / abort / mark succeeded / abandon".
Termination
When all steps reach terminal status without failure:
walk_end({run_id, status: "succeeded"})
Strict rules
- Never touch run files directly — only through MCP tools.
- Use only the
walk_*hint-surface tools (plusBash,AskUserQuestion,Read). The fine-grained inline-mode mutators (walk_start_run,walk_update_step,walk_append_event, …) don't exist in this mode (ADR 010). - Thread
positioninto reads viawait_for_positionif you need read-after-write consistency. If a read returnsstale: true, the observer hasn't caught up within ~2s; either retry or accept the stale view and move on. - One active walk per Guide. If the current-run query returns a non-terminal run id, do not start a new one without explicit user action.
- Resume safety. When resuming, do not auto-decide steps that were
runningorverifyingmid-walk. Always ask the user.
When NOT to use
- The user wants to author a Guide → use
/create-guide. - The user wants to validate or inspect a Guide statically → use
guide validatevia Bash. - The Guide has no human/agent judgment steps → suggest
python -m adapters.cli.runfor a fully non-interactive drive.
References
- SPEC.md — the contract.
- ARCHITECTURE.md — how the runtime composes.
- docs/adapters/claude-code.md — Claude Code specific mappings.
- .planning/decisions/010-audit-mode-tool-registration.md — why the two protocols exist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

