Tables & code
Field contracts and worked examples for the 5 tables & code blocks.
Field contracts and worked examples for the tables & code blocks — converted at build time from the repo's authoring-skill reference. Every example body is YAML; in a real doc the fence language is the block type (for example sequence … ). Schemas are strict — unknown fields are rejected. See the field contract for the at-a-glance shape of all 87 blocks, or the block catalog for live previews.
Tables & metrics
table — comparison table
avo checkColumns may be objects: { label, align: l|c|r, highlight: boolean }. Cells
may be objects: { v: value, tone: pos|neg|warn|muted, lead: boolean, highlight: boolean }. Optional top-level note.
stats — KPI / metric cards
avo checktrend is up | down | flat. delta is a string.
slo — service-level objectives with error budgets
avo checkOne row-card per objective. budget is the fraction of the error budget
consumed (a plain number): the burn bar is green below 0.5, amber 0.5–0.8,
red above 0.8; at or above 1 it reads "exhausted" and current tints red. Omit
budget to skip the bar. Use slo for reliability targets; use stats for
plain KPIs with trends.
benchmark — measured results, side by side
A scoreboard, not a decision matrix: scorecard scores options against
weighted criteria you invent; benchmark reports numbers you measured. One
column per subject, one row per metric.
avo checkThe winner is derived — never bold it yourself. Each row's best value is
found by reading the numbers out of the cells ($0.14, 310 ms, 1861 and
43.3% all compare), then bolded and tinted. better: low flips it for
latency and cost, better: none turns the highlight off for rows where big and
small are both fine. best: true on a cell forces the highlight — use it for a
tie or a winner that isn't a number. Cells are positional: one entry per
subject, in column order; a short list or an omitted value renders as —.
featured: true outlines one subject's whole column — the thing being argued
for. A subject with tone: muted tints its wins gray instead of the accent, so
"they beat us here" doesn't read as a win for your side.
When the same metric is measured under several conditions, name them in
variants and give each subject one value per condition. The values stack in
the cell, captioned, and each condition is compared on its own line:
title: Reasoning, with and without tools
subjects:
- { label: Ours, featured: true }
- { label: Theirs }
rows:
- label: Multidisciplinary reasoning
sub: Humanity's Last Exam
variants: [no tools, with tools]
cells:
- ["56.3%", "64.7%"]
- ["56.5%", "63.9%"]
- label: Health
sub: HealthBench Professional
cells:
- "59.8%"
- { value: "66.0%", note: preview build }note on a cell prints a small line above the value — which build produced the
number. metricLabel heads the first column (default Benchmark) and note at
block level is the footnote for measurement conditions.
code — code snippets, a diff, or a terminal session
One snippet needs no list — the top-level code / lang shorthand is the
default form:
avo checkSeveral snippets stack via blocks[] (each entry: code* + optional title,
lang):
blocks:
- title: schema.sql
lang: PostgreSQL
code: |
CREATE TABLE orders (id uuid PRIMARY KEY, total numeric);
- title: query.sql
lang: PostgreSQL
code: |
SELECT id, total FROM orders WHERE total > 100;Renders on a dark editor surface with syntax highlighting (kw, str, num, fn, ty,
com tokens) and a title bar — the same code styling applies in gallery cells and
sequence step snippets.
kind: terminal — a shell session (commands + output) via the top-level
session. The old terminal type is its permanent alias:
kind: terminal
title: deploy — production
session: |
$ kubectl rollout status deploy/api
# wait for the rollout to settle before tagging
deployment "api" successfully rolled out
$ git tag v1.4.1 && git push --tagsSame dark surface, parsed per line: $ starts a command (green prompt,
bold text), # a dim italic comment, and everything else is program
output. title labels the window bar (defaults to terminal). Use it for
an interactive session — what was typed and what came back; use plain code
with lang: bash for a script to copy, and steps for a runbook with prose
between commands.
kind: diff — a unified diff (before → after of code) in the top-level
code. The old diff type is its permanent alias:
kind: diff
title: "fix: clamp retry backoff"
lang: TypeScript
code: |
@@ -12,7 +12,7 @@
function backoff(attempt: number): number {
- return 100 * attempt ** 2;
+ return Math.min(30_000, 100 * attempt ** 2);
}Same dark surface, with per-line colouring: + lines green, - lines red,
@@ hunk headers dim. Use kind: diff to show a change (a bugfix, a config
migration, an API rename); use plain code to show code as it is.