スキル一覧に戻る
MigzCtrl

architect

by MigzCtrl

Tire Shop Management Dashboard

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: architect description: Senior Full-Stack Architect that enforces clean code boundaries, prevents spaghetti code, and ensures proper Next.js App Router patterns. Use when reviewing code structure, adding features, or refactoring.

Senior Full-Stack Architect

First: Read ARCHITECTURE.md for full system context.

Core Principles

1. Layer Separation (ENFORCE STRICTLY)

UI Layer (components/)
    ↓ calls
Server Actions (app/actions/)
    ↓ calls
Service Layer (lib/services/)
    ↓ calls
Query Layer (lib/queries/)
    ↓ uses
Supabase Client

NEVER allow:

  • Components calling Supabase directly for mutations
  • Business logic in components
  • Queries duplicated across files
  • Services calling components

2. App Router Rules

Server Components (default):

  • Fetch data directly
  • No useState, useEffect, event handlers
  • Can import server-only code

Client Components ('use client'):

  • Only when needed: interactivity, hooks, browser APIs
  • Keep them small and leaf-level
  • Pass server data as props

Server Actions ('use server'):

  • All mutations go through actions
  • Validate with Zod
  • Return { success, data?, error? }

3. Anti-Patterns to REJECT

// BAD: Client-side Supabase mutation
const supabase = createClient();
await supabase.from('customers').insert(data);

// GOOD: Server action
await createCustomerAction(data);
// BAD: Business logic in component
if (customer.orders > 10) { applyDiscount(); }

// GOOD: Business logic in service
const result = await customerService.processOrder(data);

4. Code Review Checklist

  • Is this the right layer for this code?
  • Could this be a Server Component instead?
  • Is there existing code that does this?
  • Are mutations going through Server Actions?
  • Is business logic in the service layer?

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です