一键导入
review
コミット前のセルフレビュー。プロジェクトの規約に沿っているかチェックする。 Apply when the user asks to review code, check conventions, or requests a self-review before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
コミット前のセルフレビュー。プロジェクトの規約に沿っているかチェックする。 Apply when the user asks to review code, check conventions, or requests a self-review before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Git コミットメッセージの規約。Conventional Commits 形式、日本語。 Apply when creating git commits, reviewing commit messages, or when the user asks to commit changes.
React / Next.js の TypeScript 規約。 コンポーネント(.tsx)、hooks、Server Components、Client Components、 Server Actions の実装時に適用する。
スタイリング規約。Tailwind CSS v4 と inline styles の使い分け。 UI コンポーネントやプレビュー領域のスタイリング時に適用する。 Tailwind はアプリ UI に、inline styles はプレビュー領域に使い、混在させない。
TDD(テスト駆動開発)のワークフロー。 新機能やバグ修正の実装時に適用する。 Red → Green → Refactor のサイクルを必ず守る。
Vitest を使った TypeScript テスト規約。 テスト(.test.ts, .test.tsx)の作成・レビュー時に適用する。 純関数テスト、Result 型テスト、React コンポーネントテスト、モックを規定。
関数型プログラミングベースのTypeScriptコーディング規約。 TypeScriptコード(.ts/.tsx)の実装時に適用する。 型、アロー関数、Result型エラーハンドリング、不変性、命名、import、async、pipe/合成を規定。
| name | review |
| description | コミット前のセルフレビュー。プロジェクトの規約に沿っているかチェックする。 Apply when the user asks to review code, check conventions, or requests a self-review before committing. |
コミット前に変更差分を規約に照らしてチェックする。
git diff または git diff --staged で変更差分を取得pnpm eslint で静的解析を実行し、エラー・警告を確認function 宣言が使われていないか → アロー関数にclass が使われていないか → plain object + functions にReadonly<> / readonly が欠けていないかany が使われていないか → unknown + 型の絞り込みにenum が使われていないか → union type にinterface がデータ型に使われていないか → type + Readonly にexport default が使われていないか → named export にthrow していないか → Result / ResultAsync にtry-catch が安易に使われていないか → ResultAsync.fromPromise 等に.push() / .splice() が外部に漏れていないかis / has / can 接頭辞があるかhandle 接頭辞、コールバック props が on 接頭辞か@/ → relative → import typeimport type が使えるところで通常 import になっていないか## レビュー結果
### error (修正必須)
- `src/features/auth/login.ts:15` — `function` 宣言 → アロー関数に変更
- `src/features/auth/login.ts:28` — `throw` → Result 型で返す
### warn (推奨)
- `src/components/user-list.tsx:8` — Props に `Readonly` が未適用
### info (参考)
- `src/lib/fetch.ts:3` — `import type` に変更可能
重大度の判断基準: