# Skill Output Conventions

How skills format **user-facing output** and **interactive prompts** at
runtime. The companion to `skill-best-practices.md`.

## 1. Purpose & Scope

`skill-best-practices.md` governs **write-time** authoring rules — file
structure, naming, frontmatter, length. This doc governs **runtime**
interaction: how a skill, while executing, presents choices and
information to the user. `output-contract.md` is a third, separate
concern — the JSON cabinet members emit during audits, not user-facing
output.

Stating the boundary keeps the three docs from drifting together: if a
rule is about *how a SKILL.md is written*, it belongs in
skill-best-practices; if it's about *what the running skill shows the
user*, it belongs here.

## 2. When to Use AskUserQuestion

`AskUserQuestion` is the native interactive primitive — a structured
menu of 2-4 options the user picks from. Use it when **all** of these
hold:

- The choice is among **discrete options** (not free text).
- The answer **branches the skill's behavior** (it's a real decision).
- There are **2-4 mutually-exclusive choices** (or a small set if
  multiSelect).
- It is **not an obvious-default confirm** — a yes/no where one answer
  is plainly expected (see §5).
- The item count is **bounded and small** — not a variable-length loop
  (see §4).

If any answer is "no," use prose (§5) or a table (§6) instead.

## 3. Schema Facts Authors Must Get Right

Verified against the live schema. Get these wrong and the call fails or
behaves unexpectedly.

- **1-4 questions per call; 2-4 options per question.** Outside this
  range fails validation.
- **`header` is REQUIRED** — a short chip/tag, **max 12 chars** (e.g.
  `Branch`, `Verdict`, `Decision`). Omitting it fails validation. This
  is the most common authoring mistake.
- **Cost is per-session, not per-call.** AskUserQuestion is a deferred
  tool: the first use in a session loads its schema (one ToolSearch
  round-trip, ~200 tokens); every call after that is free. Don't
  under-use it to "save" a cost that's already paid.
- **`multiSelect` is required.** `false` for mutually-exclusive choices
  (the norm — one answer). `true` only when the user may legitimately
  pick more than one.
- **"Other" is auto-added** by the harness. Never add an "Other" /
  "Something else" option manually — it duplicates.
- **A dialog swallows same-turn prose. Never pair one with an
  explanation the user must read.** When AskUserQuestion fires, the
  dialog takes over the screen — any prose streamed in the same turn
  is effectively invisible at decision time. Two compliant shapes
  (user-confirmed 2026-06-06, after being bitten twice in one day):
  1. **Explanation-first (default for read-then-decide loops):** end
     the turn with the full explanation as prose and a plain-text
     question ("Accept, edit, or skip?"). Take the user's prose
     answer. No dialog at all — this also satisfies the bounded-list
     caveat below for sequential same-shaped decisions.
  2. **Self-sufficient dialog (for small, comparable artifacts):**
     the dialog carries ALL decision content itself. Single-select
     options support a `preview` field (markdown, side-by-side) —
     put the artifact in the preview, attach the SAME preview to
     every option so it stays visible whichever option is focused,
     tradeoffs in option `description`s. Same-turn prose: one-line
     pointer max. If the content doesn't fit a preview pane, you're
     in shape 1.
  (Updated 2026-06-06: earlier guidance said preview was
  undependable; the harness now renders it reliably for single-select
  questions. multiSelect still has no preview.)
- **Unavailable in Task-spawned subagents.** Agents launched via the
  Task tool (execute-group worktree agents, Workflow agents,
  `context:fork`) cannot call AskUserQuestion — they must use prose.
  This warning outlives any current wiring: a skill that runs in the
  main session today may be called from a subagent tomorrow.
- **Pre-specify each call site** in the SKILL.md prose — exact `header`,
  `question`, and option labels/descriptions. In a long skill body the
  model otherwise drifts to a prose question instead of emitting the
  structured call. (This is an authoring practice — `skill-best-practices.md`
  is the write-time home for it — surfaced here because it's what makes a
  runtime AskUserQuestion call fire reliably.)

## 4. Bounded-List Caveat

AskUserQuestion is for **decisions**, not **batch processing**. A
variable-length loop of homogeneous items — reviewing 12 copy edits,
approving 30 line items — should not become 30 sequential dialogs. Past
~5 items, prefer a single batch path (present all, take one combined
response) over N prompts. The fatigue of N near-identical dialogs
outweighs the structure they add.

