Skip to content
cccskills
FreePublished on GitHub

review

コード変更をセキュリティ・パフォーマンス・正確性・変更容易性の4観点から並列レビューし、統合レポートを出力する。小〜中規模の変更を素早くチェックしたいときに使う。大きなPRや複雑な変更を丁寧にレビューしたい場合は /review-scan を使う。

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/review スキル

組み込みの /code-review(高速・単発の差分レビュー)で足りる軽いチェックはそちらを優先する。本スキルは4観点の専門サブエージェントで構造化レポートが欲しいときに使う。

Goal

コード変更を4つの専門レビューサブエージェントで並列レビューし、統合 Review Report を出力する。

Workflow

Step 1: diff 取得

引数に応じて diff を取得する:

  • PR番号 (例: 123, #123): gh pr diff <番号> を実行
  • ブランチ名 (例: feature/xxx): git diff main...<ブランチ名> を実行
  • staged: git diff --staged を実行
  • 引数なし: git diff --staged を実行(デフォルト)

diff が空の場合はユーザーに通知して終了する。

Step 2: 4つのサブエージェントを並列起動

Agent tool を使い、同一レスポンス内で4つ全てを並列起動する。各エージェントには Step 1 で取得した diff 全文を渡す。

起動する4エージェント:

Agentsubagent_type観点
review-securityreview-securityセキュリティ
review-performancereview-performanceパフォーマンス
review-correctnessreview-correctness正確性
review-changeabilityreview-changeability変更容易性

各エージェントへのプロンプトは以下の形式:

以下の diff をレビューしてください。

<diff>
{diff内容}
</diff>

Step 3: 結果収集と統合 Review Report 生成

4つのサブエージェントから Findings Report を受け取ったら、以下のフォーマットで統合 Review Report を出力する:

## Review Report

### 総評

(全体評価 2-4文。4つの観点の所見を統合した総合判断。)

### セキュリティ

(review-security の結果サマリ + 指摘。指摘なしの場合は「指摘なし」と記載。)

### パフォーマンス

(review-performance の結果サマリ + 指摘。指摘なしの場合は「指摘なし」と記載。)

### 正確性

(review-correctness の結果サマリ + 指摘。指摘なしの場合は「指摘なし」と記載。)

### 変更容易性

(review-changeability の結果サマリ + 指摘。指摘なしの場合は「指摘なし」と記載。)

### Phase.2 推奨

(Critical/Warning があれば code-review-critic での深掘りを推奨。なければ「Phase.2 不要」と記載。)

### 判定

- [ ] Approve — 問題なし、マージ可能
- [ ] Approve with comments — 軽微な指摘あり、修正推奨だがマージ可能
- [ ] Request changes — 修正が必要、再レビュー推奨

Step 4: Phase.2 ハンドオフ推奨

いずれかのエージェントが Critical または Warning レベルの指摘を出した場合、統合レポートの「Phase.2 推奨」セクションに以下を記載する:

  • Phase.2 深掘りが推奨される具体的な指摘事項
  • code-review-critic エージェントの起動方法の案内

注: Phase.2 の実行はユーザーの判断に委ねる。自動起動はしない。

Notes

  • code-review-scanner / code-review-critic パイプラインは /review-scan スキルで呼び出せる
  • サブエージェントは全て model: sonnet で動作し、コスト効率を重視している
  • 4エージェントは読み取り専用(permissionMode: plan)なので、コードを変更しない

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Convert Claude markdown subagent files to Codex CLI TOML format. Parses YAML frontmatter and body, applies model/permission/tool mappings, and outputs to agents/codex/<name>.toml.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

Create or update a Markdown blog draft from recent work and export it with `YYYY-MM-DD_slug.md` naming. Output directory can be set via environment variable or CLI option; if missing, ask the user and pass it explicitly.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

変更をコミットしてドラフトPRを作成する一連のGit/ghワークフロー。ユーザーが「コミットして」「PR作って」「draft PR」等を求めたときに使用し、status/diff確認・命令形コミット・push・gh pr create --draft(--assignee hodanov)まで実行する。ユーザーの明示リクエストが無くても、実装完了後にcommitやPRが必要になった場面(dev-workflowのcommitフェーズ等)では必ずこれを使う。`git commit` や `gh pr create` を単体でBash直接実行しない。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

1 つの作業ツリーに混ざった差分を、変更理由ごとの意味単位のコミットへ分割する。ユーザーが「コミットを分割して」「意味単位で分けて」「commit-split」等を求めたとき、または機能追加・付随リファクタ・設定/ドキュメント修正が 1 コミットに混在していると気づいたときに使用する。分割案を提示して承認を得てからステージし、コミットごとに単独で成立することを確認する。メッセージ規約・push・PR の作成は commit-and-draft-pr へ委譲する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

gitleaks + pre-commit を使ってローカルコミット時のクレデンシャル混入を機械的にブロックする。「クレデンシャル漏洩防止」「シークレット混入対策」「gitleaks」「pre-commit シークレット」「credential leak prevention」に言及した場合に使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

依存パッケージ(Go modules / npm / Terraform provider / GitHub Actions / pre-commit 等)の アップグレードを、outdated 検出 → CHANGELOG・破壊的変更の確認 → 更新 → lint/test 検証 → コミットまで一連の手順で安全に適用する。「依存更新」「パッケージを上げて」「dependency update」 「go get -u」「npm update」「provider を上げる」等に言及されたときに使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 22, 2026

See all skills by hodanov

Report a problem with this skill