Agent Skills, MCP server, and shared parser/validator for PLAYBOOK.md -- the open specification for multi-step AI workflows written in plain markdown.
This repo provides three ways to integrate PLAYBOOK.md into AI agent environments:
Self-contained markdown files that teach AI agents how to read, write, validate, run, and convert playbooks. No code required -- just pure markdown instructions.
Available skills:
| Skill | Description |
|---|---|
playbook-read |
Parse and understand a .playbook.md file |
playbook-write |
Create a valid playbook from requirements |
playbook-validate |
Check a playbook for spec compliance |
playbook-run |
Execute a playbook step by step |
playbook-convert |
Convert between PLAYBOOK.md, JSON, and plain English |
Install skills:
npx skills add PLAYBOOK-MD/playbook-integrationsA Model Context Protocol server that exposes playbook operations as tools for AI agents. The MCP server does NOT call any external LLM -- it provides tools for the host agent to use with its own LLM.
Run the server:
npx @playbook-md/mcpA shared TypeScript library (@playbook-md/core) with zero dependencies that provides:
- Parser -- Parse .playbook.md files into structured data
- Validator -- Semantic validation beyond syntax checking
- Summarizer -- Compact summaries of playbook structure
- Converter -- Convert between markdown and JSON formats
import { parsePlaybook, validatePlaybook, summarizePlaybook } from '@playbook-md/core';
const result = parsePlaybook(markdown);
const validation = validatePlaybook(markdown);
const summary = summarizePlaybook(result.definition!);The editors/ directory contains configuration files and instructions for integrating PLAYBOOK.md into popular AI coding tools:
- Claude Code (
editors/claude-code/) — also runs.playbook.mdfiles as Claude Code Routines (scheduled / API-triggered / GitHub-triggered autonomous sessions) - Codex (
editors/codex/) - opencode (
editors/opencode/) - Continue (
editors/continue/) - Cline (
editors/cline/) - Aider (
editors/aider/)
Install all editor integrations at once with the CLI:
playbook setupA pre-commit hook is available at hooks/pre-commit to validate .playbook.md files before committing. Copy it into your project's .git/hooks/ directory or reference it from your pre-commit configuration.
# Install dependencies
npm install
# Build all packages
npm run build
# Run tests
npm testpackages/
core/ @playbook-md/core -- parser, validator, converter
mcp/ @playbook-md/mcp -- MCP server
skills/
playbook-read/ SKILL.md
playbook-write/ SKILL.md
playbook-validate/ SKILL.md
playbook-run/ SKILL.md
playbook-convert/ SKILL.md
editors/
claude-code/ Claude Code integration config
codex/ Codex integration config
opencode/ opencode integration config
continue/ Continue integration config
cline/ Cline integration config
aider/ Aider integration config
hooks/
pre-commit Git pre-commit hook for playbook validation
- playbook-spec -- The PLAYBOOK.md specification
- playbook-schema -- TypeScript types and JSON Schema
- playbook-gallery -- Curated example playbooks
- playbook-playground -- Web-based editor and validator
- playbook-vscode -- VS Code extension with syntax highlighting and validation
- playbook-cli -- CLI tool for validating, parsing, and scaffolding playbooks
- playbook-action -- GitHub Action for PR validation
MIT