Skip to content
Back to skills

Brief

ASecurity

Update or create your attached lemonaid brief, choose its status, record questions and waiters, check child cleanup, or start a reviewer. Use when asked to update your brief or when work changes what it needs or is waiting on.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgobashgit

Works with

  • cli

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add petergaultney/lemonaid --skill brief --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Brief?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Brief
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/petergaultney-brief/badge)](https://www.skillsdirectory.com/skills/petergaultney-brief)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: brief
description: Update or create your attached lemonaid brief, choose its status, record questions and waiters, check child cleanup, or start a reviewer. Use when asked to update your brief or when work changes what it needs or is waiting on.
---

# Keep your brief current

Your user reads your brief through `lemonaid brief show`, the inbox's `b` key, or tmux's `prefix+b`. Keep `Status:` and `## Now` current so they can tell whose move comes next. Read the whole brief before editing it: its goal, limits, and output still apply.

## Take up your brief, or say why you can't

When a brief was handed to you, your first turn writes a line in `## Now` or sets a status. A watcher reports to your parent a lemon that goes idle with both empty and its brief untouched since it started.

If you can't start the work (the wrong directory, missing access, a brief you can't follow), run `lemonaid tell --parent "<why, and what would let you start>"` before ending your turn, then put the same line in `## Now`.

## Find or create your brief

Run `lemonaid brief show --self`. Your brief is the file attached to your session, normally in `~/.lemons/brief/`. If none is attached but an older `.z/brief*.md` in your place is clearly yours, move it into that folder with a dated name for the work and run `lemonaid brief attach --self <file>`.

If you have no brief, run `lemonaid brief new --self "<what the work is>"`. It creates a dated file and attaches it to you. Give it a task title, `## Now`, and a short `## Goal` saying what done looks like. Leave out `Parent:` when nobody assigned the work. Keep any generated ID line unchanged.

Name the session for the work, with a short area and change, rather than the brief filename or a personal name: `lemonaid inbox rename --self "<area and change>"`. A launch prompt should name the work first, then point to the brief.

## Lemons named by key

When your user names a lemon by the key the inbox or grove shows for it (`5e`, `5.e2`), run `lemonaid key <key>` before acting, and name the lemon it found (Lemon-ID and place) in your reply.

## Choose the status

Set `Status:` only when one of the words below applies, and leave it out otherwise. Without one, lemonaid shows your own state: `active` while you are mid-turn, `idle` between turns, and `deaf` or `dead` if a message sent to you would not be read. `lemonaid brief status --self clear` removes a status that no longer applies. Older briefs may say `working` or `waiting`; both read as no status, and setting either clears it.

`Status:` contains exactly one word. The reason goes in `## Now`. A status says you wait on a person or a process; when you wait on another lemon, set none and use a task instead. Run `lemonaid brief statuses` for the words your user's setup defines and when to use each; by default `blocked`, `alert`, `merge` and `approve` are your user's move, `review` is someone outside the grove's (a teammate's review, a maintainer's reply), `running` is a long process you mind, and `done` ends the work. Name the move under `### Needs <who>`, or the process under `### Running`.

When another lemon comes next, set no status: hand it your task (`lemonaid task assign`), or wait for its task (`lemonaid task depend`). While CI runs on your task's PR, give the task the PR (`lemonaid task set-url`). Name what you wait on under `### Waiting on`. An open PR is never `done`, and being idle does not make you `done`. Keep watching it until it closes.

If your user's move is parked behind something they cannot act on yet, clear your status. Name that prerequisite and the move that follows it under `### Waiting on`, then set `blocked` when they can act. When several lemons wait on the same user move, only the lemon owning the ask uses `blocked` or `merge`; the others wait on it.

Before asking your user to review a PR, check mergeability and that CI hasn't failed. Conflicts and failed checks are yours to handle. If a `merge` PR gains a conflict, failed CI, or a new finding, clear the status while you fix it. Status does not authorize merging; follow your user's review and merge policy.

## Lay out the brief

Keep `## Now` directly after the header. It holds current prose and `### Needs <who>`, `### Running`, and `### Waiting on`. Different people may have separate Needs headings; duplicate heading names are refused without regard to case. `### Lemons` can still list lemons you watch besides your children.

