Repository navigation
Installation
| What | Needed for | Required? |
|---|---|---|
| Python 3.8 or newer | Everything. The engine, the canvas server and the helper scripts use the standard library only. | Yes |
| Google Chrome or Chromium | Rendering HTML templates to PNG (scripts/render_carousel.py), and your agent's browser work on the platforms. doctor.py treats it as required. |
Yes, for the demo flows |
| Pillow, numpy | The media tools (media/image_gen.py, scripts/loop_qc.py, scripts/render_short.py). A tool that needs one says so and exits 3. |
Optional |
| ffmpeg (and ffprobe) | Video work (scripts/render_short.py, the media helpers). |
Optional |
| Codex CLI, signed in | Image generation (media/image_gen.py, scripts/codex_img.py, media/scenes.py gen). Each image draws on your ChatGPT plan's weekly Codex limit. |
Optional |
GitHub CLI (gh) |
The demo's release flow reads release notes with gh release view. |
Optional |
wl-clipboard or xclip (Linux) |
scripts/clip.py and scripts/clipimage.py. |
Optional |
CI runs the test suite on Windows, macOS and Linux with Python 3.8, 3.12 and 3.14.
The playbook doesn't post anything by itself. Your agent does the posting through its own browser tool, using
your signed-in Chrome. Setting up that browser tool happens in your agent, not in this repository. The demo
flows assume a tool that opens its own tab and passes a tab id on every call (part part-own-tab).
git clone https://github.com/RandyNorthrup/agent-playbook.git
cd agent-playbook/agent-playbookThe inner agent-playbook/ folder is the skill. Run every command on this wiki from there.
python scripts/doctor.pyIt prints one line per check and ends with READY (exit 0) or Fix required items: ... (exit 1):
| Check | Required? |
|---|---|
| Python 3.8+ | Yes |
| Google Chrome | Yes |
| Clipboard round-trip (it puts your clipboard back afterwards) | No: only clip.py and clipimage.py use it |
| Bluesky public API reachable | Yes |
| X syndication endpoint reachable | No |
| LinkedIn guest jobs API reachable | No |
gh on PATH |
No |
--no-network skips the API checks (use it on a machine without internet), and --no-clipboard skips the
clipboard check. Nothing in doctor.py posts, signs in or changes settings.
Then check the playbook itself:
python playbook/pb.py check --strictOn the demo this prints 15 flows, 118 nodes, 4 accounts, 4 folders, 6 parts: 0 problem(s), 0 warning(s), ...
and exits 0. The trailing count of folders "not on this machine" is expected: the demo's folders point at paths
you don't have yet.
python -m pip install Pillow numpyInstall ffmpeg with your package manager (winget install ffmpeg, brew install ffmpeg,
sudo apt install ffmpeg), or point AGENT_PLAYBOOK_FFMPEG and AGENT_PLAYBOOK_FFPROBE at the binaries.
For the Codex CLI, follow OpenAI's install and sign-in instructions; the tools look for codex on PATH, or in
CODEX_BIN. See Scripts and media tools for every environment variable.
python playbook/install_shortcut.py| OS | What it creates |
|---|---|
| Windows | "Agent Playbook" on the Desktop and in the Start menu, with no console window |
| macOS | ~/Desktop/Agent Playbook.command |
| Linux | ~/.local/share/applications/agent-playbook.desktop |
python playbook/install_shortcut.py --remove takes them away; --help prints the help and changes nothing.
The shortcut runs playbook/launch.pyw from the folder you ran the installer in. Run it from the copy your
agent uses (see below), so you and the agent edit the same files.
Without a shortcut, on any OS:
python playbook/launch.pywIf the port is held by another program, or the server stops as soon as it starts, the launcher says why and exits instead of waiting; from the shortcut on Windows the message appears in a message box.
Claude Code loads skills from ~/.claude/skills/<name>/SKILL.md (Windows:
%USERPROFILE%\.claude\skills\<name>\SKILL.md). Put the skill folder there as agent-playbook.
A link is the better choice. With a link there is one playbook: the canvas, the agent and git pull all
work on the files in your clone. With a copy, the agent reads the copy, so you must open the canvas from the
copy too, and updating means copying the engine again without overwriting your own store.
macOS and Linux, from the skill folder:
mkdir -p ~/.claude/skills
ln -s "$(pwd)" ~/.claude/skills/agent-playbookWindows PowerShell, from the skill folder (a directory junction needs no administrator rights):
New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude\skills" | Out-Null
New-Item -ItemType Junction -Path "$env:USERPROFILE\.claude\skills\agent-playbook" -Target $PWD.PathTo copy instead, from the repository root:
cp -R agent-playbook ~/.claude/skills/agent-playbookCopy-Item -Recurse agent-playbook "$env:USERPROFILE\.claude\skills\agent-playbook"Start a new Claude Code session, then ask for a job the skill describes: "do a reply run", "post something",
"announce the release", "make a banner", "open the playbook canvas". The agent reads SKILL.md, picks the
recipe, opens its checklist and follows the flows.
Any agent that can read files and run shell commands can use the playbook. Point its instructions file at
SKILL.md. For Codex that is an AGENTS.md file (in your project, or Codex's global instructions file). For
example:
## Agent Playbook
For social posting, replies, release announcements and the other jobs in my playbook, read
/home/me/code/agent-playbook/agent-playbook/SKILL.md and follow it exactly.
Run its commands from that folder.Use the absolute path to your skill folder. SKILL.md is short: it tells the agent to pick a recipe, open the
checklist, read each flow with pb.py show, pass every draft through qc.py check, and log every send with
audit.py add.
If more than one agent works on the playbook, set AGENT_PLAYBOOK_ACTOR in each agent's environment (for example
codex). The change history then records that name for the agent's pb.py writes instead of the default
agent.
With a linked install, git pull in the clone updates the engine in place. Your own flows, accounts and audit
log are files in the same clone, so keep them on your own branch or in a private repository (see
Security and privacy). If the canvas server is running, restart it after an update so
it loads the new code: stop the server.py process (on Windows it runs as pythonw.exe; elsewhere
pkill -f playbook/server.py), then open the shortcut again. There is no stop command.
From the repository root:
python -m unittest discover -s testsThe tests run on fixture playbooks in tests/fixtures/ and never touch the shipped store or the network. Media
tests skip when Pillow, numpy or ffmpeg is missing.
Next: Quick start.
Agent Playbook is released under the MIT licence. Source: github.com/RandyNorthrup/agent-playbook