Skip to content
dispatch-briefskill · vendorednew in 0.4.6

Brief the outcome, not the procedure. Declare every side effect.

dispatch-brief is a brief template and a lint for handing work to another agent: a subagent, a coding agent in another session, or a teammate's agent. Five short sections, one explicit line of side effects, and a check that reads the brief back before the hand-off.

Two things go wrong
Procedure instead of outcome

The receiver re-derives every mechanical detail anyway. Steps typed by the requester are double cost and the most frequent source of wrong detail.

Side effects asked in passing

"Open a pull request" or "merge it yourself" grants that authority without anyone deciding to. The receiver does it unexamined, or stops to ask.

The brief
goalinstructionfencedonecontext
1,500–2,500 characters
standard library only
One line, read back
- Side effects: commit · pull request

It reports. It never rewrites the brief.

The lint reads the Goal, Instruction, Fence and Done sections for asks, and names each one the line does not declare.
01 · Why it exists

The receiver re-derives the steps anyway.

A coding agent handed a task reads its own repository, its own skills and its own runbooks before it touches anything. A brief that types the steps for it pays for that work twice, and the typed version is the one that goes stale. A brief that says what should be true when the work is done, and what the agent may do to the outside world on the way, is shorter and harder to get wrong.

Double cost

Every step the requester writes, the receiver works out again from the tree. The brief carries the goal; the tree carries the how.

Wrong detail

Script names, flags and file paths typed from memory are the part of a brief most likely to be wrong, and the part the receiver trusts most.

Unexamined authority

A merge or a deploy mentioned in passing is a grant nobody made. One declared line makes every outward action a decision.

02 · The brief

Five sections. The last line is the one the lint reads.

Copy the template and fill the five headings. The Instruction opens with a fixed hand-over sentence that gives the mechanics to the receiver; everything after it is background only the requester holds.

SectionCarries
## GoalThe outcome as the requester would see it, in one paragraph, with the requester's words quoted. Precedent to follow, when there is one.
## InstructionThe fixed hand-over sentence, then background only the requester holds: a standing decision, a cross-repository ripple, other work in flight.
## FenceWhat is out of scope, and what stays the human's hand where that departs from the standing rule.
## DoneThe done line and the reply the requester expects.
## ContextThe repository and starting commit, the model when it departs from the receiver's default, the estimate, and the - Side effects: line.
Always in

The goal in the requester's words, the fence, what only the requester holds, the model when it departs from the default, the done line, the side effects.

Never in

Step lists, script names and flags, verification tails, acceptance checklists derived from the tree, and facts the receiver reads from its own repository: versions, file lists, changelog contents.

03 · Before and after

Same work, two briefs.

A requester wants relay status to print its report as JSON and hands the work to a coding agent in another session. The repository and the task are invented for this page. The lint output under each brief is real: both files were run through the shipped script.

before.mdprocedure, and a merge asked in passing
## Goal
Add a `--json` flag to `relay status`.

## Instruction
1. Open `src/relay/commands/status.py` and add a `--json` option with click.
2. Build the dict from the same fields the table prints; use `json.dumps(..., indent=2)`.
3. Add a test in `tests/test_status.py` that runs the command with `--json` and parses stdout.
4. Run `pytest -q` and `ruff check .`; both must pass.
5. Update the status section of README.md with the new flag.
6. Open a pull request against main and merge it once CI is green.

## Fence
- Do not touch the other commands.

## Done
Done = the flag is merged and the README mentions it. Reply with the pull-request link.

## Context
- Repo: example-org/relay · main
- Estimate: 20m · files ~3
- Side effects: commit · pull request
$ python scripts/brief_lint.py before.md
[procedure] L5: a 6-step list in ## Instruction; state the outcome and let the receiver own the steps (advisory)
[declared] L10: "merge" asks for merge, which Side effects does not declare
[declared] L16: "merged" asks for merge, which Side effects does not declare
[declared] L21: "commit" is declared but the body never asks for it (advisory)
2 findings, 2 advisories
after.mdthe outcome, and the merge left out on purpose
## Goal
`relay status` can print its report as JSON, so a script can read the same fields the table shows without scraping it. The requester's words: "status, but machine-readable". Precedent: `relay inbox` already takes `--json`; match its shape.

## Instruction
The how is yours: your skills, project instructions and runbooks own the mechanics. Work out the details, verify what you need, and execute toward the goal. Where this brief and those surfaces disagree, follow them and say so in the reply.
Background only the requester holds: the release script will start reading this output next sprint, so the field names are an interface from the first release.