Use this section order, omitting empty sections: header, `## Now`, `## Questions`, `## Next`, `## PRs`, `## Docs`, `## Done`, then the parent's task sections, then `## Watching`. This is a writing convention, not an enforced order. Arbitrary headings are welcome at any level.

`## Next` says what you will do next, `## PRs` holds the open PR table, `## Docs` lists documents for someone to read, and `## Done` records finished work. Readers accept both these sections and the older `###` headings inside Now. Nothing moves automatically. Run `lemonaid brief migrate --self` to promote exactly those four old names, or `--all` for active attached and pending briefs. `brief check` warns about the older layout.

Put a blank line above and below each heading and around its bullets or table. Write for scanning: one item per bullet, opening with its point in a few words. Keep each item to one or two sentences. Do not join separate items with semicolons or inline numbered lists. Put commits, test counts, and paths at the end, or omit them. Replace stale lines instead of appending news, and shrink finished items to one line. Older `- Label:` briefs still work; keep them unless you explicitly migrate the layout.

Every open PR you author or review gets a row under `## PRs`:

```markdown
| Work | PR | Review |
|---|---|---|
| A few words on the change | [repo#12](https://github.com/owner/repo/pull/12) | [review doc](https://example.org/reviews/12) |
```

Leave the Review cell empty if no review doc exists. Remove a row once its PR merges or closes.

`## Questions` follows `## Now`. Each question to your user, including an ask in chat, also needs a full entry here so they can answer from the brief alone. Its `###` heading matches the label of its `Needs` bullet (the text before the colon, or the whole bullet if there is no colon). Rewrite the entry when more detail is requested, and remove it once answered. Your overlay may supply the question's prose layout; lemonaid pairs the labels. An ask may link to a section of a document the user edits instead of a `## Questions` entry.

The worker owns `Status:`, `## Now`, `## Questions`, `## Next`, `## PRs`, `## Docs`, `## Done`, `## Executive Summary of Results`, and `## Watching`. New briefs have no such heading; add `## Executive Summary of Results` just after `## Goal` when you finish. `brief show` renders the summary first, expanded for statuses like `done`, `merge` and `approve` and collapsed to one line otherwise, before Needs and the rest of the body. The assigning parent owns the task sections from `Parent:` through `## Goal`, `## Context`, `## Acceptance Criteria`, and `## Limits`; preserve them. Keep `## Watching` last, after those sections. The title names the task itself, without a "Brief:" prefix.

Before setting `Status: done`, add and fill `## Executive Summary of Results` with a concise account of the outcome: at most 1–3 paragraphs, plus any absolutely critical table. This summary belongs in the brief even when the full output lives elsewhere. For a review brief, put the verdict here. `brief check` warns if a done brief has this heading but leaves it empty; it does not block the status edit, and older briefs without the heading remain valid.

## Edit and validate

Prefer the edit verbs. They preserve existing heading order and spacing, remove emptied headings, validate the result, and refuse edits that break the brief:

```sh
lemonaid brief status --self blocked
lemonaid brief status --self clear
lemonaid brief bullet add --self "Next" "open the PR"
lemonaid brief bullet set --self "open the PR" "PR #12 open"
lemonaid brief bullet rm --self "PR #12 open"
lemonaid brief pr add --self <PR-URL> "Delivery service" --review <review-doc-link-or-path>  # a path is also watched for All edits
lemonaid brief pr rm --self 12
lemonaid brief section show --self "Notes"
lemonaid brief section set --self "Notes" -          # body from stdin; new headings default to ##
lemonaid brief section set --self "Detail" --level 3 --parent "Notes" -
lemonaid brief section rm --self "Detail"             # removes its descendants too
lemonaid brief migrate --self
```

`bullet add` accepts any heading name. Existing headings retain their level; missing headings default to level 2, except Needs, Running, Waiting on, and Lemons, which are created under Now.

`bullet set` and `rm` match the beginning of exactly one direct bullet anywhere in the brief, ignoring case; `--heading "Notes"` scopes the match. Fenced examples are ignored. Duplicate heading names are refused with their parent and line number, rather than choosing one.

`Done` additions go at the top of that section.

