Tables & code
Field contracts and worked examples for the 4 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 77 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.
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.