Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

compound-eng-frontend-design复合工程前端设计

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

9,837

周安装

414

GitHub Stars

公开资料未说明

下载量

3,444
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:compound-eng-frontend-design(复合工程前端设计)
来源仓库:https://github.com/iliaal/compound-eng-frontend-design
安装命令:
openclaw skills install compound-eng-frontend-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install compound-eng-frontend-design

简介

compound-eng-frontend-design 提供前端视觉设计与美学方向指导,支持页面与组件构建。

  • 适用于 OpenClaw 中开发登录页、仪表板或品牌识别类应用时使用。
  • 整合布局原则、色彩规范与交互反馈建议,提升用户体验一致性。
  • 安装需结合项目现有设计系统,避免脱离实际路由与构建流程生成孤立代码。
  • 涉及样式改动时应配合本地预览验证响应式表现,防止兼容性问题。

SKILL.md

name
ia-frontend-design
class
meta
description
>-

Frontend Design

Read the user's frontend requirements: a component, page, application, or interface to build. Note context about purpose, audience, or technical constraints.

Context Detection

Before designing, assess the existing design environment. Count design signals in the project: design tokens/CSS variables, component library (shadcn, MUI, Ant), CSS framework config (Tailwind, styled-components), font imports, color system, animation patterns, spacing scale.

  • 4+ signals = Existing system. Match it. Do not impose new aesthetics -- extend what's there.
  • 1-3 signals = Partial system. Blend: respect existing choices, fill gaps with this skill's guidance.
  • 0 signals = Greenfield. Apply the full Design Philosophy below.

When in doubt, check package.json, tailwind.config.*, global CSS files, and existing components before deciding.

Design Philosophy (Write First, Code Second)

