Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

frontend-implementation前端实现

Agent Skill

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

总安装

1,576

周安装

65

GitHub Stars

8

下载量

515
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:frontend-implementation(前端实现)
来源仓库:https://github.com/mae616/design-skills
仓库路径:skills/frontend-implementation
安装命令:
npx skills add https://github.com/mae616/design-skills --skill frontend-implementation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mae616/design-skills --skill frontend-implementation

简介

前端实现用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构。
  • 使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段。
  • 涉及页面改动时,应配合本地预览和构建检查确认视觉效果。
  • 该工具当前无额外说明,具体能力以来源仓库实现为准。

SKILL.md

Frontend Implementation Skill

When to Apply

Apply this skill when the request involves:

  • UI implementation, design-to-code, Figma to code, component implementation, styling, responsive design, fixing broken UI
  • UI実装、デザインから実装、Figmaから実装、コンポーネント実装、スタイル調整、レスポンシブ対応、UIの崩れ修正
  • Translating any design tool output (Figma/Pencil/Canva/sketches) to code

Core Principles

  • Goal is not pixel-perfect copying, but maintaining ratios, alignment, resilience, and consistency.
  • Translate, don't transcribe. Design tool values (px) are references; implementation uses scales, ratios, and structure.
  • Fixed values are exceptions. If using fixed values, articulate why (spec requirement, media, tap target, etc.).

Design Philosophy (Decision Rules)

  1. UI is a set of constraints, not a picture. Include states (loading/error/empty/disabled) to be complete.
  2. Don't create alignment with margin tweaks. Use structure (flex/grid) and gap.
  3. Avoid fixed heights. Consider min/max/overflow first.
  4. Typography is role-based. Don't proliferate by copying values.
  5. Handle exceptions upfront. Long text, zero items, failures, delays—no afterthoughts.
  6. Articulate design intent first (what to emphasize, how to guide the eye), then create structure that preserves it.
  7. Width follows the viewport. UI should adapt to screen width (SCALE/FILL intent); don't just crop from the left.

Translation Process (Design Tool → Code)

1) Read Intent Before Numbers

  • Purpose (what should users understand/do first on this screen)
  • Visual flow (first → second → last thing to see)
  • Emphasis (hero / supporting / background elements)
  • Hierarchy (parent-child, groupings)
  • Stretch/state intent (Auto Layout / Constraints / Variants)
  • Spacing rules (gap/padding patterns)
  • Alignment (what aligns to what)
  • Variable elements (text length, list count, image ratio, input values)

2) Convert to Implementation

  • px → Round to scale (e.g., 4/8/12/16/24/32/40/48)
  • font-size → Map to roles (heading/body/caption)
  • Local margin tweaks → Convert to layout structure (flex/grid/gap, clarify parent-child responsibilities)
  • Fixed width/height → Convert to constraints (min/max, wrap, ellipsis, overflow)
  • Width design → Separate background/container/content responsibilities

3) Alignment Decisions

When to align:

  • Repeated elements (cards/lists/forms) for comparison
  • Main column (body/primary input/CTA) for clear visual path
  • Reducing confusion (admin panels, settings, heavy input screens)

When breaking alignment is acceptable:

  • Intentionally floating a hero element
  • Emphasizing section boundaries
  • Media/decoration as the focus (but ensure resilience)

Rules when breaking alignment:

  • Keep at least one baseline
  • Limit offset patterns to 1-2
  • On narrow viewports, favor alignment

4) Preserve Width Distribution (Weights)

  • Width distribution IS visual guidance. Column weights (primary/secondary/tertiary) are intentional.
  • Don't accidentally equalize. Applying flex: 1 to everything makes supporting elements as prominent as heroes.
  • Separate baseline alignment from width distribution. They can differ.

Implementation Guidelines

Typography

  • Use rem (or clamp()). Use em only when relating to parent size.
  • line-height should be unitless (e.g., 1.5–1.7).
  • Body text readability: aim for max-width: 60ch.

Spacing

  • Round to scale (avoid fractional values).
  • Prefer parent's gap/padding over scattering margins on children.

Proportions

  • Maintain look through ratios, not exact numbers (column width ratios, spacing steps, type scale).
  • Prefer max-width + spacing rules over fixed widths.

Layout

  • One-dimensional: flex. Two-dimensional: grid. Spacing: gap.
  • position: absolute only for overlays/decorations with clear purpose.
  • Images: preserve aspect ratio by default; use aspect-ratio when needed.

Fixed Values (Exceptions)

  • Icons, thumbnails, tap targets, spec-defined header heights, etc.
  • Even for breakage prevention, consider min/max before going fixed.

States and Resilience (Required)

  • Include: default / hover / active / focus / disabled / loading / error / empty
  • Handle long text, zero items, network failure, delays from the start—no afterthoughts.

Output Format (Follow This Order)

  1. Purpose (what this UI achieves)
  2. Prerequisites (design input type, existing conventions, constraints)
  3. Translation results (hierarchy, alignment, spacing rules, variable elements)
  4. Implementation approach (layout structure, scale, exception conditions)
  5. State design (default/hover/active/focus/disabled/loading/error/empty)
  6. Checklist self-assessment (OK / needs work)

Checklist

  • Has empty / loading / error states
  • Has disabled conditions (prevent double-submit, invalid states)
  • Doesn't break on long text (wrap/ellipsis/max-width/overflow)
  • Has keyboard operation and visible focus
  • Doesn't break on narrow/mobile viewports
  • Spacing, typography, colors follow conventions (tokens/scale)

Common Pitfalls

  • Pixel-perfect copying from design data, breaking on edge states and responsiveness
  • Margin tweaks proliferating, becoming unmaintainable
  • Prioritizing "visual match" while states (loading/error/empty) become afterthoughts

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.44%
按下载量换算183

Claude

31.41%
按下载量换算162

Cursor

19.02%
按下载量换算98

Gemini CLI

9.37%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills