← 返回 Skills 市场
kxrbx

Frontend Premium

作者 Kxrbx · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
91
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install frontend-premium
功能描述
Create premium frontend interfaces with modern design systems. Forces generation of design.md for consistency, follows 2026 trends, ensures accessibility, an...
使用说明 (SKILL.md)

Frontend Premium Skill

This skill helps agents generate premium-quality frontend interfaces by:

  1. Forcing creation of a design.md file (Google Stitch style) for consistency
  2. Following 2026 UI/UX trends (glassmorphism, bento grids, micro-animations)
  3. Ensuring WCAG 2.1 AA accessibility compliance
  4. Providing quality verification and recommendations
  5. Suggesting modern tech stack (Motion, Lucide/Phosphor icons, Tailwind, RSC)

🎯 Core Workflow

When working on frontend tasks, the skill enforces this process:

  1. Generate design.md first - Document your design system (colors, typography, spacing, components)
  2. Follow the design.md - All UI generation must reference and follow this file
  3. Apply 2026 trends - Incorporate glassmorphism, bento layouts, subtle animations
  4. Ensure accessibility - WCAG 2.1 AA, keyboard nav, focus management
  5. Verify quality - Check adherence to design system and best practices

📋 Files Generated

design.md (Required)

A Google Stitch-style design system document that serves as the single source of truth for visual decisions.

Structure:

## Colors
- Primary: #HEXVALUE
- Secondary: #HEXVALUE
- Background: #HEXVALUE
- Surface: #HEXVALUE
- Error: #HEXVALUE
- Text Primary: #HEXVALUE
- Text Secondary: #HEXVALUE

## Typography
- Font Family: Inter, sans-serif (or similar)
- Heading 1: SIZEpx, WEIGHT weight
- Heading 2: SIZEpx, WEIGHT weight
- Body: SIZEpx, WEIGHT weight
- Caption: SIZEpx, WEIGHT weight

## Spacing
- Base unit: 4px or 8px
- Values: 4, 8, 16, 24, 32, 48px

## Components
- Button border radius: VALUEpx
- Card border radius: VALUEpx
- Card shadow: OFFSET BLUR SPREAD COLOR
- Input border: WIDTHpx solid #HEXVALUE

quality-check.md (Generated)

A verification checklist that validates the generated code against the design system.

🔥 2026 Trends to Apply

Layout & Visuals

  • Glassmorphism & Frosted Glass - Background-filter: blur, semi-transparent surfaces
  • Bento Grid Layouts - Asymmetrical, card-based layouts inspired by Apple
  • Micro-interactions - Subtle hover, focus, and animation states
  • Dark Mode First - Design for dark mode as default, light as variant
  • Gradients Subtils - Soft, natural gradients instead of harsh transitions
  • Bold Typography - Expressive, large-scale typography for hierarchy
  • Neumorphism Soft - Soft shadows and highlights for depth
  • Skeleton Loaders - Content placeholders instead of spinners

Interactions

  • Interactive Hover States - All interactive elements respond to hover/focus
  • Motion Principles - Easing, timing, spring physics for natural feel
  • Scroll-triggered Animations - Elements animate as they enter viewport
  • Touch-friendly Targets - Minimum 48x48px tap targets

♿ Accessibility Requirements

Visual

  • WCAG 2.1 AA minimum contrast ratios
  • Text resize support (up to 200%)
  • Color blindness friendly palettes
  • Visible focus indicators (minimum 2px outline)

Interaction

  • Full keyboard navigation
  • Logical tab order
  • Skip navigation links
  • ARIA labels for non-text content
  • Error identification and suggestions

Performance

  • First Contentful Paint \x3C 1.8s
  • Time to Interactive \x3C 3.5s
  • Cumulative Layout Shift \x3C 0.1
  • Optimized images and assets

🛠 Recommended Tech Stack

Framework & Rendering

  • Next.js 15 (App Router, Server Components)
  • React 19 with Concurrent Features
  • RSC优先 (React Server Components for performance)

Styling

  • Tailwind CSS - Utility-first, design token friendly
  • Motion (framer-motion) - Production-grade animations
  • CSS Variables - For design token consumption

Icons

  • Lucide - Clean, consistent SVG icons (default)
  • Phosphor - Multiple weights/styles including duotone
  • Iconiq - Motion-powered animated icons (for premium interactions)

Development

  • TypeScript - Strict mode for safety
  • ESLint + Prettier - Code quality and formatting
  • Vitest - Component testing
  • Playwright - E2E testing

🔍 Quality Verification Checklist