The test: are these **genuine, distinct decisions** (→ AskUserQuestion,
one per item up to a small cap) or **homogeneous review items** (→ batch
path)?

## 5. When to Use Prose

Use plain conversational prose for:

- **Free-text gathering** — names, reasons, descriptions, anything not
  a fixed menu.
- **Clarifications and reasons** — "why did you defer this?"
- **Obvious-default confirms** — a yes/no where one answer is plainly
  expected and the other is rare. A structured menu over-formalizes it;
  a prose "Want me to X? (I'll skip if not)" is lighter.

## 6. When to Use Markdown Tables

Use a table for **rosters, status, or any data with ≥2 columns** —
where the value is in *comparing rows*, not *choosing one*. The `/menu`
skill (skills × description) and `/cabinet` (member × domain) are
canonical examples. A table presents; AskUserQuestion decides. Don't use
a table to offer a choice, and don't use AskUserQuestion to display a
list the user isn't picking from.

## 7. Option-Block Format

When presenting options as prose (subagent context, or >4 options), the
canonical format is in `templates/skills/onboard/phases/options.md` —
name, "what it is," "good for," "trade-off" per option. Do not duplicate
that format here; reference it.

## 8. Section Structure & Tone

`options.md` is also canonical for tone: **present, don't prescribe.**
"Here are your options" not "I recommend X." Ground choices in the
user's actual situation. This applies whether the choice is rendered via
AskUserQuestion or prose — the primitive changes, the posture doesn't.

## 9. Operator-Facing Register: Plain English by Default

When a skill addresses the operator about substantial work — a plan, an
audit finding, a checkpoint decision, a status report — there are **two
readers, and they need two registers:**

- **The filed artifact** (the plan in pib-db, the finding's record, the
  report on disk) stays **technical and complete** — exact file paths,
  function names, fids, acceptance criteria. A future session executes
  from it cold, so precision is the whole point.
- **What you SAY to the operator** is **plain English** — concept first,
  the stakes spelled out, any decision framed as options with tradeoffs.
  Keep file paths and symbol names out of the spoken prose; they live in
  the filed artifact, reachable on request or behind a collapsed
  "full detail" pointer.

The operator is the director, not the implementer (see the user-role
brief): they decide *what* and *why* and must be able to weigh in without
parsing every technical detail. A wall of paths and identifiers is noise
to that judgment — it buries the one thing they're being asked to decide.
Lead with what changed and why it matters; keep the file-and-line
narrative for the record.

This is the **default register** for operator-facing skill output. It
does NOT relax the filed artifact's rigor — a plan still files
QA-compliant notes, an audit still records exact locations. The split is
between the *record* (technical) and the *briefing* (plain). When in
doubt, write the briefing as if explaining to a sharp colleague who
hasn't seen the code.

This is a *register* rule (how to phrase), distinct from §5 (prose vs
dialog as the *primitive*) and §8 (present-don't-prescribe as the
*posture*) — all three compose.

## 10. Calibration Examples

**Before/after — engagement decision items** (the Tier 1 conversion):

> Before: "Present the options conversationally and let the client
> choose."
> After: For each decision item, one AskUserQuestion call — `header:
> "Decision"`, `question:` the item's client-facing prompt, `options:`
> the item's own authored option list, `multiSelect: false`. One call
> per item; never batched.

Why: the items already carry discrete, consultant-authored options, and
this is the consultant↔client boundary where ambiguity is most expensive
and the client can't ask for real-time clarification.

**Before/after — triage-audit fallback verdict:**

> Before: a prose prompt listing "Fix / Defer / Reject / Question" and
> asking the user to type one.
> After: AskUserQuestion — `header: "Verdict"`, four options, one per
> finding, `multiSelect: false`.

Why: four discrete mutually-exclusive verdicts that branch behavior —
this scores well on all five §2 criteria.

**EXCLUDED — orient registry-orphan prompt** (do NOT convert):

> "Your old project 'deal-v1' seems to have been deleted — want me to
> remove it from the registry?"

This looks like a Remove/Keep choice but is an **obvious-default
confirm**: the path no longer exists, so removal is plainly expected and
"keep" is the rare exception. A structured two-option menu over-formalizes
a routine yes/no. Leave it prose. This is the boundary that stops
AskUserQuestion from being applied to every binary question in the
codebase.
