Write a convention for your field

A convention is a set of working habits an AI agent follows: how you give feedback, how you explain things, what you never do. You already know these habits from your own work. This guide turns them into a package that anyone using an agent can install, so the agent works the way people in your field do.

You don't need to write code. Writing the convention is the main work, and bpm handles the files.

What a convention looks like

Four short examples from different fields. Each one names who it's for, the behaviors the agent follows, and the lines it never crosses.

Teaching

essay-feedback

High school English teachers giving feedback on student drafts.

The agent will

  • Ask the student what they meant before suggesting a change.
  • Point to one strength before any correction.
  • Give at most three suggestions per draft, most important first.

The agent will never

  • Rewrite the student's sentences for them.

Health education

plain-language-handouts

Clinic staff turning care instructions into handouts for patients and families.

The agent will

  • Write at about a sixth-grade reading level, with short sentences.
  • Put the one thing the reader must do first, in its own line.
  • Explain any medical word the first time it appears.

The agent will never

  • Give dosing advice or a diagnosis. Point the reader to their care team instead.

Software

kind-code-review

Engineers reviewing each other's pull requests.

The agent will

  • Open with what the change does well, specifically.
  • Phrase each request as a question about the code, not the person.
  • Back every request with a line of code, a test or a linked rule.

The agent will never

  • Approve a change you haven't run or read in full.

Research

cite-as-you-go

Graduate students drafting literature reviews with an agent.

The agent will

  • Attach a source to every factual claim, with author, year and page.
  • Mark anything you couldn't find a source for as unverified.
  • Quote exactly, and say when you're paraphrasing.

The agent will never

  • Invent a citation, even as a placeholder.

Write yours, step by step

  1. 1. Pick one situation

    Choose one kind of work you do often, like giving feedback on essays or writing patient handouts. A convention that covers one situation well is more useful than one that tries to cover your whole job.

  2. 2. Write what the agent should do, one behavior per line

    Write each behavior as something the agent can do and someone can check. "Point to one strength before any correction" can be checked. "Be encouraging" can't, because two people would read it differently.

  3. 3. Write what it should never do

    A short list of hard lines helps as much as the rules do. Keep it to the things that would cause real harm or undo the point of the convention.

  4. 4. Say who it's for and when it applies

    Name the people it serves. Then decide when it applies: every time someone works in their project, or only when they ask for it, like a tutoring style they switch on. bpm calls the first a project package and the second a session package.

  5. 5. Try it with your agent

    Paste your rules into a conversation with the agent you use, give it a real piece of work, and read what comes back. If a rule gets ignored or misread, reword it until the result matches what you meant.

  6. 6. Turn it into a package and publish it

    The next section walks through this. bpm asks you questions and writes the files, so there's no code to write.

Turn it into a package

This part uses a terminal, the window where you type commands. You only need the lines shown here: type or paste each one exactly and press Enter.

  1. 1. Install Node.js and bpm

    Download Node.js from nodejs.org and install it like any other app. Then open Terminal (on a Mac) or Command Prompt (on Windows), type the line below and press Enter.

    npm install -g @dakotafabrodev/agent-bpm
  2. 2. Answer bpm's questions

    Type this line, with a short name for your package, and press Enter. bpm asks what the package does, who it's for, what kind it is and what the agent should do. Type each answer and press Enter. It then creates a folder with your package in it.

    bpm init essay-feedback --guided
  3. 3. Fill in the starter text

    Open the new folder. The file inside its package folder holds your rules, and HUMAN.md describes what changes for the person who installs it. bpm leaves sentences that say what to write: in the rules file they read like "Describe what should be better when an agent follows these rules", and in HUMAN.md they're in angle brackets, like <How to pause it for a session>. Replace each one with your own words.

  4. 4. Put the folder on GitHub

    bpm installs packages from GitHub, so your package needs to live there. GitHub Desktop does this without the terminal: add the folder as a repository, commit the files, then publish it. If you skipped the GitHub question in step 2, open bpm.json in a text editor and replace the your-handle address with your repository's address.

  5. 5. Publish

    Sign in at usebpm.dev, open your dashboard, and create an API token. Back in the terminal, run these three lines: the first moves into your package folder, and in the second, paste your token in place of <token>.

    cd essay-feedback
    bpm token set <token>
    bpm publish

If your convention is a session package, open bpm.json and change "project" to "session" on the scope line. That's the only setting to change by hand.

Links for these steps

Download Node.js

GitHub Desktop and its guide to adding a folder as a repository

Your dashboard, where API tokens are created

Before you publish

  • Every rule is something an agent can do and someone can check.
  • The never list names real harms, not preferences.
  • The description says in one sentence what the package helps an agent do.
  • HUMAN.md says what changes for the person who installs it.
  • You've tried the rules on real work and reworded the ones that didn't land.
  • Nothing in the package asks an agent to ignore its other instructions. The registry flags that for review.

More

Sponsored

Build agent tooling? Reach developers where they discover packages.

Become a Sponsor