8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitHub PRの「何が変わったか」ではなく「なぜ変えたか」を要約させるLLMプロンプト

8
Last updated at Posted at 2025-12-28

はじめに

この記事は個人ブログへ移転しました。
https://miyadev.com/pr-prompt

GitHub Copilotや各種AIツールのおかげで、コードを書く速度は劇的に上がりました。しかし、「他人が書いたPRを読む時間」 や 「自分の変更理由をドキュメントに残す時間」 は依然としてボトルネックです。

そこで、GitHubのPR差分をLLM(Claude 3.5 Sonnet)に投げて自動要約するツールを自作しました。
その開発過程で、「単にdiffを投げても、役に立たない要約しか出てこない」 という壁にぶつかりました。

本記事では、エンジニアのレビューに耐えうる「意味のある要約」を出力させるためのプロンプトエンジニアリングの知見を共有します。

8
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?