design-html
Skill by garrytan
Turns an approved design into production-quality HTML and CSS, using Pretext for computed text layout. Built for developers and designers who want a mockup turned into a working page.
Install design-html
Built from the published package, never by AI.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.claude/skills && cp -r /tmp/gstack/design-html ~/.claude/skills/design-htmlRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/garrytan/gstack /tmp/gstack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/gstack/design-html ~/.gemini/antigravity-cli/skills/design-htmlAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
design-html is a gstack skill that finalizes a design as production-quality HTML and CSS. It is built around Pretext, so text reflows on resize, heights adjust to content, cards size themselves, and chat bubbles shrinkwrap. The skill first looks for an approved design from design-shotgun, any prior finalized HTML, and a DESIGN.md file. Tokens in DESIGN.md take priority for system-level values such as fonts, brand colors and spacing.
The skill can also use the gstack design binary to generate visual mockups and can run impeccable's detector scans when that engine is installed. If the design binary is not available, it falls back to the existing HTML wireframe approach. It is aimed at people who want a design turned into working front-end code. Trigger phrases include "build the design", "code the mockup" and "make design real".
Written from the project's SKILL.md and checked against it.
What it can do
- Pretext-native HTML and CSSGenerates production-quality HTML and CSS with computed text layout instead of CSS approximations.
- Approved design intakeReads the approved design from design-shotgun and resolves the approved image path.
- DESIGN.md tokensApplies system-level values such as fonts, brand colors and spacing from DESIGN.md.
- Prior finalized HTML checkDetects an earlier finalized.html and asks whether to evolve it.
- Visual mockup generationUses the gstack design binary to generate mockups, variants and comparison boards when available.
- Design quality checksRuns a vision quality gate on generated mockups when the design binary is present.
- Detector scansRuns impeccable's deterministic detector on the code when its engine is installed.
What you need
- gstack installed under ~/.claude/skills/gstack
- Bun runtime for the design detector probe
- gstack design binary for visual mockups (optional)
Try asking
- Build the design from my approved mockup in this repo
- Code the mockup into HTML and CSS with Pretext layout
- Make design real using the DESIGN.md tokens
Good to know
- Visual mockups need the gstack design binary; otherwise the HTML wireframe fallback is used.
- Detector scans run only when impeccable's engine is installed.
- gstack does not run impeccable's installer, launcher or npx impeccable.
- Design artifacts are stored under the gstack state root, not in other directories.
Security check
D- Contains invisible or direction-changing characters that can hide textIn
design-html/vendor/pretext.js: - Allowed to use Bash, Write, Edit without limitsIn
SKILL.md
Checked automatically: design-html/SKILL.md, design-html/vendor/pretext.js. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashReadWriteEditGlobGrepAgentAskUserQuestionBash(~/.claude/skills/gstack/bin/gstack-skill-load:*)
-
SKILL.md29 KB -
SKILL.md.tmpl19 KB -
sections/craft.md11 KB -
sections/craft.md.tmpl9 KB -
sections/detector-install-offer.md4 KB
Show all 14 files
-
sections/detector-install-offer.md.tmpl413 B -
sections/doctrine.md5 KB -
sections/doctrine.md.tmpl18 B -
sections/manifest.json2 KB -
sections/preamble.md1 KB -
sections/pretext-patterns.md5 KB -
sections/pretext-patterns.md.tmpl5 KB -
vendor/pretext-embed.html590 B -
vendor/pretext.js30 KB
Alternatives to design-html
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
design-html: common questions
What does design-html need before it runs?
The source says it expects gstack installed under ~/.claude/skills/gstack and checks for an approved design from design-shotgun. Visual mockups also need the gstack design binary.
Does design-html work without the design binary?
Yes. The source says that if the design binary is not available, the skill skips visual mockup generation and uses the existing HTML wireframe approach.
What is Pretext in design-html?
The source describes Pretext as the text layout method the skill uses for computed layout, so text reflows on resize and heights adjust to content.
How do I install design-html?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is design-html free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is design-html safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (contains invisible or direction-changing characters that can hide text). Review the code before you install. How grades work.
What are alternatives to design-html?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
