← Back to list

react
by whyleonardo
Reusable Claude Code configuration template with custom commands and skills
⭐ 0🍴 0📅 Jan 13, 2026
SKILL.md
name: react description: React and Next.js patterns, hooks, and component architecture.
React & Next.js Standards
Component Architecture
- Prefer function components with hooks
- Keep components small and focused (single responsibility)
- Separate container (logic) from presentational (UI) components
- Use composition over prop drilling
- Co-locate related files (component, styles, tests, types)
Naming Conventions
- Components: PascalCase (
UserProfile.tsx) - Hooks: camelCase with
useprefix (useAuth) - Event handlers:
handleprefix (handleClick) - Boolean props:
is,has,shouldprefixes
Hooks Best Practices
- Follow rules of hooks (top-level, React functions only)
- Extract custom hooks for reusable logic
- Use
useMemo/useCallbackfor expensive computations or stable references - Avoid premature memoization - measure first
- Keep dependency arrays accurate and minimal
State Management
- Start with local state (
useState) - Lift state only when necessary
- Use Context for truly global state (theme, auth)
- Consider Zustand/Jotai for complex client state
- Server state: React Query/SWR/TanStack Query
Next.js Patterns
- Prefer Server Components by default
- Use
"use client"only when necessary (interactivity, hooks, browser APIs) - Leverage
loading.tsxanderror.tsxfor loading/error states - Use Route Handlers for API endpoints
- Implement proper metadata for SEO
Performance
- Lazy load heavy components with
React.lazyornext/dynamic - Optimize images with
next/image - Use Suspense boundaries strategically
- Avoid inline object/array literals in JSX props
- Profile with React DevTools before optimizing
Forms & Validation
- Use controlled components or React Hook Form
- Validate with Zod for type-safe schemas
- Show validation errors inline
- Disable submit during loading
- Handle server errors gracefully
Testing
- Test behavior, not implementation
- Use React Testing Library
- Test user interactions and outcomes
- Mock external dependencies
- Write integration tests for critical flows
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

