Repository navigation
feat(brand-explainer): Add brand pack and brand-locked explainer skills - #14
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tsdownloads Google Fonts (tested live) and validates.skills/brand-explainer: wraps HyperFramesfaceless-explainerand replaces Step 2.stage.tsgeneratesframe.mdfrom the pack with explicit ink, canvas and accent keys plus an@font-faceblock, and keeps separate display, body and mono families. A test runs upstream's owntokens.mjson 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.tsenforces the pack's owncopy_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.tsgates the word budget (frompacing.json), missing voice clips, voice total, render duration (ffprobe), and the#rootground.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.mdwas rendered in two fictional packs on the offline Kokoro voice, with no account billed. Contact sheets are inskills/brand-explainer/README.md.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:
verify.ts captionsgate catches this.scene:figures were missed.Stacked on the foundation PR.
Closes #3