← Back to list

react
by FranciscoMoretti
Production-ready AI chat template built with Next.js, Vercel AI SDK. Launch AI apps 10x faster.
⭐ 857🍴 90📅 Jan 23, 2026
SKILL.md
name: react description: React rules for the project Applies to files matching: **/*.tsx.
Components
- Prefer function components: Use React function components with hooks over class components.
- Client vs server: Mark interactive components with
"use client"at the top of the file; keep non-interactive logic in server components or libraries. - No default exports: Use named exports for all components.
Hooks
- Hook ordering: Follow the standard rules of hooks; no conditional or looped hooks.
- Derived state: Prefer deriving values from props/form state instead of duplicating them in
useState. - Effects: Keep
useEffectminimal and side effect focused; avoid using it for basic data derivation.
Forms
- Validation: Use
react-hook-form+ Zod for all non-trivial forms. - UI primitives: Prefer shadcn
Formprimitives (Form,FormField,FormItem,FormLabel,FormControl,FormMessage) for form layout and error handling. - Schema location: Co-locate small form schemas with the component; extract only when reused across modules.
Styling & Layout
- Class merging: Use the shared
cnutility for conditional classes. - Composition: Prefer smaller composed components over deeply nested JSX in a single component.
Configuration Access
- Client components: Always use
useConfig()from@/components/config-providerto access site configuration in client components ("use client"). - Never import
siteConfigdirectly in client components—it derives values from server-only environment variables. TheConfigProviderreceives a serialized version that decouples client code from server secrets.
Score
Total Score
80/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 500以上
+10
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

