/markout:markout-composite-cells-cardsfrom markout
Renders composite values (Change<V>, Fraction, Share, Percent, Segments, Delta/Goal) as dense Markdown cells that decompose into typed columns for TSV/JSONL output. For metric cards, role matrices, verdict cards with threshold-based emphasis.
Ships in markout. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Composite cells are data-only scalar properties. With FieldLayout.Table (default) each becomes
a row: Markdown renders a dense human value, and TableFormatter (TSV/JSONL) decomposes the same
cell into typed columns — no pre-stringifying, one declaration serves both. This replaces
pre-formatting numbers into strings (which loses the machine-readable form).
Routing gate: if the task requires TSV, JSONL, plain/pretty/ANSI output, or a runtime format switch, also invoke
markout-output-formatsbefore coding.
Markout has no reflection fallback. Every report needs a partial context registering each model
type and a Serialize call that passes it. [MarkoutSerializable] is optional customization, not
a prerequisite for registration. When the report needs an H1, use a scalar title property with
[MarkoutSerializable(TitleProperty = nameof(Title))].
using Markout;
[MarkoutContext(typeof(QualityCard))] // register every model type you serialize
public partial class QualityCardContext : MarkoutSerializerContext { }
MarkoutSerializer.Serialize(card, Console.Out, QualityCardContext.Default);
| Shape | Dense Markdown | Decomposed columns |
|---|---|---|
Change<V> + [MarkoutDelta(Delta.Percent)] | 98555 → 61190 (−38%) | before, after, delta_pct |
Fraction(count, total) | 24/24 | count, total |
Share(value, whole) + [MarkoutUnit("s")] | 103s (93%) | value, pct |
Percent(part, whole) | 93% | pct |
Segments(new Segment(l, v), …) | 21/171/236 | one column per label |
Change<Fraction> / Change<Segments> | 24/24 → 24/24 | {sub}_before / {sub}_after |
[MarkoutSerializable] // FieldLayout.Table (default): each property is a row
public class QualityCard
{
[MarkoutPropertyName("tasks correct")]
public Change<Fraction> TasksCorrect { get; set; } // 24/24 → 24/24
[MarkoutPropertyName("Session IET"), MarkoutDelta(Delta.Percent)]
public Change<long> SessionIet { get; set; } // 98555 → 61190 (−38%)
public string? Verdict { get; set; } // BETTER
}
Change<V> is named Change (NOT Comparison — collides with System.Comparison<T>).—, never NaN/Inf.Change<V> nests over composites: Change<Fraction>, Change<Share>, Change<Segments>.[MarkoutDelta(Delta.Percent|Absolute|Multiple)] appends the signed change to a numeric
Change<V>: (−38%), (+120), 15 → 5 (3× fewer).[MarkoutDeltaNoun("solved")] adds a caller noun: 4/6 → 6/6 (+2 solved).[MarkoutNumberFormat("N0")] applies one .NET numeric format to scalar Change<V> operands and
an absolute/noun delta: 165 → 1,168 (+1,003). Structured TSV/JSONL decomposition stays numeric
and ungrouped. Keep the property typed; do not preformat the operands or delta.[MarkoutGoal(Goal.Higher|Lower)] makes Markout derive two columns — a structural direction
(increased/decreased/introduced/resolved/unchanged) and a goal-applied status
(good/bad/neutral) — so you don't hand-code ceiling/floor polarity. Goal.Higher, 0.001
treats sub-threshold movement as unchanged. In Markdown the polarity word renders inline:
98555 → 61190 (−38%, good).var jsonl = new MarkoutWriterOptions { TableMode = MarkoutTableMode.Jsonl, JsonTypedValues = true };
MarkoutSerializer.Serialize(card, Console.Out, new TableFormatter(), QualityCardContext.Default, jsonl);
// {"field":"Session IET","before":98555,"after":61190,"delta_pct":-38}
JSONL is heterogeneous (each record only its cell's keys); TSV keeps a uniform column union
(absent cells blank). JsonTypedValues = true emits numbers as JSON numbers; without it, all strings.
When a composite is a column of an element table (List<T> with a composite property), TSV/JSONL
decompose it into {column}_{sub} columns (score_before, bugs_status); Markdown keeps the dense
cell. [MarkoutIgnoreColumnWhen]-hidden columns drop from the decomposition too.
List<MetricChange<T>> — a gated metric per row. MetricChange<T>(Name, Before, After, Target?, TargetLabel?, Status, StatusLabel?), T : struct numeric (a composite T is compile error
MARKOUT005). Set { Goal = Goal.Higher|Lower } to derive direction/status; Markdown inlines
the status word and a goal marker on the label (Failures (-)), dropping the Status column.List<MultiSourceRow> — a role matrix. MultiSourceRow(label, params Source[]),
Source(role, IMarkoutCell? value); roles pivot to columns in Markdown (absent role → -), JSONL
emits {role}_{side}_{field} keys. Scalars work: new Source("baseline", 2); Source.Text(role, s).
Set the label header with [MarkoutLabelHeader("Metric")]. To declaratively bold scalar cells
that clear a threshold in rich output, set emphasis on the row:
new MultiSourceRow(label, sources) { Emphasis = MarkoutEmphasis.AtLeast(cut) } (or .AtMost(cut)).
Plain text and TSV/JSONL ignore emphasis and preserve raw values.Verdict(GateStatus Status, string? Label = null) — a first-class verdict cell; use as a Source.[MarkoutSection(Name="…", IncludeSectionInStructuredRows = true)] prepends a section column to
TSV/JSONL — multiplex several card sections into one stream. Decomposition keys are snake_case.[MarkoutIgnoreInTable] on card lists only when nested inside another table.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
markdown-table, composite-cell, data-serialization, metric-card, verdict
Generated from the plugin's indexed repository (richlander/markout) — no native marketplace selected
npx claudepluginhub p/richlander-markout5 skills in this plugin
/markoutUse when generating Markdown or other structured output (plain text, ANSI, pretty tables, TSV/JSONL) from C# objects, or when diagnosing Markout source-generator errors such as MARKOUT006. Markout replaces hand-built strings in CLIs, tools, reports, and agent output. It looks like System.Text.Json source-gen but the rules differ (NO reflection fallback), so it needs a generated MarkoutSerializerContext and Markout-specific attributes. Covers the required pattern: registered models, the partial context, scalar field shaping, typed value formatters, context-wide options, table diagnostics, semantic child rows, and serialization. Route non-Markdown output to markout-output-formats; data-selected/filtered views to markout-conditional-composition; and visual bars, trees, callouts, definitions, or code blocks to markout-built-in-shapes. Composite cells are covered separately. Don't decompile the Markout assembly or web-search its API — every idiom you need is in the skills./markout-built-in-shapesUse when a report needs rich visual elements — bar charts, stacked/proportional bars, alert boxes, tree hierarchies, term/definition glossaries, or code blocks — instead of hand-drawn ASCII or manual Markdown. Markout ships these as data types (Metric, Breakdown/Slice, Callout, TreeNode, Description, CodeSection, MarkoutTable, MappedTextDiff) you attach as model properties. If the task requests terminal/Unicode, plain text, ANSI, or another non-Markdown sink, also invoke markout-output-formats for the formatter call. Don't decompile the assembly or web-search the API — the shape types are here./markout-conditional-compositionUse when a Markout report must adapt to its data — show or hide whole sections, drop table columns that are empty/uniform, filter output to a chosen set of sections, or render one model into several shapes ("one model, many views"). This is Markout's highest-value idiom: declare the conditions with attributes instead of hand-writing if/else + StringBuilder. Don't decompile the assembly or web-search the API — the conditional idioms are here./markout-output-formatsUse when you need output other than default Markdown — plain text / Unicode, ANSI terminal (Spectre), pretty aligned tables, or TSV/JSONL exports — or when one model must serve several formats from a single render path (a CLI `--format` switch). Also covers semantic inline code that renders as Markdown code spans but decodes to plain text in TSV/JSONL. Pick the format with a formatter + MarkoutWriterOptions; never hand-build TSV/JSONL. Don't decompile the assembly or web-search the API — the multi-format idioms are all here.Other plugins' skills for the same job