agent-runbook is a contract-based multi-agent skill framework for Claude Code and Codex. Its core way of working is to compile contract-based YAML runbooks into SKILL.md files for these agents to execute. The framework requires each step to declare its inputs and outputs via JSON Schema, and the compiler validates contract closure at build time. If a run is interrupted, it can resume from the last checkpoint.
Main capabilities:
- Supports control flow such as loop, parallel, branching, and checkpoint.
- Agents communicate through structured files rather than relying on LLM context.
- Typed input parameters can be declared at the top level.
- Each step can declare an output contract (JSON Schema).
- Provides checkpoint and resume mechanisms.
How to use:
- Install:
pip install git+htt(The installation command provided in the original text is incomplete). - Write runbook.yaml. A complete example is provided in the repository at examples/restart-nginx/runbook.yaml.
- Use the CLI to compile and generate SKILL.md for Claude Code or Codex to execute.
The CLI itself is generic and zero-coupled. Projects can wrap the CLI through their own directory conventions, for example the convention: rules/<agent>/<skill>/runbook.yaml → skills/<agent>/<skill>/SKILL.md. scripts/gen-skill is the only place that knows the project-specific directory layout; the CLI remains generic.
Use cases:
- Developers building complex multi-step agent workflows in Claude Code or Codex.
- Skill authors who need control flow beyond linear prompts, for example needing loops, parallelism, branching, and checkpoints.
- Teams that want agents to communicate through structured files rather than LLM context.
Regarding examples, the repository provides examples/fix-loop/ to demonstrate: a runbook iteratively runs pytest, identifies failing tests, fixes source code file by file, and repeats until the test suite passes, with the whole process driven by the loop step type and cascading dependency resolution.
Limitations and status:
- The project is under active development, and the API may change.
- Information such as the full installation address, version, fees, or pricing is not yet provided.
The project is maintained by KnoxOps and includes a code of conduct and security policy. Projects built on agent-runbook include open-devops-skills, which provides production-grade DevOps and SRE skills for Claude Code and Codex, such as zombie resource scanning, cost optimization, K8s troubleshooting, and more.