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

code-review-digest-writer

GitHubリポジトリのPRレビューコメントから、プロジェクト固有のガイドラインに従い、テーマや課題、具体的な改善点などをまとめた週報形式のコードレビューダイジェストをMarkdownで作成するSkill。

📜 元の英語説明(参考)

Generates weekly code-review digest docs from PR review comments for any GitHub repository. If present, follows project-specific docs/review-digests/AGENTS.md guidelines. Use this to turn a date-bounded set of PR reviews into a structured markdown “newsletter” that captures themes, repeated issues, and concrete takeaways.

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

一言でいうと

GitHubリポジトリのPRレビューコメントから、プロジェクト固有のガイドラインに従い、テーマや課題、具体的な改善点などをまとめた週報形式のコードレビューダイジェストをMarkdownで作成するSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して code-review-digest-writer.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → code-review-digest-writer フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Code Review Digest Writer Skill

この Skill の使用時

  • 現在のリポジトリまたはプロジェクトについて、PR レビューコメントに基づいた週次(またはカスタム期間)のコードレビューダイジェストが必要な場合。
  • 開始日終了日があり、その期間の PR レビューフィードバックで教えられた内容をまとめた Markdown 形式のニュースレターが必要な場合。
  • 単に PR をリストするのではなく、テーマ、繰り返される問題、具体的なベストプラクティスを強調したい場合。

ユーザーが開始日と終了日の両方を指定しない場合は、YYYY-MM-DDYYYY-MM-DD を指定するように求めてから続行してください。

プロンプトの例

  • 「このリポジトリの 2025-02-01 → 2025-02-14 のコードレビューダイジェストを生成してください。」
  • 「2025-03-10 → 2025-03-17 の週次 PR レビューダイジェストを作成し、既存のダイジェストを過去のコンテキストとして使用してください。」
  • 「2025-04-01 から 2025-04-30 まで、owner/service-repo でレビュー担当者が焦点を当てた内容を要約し、繰り返される問題を強調してください。」
  • 「このプロジェクトの 2025-05-15 → 2025-05-29 のニュースレタースタイルのコードレビューダイジェストを作成し、テーマに [NEW] または [REPEAT] のタグを付けてください。」

スコープとリポジトリ

  • 対象リポジトリ:ダイジェストが必要なプロジェクト(通常は Claude Code で現在開いているリポジトリ)。
  • 理想的には、リポジトリに docs/review-digests/AGENTS.md が含まれており、プロジェクト固有のダイジェストガイドラインが記載されていること。そうでない場合は、この Skill で説明されている一般的な構造と、既存のダイジェストファイルにフォールバックしてください。
  • この Skill は、以下のdocs のみを変更する必要があります。
    • docs/review-digests/YYYY-MM-DD.md ここで、日付はレポート期間の終了日です。
  • この Skill がアクティブな間は、対象リポジトリのアプリケーションコード、テスト、または設定を変更しないでください。すべての変更は docs/review-digests/ 内で行う必要があります。
  • docs/review-digests/ がまだ存在しない場合は、ダイジェストファイルを作成する前にディレクトリを作成して、将来のダイジェストを追加したり、過去のダイジェストを読んだりできるようにしてください。

必要なローカルツールと前提条件

Bash を使用する場合、以下を前提とします。

  • gh (GitHub CLI) がインストールされ、対象リポジトリに対して認証されていること(または、それを見ることができるデフォルトの GitHub ID に対して)。
  • 現在の作業ディレクトリが対象リポジトリのルートであること(または、必要に応じて --repo owner/namegh コマンドに明示的に渡すこと)。

gh が利用できない場合は、以下に適切にフォールバックしてください。

  • ローカルで利用可能な PR ノートまたはドキュメントに基づいて要約すること。
  • 部分的なデータで生成されたことをダイジェストで明確に述べること。

大まかなワークフロー