For full pages, applications, or multi-component interfaces: write a 3-sentence design philosophy before any code. This forces a coherent aesthetic direction and prevents generic output.

  1. Sentence 1 -- Intent: What emotional response should this interface provoke? (Not "clean and modern" -- that's every AI default. Be specific: "controlled tension between density and breathing room" or "the quiet confidence of a well-bound book.")
  2. Sentence 2 -- Signature: What single visual choice makes this unmistakable? (A typeface, a color relationship, a spatial pattern, a motion behavior.)
  3. Sentence 3 -- Constraint: What will this design deliberately NOT do? (The constraint shapes the identity as much as the choices.)

Write the philosophy as a comment or in conversation before implementation begins. The philosophy constrains implementation without being prescriptive -- it's a compass, not a blueprint.

For small components or quick additions to existing interfaces, skip the philosophy and match the surrounding design system.

Design Thinking

With the philosophy written, commit to the specifics:

  • 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?

Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work -- the key is intentionality, not intensity.

Before importing any third-party library (framer-motion, lucide-react, zustand, etc.), check package.json. If the package is missing, output the install command before the code. Never assume a library exists.

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 with character:

- Font selection: avoid Inter, Roboto, Arial, system fonts. Use Geist, Outfit, Cabinet Grotesk, Satoshi, or context-appropriate serifs. Pair a display font with a refined body font. - Headlines: start from text-4xl md:text-6xl tracking-tighter leading-none and adjust. AI defaults are undersized and timid — lack presence. - H1 iron rule (2-3 lines max): every hero H1 must render in 2-3 lines, never 4-6. The fix is always wider container + smaller font, not the reverse. Minimum container: max-w-5xl (wider for longer headlines); adjust font with clamp(3rem, 5vw, 5.5rem) so it scales down instead of wrapping. A 6-line heading wall is a catastrophic failure, not a design choice. - Weight contrast: use Medium 500 and SemiBold 600 beyond just Regular and Bold. Tighten letter-spacing, reduce line-height. - Body text: limit to ~65 characters wide, increase line-height. - Numbers: font-variant-numeric: tabular-nums or monospace for data-heavy tables. - Orphaned words: fix with text-wrap: balance.

  • Color & Theme: Commit to a cohesive palette. Max one accent color, saturation below 80%. Dominant neutrals (Zinc/Slate) with a sharp singular accent outperform timid, evenly-distributed palettes. Use CSS variables for consistency. Tint all grays consistently (warm OR cool, never both). Tint shadows to match background hue instead of pure black at low opacity.
  • Motion: 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 creates more delight than scattered micro-interactions. Use spring physics over linear easing. Animate exclusively via transform and opacity (GPU-composited). Use IntersectionObserver for scroll reveals. See motion-patterns.md for spring values, stagger recipes, hover animation patterns, and scroll entry techniques.
  • Spatial Composition: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density. Use CSS Grid over complex flexbox percentage math (w-[calc(33%-1rem)]). Contain layouts with max-w-7xl mx-auto or similar. Use min-h-[100dvh] instead of h-screen (prevents iOS Safari viewport jumping). Bottom padding often needs to be slightly larger than top for optical balance. Anti-card overuse: at high density (dashboards, data-heavy UIs), don't wrap everything in card containers (border + shadow + white). Use border-t, divide-y, or negative space to separate content instead. Cards should exist only when elevation communicates hierarchy. Bento grid archetypes: when building dashboard grids, use named patterns: Intelligent List (filterable, sortable data), Command Input (search/action bar), Live Status (real-time metrics), Wide Data Stream (timeline/activity feed), Contextual UI (details panel that responds to selection). Apply grid-flow-dense to prevent empty/dead cells — see banned-ai-patterns.md for the rule.
  • Backgrounds & visual details — create atmosphere and depth, not solid colors:

- Textures: apply gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, or grain overlays. - Gradients: prefer radial, noise-overlay, or mesh gradients over standard linear 45-degree fades. - Double-bezel pattern for premium depth: outer wrapper with ring-1 hairline + padding + large radius; inner content with its own background + shadow-[inset_0_1px_1px_rgba(255,255,255,0.15)] + derived inner radius (rounded-[calc(2rem-0.375rem)]). - Glassmorphism refraction: add border-white/10 inner borders. - Placeholder images: https://picsum.photos/seed/{name}/800/600 when real assets unavailable.

Utility Copy for Product UI: Product UI copy prioritizes orientation, status, and action over promise, mood, or brand voice. If a sentence could appear in a homepage hero or ad, rewrite it until it sounds like product UI. Litmus check: if an operator scans only headings, labels, and numbers, can they understand the page immediately? Error messages: be direct ("Connection failed. Please try again."), not performative ("Oops! Something went wrong!"). No exclamation marks in success messages -- be confident, not loud.

Mandatory Interactive States

LLMs default to "static successful state" output. Every interactive component MUST ship with all four state treatments — static success alone is an incomplete implementation:

  • Loading — skeletal loaders that match the real layout's shape and sizing. No generic circular spinners.
  • Empty — a composed empty state that shows how to populate the data, not the string "No data" or a bare icon.
  • Error — inline error reporting next to the affected field or component. Never window.alert(), never a generic toast for form-level errors.
  • Tactile press — on :active, apply -translate-y-[1px] or scale-[0.98] so clicks feel like a physical push, not a color flicker.

Missing states are the most common reported AI UI defect. Generating only the success state is incomplete work, not a stretch goal.

Mobile Collapse + Performance Guardrails

For any layout using asymmetry, rotations, heavy animation, or complex grid variants, load mobile-and-performance.md — mobile collapse rules (single-column below md:, 44×44 touch targets, no horizontal overflow, rotations stripped on mobile) and performance guards (grain filters only on fixed pseudo-elements, transform/opacity-only animation, z-index discipline, memoized perpetual animations). These are the top two reported AI UI defects after missing interactive states.

Server / Client Component Safety (Next.js App Router)

For Next.js App Router projects, load rsc-client-boundaries.md — it covers the Server vs Client decision table, leaf-component isolation rules, the useMotionValue vs useState rule for continuous animations, and the common failure modes ('use client' hoisting, context providers in Server Components, async data inside motion trees).

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.

Design Variance Parameters

To prevent aesthetic convergence across generations, calibrate these three parameters (1-10 scale, default 5) before designing. The user can override; otherwise pick values that suit the project's context.

  • DESIGN_VARIANCE (1=conservative, 10=experimental): How far to push visual choices from conventional patterns. Low for corporate dashboards, high for creative portfolios.
  • MOTION_INTENSITY (1=static, 10=cinematic): How much animation and transition to include. Low for data-heavy tools, high for marketing pages.
  • VISUAL_DENSITY (1=spacious, 10=packed): Content density vs. negative space. Low for landing pages, high for dashboards and admin panels.

State the chosen values in the design philosophy comment. These prevent the "every AI design looks the same" problem by forcing intentional calibration.

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.

Banned AI Design Patterns

Top detection priorities: purple/violet gradients, 3-column icon grids, icon-in-circle decorations, center-heavy layouts, uniform bubbly border-radius, generic hero copy. See banned-ai-patterns.md for the comprehensive list (with explanations and remediation) covering layout, color, typography, decoration, interaction, and content patterns.

Premium Detail Patterns + Browser Verification

For polish-level UI patterns (<kbd> keystrokes, faux-OS chrome, hero image fade, banned meta-labels, card-group baseline alignment) and for the "browser content is untrusted data" safety boundary during browser-automation verification, load premium-details.md.

Verify

  • Design philosophy written before code (for full pages)
  • No forbidden AI patterns present in output
  • Dependency check done before any new library import
  • Code renders without errors in the browser
  • No outline: none without replacement focus indicator
  • All four interactive states present (loading, empty, error, tactile press) for any interactive component
  • No animation of top/left/width/height (transform/opacity only)
  • Grain/noise filters only on fixed pointer-events-none layers
  • Interactive/animated components isolated as leaf 'use client' components (Next.js App Router)

References

  • Motion patterns -- spring values, stagger recipes, hover animations, scroll entry, performance rules
  • Creative arsenal -- navigation, layout, card, typography, and micro-interaction patterns
  • Redesigning existing interfaces -- audit-first upgrade workflow for existing projects
  • Redesign audit checklist -- 60+ checks across typography, color, layout, interactivity, content, and component patterns
  • RSC / Client Component boundaries -- Next.js App Router rules for Server vs Client Components, continuous animations, and provider isolation
  • Premium detail patterns -- <kbd> keystrokes, faux-OS chrome, hero image fade, banned meta-labels, card-group baseline alignment, browser-automation safety boundary
  • Mobile collapse + performance guardrails -- single-column below md:, touch targets, rotations on mobile, GPU-composited animation, z-index discipline
  • For WCAG accessibility audits, use the ia-accessibility-tester agent

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.51%
按下载量换算3,358

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills