jpskill.com
💬 コミュニケーション コミュニティ

process-code-review

monty-code-reviewの出力結果から、コードレビューの指摘事項を重要度順に提示し、修正適用やスキップを選択、品質チェックを実行してレビュー文書を更新することで、効率的にコードレビューを進めるSkill。

📜 元の英語説明(参考)

Process code review findings interactively - fix or skip issues from monty-code-review output. Presents issues in severity order, applies fixes, runs quality checks, and updates review documents with status markers.

🇯🇵 日本人クリエイター向け解説

一言でいうと

monty-code-reviewの出力結果から、コードレビューの指摘事項を重要度順に提示し、修正適用やスキップを選択、品質チェックを実行してレビュー文書を更新することで、効率的にコードレビューを進めるSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o process-code-review.zip https://jpskill.com/download/18710.zip && unzip -o process-code-review.zip && rm process-code-review.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18710.zip -OutFile "$d\process-code-review.zip"; Expand-Archive "$d\process-code-review.zip" -DestinationPath $d -Force; ri "$d\process-code-review.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して process-code-review.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → process-code-review フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Process Code Review Skill

この Skill の使用時

  • /monty-code-review:code-review を実行してレビュー文書を生成した後。
  • *_review.md ファイルがあり、重要度タグ付きの問題を処理する必要がある場合。
  • コードレビューの結果を体系的に追跡して解決したい場合。
  • 同僚のコードレビュー文書を確認し、問題を一つずつ修正する場合。

この Skill は、コードレビューワークフローの 2番目のステップ です。

ステップ 1: /monty-code-review:code-review → *_review.md を作成
ステップ 2: /process-code-review:process-review *_review.md → 問題の修正/スキップ
ステップ 3: /backend-atomic-commit:pre-commit → pre-commit チェックを実行し、問題を修正

プロンプトの例

基本的な使用法

  • "wellbeing_service_review.md ファイルを処理し、問題の修正を手伝ってください。"
  • "optimo_core/docs/code_reviews/api_review.md で process-code-review skill を使用してください。"
  • "このファイルのコードレビューの結果を確認し、それぞれを修正またはスキップしてください。"

引数付き

  • /process-code-review:process-review myfile_review.md - インタラクティブモード (デフォルト)
  • /process-code-review:process-review --dry-run myfile_review.md - プレビューのみ、変更なし
  • /process-code-review:process-review --auto myfile_review.md - すべての問題を自動修正
  • /process-code-review:process-review --auto --severity=NIT myfile_review.md - NIT のみ自動修正
  • /process-code-review:process-review --severity=BLOCKING api_review.md - BLOCKING の問題のみ処理

処理ワークフロー

この Skill がアクティブで、レビュー文書の処理を依頼された場合:

1. レビュー文書の解析

レビューファイルを読み込み、すべての問題を抽出します。以下を探します。

  • 重要度タグ: [BLOCKING], [SHOULD_FIX], [NIT]
  • 問題のタイトル: 重要度タグの後に続くもの
  • 場所: ファイルパスと行番号
  • コードスニペット: 現在問題のあるコード
  • 問題の説明: 問題の説明
  • 提案された修正: 提案されたコードまたはアプローチ

探すべき一般的なパターン:

### [BLOCKING] 問題のタイトル

**場所:** path/to/file.py:L120-L145

**現在のコード:**
...

**問題:**
...

**提案された修正:**
...

2. Todo リストの作成

TodoWrite を使用して、すべての問題を追跡します。

  • 重要度でグループ化:BLOCKING が最初、次に SHOULD_FIX、次に NIT
  • 最初はそれぞれを保留中としてマーク
  • 各問題を処理する際にステータスを更新

Todo リストの構造の例:

[BLOCKING] C1. N+1 クエリパターン - 保留中
[BLOCKING] C2. Org スコープの欠落 - 保留中
[SHOULD_FIX] S1. パフォーマンスの問題 - 保留中
[NIT] N1. ドキュメンテーション文字列の欠落 - 保留中