When generating code, verify:

Design System Adherence

  • All colors from design.md used consistently
  • Typography scale followed exactly
  • Spacing values match base unit multiples
  • Component styles match specifications

Accessibility

  • Color contrast ratios ≥ 4.5:1 (text), ≥ 3:1 (UI)
  • All interactive elements keyboard accessible
  • Focus visible and styled
  • ARIA labels where needed
  • Semantic HTML elements used

Performance

  • No layout shifts during loading
  • Images optimized and lazy-loaded
  • CSS/JS minified
  • Critical CSS inlined

Trends Applied

  • Glassmorphism or frosted elements present
  • Micro-interactions on hover/focus
  • Responsive design (mobile-first)
  • Dark mode variant considered

📚 References

See references/ for:

💡 Usage Tips

  1. Always start with design.md - Generate it before any UI components
  2. Reference it constantly - Ask "Does this match my design.md?" for every decision
  3. Iterate on the design - Update design.md as you learn, then regenerate
  4. Test accessibility early - Don't bolt it on at the end
  5. Keep it subtle - 2026 trends favor refinement over flashiness

🚫 Common Pitfalls to Avoid

  • ❌ Generating UI without a design system first
  • ❌ Ignoring accessibility until QA
  • ❌ Overusing trends (glassmorphism everywhere)
  • ❌ Forgetting dark mode considerations
  • ❌ Using animations that cause motion sickness
  • ❌ Ignoring performance budgets
  • ❌ Inconsistent spacing and typography
  • ❌ Using raster icons instead of SVG

Skill Files

File Description
SKILL.md (this file) Core skill instructions
references/design-tokens.md Design token examples and best practices
references/a11y-checklist.md Detailed accessibility checklist
references/trends-2026.md Deep dive on 2026 UI/UX trends
references/tech-stack.md Tech stack recommendations and comparisons

📦 Installation

This skill is already installed in your OpenClaw skills directory at: ~/.openclaw/skills/frontend-premium/

To use it, simply work on frontend tasks and the skill will automatically provide guidance.

🔄 Updates

To get the latest version of this skill, the skill-creator system will handle updates automatically when you run skill management commands.


安全使用建议
This skill is an instruction-only design helper and appears coherent: it will generate design documentation and quality-check artifacts and suggest frontend patterns. Before using it, review any generated code/files (especially animations or CSS that use backdrop-filter or large assets) to ensure they meet your project's compatibility and performance needs. Because the skill can run autonomously by default on the platform, avoid granting it unrelated credentials and inspect outputs for accidental leakage of any sensitive project info you may paste into prompts.
功能分析
Type: OpenClaw Skill Name: frontend-premium Version: 1.0.0 The frontend-premium skill bundle is a legitimate set of instructions and references designed to help an AI agent generate high-quality frontend code. It enforces a structured workflow involving design tokens, accessibility standards (WCAG 2.1 AA), and modern UI trends like glassmorphism. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found across SKILL.md or the reference files.
能力标签
crypto
能力评估
Purpose & Capability
Name/description (premium frontend design system + checks) match the included SKILL.md and reference docs. The files and guidance focus on design tokens, accessibility, trends, and quality checks — all consistent with the stated purpose.
Instruction Scope
Runtime instructions are limited to generating design.md, following design tokens, applying accessibility and trend guidance, and producing quality-check outputs. There are no instructions to read unrelated system files, access environment variables, or transmit data to external endpoints.
Install Mechanism
No install spec and no code files are present; this instruction-only skill does not download or execute external code and writes only guidance/markdown artifacts as described.
Credentials
The skill declares no required environment variables, credentials, or config paths. Its needs (none) are proportional to its purpose of producing design docs and checklists.
Persistence & Privilege
always is false and the skill is user-invocable. Autonomous invocation is allowed by default on the platform but this skill does not request elevated persistence or modify other skills/configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install frontend-premium
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /frontend-premium 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Premium frontend skill with design.md system, 2026 trends compliance, and quality checks
元数据
Slug frontend-premium
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Frontend Premium 是什么?

Create premium frontend interfaces with modern design systems. Forces generation of design.md for consistency, follows 2026 trends, ensures accessibility, an... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 91 次。

如何安装 Frontend Premium?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install frontend-premium」即可一键安装,无需额外配置。

Frontend Premium 是免费的吗?

是的,Frontend Premium 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Frontend Premium 支持哪些平台?

Frontend Premium 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Frontend Premium?

由 Kxrbx(@kxrbx)开发并维护,当前版本 v1.0.0。

💬 留言讨论