What problem does it solve?
AI-generated frontend code often drifts into inconsistent patterns: flashy AI-style UI, missing loading/error states, untyped API responses, duplicated type definitions, and subtle React/antd bugs like controlled-vs-uncontrolled misuse or double polling. This Skill encodes a complete frontend development rulebook so generated Vue 3 and React code follows consistent, production-safe conventions.
Core Features & Use Cases
- UI Style Constraints: Bans neon gradients, glassmorphism, and emoji in UI copy; defaults to enterprise admin styling with component library themes (Element Plus / Ant Design).
- Vue 3 + TypeScript Standards: Composition API with
<script setup>, Pinia stores, naming conventions, directory structure, and typed API calls with generics instead of as any.
- Interaction State Handling: Mandates loading, empty, error, disabled, and submitting states, plus unified API error handling and request-body completeness checks.
- React/antd Pitfall Guides: Covers controlled vs uncontrolled props, Tree
defaultExpandAll resets, dual polling conflicts, revision-counter cross-component sync, and async task patterns.
- Use Case: When asking an AI to build an order management page, the Skill ensures the form submits every UI field (including
payMethod), handles non-200 API responses with user-facing errors, and uses defaultPageSize instead of a broken controlled pagination.
Quick Start
Ask the AI to create a Vue 3 user list page with search, pagination, and proper loading and error states following the frontend development standards.