3. 問題を一つずつ提示

各問題について、重要度の高いものから順に、以下を表示します。

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[重要度] 問題のタイトル (M 件中 N 件)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

場所: file.py:L120-L145

現在のコード:
    <レビューからのコードスニペット>

問題:
    <問題の説明>

提案された修正:
    <提案されたコードまたはアプローチ>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

次に、この問題を修正しますか、それともスキップしますか? と尋ねます。

続行する前にユーザーの応答を待ちます。

4. ユーザーの応答の処理

ユーザーが「修正」/「はい」/「続行」と言った場合

  1. ソースファイルを読み込んで、現在の状態を理解します

  2. Edit ツールを使用して、提案された修正を適用します

  3. 修正されたファイルに対して品質チェックを実行します。

    • .bin/ruff check <file> --fix
    • .bin/ruff format <file>
  4. レビュー文書を更新して、問題を FIXED としてマークします。

    ### [BLOCKING] 問題のタイトル
    **ステータス:** ✅ FIXED (YYYY-MM-DD)
  5. TodoWrite を更新して、完了としてマークします

  6. 次の問題に移動します

ユーザーが「スキップ」/「無視」/「いいえ」と言った場合

  1. ソースファイルを変更しないでください

  2. オプションで理由を尋ねます (または「Deferred」を使用します)

  3. レビュー文書を更新して、問題を IGNORED としてマークします。

    ### [BLOCKING] 問題のタイトル
    **ステータス:** ⏭️ IGNORED (YYYY-MM-DD)
    **理由:** [ユーザーの理由または "Deferred"]
  4. TodoWrite を更新して、完了 (スキップ) としてマークします

  5. 次の問題に移動します

5. 品質チェック

修正後、品質チェックを実行します。

  • ruff check <file> --fix - リンティングの問題を自動修正
  • ruff format <file> - コードのフォーマット
  • ty check <file> - 型チェック (ベースラインは許容範囲)
  • python manage.py check - Django システムチェック (該当する場合)

品質チェックで追加の問題が明らかになった場合は、続行する前に修正してください。

6. 処理後のサマリー

すべての問題が処理されたら、サマリーを提供します。

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
レビュー処理完了
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

合計問題数: 13
  ✅ 修正済み: 8
  ⏭️ スキップ済み: 3
  📅 保留: 2

変更されたファイル:
  - optimo_core/services/wellbeing_service.py
  - optimo_core/schemas/wellbeing.py

次のステップ:
  /backend-atomic-commit:pre-commit を実行して、pre-commit チェックを実行し、問題を修正します。
  レビュー文書はコミットされていないままです (作業中のドキュメント)。
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

ステータスマーカー

レビュー文書を更新するときは、これらのマーカーを使用します。

ステータス マーカー 意味
オープン (マーカーなし) 問題はまだ対処されていません
修正済み ✅ FIXED 問題はコードで解決されました
無視 ⏭️ IGNORED 問題は意図的にスキップされました
修正しない 🚫 WON'T FIX 問題は認識されていますが、修正されません
保留 📅 DEFERRED 問題は将来の作業で対処されます

常に日付を含めてください: **ステータス:** ✅ FIXED (2025-01-15)

重要度の優先順位

次の順序で問題を処理します。

  1. [BLOCKING] - マージ前に修正する必要があります

    • 正確性の問題
    • セキュリティ上の欠陥
    • データ整合性の問題
    • マルチテナント境界の違反
  2. [SHOULD_FIX] - 重要ですが、ブロッキングではありません

    • パフォーマンスの問題
    • テストの欠落
    • 紛らわしい制御フロー
  3. [NIT] - 軽微なスタイル/構造の問題

    • ドキュメンテーション文字列の改善
    • 変数命名
    • コードの整理

品質ゲート

レビューを完了としてマークする前に、以下を確認してください。

  1. すべての [BLOCKING] の問題は e

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Process Code Review Skill

