pr-description
Skill0 starsChanged 50 days agoMITView on GitHub
PR の説明文を書く。レビュワー向けの前半とレビューエージェント向けの後半に層を分け、決まった構成と記載禁止事項に沿って本文を組み立てる。PRテンプレートがあればその見出しに従う。「PRの説明文を書いて」「PR本文作って」「このPRのdescription考えて」「PRの説明これでいい?」のような依頼で使う。ブランチ作成・コミット・push・`gh pr create` の実行そのものには使わない(公式の /commit-push-pr と併用する)。コードの中身をレビューする場合にも使わない(/code-review)。
- Commits and pushes
94 other projects use a version of this.
Adopted by
Most recently taken up by
- TangleML/tangle-uitheir own version, first seen Nov 9, 2026
- taecontrol/skillstheir own version, first seen Nov 8, 2026
- sankalpaacharya/skillstheir own version, first seen Nov 8, 2026
- joel611/skillstheir own version, first seen Nov 8, 2026
- Wade-DevCode/awesome-coding-skills-cntheir own version, first seen Nov 8, 2026
- AlessioScarfone/skillstheir own version, first seen Nov 6, 2026
Used with
Projects with it also use ao-desktop-dev, bug-triage and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
agentlab-inSkillao-desktop-dev
Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually verify AO frontend changes in the actual desktop app rather than ao preview, dev:web, or mock data.
Also in 4 projects that use this
jMertaSkillbug-triage
Use when the user reports a bug, regression, runtime error, failing build, or broken test and wants reproduction, diagnosis, root-cause analysis, or an authorized fix. Isolates the shared cause and verifies the smallest relevant change.
Also in 4 projects that use this
GitHubSkillcommit-message
Generate conventional commit messages - use when creating commits, writing commit messages, or asking for git commit help
Also in 9 projects that use this
saffron-healthSkilladdress-review
Address PR review comments systematically. Use when responding to code review feedback on a pull request.
Also in 3 projects that use this
NVIDIASkillwriting-docs
Use when adding or changing user-facing behavior or documentation in Megatron-Energon, or when creating new .py, .sh or .md files that need license headers.
Also in 3 projects that use this
Sagargupta16Skilldependency-audit
Audit project dependencies for security vulnerabilities, licensing issues, maintenance health, and optimization opportunities. Use it during regular security audits (monthly or quarterly); before a major release when you want to ensure the dependency tree is clean; when evaluating whether to adopt or replace a dependency; after a security advisory affects one of your dependencies; when your install times or bundle sizes have grown noticeably.
Also in 3 projects that use this
Other versions94 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 94
- jdx/mise★ 36ksame name
- zulip/zulip★ 26ksame name
- Nagi-ovo/gemini-voyager★ 21ksame name
- pipecat-ai/pipecat★ 17ksame name
- AgentWrapper/agent-orchestrator★ 14ksame name
- ComposioHQ/agent-orchestrator★ 14ksame name
- OrchestratorInc/agent-orchestrator★ 14ksame name
- Untrivial-ai/agent-orchestrator★ 14ksame name
- sanity-io/sanity★ 6.4ksame name
- vimeo/psalm★ 5.9ksame name
84 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- comment-reviewSkill
- deep-investigationSkill
- dev-setupSkill
- figma-impl-initSkill
- figma-implSkill
- pdf-bookletSkill
- pdf-booklet-template-designerSkill
- skill-creatorSkill
The file
Files
PR説明文
PR の説明文だけを担当する。差分から本文を組み立て、提出前チェックを通してから提示する。 PR の作成・更新コマンドは実行しない。
1. 差分を把握する
まずベースブランチを決める。
gh pr view --json baseRefName,title,body 2>/dev/null # 既存PRがあればベースと現行本文を取得
git symbolic-ref --short refs/remotes/origin/HEAD # 無ければリモートのデフォルトブランチ(例: origin/main)以降 <base> はリモート参照(origin/main など)を指す。gh pr view の baseRefName は main のようにリモート名を含まないため、origin/ を補う。
どちらも取れない場合は、ベースブランチをユーザーに聞く。推測で main や master を使わない。git merge-base --fork-point は upstream の reflog に依存し、fresh clone では失敗するか誤った起点を返すため使わない。
差分は次の3つを併用する。
git diff <base>...HEAD --stat # コミット済みの変更
git diff <base> --stat # 作業ツリーとの比較。未コミットの変更を含む
git status --short # 未追跡ファイル。上の2つには現れない三点記法(...)はコミット間の比較であり、未コミットの変更を含まない。コミット前に本文を作る場合、三点記法だけでは差分が空になる。
git log のコミットメッセージは構成の材料にしない。コミット単位は作業の順序であり、説明文の構成とは別物。
2. PRテンプレートを確認する
ls .github/PULL_REQUEST_TEMPLATE.md .github/pull_request_template.md \
PULL_REQUEST_TEMPLATE.md pull_request_template.md \
docs/PULL_REQUEST_TEMPLATE.md docs/pull_request_template.md 2>/dev/null
ls .github/PULL_REQUEST_TEMPLATE/ 2>/dev/null # 複数テンプレートが置かれている場合.github/PULL_REQUEST_TEMPLATE/ に複数ある場合は、どれを使うかをユーザーに聞く。
テンプレートがある場合、見出しの構成はテンプレートに従う。手順3はその各見出しに何を書くかの基準として使う。
- テンプレートの見出しは削除・改名しない。該当が無い見出しは見出しごと残し、本文に「該当なし」と書く
- テンプレートに無い見出しを足さない。手順3の「後半」に挙げた観点は、テンプレートの既存見出しのいずれかに収める
- テンプレートの見出しが検討の経緯や代替案の記載を求める場合(「検討した代替案」など)も、見出しは残したうえで結論だけを書く。「変更の背景」のように背景を求める見出しは Why に当たるため、これに含まない
- チェックボックスやコメント行(
<!-- -->)の指示があればそれに従う
テンプレートが無い場合のみ、手順3の見出し構成をそのまま使う。
3. PR説明文の構成
レビュワーとレビューエージェントの二種類が読む。必要な粒度が異なるため、削るのではなく層を分ける。
前半(人間向け・目安15行以内)
- What: 利用者または開発者の視点で、この変更で何が変わるか
- Why: diff から動機が自明でない場合は必須
判断に必要な最小限だけを置く。ここだけ読んで「マージしてよいか」の当たりがつく状態にする。
後半(レビュー材料)
レビュー観点ごとに見出しを立てる。該当しない見出しは省く。
- 影響範囲: 変更したファイル群と、波及しうる箇所
- 検証: 手動で確認した手順と結果
- 既知の制約: 今回対応しないと決めたこと、残課題
4. 提出前の確認
- 前半だけで変更の要否が判断できるか
- 時系列を表す語(当初、最終的に、〜した結果、〜が判明した)が残っていないか
- AI とのやり取りに言及していないか
- 「書かないもの」に該当する記述が残っていないか
- テンプレートがある場合、見出しの過不足が無いか
- 経緯や代替案を求める見出しに、経緯ではなく結論だけを書いたか
禁止事項
書かないもの
- diff を見れば分かる実装の説明
- CI が実行する検証コマンド(
pnpm build、pnpm testなど) - 作業の経緯
経緯とは、結論に至るまでの試行錯誤の記録を指す。レビュワーは結論だけを必要としており、経緯が載ると結論と経緯を切り分ける作業を読み手に押しつけることになる。不採用案も書かない。
❌ 当初はAで実装したが型エラーが解決せず、Bに切り替えた
❌ 3回目の修正でキャッシュが原因と判明した
❌ Bで実装した(Aは型定義の都合で採用できない)
✅ Bで実装した操作
- 確認なしに
gh pr create/gh pr editを実行しない。本文の提示までで止める - 既存 PR の本文を、差し替え内容をユーザーに見せる前に上書きしない
- PRテンプレートのファイルを書き換えない
- 差分から確認できない検証結果・影響範囲を書かない。未実施なら「検証」の項目を省く(テンプレートに見出しがある場合は「未実施」と書く)
- 差分に無い変更を説明文に含めない
出力形式
- 本文全体を Markdown のコードブロックでチャットに提示する
- 同じ内容を一時ファイル(scratchpadなど)に
pr-body.mdとして保存し、パスを伝える(gh pr create --body-fileにそのまま渡せる形) - テンプレートの有無と、どのファイルを使ったかを1行で添える
- 提出前の確認の各項目について、通ったか・省いた見出しは何かを1〜3行で添える
- コマンドの実行はユーザーの指示を待つ
本文の言語は、そのリポジトリの直近の PR に合わせる。判断できない場合はユーザーに聞く。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