## Fence
- Out of scope: the other commands · the table output, which stays as it is.
- Landing on main stays the human's hand.

## Done
Done = `relay status --json` prints the report, a test covers it, the README's status section names the flag, and a pull request is open on example-org/relay. Reply with the commit and the pull-request link.

## Context
- Repo: example-org/relay · main at the commit you start from
- Estimate: 45m · files ~3 (rough)
- Side effects: commit · pull request
$ python scripts/brief_lint.py after.md
clean

Synthesized briefs, real lint output: both files were linted with the script shipped in kiloloop-skills 0.4.6. The first run exits 1, the second exits 0.

The goal quotes the requester

"Status, but machine-readable" is the sentence the receiver can hold the result against. "Add a flag" is a step.

The steps are gone

File paths, the test runner and the linter all live in the repository the receiver reads. What stayed is the one fact it cannot read: the release script will depend on the field names.

The merge left the brief

Before, "merge it once CI is green" granted landing authority in a subordinate clause. After, the fence says whose hand it stays in, in wording the lint does not read as an ask.

04 · The lint

It reads wording, not intent.

The lint reads the Goal, Instruction, Fence and Done sections verb by verb. It skips fenced code and any ask a negation governs, and reports each ask whose side effect the line does not declare. A trigger word used descriptively, such as the commit a bug came from, still reads as an ask: reword it.

The seven side effects and the wording that asks for them
Side effectTrigger wording
commitcommit, land or push a change
pull requestopen, raise, create, update or submit a pull request; a pull-request link
issuefile, open, raise or create an issue
commentcomment on something, or post a comment
mergemerge, or land it yourself; yours to land
deploydeploy, or ship to production
publishpublish
Negation is read, not guessed

A negation governs the rest of its clause, up to a comma or a contrast word, and a whole list when a colon or a closing "or" ties it together.

Never deploy, publish, or merge. → asks for none
Do not merge, but publish the notes. → asks to publish
If no issues remain, publish the notes. → asks to publish
Four checks, three exit codes
sections a required heading is missing
declared an ask the line does not declare; a declared effect nobody asks for is an advisory
procedure a numbered list of three or more steps in prose, advisory
size past 3,500 characters; an advisory past 2,500

exit 0 clean, advisories allowed · 1 findings · 2 usage error or unreadable file

05 · Run it

Ask an agent.

Your agent installs the skill and writes the brief. Paste this into Claude Code or Codex and replace the bracketed values.

Install the dispatch-brief skill from https://github.com/kiloloop/kiloloop-skills (skills/dispatch-brief) into my agent's skills directory. Then use it to write the brief for [THE WORK] before handing it to [THE RECEIVING AGENT]. Start from the template, keep it to the goal, the fence, the done line and the background only I hold, declare every side effect on the Side effects line, run the lint, and fix every finding before the hand-off.

By hand: copy the skill directory into ~/.claude/skills/ for Claude Code or ~/.agents/skills/ for Codex, keeping SKILL.md, agents/, templates/, scripts/ and fixtures/ together. The lint installs nothing at runtime.

python scripts/brief_lint.py brief.mdskill guide ↗changelog ↗
Form
Vendored
Release
0.4.6
Dependencies
None
Network
None
Runtimes
Claude Code · Codex
License
Apache-2.0

06 · Questions

What is a dispatch brief?

A short document that hands work to another agent: the goal in the requester's words, the fence, the done line, the background only the requester holds, and one line declaring every side effect the work may have. It leaves the procedure to the receiver.

What does the lint check?

Four things: that the five headings are present, that every side effect the body asks for is declared on the Side effects line, that no prose section carries a numbered list of three or more steps, and that the brief stays under 3,500 characters. It reports findings and never edits the brief.

What counts as a side effect?

Seven outward actions, read from wording: commit, pull request, issue, comment, merge, deploy and publish. A trigger word under a negation such as "do not merge" or "out of scope" is not an ask, and a declared effect the body never asks for is reported as an advisory.

Does it work with Codex?

Yes. The skill ships a Codex skill-picker entry with a display name and starter prompt and installs into ~/.agents/skills/ or a repository's .agents/skills/. Claude Code reads it from ~/.claude/skills/. The lint is standard-library Python and runs the same way under both.

← all tools & skillsusage-cost →