Agent skill · software engineering · affaan-m
frontend-patterns
React、Next.js、状态管理、性能优化和UI最佳实践的前端开发模式。
Why this skill is useful
Provides specific React and Next.js patterns for state management, performance optimization, and UI best practices that the AI wouldn't reliably generate on its own.
What it needs
About 6k tokens when loaded. Last updated 2026-08-06. 238,342 stars on the source repository.
What this skill does
前端开发模式 适用于 React、Next.js 和高性能用户界面的现代前端模式。 何时激活 构建 React 组件(组合、属性、渲染) 管理状态(useState、useReducer、Zustand、Context) 实现数据获取(SWR、React Query、服务器组件) 优化性能(记忆化、虚拟化、代码分割) 处理表单(验证、受控输入、Zod 模式) 处理客户端路由和导航 构建可访问、响应式的 UI 模式 组件模式 组合优于继承 复合组件 渲染属性模式 自定义 Hooks 模式 状态管理 Hook 异步数据获取 Hook 防抖 Hook 状态管理模式 Context + Reducer 模式 性能优化 记忆化 代码分割与懒加载 长列表虚拟化 表单处理模式 带验证的受控表单 错误边界模式 动画模式 Framer Motion 动画 无障碍模式 键盘导航 焦点管理 记住:现代前端模式能实现可维护、高性能的用户界面。选择适合你项目复杂度的模式。
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills affaan-m/frontend-patterns--10c3c5