← Back to list

frontend-architecture-patterns
by michaellperry
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: frontend-architecture-patterns description: Frontend architecture patterns for React apps (React Router 7, TanStack Query). Use when planning features, defining routes, data strategies, and component gaps.
Frontend Architecture Patterns
Concise guidance for planning frontend features.
When To Use
- Defining routes and loaders for a new feature
- Planning query keys, mutations, and error handling
- Auditing UI components and specifying gaps
- Designing permission checks at route and component levels
Core Patterns
- File-Based Routing: Pages under
src/pages/<feature>/with nested folders; shared_layout.tsxfor feature. - Data Strategy: Query key factory; prefetch via loaders; mutations with optimism + invalidation.
- Component Taxonomy: Atoms → Molecules → Organisms; DS owns atoms/molecules; feature specs define requirements.
- Security-First: Centralized permissions; protect routes; conditionally render privileged actions.
Resources
- Core Concepts — load when drafting the FTS and overall architecture.
- State Management — load when defining query keys, queries, mutations, and error handling.
- Security & Permissions — load when specifying guards and permission-based rendering.
- Routing Setup — load when wiring routes, loaders, and protection.
- Component Spec Templates — load when specifying new Molecules/Organisms.
- Permission Guards — load when rendering privileged UI.
Frontend Technical Spec (FTS)
- Output: FTS document in docs/specs/ for each major feature
- Goal: Decide architecture before implementation
- Scope: Routing, data, permissions, component gaps — not low-level component code
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