`lemonaid brief now --self "..."` replaces progress in `## Now`, keeping existing PRs and Docs tables when their headings are omitted; pass `-` to read it from stdin. It refuses a body that drops any other sub-heading the section has; to change one line use the bullet verbs, and to rewrite the whole section pass `--replace-all` (

`lemonaid brief now --self --replace-all -`). Supplying a legacy PRs or Docs heading replaces that table. Once promoted sections exist, `brief now` still edits Now in place and leaves the separate sections unchanged. Its replacement body must omit Next, PRs, Docs and Done headings, including with `--replace-all`; edit a separate section with `lemonaid brief section set --self "Next" -` (substitute its heading), or use the bullet verbs. `brief now` never migrates headings. Use `brief pr rm` or `brief doc rm` to remove individual rows.

<!-- harness: claude -->
You may edit a brief directly. After every hand edit, run `lemonaid brief check --self` and fix its reports; the Stop hook also keeps the turn from ending with an invalid brief.
<!-- /harness -->

<!-- harness: codex -->
Use the verbs to update a brief outside your workspace. Whether they run without a permission prompt depends on your installed allow rules; hand edits outside the workspace require the applicable filesystem permission. After every hand edit, run `lemonaid brief check --self` and fix its reports; nothing automatically checks a Codex hand edit.
<!-- /harness -->

## Declare subscriptions and watch them

`## Watching` lists one `lemonaid watch` command per line; legacy `## Waiters` remains readable. Edit it with `brief watching add|set|rm` (`brief waiter` is an alias). These lines describe subscriptions, regardless of whether a separate waiter is running.

List every doc you wrote for someone to read as a Docs row. The Watch column accepts `Comments` (the default; `Relay comments` is its old name) or `All edits`, not booleans. `brief doc rm` removes the row. `Output-Doc:` supplies the first row, starting `watch doc` adds one, and `brief check` warns about linked documents without rows.

List a lemon you must hear about, a child or not, as a Lemons row; repeat `--to STATUS` (or `needs`) to choose what wakes you. `brief lemon set` changes a row and `brief lemon rm` removes it. An explicit row for a child replaces its defaults. Every watched lemon is reported once when its harness exits, its session or place is gone, it is deaf, no lemon takes up its brief within 5 minutes of its start, or it goes idle with its brief untouched since it started, unless its brief is `done`.

`lemonaid watch --self` reads these sources together and reports what changed in one batch:

| Source | Subscribe with | What wakes you |
|---|---|---|
| PR | `brief pr add --self <url> "<purpose>" [--review <doc>]` | By your role on it: merge or close, a push you didn't make, a draft or review-decision change, new comments, a base conflict, failed CI (passed CI only with `--ci`). `--review` also watches that review doc. |
| Doc | `brief doc add --self <path> "<purpose>" [--watch "All edits"]` | An unanswered comment; with `All edits`, also a body edit after a quiet period. |
| Lemon | `brief lemon add --self <lemon> --purpose "<why>" [--to STATUS ...]` | Its Status reaching a `--to` status, or a new Needs ask if `needs` is among them (default `merge`, `done`, `needs`; an explicit `--to` replaces the default); its harness exiting, its place going, it going deaf, it never starting, or it going idle with its brief untouched. |
| Children | Automatic; `brief watching add --self "lemonaid watch briefs --children --self --to <status>"` to choose statuses | A child reaching `merge` or `done`; the same liveness failures as a Lemon row. |
| Repo | `brief watching add --self "lemonaid watch repo --wait <owner/name> --once"` | A PR opened ready or marked ready, a `--label` added, a seen PR closed or merged, or with `--pushes` a ready PR's head moving. |
| File | `brief watching add --self "lemonaid watch file --wait <path> --quiet 2"` | A file created, removed or changed; for a directory, a visible file directly in it added, removed or rewritten (`--ignore-removed` skips removals). With `--deadline 45m`, also nothing changing by then. |
| Command | `lemonaid run --self -- <command>`, or `--lemon <your Lemon-ID>` in a new tmux window or `nohup` | The command exiting, with its exit status. Start every long command this way, not with a marker file. |
| Mailbox | Automatic | Any pending message for you. |

A PR you are only reviewing, or one you merely parent, wakes you for fewer events: see `watch-pr`.

Every other PR URL in your brief subscribes you to its merge or close, and that event asks whether the link is still relevant for your user. Answer by updating the brief, or by leaving the link if it still helps. To keep a link without the question, also list the PR under a `## No nudge` heading. If the user has set `[watch.pr] link_nudge = false`, links subscribe nothing.

Read your work's current state first. A first subscription takes current state as seen, except unanswered doc threads. Document subscriptions continue while your session exists, whatever its Status.

