frontend_mastery
Installation
SKILL.md
Frontend Mastery Protocol (React + Vite + Tailwind)
1. Performance "Pro" Checklist
Before submitting any UI component, verify:
- Re-renders: Are we re-rendering unnecessarily? Use
React.memooruseCallbackfor stable props. - Lazy Loading: Are strict routes lazy-loaded? (
React.lazy) - Image Optimization: Are images using proper formats (WebP/AVIF) and
loading="lazy"? - Zustand Selectors: Are we selecting only what we need?
- ❌
const { user, token } = useAuthStore() - ✅
const user = useAuthStore((s) => s.user)
- ❌
- Bundle Size: Did we import a huge library for one function? (e.g. import
lodashvslodash/debounce)
2. State Management Rules (Zustand + React Query)
Related skills
More from cityfish91159/maihouses
agentic_architecture
Enforces high-level architectural thinking, separation of concerns, and scalability checks before coding.
19code-review-excellence
程式碼審查最佳實踐指南。當進行 PR review、代碼審查或用戶提到「review」、「審查」時使用。
19nasa_typescript_safety
Adapts NASA's "Power of 10" safety rules for high-reliability TypeScript code.
18code-simplifier
|
18type-checker
執行 TypeScript 類型檢查並修復類型錯誤。當遇到類型錯誤、需要類型定義、或用戶提到「type」、「類型」時使用。
18rigorous_testing
|
18