When to Use This Skill

  • After running /monty-code-review:code-review to generate a review document.
  • When you have a *_review.md file with severity-tagged issues to process.
  • When you want systematic, tracked resolution of code review findings.
  • When reviewing a colleague's code review document and fixing issues one-by-one.

This skill is the second step in the code review workflow:

Step 1: /monty-code-review:code-review → Creates *_review.md
Step 2: /process-code-review:process-review *_review.md → Fix/skip issues
Step 3: /backend-atomic-commit:pre-commit → Run pre-commit checks and fix issues

Example Prompts

Basic Usage

  • "Process the wellbeing_service_review.md file and help me fix the issues."
  • "Use your process-code-review skill on optimo_core/docs/code_reviews/api_review.md"
  • "Go through the code review findings in this file and fix or skip each one."

With Arguments

  • /process-code-review:process-review myfile_review.md - Interactive mode (default)
  • /process-code-review:process-review --dry-run myfile_review.md - Preview only, no changes
  • /process-code-review:process-review --auto myfile_review.md - Auto-fix all issues
  • /process-code-review:process-review --auto --severity=NIT myfile_review.md - Auto-fix only NITs
  • /process-code-review:process-review --severity=BLOCKING api_review.md - Process only BLOCKING issues

Processing Workflow

When this skill is active and you are asked to process a review document:

1. Parse Review Document

Read the review file and extract all issues. Look for:

  • Severity tags: [BLOCKING], [SHOULD_FIX], [NIT]
  • Issue titles: Following the severity tag
  • Location: File path and line numbers
  • Code snippets: Current problematic code
  • Problem description: Explanation of the issue
  • Proposed fix: Suggested code or approach

Common patterns to look for:

### [BLOCKING] Issue Title

**Location:** path/to/file.py:L120-L145

**Current code:**
...

**Problem:**
...

**Proposed fix:**
...

2. Create Todo List

Use TodoWrite to track all issues:

  • Group by severity: BLOCKING first, then SHOULD_FIX, then NIT
  • Mark each as pending initially
  • Update status as you process each issue

Example todo list structure:

[BLOCKING] C1. N+1 Query Pattern - pending
[BLOCKING] C2. Missing Org Scoping - pending
[SHOULD_FIX] S1. Performance Issue - pending
[NIT] N1. Docstring Missing - pending

3. Present Issues One-by-One

For each issue, starting with highest severity, display:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[SEVERITY] Issue Title (N of M)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Location: file.py:L120-L145

Current Code:
    <code snippet from review>

Problem:
    <description of issue>

Proposed Fix:
    <suggested code or approach>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Then ask: Fix this issue or skip it?

Wait for user response before proceeding.

4. Handle User Response

If User Says "Fix" / "Yes" / "Proceed"

  1. Read the source file to understand current state

  2. Apply the proposed fix using Edit tool

  3. Run quality checks on the modified file:

    • .bin/ruff check <file> --fix
    • .bin/ruff format <file>
  4. Update the review document to mark the issue as FIXED:

    ### [BLOCKING] Issue Title
    **Status:** ✅ FIXED (YYYY-MM-DD)
  5. Update TodoWrite to mark as completed

  6. Move to the next issue