<!-- harness: claude -->
Check `lemonaid watch --self --status`. If it says `push scout running`, lemonaid is watching for you and pushes each batch into your session; handle each batch as it arrives. If it says `no watcher running`, run `lemonaid watch --self --push`, which starts a detached scout and returns. Only if that prints `not started`, run `lemonaid watch --self` as a background Bash task (`run_in_background`, `timeout: 2147483647`) and rearm it after handling each batch. Stop separate mailbox, PR and children waiters before switching.
<!-- /harness -->

<!-- harness: codex -->
Check `lemonaid watch --self --status`. If it says `push scout running`, lemonaid is watching for you and queues each batch into your thread; handle each batch as it arrives. If it says `no watcher running`, run `lemonaid watch --self --push` with escalated permissions, which starts the scout and returns; only if that prints `not started`, run `lemonaid watch --self --codex-thread` in an escalated exec_command session and rearm it after each batch. Stop separate mailbox, PR and children waiters before switching. An idle Codex without an armed waiter may not start a turn for queued messages; `tell` treats it as deaf and prompts it to read its mailbox.
<!-- /harness -->

Idle lemons wait on events and never self-poll or schedule repeated wakeups.

## Check children and finished work

The unified watcher watches child status changes automatically. Add an explicit `watch briefs --children --self --to <status>` subscription to select destination statuses.

A lead may add a `Name words:` line to its brief header: five- and three-letter words tied to its work, best first (`Name words: audit check ink web`). Its children are named from them (`AuditInk`); `--name-words` on `brief new --child` overrides the line for one child.

Run `lemonaid brief children --self` when updating your brief; use `--json` for the tree and `held_by` reasons, or `--all` to include cleaned children. It lists child places, sessions, PRs, status, and descendants such as reviewers.

`cleanup: ready` means the child and its descendants say `done` and none of their sessions has an attached client. It says nothing about whether their code is on the trunk. Verify accepted output and preserved work yourself, then follow your user's cleanup authority and safeguards. Use an explicit place key with `lemonaid place toss <key>`; do not infer permission to force a teardown from `ready`. Preserve briefs as the record.

When your own work is accepted and nothing remains, stop your waiters with `lemonaid watch stop --self`, which also removes their entries (never `pkill -f` a waiter command: it stops every lemon's matching waiter). Remove any entry left for a waiter that had already exited, set `done`, and let your parent clean up your place. Remove closed PR rows from your table.

## Start a reviewer

The packaged review template sets `Hidden: yes`, so no separate `brief hide` command is needed. Use `brief hide` for other lemons you want out of the default inbox.

Use your user's policy for when to review, which harness, window, review-doc location, and the reviewer's parent. The mechanics are:

```sh
lemonaid brief new --child --template review --task <your-task-id> --observe --pr <PR-URL> --output-doc <absolute-doc-path> "Review repo#12: topic"
lemonaid lemon start :<review-window> --harness <claude-or-codex> --brief <printed-brief-path> --parent <self|parent> --name "Review repo#12 topic" --prompt "Review repo#12 topic. Instructions are in <printed-brief-path>; follow them."
```

With `[tasks] enabled = true`, the review template refuses to run without `--task`, your own task's ID; `--observe` leaves its holder alone. Only a teammate's PR that none of your tasks covers takes `--new-task` instead (see `docs/tasks.md`). With tasks disabled, omit `--task`, `--observe` and `--new-task`: they are refused. The first command prints an unattached child brief with you as parent; `--parent self` makes the reviewer your child, and its cleanup is yours. `--parent parent` makes it your sibling, a child of your own parent, and tells that parent in its mailbox; with no parent of your own, the reviewer has none either. Add the context the template cannot know: what changed and what needs the hardest check. `:<review-window>` is a window of your own tmux session, whatever it is called now; name another session as `<session>:<window>`. `lemon start` uses the configured harness command and attaches the brief to the reviewer that starts in that window, not to you. To attach a brief to an already running reviewer, use `lemonaid brief attach --session :<window> <file>`.

The review template keeps findings in the review doc, sets up PR and doc waiters, and keeps the reviewer watching, with no status, until the PR closes. Read the PR and arm `watch --self` for the subscriptions it lists. Keep review findings out of the brief. Follow your user's policy for marking the PR ready after review and CI.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.