ダイジェストの生成または更新を求められた場合は、次のワークフローに従ってください。

  1. 期間の確認

    • start_dateend_date (両端を含む) があることを確認します。
    • 曖昧さがある場合は、ユーザーに確認してください。
  2. ローカルのダイジェストガイドラインの読み込み

    • 存在する場合は、docs/review-digests/AGENTS.md を開き、注意深く読んでください。
    • 存在する場合は、そのファイルを次の信頼できる情報源として扱います。
      • ダイジェストとは何か。
      • どこに書き込むべきか。
      • 必要な構造とリンクスタイル。
      • 繰り返される問題を検出してラベル付けする方法。
    • 存在しない場合は、この Skill で後述するレイアウトに従い、docs/review-digests/ 内の既存のダイジェストファイルを参照として使用してください。
  3. 既存のダイジェストの検査

    • docs/review-digests/ ディレクトリが存在することを確認します。
      • 存在しない場合は、作成してください。その場合、まだ過去のダイジェストはありません。
    • Glob または Bash を使用して、docs/review-digests/*.md をリストします。
    • 少なくとも過去 3〜4 個のダイジェストをロードします(存在する場合)。
    • それらのテーマと繰り返される問題を抽出します(例:fixture の再利用、ブラインドインデックスの不変条件、Query() のリグレッションパターンなど)。
    • これらの情報を使用して、問題が再発しているかどうかを検出します。
  4. 期間内の PR とレビューデータの取得

    • Bashgh を使用して、次の条件を満たす PR をクエリします。
      • createdAt[start_date, end_date] の間にある、または
      • closedAt[start_date, end_date] の間にある。
    • PR 番号を重複排除します。
    • 選択した各 PR について:
      • トップレベルのコメント(PR ディスカッション)を取得します。
      • コードコンテキストを含むレビュー スレッドのコメント(GraphQL 経由)を取得します。
    • 次のコメントを優先します。
      • 人間のレビュー担当者 (__typename == "User")。
      • 実質的なレビューコンテンツを含む AI レビュー担当者(例:Claude、Copilot PR レビュー担当者)。
    • レビューコンテンツのないノイズの多いインフラストラクチャ/ボットのコメントを除外します(例:github-actions、ログのみのボット、CI ステータスの更新)。
  5. フィードバックをテーマにクラスタリング

    • コメントと差分コンテキストを十分に読んで、以下を理解します。
      • どのような動作またはパターンが議論されているか。
      • どのようなベストプラクティスまたは修正が提案されているか。
    • PR 全体のコメントをテーマにグループ化します。例:
      • ロギング、Sentry、およびパフォーマンス計測。
      • テスト、fixture、およびコード構造。
      • セキュリティ、アクセス制御、および PII 処理。
      • このリポジトリのドメイン固有の設計と不変条件。
      • 移行とツール。
      • レビューのプロセスとメタパターン。
  6. 繰り返される問題の検出

    • 現在の各テーマについて、以前のダイジェストから抽出したテーマ(ステップ 3)と概念的に比較します。
    • 同じパターンが再び現れた場合(例:「ペイロードで dict[str, Any] の代わりに TypedDict を使用する」、「Django Ninja Query() 定数を避ける」、「コピー&ペーストの代わりに共有 fixture を再利用する」)、それを繰り返される問題として扱います。
    • ラベルを使用します。
      • 初めて表示されるテーマには [NEW]
      • 以前のダイジェストに表示されたテーマには [REPEAT]
  7. ダイジェストファイルの作成

    • 対象パス:docs/review-digests/END_DATE.md
      • 例:期間 2025-11-132025-11-27docs/review-digests/2025-11-27.md
    • docs/review-digests/AGENTS.md に記載されているレイアウトと、最新のダイジェストに従ってください。以下を含みます。
      • リポジトリと期間を含むタイトル。
      • メインテーマを要約した 3〜6 個の箇条書きを含む概要セクション。
      • 関連するフィードバックをグループ化したテーマ別セクション(番号付き)。
      • 締めくくりのセクション(例:「このダイジェストの使い方」)。
    • 各セクション内:
      • 平易な言葉でプラクティスを説明します。
      • 1〜3 個の具体的で一般化された e

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

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

Code Review Digest Writer Skill

When to Use This Skill

  • You want a weekly (or custom window) code-review digest for the current repository or project, based on PR review comments.
  • You have a start date and end date and want a markdown newsletter summarizing what was taught in PR review feedback in that period.
  • You want to highlight themes, repeated issues, and concrete best practices rather than just listing PRs.

If the user does not provide both a start and end date, ask them to specify: YYYY-MM-DDYYYY-MM-DD before proceeding.

Example Prompts

  • “Generate a code review digest for this repo for 2025-02-01 → 2025-02-14.”
  • “Create a weekly PR review digest for 2025-03-10 → 2025-03-17, using any existing digests as historical context.”
  • “From 2025-04-01 to 2025-04-30, summarize what reviewers focused on in owner/service-repo and highlight repeated issues.”
  • “Write a newsletter-style code review digest for this project for 2025-05-15 → 2025-05-29, tagging themes as [NEW] or [REPEAT].”

Scope & Repositories

  • Target repo: whichever project you want a digest for (typically the repo you currently have open in Claude Code).
  • Ideally the repo contains docs/review-digests/AGENTS.md with project-specific digest guidelines. If not, fall back to the generic structure described in this Skill and any existing digest files.
  • This Skill must only modify docs under:
    • docs/review-digests/YYYY-MM-DD.md where the date is the end date of the reporting window.
  • Do not modify application code, tests, or configs in the target repo while this Skill is active. All changes should be within docs/review-digests/.
  • If docs/review-digests/ does not exist yet, create the directory before writing the digest file, so future digests can be added and past ones read.

Required Local Tools & Assumptions

When using Bash, assume:

  • gh (GitHub CLI) is installed and authenticated for the target repository (or for a default GitHub identity that can see it).
  • Current working directory is the target repo root (or pass --repo owner/name explicitly to gh commands, if needed).

If gh is not available, gracefully fall back to:

  • Summarizing based on locally available PR notes or docs, and
  • Clearly stating in the digest that it was generated with partial data.

High-Level Workflow

When asked to generate or update a digest, follow this workflow:

  1. Confirm time window

    • Ensure you have start_date and end_date (inclusive).
    • Confirm with the user if there is any ambiguity.
  2. Load local digest guidelines

    • If it exists, open docs/review-digests/AGENTS.md and read it carefully.
    • When present, treat that file as the source of truth for:
      • What the digest is.
      • Where it should be written.
      • Required structure and link style.
      • How to detect and label repeated issues.
    • If it does not exist, follow the layout described later in this Skill and use any existing digest files in docs/review-digests/ as a reference.
  3. Inspect existing digests

    • Ensure the docs/review-digests/ directory exists:
      • If it does not, create it; in that case there will be no past digests yet.
    • Use Glob or Bash to list docs/review-digests/*.md.
    • Load at least the last 3–4 digests (if present).
    • Extract their themes and repeated issues (e.g., fixture reuse, blind-index invariants, Query() regression patterns, etc.).
    • You will use these to detect when issues are recurring.
  4. Fetch PR and review data for the window

    • Use Bash with gh to query PRs whose:
      • createdAt is between [start_date, end_date], OR
      • closedAt is between [start_date, end_date].
    • Deduplicate PR numbers.
    • For each selected PR:
      • Fetch top-level comments (PR discussion).
      • Fetch review-thread comments with code context (via GraphQL).
    • Prefer comments from:
      • Human reviewers (__typename == "User").
      • AI reviewers that contain substantial review content (e.g., Claude, Copilot PR reviewer).
    • Exclude noisy infrastructure/bot comments with no review content (e.g., github-actions, log-only bots, CI status updates).
  5. Cluster feedback into themes

    • Read comments and diff context enough to understand:
      • What behavior or pattern was being discussed.
      • What best practice or correction was suggested.
    • Group comments across PRs into themes, such as:
      • Logging, Sentry, and performance instrumentation.
      • Tests, fixtures, and code structure.
      • Security, access control, and PII handling.
      • Domain-specific design and invariants for this repository.
      • Migrations & tooling.
      • Process and meta-patterns in reviews.
  6. Detect repeated issues

    • For each current theme, compare it conceptually to themes you extracted from previous digests (step 3).
    • If the same pattern appears again (e.g., “use TypedDict instead of dict[str, Any] in payloads”, “avoid Django Ninja Query() constants”, “reuse shared fixtures instead of copy-paste”), treat it as a repeated issue.
    • Use labels:
      • [NEW] for themes that appear for the first time.
      • [REPEAT] for themes that have appeared in previous digests.
  7. Draft the digest file

    • Target path: docs/review-digests/END_DATE.md
      • Example: period 2025-11-132025-11-27docs/review-digests/2025-11-27.md.
    • Follow the layout described in docs/review-digests/AGENTS.md and the most recent digest, including:
      • Title with repo and period.
      • Overview section with 3–6 bullets summarizing main themes.
      • Thematic sections (numbered) that group related feedback.
      • A closing section (e.g., “How to Use This Digest”).
    • Within each section:
      • Explain the practice in plain language.
      • Include 1–3 concrete, generalized examples.
      • Call out whether this is [NEW] or [REPEAT].
      • Emphasize the “why” (business impact, correctness, safety, DX).
  8. Linking to PRs and comments

    • In the body of the digest, use reference-style links only:
      • [#2519 – Fix Teams Start Survey race condition][pr-2519]
      • Key comment: [Fixture reuse recommendation][c-2519-3]
    • At the bottom of the file, define every link once:
      • pr-<number> for PRs.
      • c-<number>-<n> for specific review comments.
      • ic-<number>-<n> for issue comments, if needed.
    • Reuse identifiers consistently when the same comment is referenced in multiple sections.
  9. Respect tone and intent

    • The digest is a newsletter, not a blame report.
    • Highlight:
      • What the team is learning.
      • Where we’re improving.
      • Where patterns are still repeating and need attention.
    • Make guidance actionable (e.g., “When adding a new CSV mapping endpoint, always run through the project’s PII and security checklist docs.”).
  10. Save and review

    • Use Edit to create or update the digest file for END_DATE.
    • Re-open the file after writing to sanity-check:
      • Structure matches the prior digests.
      • Links resolve correctly and have definitions at the bottom.
      • [NEW] / [REPEAT] tags are applied consistently.
      • No accidental code changes occurred in the repo.

Output Expectations

When this Skill is active and asked to generate a digest, your final output should be:

  • A single markdown file under docs/review-digests/YYYY-MM-DD.md.
  • A short natural-language summary back to the user describing:
    • The period covered.
    • The main themes identified.
    • How many themes were [REPEAT] vs [NEW].

If you were unable to access GitHub or some PRs, clearly note in the digest and in your summary which data sources were missing and how that might limit the digest.

Severity / Emphasis Tags

Instead of issue severities, this Skill uses learning/emphasis tags:

  • [NEW] – First time this theme appears in digests.
  • [REPEAT] – Theme appeared in at least one prior digest.
  • [HIGH-IMPACT] – Optional extra tag for themes with clear business impact (e.g., security invariants, multi-tenant correctness, high-risk migrations).

Use these tags sparingly and consistently; they should help readers prioritize which lessons to internalize first.

Compatibility Notes

This skill is designed to work with both Claude Code and OpenAI Codex.

For Codex users:

  • Install via skill-installer with --repo DiversioTeam/agent-skills-marketplace --path plugins/code-review-digest-writer/skills/code-review-digest-writer.
  • Use $skill code-review-digest-writer to invoke.

For Claude Code users:

  • Install via /plugin install code-review-digest-writer@diversiotech.
  • Use /code-review-digest-writer:review-digest to invoke.