Skip to content
Agentmart
Submit a tool

github-pr-create

Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。

Skill by mjun0812

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying github-pr-create?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

npx agentmarket install skill/mjun0812-github-pr-create

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/github-pr-create

Tools it pre-approves 15

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Read,
  • Write,
  • Task,
  • AskUserQuestion,
  • Skill(git-commit),
  • Bash(git:*),
  • Bash(gh:*),
  • Bash(cat:*),
  • Bash(ls:*),
  • Bash(bat:*),
  • Bash(eza:*),
  • Bash(grep:*),
Show 3 more
  • Bash(head:*),
  • Bash(tail:*),
  • Bash(mktemp:*)

What's inside

Skill name
github-pr-create
Description
Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。
License
MIT
Allowed tools
Read,, Write,, Task,, AskUserQuestion,, Skill(git-commit),, Bash(git:*),, Bash(gh:*),, Bash(cat:*),, Bash(ls:*),, Bash(bat:*),, Bash(eza:*),, Bash(grep:*),, Bash(head:*),, Bash(tail:*),, Bash(mktemp:*)
Instructions
77 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (7)

  • README.md
  • README_ja.md
  • SKILL.md
  • openai.yaml · agents/
  • pr_template.md · references/
  • pr_template_ja.md · references/
  • visuals.md · references/

SKILL.md (first lines)

# Create Pull Request

現在のbranchからpull requestを作成するSkill。PRのタイトルと説明文は、変更内容に基づいて自動生成する。

## Arguments

- `language`: PRのタイトルと説明文の言語 (例: "ja", "en")。明示が無い場合は、repositoryのPR templateの言語を使う。templateが無ければ会話の言語に従う
- `spec`: 解決するGitHub Issue番号 (任意。呼び出し元のskillから渡される)。関連Issue (`Closes`) の最優先候補として扱う
- `--dry-run`: 生成したPRタイトル・本文・base/head branchと、図・画像があればローカル成果物と本文内の配置を提示する。push、添付のアップロード、`gh pr create` は実行しない

## 0. 事前チェック

1. **branchとcommitの準備**: 現在のbranchがdefault branchの場合、または未commitの変更がある場合は、branch名とcommitの分割案を提示して承認を得てから、Skill toolで `git-commit` を呼び、branch作成とcommitを委譲する。ここで中止すると、ユーザーは同じ変更を自分でcommitし直してから再度依頼することになるため
2. **base branchの決定**:
   - ユーザーが会話で明示したbase branchを使う。明示が無ければrepositoryのdefault branchを使う
   - `git log --oneline origin/<base>..HEAD` に今回の作業と無関係なcommitが混ざる場合は、open PRのhead branchのうちHEADが直接積み上がっているものをbaseにする。1つに決まらなければ、AskUserQuestionで候補branchを提示してユーザーに確認する
   - 決定後、選定したbaseとその理由、`git log --oneline origin/<base>..HEAD` の一覧を報告する (選定が誤っていればユーザーがここで気付ける)
   - tracking branch (`@{upstream}`) はpush先の判定にだけ使い、PRのbase branchとして扱わない。feature branchのupstreamは通常 `origin/<current-branch>` であり、baseに使うと `origin/<base>..HEAD` が空になるため
3. **既存PRの確認**: 現在のbranchのPRが既に存在する場合は、そのURLと状態を表示して中止する
4. **base branchの最新化**: `git fetch origin <base-branch>` で比較基準を最新化し、以降のcommit確認と差分取得は `origin/<base-branch>` を基準にする
5. **PR templateの確認**: repositoryにGitHubが認識する場所のPR templateがあればそれを使い、見出しと順序をそのまま使う。同梱templateにある見出しが足りなくても補わない。そのrepositoryのreviewerが何を読みたいかは、skillの既定よりrepositoryのtemplateのほうが正確に表すため。無ければ指定言語に応じて同梱のtemplateを使う:
   - English: [`references/pr_template.md`](references/pr_template.md)
   - Japanese: [`references/pr_template_ja.md`](references/pr_template_ja.md)

## 1. リモートへのpush

現在のbranchをpushする。通常のpushが失敗し、履歴書き換えが必要な場合のみ、ユーザーに確認して `--force-with-lease` を使う。`--dry-run` ではpushせず、以降の差分取得はローカルのcommitと `origin/<base-branch>` の比較で行う。

## 2. 変更内容の取得

`origin/<base-branch>..HEAD` のcommit一覧とdiffを取得し、この出力を本文の根拠にする。同じ会話で実装した場合でも省略しない。記憶から書くと、途中で捨てた変更や別branchの作業が本文に混ざり、投稿前のdiffとの照合が空振りするため。lockfileの更新やformatterの一括適用のような機械的な差分は、statだけで済ませてよい。

