Repository navigation
Make It Yours
The shipped playbook is the demo: social work for a fictional open-source app called Acme Notes. This page
replaces it with your own project, accounts and rules, and keeps pb.py check --strict at zero along the way.
Do it on the canvas where you can, and with pb.py where it's quicker. Never edit files in
playbook/store/ by hand: the canvas and pb.py put keep a version of every change and refuse a stale save; a
hand edit skips both.
Your playbook will hold your accounts and the full text of everything you post. Before you put real data in it, read Security and privacy and set up a private repository.
You can also ask your agent to do much of this page: the demo's onboard recipe ("set up on a new machine")
runs the setup check, registers your accounts and folders, and ends on pb.py check --strict.
python playbook/pb.py search acmenotes
python playbook/pb.py search "acme notes"
python playbook/pb.py search acme-notesThese list the nodes, accounts, folders and parts that name the demo app or its accounts. The demo's handles also
appear in playbook/state/recipes.json and in the examples in playbook/qc/filters.json.
- Open Accounts and click Add account (or Duplicate a demo account and change it). Fill in the platform, handle, a label, what it is for, its status, its platform flow, pacing and how it signs in. Never a password, a recovery code or an email address. Projects must name existing flows, so fill that in after step 4.
- Put your first name in Owner. The lint rule
owner-namethen warns whenever an instruction names you instead of saying "the owner". - Point the flows at your accounts. The demo's platform flows have account nodes (
x,bluesky,reddit): edit each node, pick your account, and change its title to your handle. Update any text that names a demo handle (from the search above). - Delete the demo accounts: Delete on each card in Accounts, with a reason such as "demo account, replaced by mine". Any account node still showing a demo account becomes an ordinary step that keeps its text, so do step 3 first. From the command line instead:
python playbook/pb.py delete accounts x-acme --reason "demo account, replaced by mine"
python playbook/pb.py delete accounts bluesky-acme --reason "demo account, replaced by mine"
python playbook/pb.py delete accounts reddit-acme --reason "demo account, replaced by mine"
python playbook/pb.py delete accounts github-acme --reason "demo account, replaced by mine"
python playbook/pb.py checkpb.py delete names every node still pointing at the deleted account, and check reports each as a
dangling-ref error. Fix those before going on.
Open Folders and edit each one to point at a real folder on your machine (screenshots, drafts, art): an
absolute path, a path under your home folder starting with ~, or a path relative to the skill folder. Every step
that uses the folder picks up the change. python playbook/pb.py check --paths lists any path that doesn't exist.
Add your own folders with Add folder, or by pasting a path into a node's Folders field.
The demo's acme-notes flow is the single home for facts about the app: what it is, where the facts come from,
competitors, and what never to say. Make one for your app.
The project's id is used in several places: the account's projects, audit.py add --project,
qc.py check --project, and the keys of lists.json. A flow's id is made from its name when the flow is created
and never changes, so:
- On the
acme-notesflow, click Duplicate flow and name the copy after your app's id, for exampleInkwell(idinkwell). - Open Flow settings on the copy and rename it for people: "Inkwell facts". The id stays
inkwell. - Rewrite its nodes: what the app is (one line, from your README), where its facts live (links to the repo, README, CHANGELOG), competitors, and never-say claims.
- Point the gotos at it. The demo's
releaseflow ends on a goto toacme-notes: edit that node and pick your flow. Also updategh release view --repo acme-notes/acme-notesin the release flow. - Delete
acme-notes(trash icon in its top bar) with a reason, once nothing points at it.
Edit playbook/qc/lists.json (a plain JSON file, edited by hand):
| Key | What to put there |
|---|---|
projects |
Your app's id with the patterns that name it: "inkwell": {"names": ["\\bInkwell\\b", "inkwell-app"]}
|
competitors |
Your direct competitors, with rival_of set to your app's id |
never_say |
Under your app's id: claims the app can't back, each with a why naming the flow it came from. Keep or edit _all. |
brands |
Other companies whose launches you don't want to advertise |
ignore |
People the agent must never reply to, by handle |
ad_copy, launch_wording, ai_denial
|
Generic; keep them, add your own phrasings |
Then update playbook/qc/filters.json:
-
The examples. The
never-say,competitor-original,competitor-claimandfacts-readexamples name the demo app ("project": "acme-notes", "Acme Notes", "RivalPad", "NoteForge"). Once those are gone fromlists.json, their bad examples are no longer caught andqc.py selftestfails. Rewrite each example with your app's name, your id and your competitors. The other examples use demo handles but carry their own data, so they keep passing; change them too if you want the file to read as yours. -
tld-autolink: put your own domain in itsallowlist. -
caps: set the daily caps you actually want per platform. -
length,hashtags: adjust the per-platform tables if you need to.
python playbook/qc.py selftest
python playbook/pb.py check --strictRead each flow you keep with python playbook/pb.py show <flow> and fix anything that is demo-specific:
handles in step text, the subreddits in the Reddit account's notes, the caps table in pacing. Keep
ground-rules: its rules (the owner approves anything new, be honest about automation, no free ads, one account
one voice, facts from the source) are what keep an unattended agent safe. Add flows for platforms the demo
doesn't cover by duplicating the closest one.
Edit playbook/state/recipes.json: change step texts that name the demo handles (X @acmenotes_demo: ...,
bsky_open.py acmenotes.example), remove recipes you don't need, and add your own (see
Recipes and run checklists). pb.py check validates the file.
playbook/state/bank.tsv holds ready-to-post originals for the x-post flow: one per line,
key<TAB>text<TAB>optional link. Replace the demo lines with your own, then check their lengths:
python scripts/bank.py checkplaybook/audit/posts.jsonl ships with six demo entries so the History view has something to show. They count
for pacing and duplicate checks, and they show up in History. The log is append-only, so pick one:
- Before your first real entry, replace the file with an empty one. This is the only time editing the log by hand makes sense.
- Or mark each demo entry removed:
python playbook/audit.py update <id> --status removed --reason "demo entry". Removed entries no longer count for pacing or duplicates, but they stay in History.
python playbook/audit.py list shows their ids. QC receipts (audit/qc.jsonl) and run files (state/runs/) are
local to your machine and ignored by git.
Delete demo flows, parts and folders you won't use. Every delete needs a reason, and the reason goes into the change history:
- Canvas: the trash icon on a flow, Delete on a node, the delete buttons on folder and part cards.
- Command line:
python playbook/pb.py delete flows reddit --reason "I don't use Reddit".
After each delete, run python playbook/pb.py check. It tells you what to fix: a goto to a deleted flow
(dangling-ref), a flow nothing opens any more (flow-unlinked), a recipe step that names a deleted flow
(recipe-ref), a flow no recipe reaches (flow-no-recipe).
python playbook/pb.py check --strictExit 0 means zero problems and zero warnings. There is no list of accepted problems: fix each finding, or change
the playbook so it isn't one. pb.py check -w lists warnings while you work; --rule NAME focuses on one rule.
If your playbook lives in a repository with CI, run the same command there.
Agents follow what pb.py show prints, literally. Read your flow that way before you trust it.
-
One job per flow. A platform hub branches to its reply flow and its post flow. A flow that grows a second
job gets split (
pb.py split). -
Steps are instructions. Short, imperative, one action each. Name the command with its real arguments:
`python scripts/bsky_open.py yourhandle.bsky.social`, not "check Bluesky". - Gates are QC check nodes. Say what must be true and what evidence shows it, with the items in the checklist. If a script can check it, write a QC filter instead.
-
Rules hang off the step they govern. Attach a rule, tool or gotcha to the step where it applies, so the agent
reads it at that moment. Rules for every job go in
ground-rules. - Gotchas carry the fix. "The composer drops the link card if you paste too fast: wait for the preview", not "link cards are flaky".
- Decisions have labelled branches. Label every connection out of a decision with its answer.
- One owner per rule. Write a rule in one node and link to it (a goto or a part), so it is changed in one place. Shared steps become parts.
-
Instructions only. No "the owner said on 11-08", no finished history, no dates unless the date is the
instruction. Put that in
origin; the lint rulesattribution,dateandowner-namecatch it. -
Every command exists. A flow names only scripts that exist in
scripts/,media/orplaybook/, take arguments and fail loudly. -
A lesson goes into the playbook, not the agent's memory. When you correct the agent, the correction becomes
a QC filter, a flow step, a part or a recipe step.
pb.py catalog --piecesand theplaybookflow say which.
Agent Playbook is released under the MIT licence. Source: github.com/RandyNorthrup/agent-playbook