feat: add release-infographic skill#96
Merged
Merged
Conversation
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.
Summary
Adds a project-scoped Claude Code skill,
release-infographic, that generates a mint-branded PNG summarizing what ships in a release, sourced fromCHANGELOG.md.It is a skill invoked by Claude (applies editorial judgment: highlights, copy, layout) — not an automatic hook on
npm run release. Rendering is deterministic HTML→PNG via a headless browser, so brand tokens and technical identifiers (mint-ds lint,gap-rule-color, …) come out exact — unlike AI-image infographics, which garble technical text.What's included
.claude/skills/release-infographic/SKILL.md— the editorial workflow.template.html— mint-branded shell (tokens fromapp/globals.cssinline) with{{placeholders}}and three layout presets (bento,linear,dashboard).render.mjs— HTML→PNG via Playwright, with an injectablelaunchso unit tests run without a real browser.render.test.mjs— Vitest unit tests (fake browser; no Chromium invitest run).EXTEND.md— pinned preferences (layout, language, tagline, width).release-assets/— generated PNGs + HTML records, versioned; auto-excluded from the npm tarball (thefilesallowlist).Supporting changes
package.json— addsplaywrightas a devDependency (renderer engine).vitest.config.ts— excludes.claude/worktrees/**from test discovery (fixes pre-existing worktree pollution).Test Plan
npm test— 520 tests pass, including 3 new renderer testsnpm run check:pack— passes;release-assets/confirmed absent from the npm tarballUnreleasedand0.2.0) to valid 1200px-wide PNGs, no leftover placeholders, brand identity and code chips correct