This skill designs complete production-grade web pages with AI-generated images, delivering ready-to-deploy HTML/CSS/JS and visuals that match your aesthetic.
npx playbooks add skill xiaodong-wu/web-design-studio --skill web-design-studio
Build complete static websites with a strong visual concept, finished content, original raster imagery, and a verified browser experience. Use frontend-design for art direction and interface quality. Use imagegen for every newly created raster asset.
index.html, styles.css, script.js, and images/..openai/hosting.json exists, follow the Sites skills instead of this standalone workflow.Before editing, inspect:
Treat existing content and assets as intentional unless the request says otherwise. Never replace a working structure merely to apply the default file layout.
Lock the following before visual implementation:
Write concrete, product-specific copy. Do not use Lorem Ipsum, placeholder labels, invented testimonials, fabricated metrics, unsupported claims, or empty “feature card” filler. When facts are missing, use neutral non-factual language or clearly marked user-editable copy.
Choose a clear concept appropriate to the subject: editorial, refined luxury, industrial, playful, organic, brutalist, retro-futurist, minimal, maximal, or another deliberate direction. Define the memorable visual idea before coding.
Create a compact design system:
Avoid generic AI aesthetics unless the brand genuinely calls for them: default system typography, purple gradients on white, repetitive rounded cards, predictable centered heroes, excessive glow, arbitrary glassmorphism, and decorative motion without purpose. Match implementation complexity to the concept.
Create an explicit asset brief after the content structure and art direction are stable. All newly created raster visuals must be generated with Codex, including hero art, product imagery, editorial photography, illustrations, and textures.
Preserve user-provided logos, brand marks, photographs, and reference assets. Use HTML, CSS, or SVG for precise interface icons, logos that must remain vector, simple geometry, diagrams, and structural decoration.
For each raster asset, define:
Use the built-in image_gen tool through the imagegen skill.
imagegen for edits, transparent backgrounds, and fallback policy.Use a placement-aware prompt when useful:
Use case: <product-mockup | ads-marketing | photorealistic-natural | illustration-story | stylized-concept>
Asset type: <hero | product image | editorial image | illustration | texture>
Primary request: <essential visual>
Scene/backdrop: <environment>
Subject: <main subject>
Style/medium: <photography | illustration | 3D | collage>
Composition/framing: <aspect ratio, crop, subject placement, safe areas, negative space>
Lighting/mood: <lighting and emotional tone>
Color palette: <interface-aligned palette>
Text (verbatim): "<exact text only when required>"
Constraints: <must preserve or include>
Avoid: watermarks, unintended text, logos, clutter, malformed details, generic stock styling
Codex saves built-in outputs under $CODEX_HOME/generated_images/ by default. For project-bound assets:
images/ when the project has no established asset directory.ceramic-mug-hero.png.ceramic-mug-hero-v2.png.$CODEX_HOME.alt text; use empty alt text for purely decorative images.prefers-reduced-motion and avoid interaction that depends only on hover.Resolve SKILL_DIR to the directory containing this SKILL.md. Verify local visual assets:
python3 "$SKILL_DIR/scripts/verify_images.py" \
--html-dir . \
--images-dir images
Fix every missing reference before delivery. When browser control is available, serve the site locally and inspect representative widths around 390 px, 768 px, and 1440 px. Check:
If browser control is unavailable, perform the static checks and report that visual browser QA was not available.
When the user explicitly requests a design specification or client handoff, generate it after site and asset verification:
python3 "$SKILL_DIR/scripts/generate_design_doc.py" \
--project-name "Project Name" \
--output "design-doc-project.html" \
--html-file "index.html"
The document uses Simplified Chinese for fixed headings, labels, default guidance, and explanatory copy. Preserve project names and source content as supplied. Write manual explanatory values such as --design-concept, --target-audience, --design-goals, and --features in Simplified Chinese unless the user requests another language.
Confirm:
Report the entry page, generated asset paths, verification performed, and any explicitly requested Chinese handoff document.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.