← Back to list

add-feature
by MigzCtrl
Tire Shop Management Dashboard
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: add-feature description: Guide for adding new features to TireOps. Use when implementing new pages, API routes, or components.
Adding Features to TireOps
First: Read ARCHITECTURE.md for full system context.
Before Starting
- Read ARCHITECTURE.md for system overview
- Check existing patterns in similar features
- Plan the implementation
Adding a New Page
- Create
src/app/[route]/page.tsx - Use
DashboardLayoutwrapper - Get auth:
const { profile, shop } = useAuth() - Filter queries by
shop_id
Adding an API Route
- Create
src/app/api/[route]/route.ts - Use lazy Supabase initialization
- Validate input with Zod
- Return proper error responses
Adding Components
- Use shadcn/ui from
src/components/ui/ - Use theme variables (text-text, bg-bg)
- Follow existing patterns
Database Changes
- Update
src/types/database.ts - Add migration SQL to
src/lib/supabase/migrations.ts - Run in Supabase dashboard
Checklist
- RLS: Data filtered by shop_id
- Types: Added to database.ts
- Auth: Protected routes check user
- Styles: Using theme variables
- Errors: Proper error handling
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon