authoring.primer
The shared context for writing a spec by hand: the two kinds of spec, the three concern files, the six kinds of reference, the order they get authored in, and which source is authoritative for which question.
It is a prerequisite rather than a procedure. Every other authoring skill names it instead of carrying a copy, so an agent reads it once per session and the rest of the session is already taught.
Installed by specs skills install as .claude/skills/specs-cli.authoring.primer/, then named as a prerequisite by the authoring skills.
Prerequisites
specs-cli.primer — what Specs is and the rules for reading its data. This primer adds what writing a spec requires.
Outline
- The two kinds —
specs/components/<key>/andspecs/compositions/<key>/— and how a folder key is spelled. - The three concern files, what each holds, and the
metadata.concernevery one of them states. - Anatomy element types, and the rule that
default.elementsdescribes every element while a variant describes only its delta. - The six references —
instanceOf,$binding,$slotContent,$token,$image, and the in-spec$refform — and what each resolves against. - The authoring order, and the two staged reading packs that precede it.
- The authority order: schema, then platform bindings, then rules and guidelines, then this site. Emitted output is never an authority.
- Where the shipped
rules/*.yamllayer sits against a library’s own ratified guidance.
Files it ships with
| Path | Carries |
|---|---|
rules/anatomy.yaml | When each element type applies |
rules/styles.yaml | Per style property, including image handling |
rules/layoutStyling.yaml | Flow and positioning |
rules/props.yaml | Prop modeling, including code-only props |
rules/slots.yaml | Slot declaration and fills |
rules/variants.yaml | Variant layering |
references/styles.md | Style properties, token placement, Figma style relationships |
references/slots-layout.md | Layout trees, auto against absolute positioning, slots across the three files |
A rules file is keyed to mirror the schema node it governs, and each item may cite the ADR it projects. A newly learned rule lands as an entry in the matching file, never as skill prose.
Related
- Authoring a component — the round these rules govern
component.author— the skill that consumes this primerguidelines.propose— the second rules layer, per system- Schema documents — the contract itself