architecture-review
Use when generating or modifying code to ensure it follows project architecture and development guidelines. Enforces Result-based error handling, TypeScript conventions, and frontend architecture patterns.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Architecture Skill
このスキルはプロジェクトのアーキテクチャと開発指針に基づいてコードを生成・修正する際に使用します。
必須読み込みファイル
作業開始前に以下のドキュメントを必ず参照してください:
- CLAUDE.md - プロジェクト全体のガイドライン
- docs/architecture.md - フロントエンドアーキテクチャ
- docs/css.md - Tailwind CSS ガイドライン
- docs/error-handling.md - エラーハンドリング規約
- docs/typescript.md - TypeScript 規約
- docs/ui-specification.md - UI 仕様
コーディング規約
エラーハンドリング
-
try-catchは使用禁止 -
Result型を使用する - ライブラリの非同期処理には
wrapを使用 - インポート:
import { wrap, Ok, Err, AppError } from "@blog/errors"
TypeScript
- Zod スキーマを型定義の信頼源とする
- 明示的なインターフェースではなく、スキーマから型を推論する
フロントエンドアーキテクチャ
- Feature-based アプローチ
- Container/Presentational パターン
- Next.js App Router と features/pages の 1:1 マッピング
CSS & スタイリング
- Tailwind CSS v4 (CSS-first configuration)
-
@themeディレクティブでデザイントークンを定義 - コンポーネントバリアントには
cvaを使用 - 条件付きクラスには
cn()を使用 -
@apply、カスタム CSS クラス、新しい@keyframesは禁止
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!