Agent briefs
A subagent starts with an empty memory. It knows only what you write. Before you start any subagent,
workflow or long task, write a brief with templates/brief.md (in this skill's folder).
Steps
- Big task with several parts: first run a planning agent with
templates/planner.md. It returns 5 to 8 stages, each with a measurabledone_when. Each stage then gets its own brief. - Quality work (music, sound, visuals, writing style): first follow
templates/reference.md. Collect 2 to 3 references, measure them, write the gap, prototype one piece, and let the owner judge it before the rest. - Write the brief with every heading of
templates/brief.md. Write "none" under a heading that does not apply. Pastetemplates/test-policy.mdinto every brief that builds or changes something. - After a build step, review with 2 or 3 critics from
templates/critic.md, in parallel, on the same recorded material. Give the merged must_fix list to one fix agent. - Start a watchdog next to every agent that runs longer than about 15 minutes (see below).
- Tell the user what you started, the budget, and an honest estimate. Say what is uncertain.
Rules for every brief
- Read first: point to files and sections instead of pasting long context.
- Quote the owner's words (translated if needed), so the agent sees what was really asked.
- If the owner is away, say so: "The owner cannot answer. Decide yourself and record every decision."
- Done criteria must be checkable by a script, a test or a measurement. Use numbers and ranges.
- An agent cannot see or hear like a person. Make it measure (screenshots, frame counts, loudness, peaks), say in the report what nobody has looked at or listened to, and leave taste to the owner.
- Every brief has a time budget, a test budget and a stop rule: "When the time is used up, stop, write down what is left, and return." Long tasks also get a checkpoint ("At 2 h, if X has not started, fall back to Y").
- Never write "rerun all earlier tests" or "keep everything working" without limits. Test the new part at its location; rerun an old test only if you changed what it covers.
- List priorities for the case that time runs out, most important first, and say what happens to the rest.
- Deliverables keep the names, formats and lengths of what they replace, so the next step can swap them in.
- A progress file gets one timestamped line per finished piece, so the work survives an interruption.
- Hard rules state the reason ("Never save X: saving would erase its references").
- Carry earlier failures forward as rules ("an earlier clip played black: use Main profile and yuv420p").
- Time-box risky side quests: "Spend at most 15 minutes on it, then fall back to Y."
- Parallel agents get scope fences: "Step 3 is NOT your job: do not touch A or B."
- Ask for a fixed return format: what was done, what was skipped and why, measurements, test time, time used, an estimate for the rest, file locations.
Watchdog
Next to each long agent, start a background command that waits for the time budget and then prints a line:
sleep 5400; echo "BUDGET exceeded: stage 3 (90 min)"
Run it in the background (Claude Code notifies you when it finishes). When it fires: read the agent's progress file, then either tell the agent to wrap up and return, or stop it, or extend the budget once and tell the user. If the agent returns early, stop the watchdog.