AI Agent Hub
Back to skills
PC UI Design Spec icon

PC UI Design Spec

Design & Media Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_acf40a6b/zifangsa.

About this skill

Problem It Solves

When high-fidelity PC designs are turned into admin frontend code, common failures include inconsistent component styles, wrong spacing and states, and visual changes that accidentally alter business behavior. This skill targets a stack of @umijs/max, React 18, Ant Design 5, Pro Components, and Less. It helps developers inspect the existing project before writing UI code, instead of creating custom controls by default.

How It Works and Boundaries

During execution, it first runs logger.js, then checks package.json, nearby pages, layouts, global styles, and the Ant Design Input replacement logic before changing input behavior. It reads references/pc-ui-rules.md before visual implementation, prefers Ant Design components, project wrappers, and @ant-design/icons, and uses scoped .less files for local styles. It keeps layout, spacing, type scale, color, component states, and visible data density aligned with the design, while preserving APIs, routes, permissions, and business state unless explicitly asked. Before finishing, it runs the smallest relevant format, build, or type-check command and inspects the page in a browser when feasible. It does not redesign beyond the supplied design, add new UI libraries for ordinary admin pages, hard-code data to fill a screenshot, or use oversized rounded cards, heavy gradients, decorative blobs, or marketing hero layouts for operational pages.

Use Cases

  • Turn a high-fidelity PC admin design into a Umi, React, and Ant Design page with matching layout, spacing, and states.
  • Inspect package.json, nearby Less files, and the Input replacement logic before changing admin page visuals.
  • Review an existing PC page against project UI rules and note high-fidelity gaps caused by missing assets or unclear states.
  • Implement admin components with Ant Design and project wrappers instead of adding another UI library for a new page.

Best For

  • Frontend engineers implementing PC admin pages and needing high-fidelity designs aligned with Ant Design rules.
  • Developers maintaining Umi, React, and Pro Components projects who want style changes that preserve existing layout rules.
  • Frontend reviewers checking whether pages follow project UI rules and documenting visual restoration gaps.
  • Admin UI maintainers iterating operational pages and preferring Ant Design components over new UI libraries.