If User Says "Skip" / "Ignore" / "No"

  1. Do NOT modify the source file

  2. Ask for optional reason (or use "Deferred")

  3. Update the review document to mark the issue as IGNORED:

    ### [BLOCKING] Issue Title
    **Status:** ⏭️ IGNORED (YYYY-MM-DD)
    **Reason:** [User's reason or "Deferred"]
  4. Update TodoWrite to mark as completed (skipped)

  5. Move to the next issue

5. Quality Checks

After each fix, run quality checks:

  • ruff check <file> --fix - Auto-fix linting issues
  • ruff format <file> - Format code
  • ty check <file> - Type check (baseline acceptable)
  • python manage.py check - Django system checks (if applicable)

If quality checks reveal additional issues, fix them before moving on.

6. Summary After Processing

When all issues are processed, provide a summary:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Review Processing Complete
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Total Issues: 13
  ✅ Fixed: 8
  ⏭️ Skipped: 3
  📅 Deferred: 2

Files Modified:
  - optimo_core/services/wellbeing_service.py
  - optimo_core/schemas/wellbeing.py

Next Steps:
  Run /backend-atomic-commit:pre-commit to run pre-commit checks and fix issues.
  Review document remains uncommitted (working documentation).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Status Markers

Use these markers when updating review documents:

Status Marker Meaning
Open (no marker) Issue not yet addressed
Fixed ✅ FIXED Issue has been resolved in code
Ignored ⏭️ IGNORED Issue intentionally skipped
Won't Fix 🚫 WON'T FIX Issue acknowledged but will not be fixed
Deferred 📅 DEFERRED Issue to be addressed in future work

Always include the date: **Status:** ✅ FIXED (2025-01-15)

Severity Priority Order

Process issues in this order:

  1. [BLOCKING] - Must fix before merge

    • Correctness issues
    • Security flaws
    • Data integrity problems
    • Multi-tenant boundary violations
  2. [SHOULD_FIX] - Important but not blocking

    • Performance issues
    • Missing tests
    • Confusing control flow
  3. [NIT] - Minor style/structure issues

    • Docstring improvements
    • Variable naming
    • Code organization

Quality Gates

Before marking a review as complete, verify:

  1. All [BLOCKING] issues are either Fixed or explicitly Ignored with documented reason
  2. All [SHOULD_FIX] issues are addressed or have a documented deferral reason
  3. Linting passes: .bin/ruff check --fix
  4. Formatting is correct: .bin/ruff format
  5. Type checks pass baseline: .bin/ty check
  6. Relevant tests still pass

Handling Arguments

Parse arguments to adjust behavior:

Available Flags

Flag Description
--dry-run Show all issues and proposed fixes without modifying any files
--auto Apply all fixes without prompting (use with caution)
--severity=<LEVEL> Filter to only process issues of specified severity
(no flags) Interactive mode - prompt for each issue (default)

Severity Filter Values

  • --severity=BLOCKING - Only process BLOCKING issues
  • --severity=SHOULD_FIX - Only process SHOULD_FIX issues
  • --severity=NIT - Only process NIT issues

Examples

# Preview all issues without making changes
/process-code-review:process-review --dry-run api_review.md

# Auto-fix everything (careful!)
/process-code-review:process-review --auto api_review.md

# Auto-fix only minor issues, prompt for important ones
/process-code-review:process-review --auto --severity=NIT api_review.md

# Focus on critical issues only
/process-code-review:process-review --severity=BLOCKING api_review.md

# Dry-run to see only BLOCKING issues
/process-code-review:process-review --dry-run --severity=BLOCKING api_review.md

Combining Flags

Flags can be combined:

  • --dry-run --severity=BLOCKING: Preview only BLOCKING issues
  • --auto --severity=NIT: Auto-fix only NITs (safe for minor style fixes)

File Modification Rules

  • Source files: Modify to apply fixes
  • Review document: Update with status markers only
  • This skill does NOT commit: After processing, run /backend-atomic-commit:pre-commit to run pre-commit checks on staged changes

Strictness Guidelines

  • For [BLOCKING] issues: Be thorough, verify the fix addresses the root cause
  • For [SHOULD_FIX] issues: Apply the suggested fix, ensure it doesn't break tests
  • For [NIT] issues: Apply quickly, these are usually straightforward
  • Always read the source file before editing to understand context
  • If a proposed fix seems incomplete or incorrect, suggest improvements before applying

Integration Notes

This skill integrates with:

  • monty-code-review: Generates the review documents this skill processes
  • backend-atomic-commit: Runs pre-commit checks and fixes issues after processing

The three-step workflow ensures:

  1. Thorough review generation
  2. Systematic fix application
  3. Pre-commit validation before any commit