AGENT SKILL

pr-create

Pushes the current branch, analyzes the diff against main to generate a PR title and body, fills the repository's pull_request_template.md when present, and creates the PR as a draft via gh. Use when the user asks to open or create a pull request ("PR を作って", "open a PR", "プルリク出して") after their work is committed. Does not commit or stage changes (use commit for that), and does not merge, review, or update an existing PR.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
pr-create
description
Pushes the current branch, analyzes the diff against main to generate a PR title and body, fills the repository's pull_request_template.md when present, and creates the PR as a draft via gh. Use when the user asks to open or create a pull request ("PR を作って", "open a PR", "プルリク出して") after their work is committed. Does not commit or stage changes (use commit for that), and does not merge, review, or update an existing PR.

02 资源文件 2

03 SKILL.md 正文

PR Create Skill

This skill automates and streamlines the GitHub Pull Request (PR) creation process. It analyzes changes in the current branch, generates appropriate titles and descriptions, and creates the PR.

Overview

  1. Preparation: Push the current branch to remote.
  2. Generate Content: Analyze diffs to generate PR title and description based on templates.
  3. Verify Content: A separate agent re-reads the diff and checks the body against it.
  4. Execution: Create a PR in Draft mode using gh pr create.

Detailed Steps

1. Preparation

Ensure the current local branch changes are up-to-date and pushed to remote.

git push -u origin HEAD

2. Generate Content

Determine the PR title and body.

  • Title:

    • If single commit: Use that commit message.
    • If multiple commits: Generate a summary title from changes.
  • Body:

    • Analyze diff (git diff main...HEAD).
    • If .github/pull_request_template.md exists, fill sections like "Changes (What)", "Reason (Why)", "Compliance Check" following its structure.
    • IMPORTANT: Do NOT delete HTML comments (<!-- ... -->); keep them as is.

3. Verify Content (before creating the PR)

Read agents/body-verifier.md and call it with [PROPOSED_TITLE], [PROPOSED_BODY], and [BASE_BRANCH]. It runs in a fresh context, reads the diff itself, and looks for claims the diff does not support, changes the body omits, and unfilled template sections.

Why a separate agent: the agent that wrote the body already believes its own summary, so self-checking re-confirms the same reading. A verifier that has not seen the drafting catches fabricated claims — "検証した" / "tests pass" with nothing behind it — which are the most damaging kind of error here, because reviewers trust the body before reading the diff.

Why before creating rather than after: a PR notifies reviewers on creation. A body corrected afterwards does not reach whoever already read the first version.

  • verdict: ok → proceed to Step 4.
  • verdict: mismatch → do not create the PR. Show the user the fabricated claims and missing changes, and let them choose: fix the body, create it anyway, or stop. The branch is already pushed, so nothing is lost by pausing here.

4. Execution

Create the PR using gh command. Create as Draft (--draft) by default.

gh pr create --title "<Verified Title>" --body "<Verified Body>" --draft

5. Post-Creation

If successful, the PR URL is output. Present this URL to the user.

Report the PR URL and status to the user in Japanese.

04 同仓库更多 Skills

yoshiysh
yoshiysh/claude-plugins

coverage-build

文書でもプログラムでも、作る(create)・既にあるものを目標に合わせて直す(update)・作らずに目標に照らして確かめる(review)作業を、 目標の固定 →(update は現状の検査)→ 設計 → 設計レビュー → 実装 → 実装レビューの段で回し、見落としを構造で減らす汎用の仕組み。 1 体には 1 単位だけを任せ、テストは実装と別の担当が先に書き、レビューは coverage-audit を呼び、悪かった出来事を探索グラフで振り返って 欠陥を原因の層(目標・設計・実装)へ戻す(指摘の箇所だけを直す経路は持たない)。台帳は run をまたいで持ち越し、変わったものだけを見直す。 「この機能を設計からレビューまで通して作って」「このスキルを目標に合わせて直して(文書とコードが混ざってよい)」 「この実装が目標を満たすか確かめて、直すならどの層からかを返して」のような依頼で使う (Use when building or updating documents or code through goal, design, design review, implementation, and implementation review with layer-routed rework)。 対象外: 目標に照らした網羅的な検査だけで振り返りも要らないもの(coverage-audit)、1 体で 1 回で済む小さな変更、このリポジトリの差分・PR のレビュー(repo-review)。

★ 1
yoshiysh
yoshiysh/claude-plugins

coverage-audit

与えられた目的と対象(設計・計画・要求・仕様・コード・テストなどのファイル)を、資産 × 観点の枡に分けて網羅的に検査し、 確かめた指摘と、見ていない所(開示した枡)を台帳に残して返す検査専用の仕組み。1 体には 1 枡だけを渡し、 読んだ証拠を本文の区画ごとの逐語の引用で機械が照らし、読む役と別のモデル・反証側の検証役が指摘を確かめ、 悪かった出来事を振り返り、確かめた欠陥を根本原因で束ねて型を全ての資産へ横展開する。台帳は run をまたいで持ち越し、変わった枡だけを読み直す。 「修正の前にこの設計・計画を観点ごとに漏れなく検査して」「この実装が目的と仕様を満たすか網羅的に検証して」 「前回の台帳の続きから、変わった所だけ検査し直して」のような依頼で使う(Use when files must be audited for every part × every lens with machine-checked evidence, without fixing them)。 対象外: 修正・生成の実行(このスキルは指摘と網羅の記録までを返し、直すのは呼ぶ側)、1 体で 1 回で済む小さな確認、このリポジトリの差分・PR のレビュー(repo-review)。

★ 1
yoshiysh
yoshiysh/claude-plugins

summarizing-meeting-notes

会議後に書かれた議事録・会議メモ・文字起こしテキストと、会議の録音ファイル(.mp3 / .m4a)を読み、 決定事項・アクションアイテム・未決事項を区分した要約を作る。 「この議事録を要約して」「会議メモから宿題を抜き出して」「定例の決定事項をまとめて」 「先週の打ち合わせの要点を出して」のように、 会議の記録から決定・宿題・未決を知りたい依頼なら使うこと。 記録が箇条書き数行のメモでも使うこと。 対象外: 会議中のリアルタイムな記録取り、議事録以外の文書(企画書・報告書)の要約、 1on1・面談の記録の要約。

★ 1
yoshiysh
yoshiysh/claude-plugins

release-notes-editor

リリースノートの下書きを、利用者と 1 項目ずつ確かめながら書く。「次のリリースのリリースノートを書いて」「リリースノートを作って」という依頼で使う。リリースノートの翻訳と、コミットメッセージの書き直しには使わない。

★ 1
yoshiysh
yoshiysh/claude-plugins

trace-cause

リポジトリで再現する 1 つの失敗(落ちるテスト・誤った出力)の根本原因を、確かめた事実の連なりとして特定する。「このテストが落ちる原因を突き止めて」「なぜこのコマンドがこの出力になるのか調べて」のように、再現手順のある失敗の原因調査を頼まれたときに使う。再現手順の無い相談、修正そのものの依頼、一般的な質問には使わない。

★ 1
yoshiysh
yoshiysh/claude-plugins

glossary-sync

リポジトリの用語集 docs/glossary.md と、文書の中の用語の使い方の食い違いを洗い出す。「用語集と文書の食い違いを調べて」という依頼で使う。用語集の新規作成と翻訳には使わない。

★ 1