Skip to content

feat(brand-explainer): Add brand pack and brand-locked explainer skills - #14

Merged
jeromehardaway merged 4 commits into
chore/foundationfrom
feat/brand-explainer
Oct 14, 2026
Merged

jeromehardaway merged 4 commits into
chore/foundationfrom
feat/brand-explainer

Conversation

@jeromehardaway

@jeromehardaway jeromehardaway commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What

  • skills/brand-pack: guided capture into a schema pack at ~/.config/hashflag/brands/<slug>/. It asks one field at a time and refuses to start inside a subagent or CI. fetch-fonts.ts downloads Google Fonts (tested live) and validates.
  • skills/brand-explainer: wraps HyperFrames faceless-explainer and replaces Step 2.
    • stage.ts generates frame.md from the pack with explicit ink, canvas and accent keys plus an @font-face block, and keeps separate display, body and mono families. A test runs upstream's own tokens.mjs on the output for all three packs. It copies upstream's caption skin with the pack's casing (not vendored) and refuses to overwrite a hand-edited frame.md without --force.
    • check-copy.ts enforces the pack's own copy_rules. The 23 VWC gate assertions are ported, plus fixes for the false negatives the dossier probed: "Do not wait — sign up", "Never miss a cohort: enroll", tab-indented and curly-quoted figures, figures in frame HTML, and CSS class names.
    • verify.ts gates the word budget (from pacing.json), missing voice clips, voice total, render duration (ffprobe), and the #root ground.
  • brands/default: a neutral pack. Its palette is new, and its fonts (Inter and JetBrains Mono) are OFL with license texts.
  • fonts.lock + lib/check-fonts.ts: finds fonts by magic bytes, not names, so renamed commercial fonts fail CI. It caught hashflagify's two fonts, which are now listed.

End-to-end renders (ACs 4–5)

The same example/SCRIPT.md was rendered in two fictional packs on the offline Kokoro voice, with no account billed. Contact sheets are in skills/brand-explainer/README.md.

  • Wrenfield: 72.4 s.
  • Lark & Lug: 79.7 s.

Every gate passed: copy, words, audio, lint, check (WCAG AA) and render length.

The renders turned up defects, which are fixed in the last commit:

  • The copy gate never saw caption words.
  • Kokoro captions drift from the script ("sign and sheet"). A new verify.ts captions gate catches this.
  • frame.md asked for weights the fonts don't ship.
  • Wrenfield's accent can't carry text, so the CTA plate is now computed from contrast.
  • Labels were too small for video.
  • Ordinal figures and scene: figures were missed.
  • Kokoro pace re-measured in the full pipeline: 2.70–2.97 wps.

Stacked on the foundation PR.

Closes #3

brand-pack captures an organization's brand into a schema pack outside
any repo and fetches its Google Fonts. brand-explainer wraps the
HyperFrames faceless-explainer pipeline: stage.ts generates frame.md
and the caption skin from the pack, check-copy.ts gates copy with the
pack's own rules, and verify.ts gates word budget, voice clips,
render length and the video ground. Adds a neutral default pack with
OFL fonts and a fonts.lock guard in CI.

Refs #3
- Scan caption words, which live in a script block the gate skipped.
- Add a captions gate that diffs transcribed captions against the script.
- Compute every text-legal color pair and a readable CTA plate.
- Ask only for heading weights that ship, in frame.md and the skin.
- Size the type ramp for video.
- List ordinals and storyboard scene figures; ignore count-up zeros.
- Fail staging when the pack has no font files.
- Re-measure Kokoro pace in the full pipeline.
- Document worker dispatch, the packet size limit and autonomous runs.

Adds the README with both renders from one script.

Closes #3
@jeromehardaway
jeromehardaway merged commit 1fb2096 into chore/foundation Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant