ask-matt
MAmattpocock/skills336k4,217 new stars in the last 7 days
'Spawn a subagent', 'delegate this build, review or research', 'can I trust its report?', 'ask Codex, Claude, Grok or Gemini', 'check with Codex', 'have Codex build or review this', or stuck between two framings: choose and brief the delegate, drive its CLI, and verify the handoff.
A delegate knows only what you hand it, so brief the goal. Say what you are trying to achieve and for whom. Name the constraints that bind, the traps a smart newcomer would walk into, and how the result will be proved.
A brief with the goal in it comes back with judgement. "Change X to Y" gets Y, even when Y is wrong. A delegate that knows the goal can answer "this step is redundant, here is why", and that answer often changes what ships. That is the return on a brief's length: not compliance, judgement.
Manage a delegate the way a good owner manages you. Give it the goal and context, then trust its judgement on the means instead of prescribing steps. Push back where you disagree; its view doesn't bind you.
Read the selected CLI's reference before writing the brief or making the first call. Its rules shape the brief as well as the command. Use it every time you drive the CLI as a peer, builder or reviewer; never drive one from memory. The table under Choosing the delegate lists the references. Apply the independent-review skill for unsteered review in fresh Codex by default, then headless Claude Code, then Grok. Gemini adds a second opinion beside that round.
independent-review § Triage).If the brief would be nearly as long as the diff, write the diff. A delegate must rediscover the file, conventions and surrounding code before changing anything.
| Situation | Who |
|---|---|
| You know the file and the line, and the change is mechanical | you, directly — no brief, no round trip |
| It needs exploration, or you are unsure of the mechanism | a delegate |
| It needs real test coverage | a delegate, or one focused test you write yourself |
| A naive fix would walk into a trap | a delegate, with the trap in the brief — this is where a long brief earns out |
Three things, and the first is the one most often skipped:
Ask it to exercise every existing page and function the stage touches, not only its own. Ask for this explicitly in the brief, including code the delegate did not write.
git log --oneline <last-reviewed>..HEAD to fail loudly when the range is stale.references/brief-template.md, asking for what it built, choices where the brief was silent, spec corrections, blockers and validation actually run. It also names commands for you and what must be redeployed after the push.For a contract shared by sessions in separate repositories, apply the release-gate skill's backend-first rule before handing off a build.
Bring a peer in while it can still change the framing. Use it to test an angle, hook, load-bearing claim or an unvoiced critique. A different model family can catch different misses. Keep routine drafting and mechanical work in the session.
State the goal once and give the peer enough context to challenge it. Explain the reasoning behind non-obvious decisions. Give the peer room to choose the format, fonts, dimensions, libraries and steps unless any are binding.
| Give it | Example |
|---|---|
| Target and audience | "A choice about whether retries belong in the client or the queue" |
| Established facts | Logs, measurements, source quotes, the owner's words, prior attempts and audience context |
| Actual draft | The artifact and alternatives already considered |
| Reasoning and uncertainty | What you rejected and why, what still binds the decision and how you'll prove it |
Iterate in the same conversation with specific reactions. Agree where it is right, push back on surprising choices and name missed constraints. Use ordinary replies without repackaging the goal or numbering the reaction. Three to eight turns is normal. For example, "agree on the queue, but a poison message would block the shard. How would that work?"
Keep iterating while a critique, disputed choice or option remains untested. If the draft misses the owner's stated goal, or you want to present two reasonable versions, argue through the trade-off first. You have converged when you would defend the result against your own critique, neither peer finds a new angle and the remaining differences concern taste.
Converge before surfacing. Bring the owner one result. If a real deadlock remains after iteration, state the disagreement plainly. Ask when intent would change the work or when only the owner knows a fact or constraint that would reshape it. The owner decides intent and taste.
| Delegate | Strong at | Watch for |
|---|---|---|
| A Claude subagent (the Agent tool) | Work that needs this repository's context: it loads the project instructions automatically | Fresh context: none of your conversation or tool results. It loads project instructions and your settings and inherits your framing, so it never reviews your work. A review starts from the repository and brief alone (independent-review). A subagent may have no Agent tool of its own (observed 2026-06-10). |
The Codex CLI (references/codex.md) | Build a stage to a brief, debate decisions across turns, or review by default (independent-review) | A new session is read-only unless told otherwise. A build that changed nothing can sound successful; check the disk. |
The Grok CLI (references/grok.md) | A peer, builder or reviewer from a different model family | A round that could not read exits 0 after a sentence; length is the tell. |
Headless Claude Code (references/claude.md) | A session with none of your conversation: a builder or peer for a non-Claude agent, or a reviewer | Plain -p loads project and user instructions and auto-memory; only a restricted review starts from the repository alone. Resume keeps the model but drops effort, permission mode and tools unless re-sent (observed 2026-10-24). |
The Antigravity CLI (references/gemini.md) | A peer, builder or second opinion from another model family | Its review shell can still write, so a release never rests on its round. Headless commands and writes ran unasked, and a refused permission ended the turn with exit 0 (observed 2026-11-14, CLI 1.5.8, macOS). |
The session that wrote the code never clears it. Use a fresh reviewer who did not build the code. Prefer another model family, or use a fresh session of the builder's family when no other family can run. Never resume or fork the building thread, or use its subagent as reviewer. Apply independent-review for the loop and its stopping rule.
grep -o '"effort":"[a-z]*"' <transcript> | sort | uniq -c. Agent-tool spawns inherited parent effort at every tier (measured 2026-08-22). Claude Code 2.1.310 adds an Agent-tool effort field (read 2026-10-24). Workflow agent options and agent-definition frontmatter can also set it.git show --stat --name-only --format= <ref> per planned change.node_modules links to another checkout; removal deletes through the link. Apply independent-review for the recipe.migration list on the database that will receive them, since a reserved floor cannot prevent collisions with migrations applied meanwhile.git checkout -- <file> (or git restore) on a tree carrying uncommitted work. Either destroys everything uncommitted in the file, a delegate's whole build included. Undo a probe by re-editing the exact change back, or use git stash push -- <file> around it. Commit a build before deliberately breaking it to verify a test.flight-deck.independent-review § When).git status and file times, since a run without write access can return a convincing report with no changes.release-gate § Stage and phase close for full gates. A builder's passing report remains a claim, even when it can reach development. Read every line it adds to a coverage map or status file; replace stage-completion evidence from your own run rather than inventing counts.HEAD and git status --short at the start and again before delivering. Put this instruction in the audit brief. Reverify findings about deleted, moved or renamed files against current HEAD.Each rule's origin, the case that taught it, is in receipts.md beside this file; read it when a rule's edge is unclear.
You can verify the delegate's report without asking it anything, and you repeat no result of its that you have not run yourself.
| File | Holds | Read when |
|---|---|---|
references/brief-template.md | a brief's skeleton, with what each part is for, and the handoff the delegate writes back | writing any brief longer than a paragraph; reading a handoff |
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
MAmattpocock/skills336k4,217 new stars in the last 7 days
OBobra/superpowers331k5,030 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
AFaffaan-m/ECC314k3,503 new stars in the last 7 days