跳到正文
cccskills
免费在 GitHub 公开

frontend-design

Designs, builds, or refactors user-facing web or application interfaces with deliberate visual direction, typography, color and spacing tokens, content hierarchy, responsive behavior, accessible interaction states, and real rendered-surface verification. Use for pages, components, dashboards, landing pages, design systems, and frontend polish. Not for backend logic, API-only work, or visual claims that cannot be rendered or inspected.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(10)

  • SKILL.md4.0 KB
  • references/design-intelligence.md1.3 KB
  • references/design-system-extraction.md817 B
  • references/design-system.md1.5 KB
  • references/interaction-states.md1.0 KB
  • references/runtime-validation.md1.4 KB
  • references/stack-adapters.md1.1 KB
  • scripts/design_catalog.py12.0 KB
  • scripts/design_system.py10.8 KB
  • scripts/extract_design_system.py7.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Frontend Design

Build an interface with a point of view and a usable system, not a collection of default cards.

Before writing UI code

  1. Inspect the existing product, design tokens, routes, components, assets, fonts, and responsive conventions. Preserve a real system unless a scoped redesign is intended.

  2. Identify product type, user context, primary action, content hierarchy, brand constraints, supported viewport range, and available visual assets.

  3. Extract the existing visual system before inventing one. Inspect CSS variables, theme configuration, type loading, spacing, radii, breakpoints, component variants, and recurring layout patterns. Use the dependency-free helper when the system is spread across source files:

    python3 skills/frontend-design/scripts/extract_design_system.py ./src
    

    Read design-system-extraction.md before replacing or normalizing an existing token system.

  4. Choose a visual direction and record the reason: type pairing, color role, density, shape language, imagery, and motion voice. Use the local scripts/design_system.py helper for a deterministic starting brief when a project has no design system:

    python3 skills/frontend-design/scripts/design_system.py \
      --product "analytics dashboard" --tone "technical" --stack react
    

    Search the small bundled design-intelligence catalog when a choice needs comparison; read design-intelligence.md for the supported domains and limits. Do not treat a catalog result as a substitute for inspecting the existing product.

  5. Define semantic tokens before scattering raw values through components.

  6. Sketch the primary flow and all meaningful states: loading, empty, error, disabled, success, permission, and long-content cases.

Build the system

  • Use real content, realistic dimensions, and an intentional type scale.
  • Prefer composition and hierarchy over decorative gradients, excessive shadows, or nested card stacks.
  • Make controls semantic, keyboard reachable, focus-visible, and labeled.
  • Design mobile and intermediate widths as first-class states, not a desktop layout squeezed into a phone.
  • Make motion explain state or spatial continuity; provide reduced motion.
  • Use icons consistently and never substitute emoji for product controls.

Read design-system.md for direction, tokens, and anti-generic heuristics. Read interaction-states.md for state and accessibility detail. Read stack-adapters.md only for the detected implementation stack. Use browser-testing for a real browser flow and ui-ux-review for a separate quality pass.

Visual verification

Render the actual route at the narrow, intermediate, and desktop widths. Check hierarchy, overflow, focus, contrast, state transitions, content wrapping, and reduced-motion behavior. Exercise the primary task with keyboard-only input and run the project's accessibility tooling when available. Capture the state and viewport matrix from runtime-validation.md. Record screenshots or observations; source inspection alone cannot prove a visual claim.

Completion condition

The primary flow is usable, visual decisions are coherent and intentional, states and responsive behavior are covered, accessibility is not traded for appearance, and relevant rendered evidence is fresh.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Designs and runs reproducible evaluations for AI agents, prompts, tools, skills, and model-backed workflows using realistic datasets, isolated baselines, objective assertions, rubric grading, trajectory analysis, cost/latency tracking, and regression comparison. Use when measuring agent quality, optimizing skill triggering, comparing prompts or models, or gating an AI feature release. Not for ordinary deterministic unit tests.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

Designs or reviews HTTP, REST, GraphQL, RPC, CLI, webhook, event, and service interfaces with explicit inputs, outputs, errors, compatibility, idempotency, pagination, authentication, versioning, and observability. Use when introducing or changing an API or cross-component contract. Not for internal implementation details with no boundary or for debugging one API failure; use root-cause-debugging there.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

Reviews an existing codebase for structural friction, unclear ownership, leaky or shallow interfaces, excessive coupling, misplaced state, poor testability, and risky dependency direction, then prioritizes evidence-backed improvement candidates. Use for architecture audits, modularization, modernization, or recurring cross-cutting change pain. Not for designing one new interface, simplifying a local function, or fixing a reproduced bug.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

Validates a running application, CLI, API, service, or generated artifact as a user or operator against a prewritten observable behavior contract while remaining source-blind. Use for acceptance checks, runtime proof, anti-fake probes, release smoke tests, or an independent companion to code review. Not for source-quality findings, root-cause diagnosis, or visual design judgment outside the contract.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

Closes a completed development branch by checking the final diff and proof, presenting merge, pull-request, keep, or discard options, and cleaning up only after the user or repository workflow chooses a path. Use when feature work is complete and the branch must be integrated or retired. Not for claiming a feature is complete before verification.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

Tests a real web user flow with a browser by asserting semantic behavior, network and loading states, keyboard access, responsive layouts, and stable visual evidence. Use for browser bugs, end-to-end UI behavior, responsive or accessibility checks, and screenshot baselines. Not for static source review without a browser or for backend-only tests.

中文简介正在准备中。当前显示原文说明。

thiientv/godmode992026年8月26日 更新

查看 thiientv 的全部技能

报告此技能的问题