review-flow
PR作成後に自動的に実行する必要があるフロースキルです
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
PR について理解しPR authorの身になってレビューを開始します。
自動判定ロジック
引数がない場合、以下で判定:
- 変更ファイル数 ≤ 3 かつ 変更行数 ≤ 50 → light
- 認証/決済/API/DB/セキュリティ関連の変更 → deep
- それ以外 → light
--light(model: haiku)
簡易チェック:
- lint漏れ、型エラー
- 明らかなバグ
- console.log の残存
- 未使用のインポート/変数
結果を簡潔に報告してください。
--deep(model: opus)
設計レベルのレビュー。parallel に以下の subagents を実行:
-
code-review subagent
- コード品質、可読性、保守性
- エラーハンドリング
- 型安全性
-
QA subagent
- 動作確認手順の提示
- 期待される結果
- エッジケースの確認
-
security-reviewer(該当する場合)
- 認証・認可の漏れ
- 入力値検証
- 機密情報の露出
脆弱性対応フロー(重要)
もし security-reviewer が High/Critical な脆弱性を検出した場合:
- 具体的なリスクと攻撃シナリオを提示する
- **「⚠️ マージ不可」**と明確に宣言する
- 修正方針を提案:
- 実装ミス: 現在のPRで修正コミットを追加
-
設計ミス:
/reject-prでPRを閉じて再設計を推奨
- 必要に応じて
ticket-feedbackで修正タスクをLinearに登録
出力順序
- コードの解説(何を変更したか)
- 各subagentのフィードバック
- 改善提案(優先度付き)
- セキュリティ問題がある場合は明確な警告
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!