AI agent brief: the goal and when it is done
Every task for an AI agent has a goal, a "done when" and a proof before the agent starts.
Orchestration, beginner. Published
What it does
An agent with no finish line stops when it runs out of ideas, not when the job is done. This skill turns every task into a short brief. A small task gets three lines: the goal, when it is done and what proof will show it. A bigger task gets the full brief: the goal in the words of the person asking, context, numbered done_when rows, constraints, what is out of scope and the cases where the agent stops and asks instead of guessing. Every done_when row is either true or false when the work ends, can be checked without asking the author, and names its proof from the start: a file, a command output or a screenshot. The brief is saved as a file, so the critic and the report can point back to it.
When to use it
When to use it
- You give an agent a task longer than one step.
- The agent says "done" and you find the gaps later.
- You hand work to a subagent or a second session.
- The task touches live data, customers or money.
When not to use it
- A single factual question the agent answers right away.
- Brainstorming where you can throw away any result at no cost.
- A task that already has a brief from another process, such as an intake form.
Decision table
| Situation | What the agent does |
|---|---|
| Small one-step task | Writes three lines: goal, done when, proof |
| Task with several steps | Writes the full brief from the template and saves it as a file |
| Gets a task with no brief | Writes the three lines itself and asks only about the rows it had to guess |
| A load-bearing fact is missing | Stops and asks, one question at a time |
| The task only fits in an easier version | Does not simplify quietly; asks instead |
Template
The method: the three-line minimum, the full brief, rules for done_when rows and the cases where the agent stops and asks.
---
name: brief
description: Turns any task you hand to an AI agent, subagent or second session into a written brief with a goal, numbered done_when rows that each name their proof, constraints and the cases where the agent must stop and ask. Use it when the user says "write a brief", "delegate this", "give this to an agent", "start a task", "zadanie dla agenta", "napisz brief", or before any multi-step task starts.
---
# Brief: goal and "done when" before any work starts
An agent with no finish line stops when it runs out of ideas, not when the job is done. It says
"done" because it got tired, and you find the gap later. This skill makes every task start as a short
written brief: what the goal is, how anyone can tell it is finished, and what proof will show it.
Read `CONTEXT.md` next to this file before the first brief. It holds your project, where briefs are
saved, and your default constraints. If it is missing or a field you need is blank, ask the user for
that one field, say what it is for, and write the answer into `CONTEXT.md`.
## The three-line minimum
For a small task, three lines are enough. Never fewer.
```
Goal: <one sentence: what the person asking wants>
Done when: <something anyone can check, not "looks good">
Proof: <the file, command output or screenshot that will show it>
```
Bad: "Build me a store."
Good: "Goal: build the product page for <your product>. Done when: a test payment goes through on it.
Proof: a screenshot of the order confirmation page."
The bad version has no finish line, so the agent decides when it is finished. The good version
gives it one, and gives you a way to check it in ten seconds.
## The full brief
Use the full form (template: `BRIEF.template.md`) for anything with more than one step, anything
that touches live data or customers, and anything you hand to another agent.
1. **Goal.** One sentence, in the words of the person who asked. Copy their words; do not improve
them. If you rephrase the goal, you can solve a different task without noticing.
2. **Context.** Only what the agent cannot find on its own: links to the files, decisions already
made, the state things are in now.
3. **done_when.** Numbered rows. Each row is one fact that is either true or false when the work
ends, and names the proof that shows it. Rules for rows are below.
4. **Constraints.** What the agent must not touch or do: files, accounts, live systems, spend,
time. Add the defaults from `CONTEXT.md`.
5. **Out of scope.** Things that look related but are not part of this task. Naming them stops the
agent from wandering into them.
6. **escalate_when.** The cases where the agent stops and asks instead of guessing.
7. **Report.** The agent ends with a report that answers every done_when row: done or not done,
plus the proof. (The `raport` skill covers this.)
## Writing done_when rows
- **One fact per row.** "Form works and emails arrive" is two rows.
- **Binary.** At the end it is either true or false. "Page is faster" is not binary;
"page loads in under 2 s on <your test command>" is.
- **Checkable by someone else.** A second person or a second model must be able to check it without
asking the author anything.
- **Proof named up front.** Each row says what will prove it: a file path, a command and the output
you expect, a URL and what should be on it, a screenshot of a named screen.
- **Written before work starts.** Rows added at the end tend to describe what was done, not what was
needed. If a row must change mid-task, the agent says so and why.
- **No adjectives.** "Clean", "good", "nice", "robust" and "looks good" are never rows. Ask "how would
I check that?" and write the answer instead.
| Weak row | Strong row |
|---|---|
| Tests pass | `<your test command>` exits 0; output pasted in the report |
| Copy is better | Every headline is under 60 characters and names the product; file path in the report |
| Bug fixed | The steps that broke it (listed in Context) now end on the right screen; screenshot path |
| Email set up | A test signup to `<test address>` receives the welcome email; screenshot of the inbox |
## escalate_when: stop and ask
The agent stops and asks the person instead of guessing when:
- a load-bearing fact is missing (a price, an account, which of two versions is right);
- the task only fits by solving an easier version of it ("I could not connect the payment, so I
mocked it");
- a done_when row turns out to be impossible or wrong;
- the next step is hard to undo (deleting data, sending to customers, spending money);
- anything in the user's own escalate list in `CONTEXT.md`.
It asks one question at a time, says what it already checked, and offers options where it can.
## If the user gives a task without a brief
1. Write the three-line minimum yourself from what the user said.
2. Show it in one short message: "Here is how I will know I am done: ..." and ask only about the rows
you had to guess.
3. If the user says "just do it", go ahead and put your guessed rows at the top of the report, so they
can see what finish line you used.
## Save the brief as a file
Save each brief in the folder from `CONTEXT.md` as `brief-<yyyymmdd>-<short-name>.md`. The file is what
the critic grades against and what the report answers row by row. A brief that lives only in a chat
message gets lost, and then nobody can check the work against it.
## How the three skills fit together
- **brief** (this skill) sets the finish line before work starts.
- **krytyk** grades the finished work against the brief's done_when rows, in a separate model or
session that does not trust the author.
- **raport** makes the agent end with proof for every row.
Each one works alone. Together they close the loop: what was asked, what was checked, what was proven.
## Done check for this skill
- Every task over one step has a saved brief file before work starts.
- Every done_when row is binary and names its proof.
- The final report answers every row by number.
Other files
BRIEF.template.mdFill-in brief template: goal, context, done_when table with proof, constraints, escalation, report. With a worked example.
# Brief: <task name>
- Date: <yyyy-mm-dd>
- Asked by: <role, e.g. owner, client, teammate>
- Brief id: <yyyymmdd-short-name>
- Saved at: <briefs folder>/brief-<yyyymmdd>-<short-name>.md
## Goal
_One sentence, in the words of the person who asked. Copy them, do not improve them._
<goal>
## Context
_Only what the agent cannot find alone: file links, decisions already made, current state._
- <file or decision>
## done_when
_One fact per row, true or false at the end, checkable by someone else. Name the proof now._
| # | True when done | Proof that shows it |
|---|---|---|
| 1 | <fact> | <file path / command + expected output / URL / screenshot> |
| 2 | <fact> | <proof> |
## Constraints
_What the agent must not touch or do. Add the defaults from CONTEXT.md._
- <constraint>
## Out of scope
_Related things that are not part of this task._
- <item>
## escalate_when
_Stop and ask instead of guessing when:_
- a load-bearing fact is missing;
- the task only fits by solving an easier version of it;
- a done_when row turns out impossible or wrong;
- <your own case>
## Report
End with a report that answers every done_when row by number: done or not done, plus the file path,
command output, URL or screenshot that proves it. Add a "Not checked:" line.
---
# Example: Brief: contact form on the contact page
- Date: <yyyy-mm-dd>
- Asked by: site owner
- Brief id: <yyyymmdd>-contact-form
- Saved at: briefs/brief-<yyyymmdd>-contact-form.md
## Goal
"Add a contact form so people can write to me without opening their email app."
## Context
- Contact page: `<your site>/src/pages/contact`
- Form messages go to `<your inbox>` through `<your email service>`.
## done_when
| # | True when done | Proof that shows it |
|---|---|---|
| 1 | The form has name, email and message fields, all required | Screenshot of the page with an empty submit showing the errors |
| 2 | A test message arrives in the inbox | Screenshot of the received message |
| 3 | The site builds with no new errors | `<your build command>` output, exit 0 |
## Constraints
- No new paid service. No change to other pages.
## Out of scope
- Spam filtering beyond the email service's default.
## escalate_when
- The email service needs a key that is not in the project's usual key store.
## Report
Rows 1-3 by number, each with its proof. "Not checked:" line at the end.
CONTEXT.template.mdYour project, briefs folder, default constraints, your escalation cases and the proof you accept.
# Brief: your context
Copy this file to CONTEXT.md next to SKILL.md and fill in every blank. Never put passwords, access
keys or card numbers here.
## Your project
(What you work on, in one or two lines, so the agent can fill in the Context section of a brief.)
Example: <your project>, an online store selling <your product> to <your customers>.
Project:
Main folders or tools:
## Where briefs are saved
(A folder, so the critic and the report can point back to the brief.)
Example: briefs/
Briefs folder:
## Default constraints
(Rules that apply to every task unless a brief says otherwise.)
Example: never send anything to customers without asking; never delete files, move them to a backup
folder; no new paid tools.
Default constraints:
## Default escalate_when
(Your own cases where the agent must stop and ask, on top of the ones in SKILL.md.)
Example: any change to prices; any message that goes out under my name.
Escalate when:
## Proof you accept
(What counts as proof in your setup. Add the commands and screens you trust.)
Example: `<your test command>` output; a screenshot of the admin order page; a file path in the repo.
Accepted proof:
## Trigger phrases
(Extra words, in any language you use, that mean "write a brief first".)
Example: "zleć to", "hand this off".
Trigger phrases:
What you need
An AI coding agent: Claude Code, Codex CLI or Cursor (opens in new tab)
The skill is a markdown instruction file. You need an agent that reads it and can open your files.
- Install one agent: Claude Code (https://code.claude.com/docs/en/overview (opens in new tab)), Codex CLI (https://developers.openai.com/codex/cli (opens in new tab)) or Cursor (https://cursor.com/docs (opens in new tab)).
- Open the agent in your project folder.
- Install the skill with the steps in the install section.
Install
- Download the files folder and rename CONTEXT.template.md to CONTEXT.md.
- Claude Code: put the folder in .claude/skills/brief/ in your project, or in ~/.claude/skills/brief/ for every project. Claude loads the skill when the description matches the task, or when you type /brief.
- Codex: paste SKILL.md into AGENTS.md at the repository root, or into ~/.codex/AGENTS.md.
- Cursor: add SKILL.md as a project rule, or paste it into AGENTS.md.
- Any other agent: paste SKILL.md into the project instruction file or system prompt, and keep CONTEXT.md and BRIEF.template.md next to it.
- Fill in CONTEXT.md with your own details: project, folders, rules.
It's working if
- Before every multi-step task a brief-<date>-<name>.md file appears in the briefs folder.
- Every done_when row has a proof column.
- No row contains "good", "nice" or "looks OK".
- When you give a task with no brief, the agent shows its three lines first.
- The final report answers every row by number.
Requirements
- An AI agent that reads instruction files, such as Claude Code, Codex CLI or Cursor.
- A folder in your project for briefs.
Questions
Why write a brief when I can just write a prompt?
A prompt says what to do. A brief also says when to stop and how to check it. Without that, the agent decides on its own when it is done.
What is a done_when row?
One fact that is true or false when the work ends, together with its proof. For example: a test payment goes through; the proof is a screenshot of the order confirmation.
Does every task need the full brief?
No. A small task needs three lines: goal, done when and proof. The full brief is for multi-step tasks, live data, or work you hand to another agent.
What if a row turns out impossible during the work?
The agent stops and says so. It does not change the row quietly and does not solve an easier version of the task.
Where it fits
The first of three skills. The brief sets the finish line. The critic (ai-critic) grades the finished work against the done_when rows. The report with proof (report-with-proof) answers every row with proof. Each works alone; together they close the loop.
All skillsSources
- Claude Code docs: skills (accessed 2026-09-22)
- Codex docs: AGENTS.md (accessed 2026-09-22)
- Cursor docs: rules (accessed 2026-09-22)
Questions about setting these up go in the Discord.Join freeAll my skills are also on Whop, in Operator: with a changelog, a note on what each was tested on, and a weekly call.