Frontend design
Skill MARUCIE/openclaw-foundry/web/public/packs/product-manager/skills/frontend-design
Use when building web UI from scratch: components, pages, landing pages, dashboards, HTML/CSS layouts, posters. Produces production-grade, aesthetically intentional code. NOT for backend logic. NOT for refactoring existing UI without redesign intent (use design-taste-frontend).From its SKILL.md
npx -y skills add MARUCIE/openclaw-foundry --skill frontend-designAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as Complete terms in LICENSE.txt. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
8.3 KB, ~1.9k tokens by cl100k_base, as published. Nobody here has run it
是什么
帮你从一张白纸起步,做出一个有判断力、有审美决策、不像 AI 默认输出的前端界面。它适合做新的组件、新的落地页、新的看板,把"我想要一个像样的页面"变成"可以直接发布的代码"。
怎么用
- 把目标用户、使用场景、品牌调性先讲清楚一句,让它知道这次的脾气是哪种。
- 让它先给一稿视觉方向的判断,包括字体、配色、节奏,确认大方向再动手写代码。
- 拿到第一版代码后,先在大屏和手机上各跑一遍,重点看响应式是不是真的能撑住。
- 把中文、英文、长文案、空状态都喂进去看一眼,确认极端内容不会让排版崩。
- 上线前让 design-taste-frontend 再过一遍品味体检,作为第二道把关。
架构图
flowchart LR
A[场景与调性] --> B[视觉方向判断]
B --> C[组件与页面落地]
C --> D[多端与极端内容验证]
D --> E[可发布的前端代码]
This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
Gotchas
-
Never default to Inter/Roboto/system fonts. The #1 "AI slop" marker is generic typography. Every project needs a deliberate font choice — even if it's just picking something unexpected from Google Fonts. Pair a display font with a body font; never use one font for everything.
-
Purple gradients on white = instant AI detection. This specific combination has become the universal marker for AI-generated UI. Avoid it completely. If the user doesn't specify a color scheme, pick something with character — not the default Tailwind purple/indigo.
-
CSS
min(vw, px)locks the upper bound — use pure viewport units. For responsive scaling across 1K-6K displays,min(10vw, 100px)stops growing at 100px. Use purevw/vh/%units. Also:flex:1stretches text cards unnaturally on wide screens. -
CJK text needs
word-break: keep-allto prevent orphaned characters. Single Chinese characters wrapping to a new line looks broken. Applyword-break: keep-all; overflow-wrap: break-wordon all Chinese-facing pages. -
Default to light theme. Chinese users predominantly prefer light themes. Only use dark theme when explicitly requested or when the design intent requires it (e.g., Bloomberg-style dashboards, gaming interfaces).
-
Always open the finished HTML in the browser. After generating any standalone HTML deliverable, run
open <file.html>so the user can immediately verify. Don't just write the file and declare done.
Design Thinking
Before coding, understand the context and commit to a BOLD aesthetic direction:
- Purpose: What problem does this interface solve? Who uses it?
- Tone: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
- Constraints: Technical requirements (framework, performance, accessibility).
- Differentiation: What makes this UNFORGETTABLE? What's the one thing someone will remember?
CRITICAL: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
- Production-grade and functional
- Visually striking and memorable
- Cohesive with a clear aesthetic point-of-view
- Meticulously refined in every detail
Frontend Aesthetics Guidelines
Focus on:
- Typography: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
- Color & Theme: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
- Motion: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
- Spatial Composition: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
- Backgrounds & Visual Details: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
IMPORTANT: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
Remember: Claude is capable of extraordinary creative work. Don't hold back, show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
CJK Typography Anti-Patterns (Mandatory for Chinese/Japanese/Korean content)
Single-character orphans (孤字) and mid-word line breaks are CRITICAL defects in CJK layouts. Apply these rules on every CJK-facing page:
Prevention Rules
text-prettyon all paragraph/description text — CSStext-wrap: prettyprevents orphan words at line ends. Apply to<p>, subtitles, descriptions, CTA copy, and any multi-line text block.whitespace-nowrapon atomic inline items — Dates ("2026 年 3 月 25 日 周三"), times ("14:00 - 16:00"), names, locations, badges, legend items, and any metadata that must stay on one line.- Never use
grid-cols-*for metadata inside narrow card grids — When cards are in multi-column layouts (2-3 cols), inner grid subdivision creates cells too narrow for CJK+English mixed text. Useflex flex-wrapinstead, so items flow naturally and wrap at item boundaries, not mid-text. flex-shrink-0on all icons inside flex rows — Prevents SVG icons from squeezing when text wraps.- Avoid showing long compound titles in narrow containers — e.g., "讲师 C -- AI Coding 方向负责人" in a 170px cell. Either truncate (
truncate), show only the primary field (name only), or usewhitespace-nowrap+overflow-hidden.
Audit Checklist (run before shipping any CJK page)
- Resize viewport from 768px to 1440px and check for single-character line breaks
- Verify all date/time/location metadata stays on one line at all breakpoints
- Check multi-column card layouts at
mdbreakpoint for text overflow - Confirm no orphan characters at paragraph ends (especially 1-2 char words like "的", "了", "实战")
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.