## 3. PRタイトル、関連Issue、Labelの生成

「2. 変更内容の取得」で得た差分とcommitを根拠に、以下を決定する。

- **タイトル**: Conventional Commitsに従い、差分の内容を要約した簡潔なタイトルにする。1つのcommitのみの場合、そのcommitメッセージをベースにする
- **関連Issue**: `spec` で渡されたIssue番号を解決するIssue (`Closes`) の最優先候補にする。次にbranch名、commitメッセージ、open issueの一覧から関連するIssueを探し、タイトルだけで判断せず本文を読んで問題、背景、受け入れ条件を確認する。open issueが大量にある場合は、この突き合わせをSubAgentに委譲してよい
- **Label**: repositoryの既存labelから合うものを選ぶ。合うものが無ければ付与しない

## 4. 説明文の生成

- **PR template**: 「0. 事前チェック」で選択したtemplateの見出し・順序・言語に従う (repositoryのtemplateは指定言語では翻訳しない)。各見出しの書き方は同梱templateのコメントに従う。repositoryのtemplateでも、意図が同じ見出しには同じ書き方を当てる。小さいPRでも見出しを省略せず、内容を簡潔にする
- 該当する内容がない項目は、削除したり埋め草で埋めたりせず、指定言語で該当なし (英語は `N/A`) と明記する
- 箇条書きは1行1変更とし、指定言語に応じて以下の文体で書く
  - 日本語: 体言止めで終える。ですます調は使わない
    - GOOD: `- ログイン失敗時のリトライ処理を追加`
    - BAD: `- ログイン失敗時のリトライ処理を追加しました`
  - 英語: Conventional Commitsのdescriptionと同じ命令形の断片で書く (例: `- Add retry on login failure`)
- 検証で実行したコマンドと結果は、コピペ可能な形式で記載する
- CIで自動実行されるlint・format・型チェックは記載しない (そのチェック設定自体を変更したPRを除く)。記載するのはCIが検証しない動作確認の手順と結果
- diff、commit、関連Issueから確認できない事実を推測で補わない。本文の理解に必要な情報が不足する場合はユーザーに確認する
- public repositoryへ投稿するとき、private (internalを含む) repositoryの情報を書かない。参照先の公開状態は書く前に確認し、確認できなければprivateとして扱う。伏せるときはrepository名、Issue/PR番号、URL、branch名、参照先固有のファイルパスや固有名詞を書かず、参照先で確認した事実だけを残す
- 投稿前に本文を見直す: templateの見出しがすべて埋まりコメントやplaceholderが残っていないこと、各箇条書きがdiffにあり文体規則に沿うこと、private repositoryの情報が残っていないこと

### 表現の選択

単純な手順は番号付きリスト、短い比較や測定値はMarkdown表、小さなコードの変更は `diff` コードブロックにする。ファイル・ディレクトリの整理(追加・削除・移動・改名)を伴う場合は、取得したdiffを根拠に、[ファイル構成の差分](references/visuals.md#ファイル構成の差分) に従いtree形式の `diff` コードブロックを入れる。ロジック・制御フロー・構造の変化が文章だけでは掴みにくい場合は、[図と画像の規則](references/visuals.md) を読み、疑似コード・tree・`diff`・Mermaid・画像から要点が伝わる最小の表現を選ぶ。図専用の必須セクションは増やさず、実装方針・変更内容・検証結果など既存の対応するセクションへ置く。

## 5. Pull Requestの作成

本文はMarkdownファイルへ書き出し、`--body-file` で渡す。複数行本文、引用符、バッククォート、絵文字を `--body` の引数へ直接埋め込むとエスケープが崩れるため。
`--base <base-branch>`、`--assignee @me`、決定したlabel、画像があれば画像ごとの `--attach` を付けて `gh pr create` を実行する。添付があれば [添付手順](references/visuals.md#添付と確認) の投稿後確認を行う。

## 6. 結果の表示

以下の情報をまとめて表示する:

- 作成したPRのURL
- タイトル
- base branch → head branch (baseを推定で決めた場合はその理由)
- 関連Issue (検出された場合)
- assignee (`@me`)
- label (自動付与された場合)
- 変更の概要 (ファイル数、追加行数、削除行数)

From mjun0812/skills, MIT.

More from mjun0812/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 17, 2026 (13 days ago)
Last release
Oct 22, 2026 (8 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mjun0812

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get github-pr-create running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying github-pr-create?

CallGet help
Cite this page

github-pr-create skill. Agent Mart. https://agentmart.dev/skills/mjun0812-github-pr-create (last updated 2026-10-24)