Document 11 of 14 · docs/NEW-TEMPLATE-SKILL.md

new-template skill, draft

SPEC.md section 8 says the skill is extracted after the invoice proves the pattern, the way new-tool came out of measureandbuy's paint calculator. This draft exists so the traps already found do not have to be found twice. The build session that ships the invoice turns it into ~/.ai/skills/new-template/SKILL.md and deletes this file.

One template, in order

  1. Research, one hour. The search phrase from CATALOG.md; the top ten results looked at as printed pages, not screenshots; what they get wrong on paper (margins, ink, a name that cannot fit). One paragraph in meta.json copy.description notes.
  2. Fields before design. Write fields.json first: what a person needs to change and nothing more. Every text field gets a max. Every long field decides whether it gets assist. Lists get a cap. The compute string is the only arithmetic.
  3. Design in HTML and CSS, on a .sheet in physical units. @page carries the default size only; the runtime swaps it. Two faces at most, from data/fonts.md, as static instances. Colours only through --t-*. Every editable region is a fixed box with data-max. Light-ink theme included. Decoration is CSS or SVG we drew.
  4. Print it. At 100%, on the home printer, on the paper the template is for. Photograph it into the session. Fix what the paper shows (it always shows something).
  5. Drive it. The sweep at 1440 and 390; the overflow test with every field at its longest allowed value and one past it; every optional field empty; pdfcheck on the free file (page count, box size, FontFile2 present, Type3 absent, credit line present).
  6. Shots. shots.mjs for preview, OG and pin. Look at the pin at phone size once.
  7. Copy. copy.mjs drafts; a person rewrites the description, the five FAQs, the pin text and the OG line into meta.json; human-voice lint.
  8. Register. build.mjs (catalog, landing page, customizer, free file, sitemap), the category page, related grids, the homepage "new this month" if it is new this month. Month pages if meta.months is set.
  9. Verify live after the deploy: the free file downloads from www, the customizer opens on a phone, one test-mode purchase if the runtime changed.
  10. Handoff line in HANDOFF.md: what shipped, what the paper showed, anything the next template should know.

Traps, each one already paid for

What "done" means for one template

The free file downloads from www and opens in Preview and Acrobat; the customizer passes the sweep at both widths; the overflow test fires and clears; pdfcheck passes; the page carries three valid JSON-LD blocks and the Rich Pin fields; it is in the sitemap, the category page and two related grids; and the paper photo is in the handoff.

All documents