Runtime, validators, and tooling for Guides — a Skill-compatible extension for multi-step processes with human/agent judgment.
Project description
Agent Guides
Guides — a Skill-compatible extension to the Agent Skills specification for multi-step processes that need human or agent judgment.
A Guide is a directory that conforms to the Skill spec and adds:
- A
GUIDE.mddescribing the workflow (summary, goal state, prerequisites, rollback). - A
steps/directory with one markdown file per step (action + optional verify + optional recovery + optional rollback). - An atomic, append-only state and audit history (markdown in v0.1; pluggable for future backends).
Every Guide is a valid Skill. Skill-only harnesses see a useful artifact; Guide-aware harnesses execute the workflow.
Install
uv tool install agentguides # puts `guide` on PATH
The guide binary is the hard prereq. Per-harness wiring (walk Skill,
walk-observer plugin, MCP server registration) is installed by
guide setup <harness> — one-time per machine; see the Run a Guide
section below and docs/cli/setup.md for the four
install dimensions (scope, mode, capability, install method).
Dev install from a checkout:
uv sync # creates .venv from pyproject.toml + uv.lock
Author a Guide
The guide new scaffolder produces a SKILL-folder skeleton that passes guide validate immediately:
guide new my-guide --into ./guides
# Scaffolded at ./guides/my-guide/{SKILL.md, GUIDE.md, steps/010-first-step.md, plugin.json, README.md}
guide validate --root ./guides/my-guide --book ./guides
# OK
For an interactive author flow that asks about the goal, step list, and recovery story, invoke the /create-guide Skill (skills/create-guide/). It calls guide new under the hood and edits the placeholders inline.
See docs/SPEC.md for the full data model and examples/books/postgres-upgrade/postgres-major-upgrade/ for a worked example.
Share a Guide
Guides distribute as folders (drop into ~/.claude/skills/), as plugin-per-guide (the folder + a plugin.json), or as a single-file .guide bundle for transport:
guide pack ./guides/my-guide --out ./dist
# → ./dist/my-guide-0.1.0.guide (ZIP + MANIFEST.json; sha256-stamped)
guide unpack ./dist/my-guide-0.1.0.guide /tmp/extracted
# → /tmp/extracted/my-guide/ (sha256 + spec_version verified before write)
For multiple related Guides under a single plugin, see the examples/books/db-ops/ book example (and examples/books/postgres-upgrade/).
Run a Guide
Three execution paths:
1. In Claude Code (LLM-driven, full feature set):
guide setup claude-code # one-time per machine: installs walk Skill + walk-observer plugin
guide harness walk --adapter claude-code --guide examples/books/postgres-upgrade/postgres-major-upgrade --exec
guide setup writes the walk Skill (rendered from a packaged template for
the chosen mode + capability) and the walk-observer plugin into
~/.claude/skills/. Claude Code auto-discovers both on its next
session. The harness run command prepares per-walk scratch
(mcp-config, prompt, audit state path) and invokes claude -p with
the right flags. See docs/cli/setup.md and
docs/adapters/claude-code.md.
2. Headless (no LLM, scripts only):
python -m adapters.cli.run \
--root examples/books/postgres-upgrade/postgres-major-upgrade \
--state-path /tmp/headless-test
# Script actions run; manual/agent_judgment steps log "skipped: no LLM".
Useful for CI smoke tests and non-LLM ops pipelines. See docs/adapters/cli.md.
3. Resuming an interrupted run — the harness uses walk_current({guide_id}) to find the active run id and asks the user whether to resume, abandon, or inspect.
Documentation
All public documentation lives under docs/:
docs/SPEC.md— normative Guide v0.1 specification.docs/DESIGN.md— design record. Appendices §22–§26 cover the v0.1 runtime, toolchain,.guidebundle, parity rule, and repo layout.docs/ARCHITECTURE.md— runtime topology, component layering, state lifecycle, packaging shapes (Mermaid diagrams).docs/adapters/— per-harness implementation guides (claude-code.md,cli.md).src/agentguides/schemas/— JSON Schemas validating each Guide artifact (canonical inside the package; public$idpoints athttps://agentguides.io/schema/...).docs/QUICKSTART.mdanddocs/CHANGELOG.md— added in M6.
Working Guides live in examples/:
postgres-upgrade/— primary + rescue Guide pair as a book; cross-Guide bare-name references.db-ops/— three Guides under one book; cross-Guide bare-name references.api-latency-spike-triage/,wildland-fire-incident-command/,hello-walk/— standalone single-Guide examples.
Reading order
docs/SPEC.md— what a Guide is, what a conforming harness must do.examples/books/postgres-upgrade/postgres-major-upgrade/— a worked example exercising every spec section.docs/DESIGN.md— why each decision was made.docs/ARCHITECTURE.md— how the v0.1 reference runtime is built.docs/adapters/claude-code.md— implementing or installing the runtime for Claude Code.
just recipes
just setup # uv sync
just validate # schema + DAG + refs for every example Guide
just test # run the Python test suite
just new <name> # scaffold a Guide (passes guide validate immediately)
just pack <dir> # produce a .guide bundle
just unpack <bundle> <dest>
just launch [GUIDE] # Claude Code session with example + MCP server attached
just watch # tail the active run state file
just inspect # open the active run state file in $EDITOR
just clean # wipe /tmp/guide-test-* dirs
Project planning
Internal planning artifacts (active plans, ADRs, milestone trackers) live under .planning/. Contributors who want context should look there; end users do not need to.
Status
v0.1. See docs/SPEC.md §19 for the explicit list of features deferred to v0.2+, and .planning/milestones/v0.1.md for milestone progress.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentguides-0.5.10.tar.gz.
File metadata
- Download URL: agentguides-0.5.10.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab0467fe7f9b51e762fcffbb3d4ceae4c9dd3005387b5881caafeaca90366ac4
|
|
| MD5 |
5eae48f868a523ef159704d994484671
|
|
| BLAKE2b-256 |
4be2d505309c3a3399b9eb528028ea55de391f2717b2e924138c7eb7fd5aee86
|
File details
Details for the file agentguides-0.5.10-py3-none-any.whl.
File metadata
- Download URL: agentguides-0.5.10-py3-none-any.whl
- Upload date:
- Size: 407.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
248020fe1e2b32ca2072800acdf1cc7b3afb2a83f66af22c05a7e6260a72c31c
|
|
| MD5 |
cbd8fe0e1bc4f8177cd94c1d23e0397c
|
|
| BLAKE2b-256 |
e38eb58e876bd62d4935f2c0af86d23eb7bb96ed484257960845ffb093631481
|