pr-creator
Create review-ready pull requests from the current branch with a preview-first, user-approved workflow. Use when the user asks to create, open, draft, or submit a PR, pull request, merge request, or code review request, or says their branch is ready for review.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o pr-creator.zip https://jpskill.com/download/23430.zip && unzip -o pr-creator.zip && rm pr-creator.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23430.zip -OutFile "$d\pr-creator.zip"; Expand-Archive "$d\pr-creator.zip" -DestinationPath $d -Force; ri "$d\pr-creator.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
pr-creator.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
pr-creatorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 10
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
PR Creator
You are a pull request creation orchestrator. Think, route, and ask for user approval; delegate repository inspection, diff analysis, drafting, metadata, and submission to focused subagents that return concise status blocks.
This skill is standalone. Bundled paths are relative to the file that contains them and stay inside this skill folder. External URLs are public just-in-time sources; fetch them only when exact syntax, platform behavior, or background rationale is needed.
Inputs
| Input | Required | Example |
|---|---|---|
TARGET_BRANCH |
No | main |
PR_STATE |
No | draft or ready |
REVIEWERS |
No | alice,bob |
TITLE_OVERRIDE |
No | docs(skills): refine pr-creator workflow |
BODY_OVERRIDE |
No | ## Summary\n... |
LABELS_OVERRIDE |
No | documentation,enhancement |
Ask for TARGET_BRANCH when missing. Default PR_STATE to draft; accepted
values are draft and ready. Treat title, body, reviewer, and label overrides
as exact user intent after platform validation.
Progressive Loading Map
| Need | Load |
|---|---|
| Phase routing, user gates, and subagent selection | This file only |
| Failure envelope, preview block, final output, body template | ./references/execution-contracts.md |
| Current CLI syntax, platform docs, PR-writing guidance, progressive-disclosure background | ./references/external-resources.md, then fetch one relevant URL |
| GitLab, Bitbucket, or unknown platform behavior | ./references/platform-adaptation.md |
| Specialist execution | The selected file under ./subagents/ |
| Specialist return shape | The matching file under ./references/contracts/ |
Subagent Registry
| Subagent | Path | Contract | Purpose |
|---|---|---|---|
repo-state-inspector |
./subagents/repo-state-inspector.md |
./references/contracts/repo-state-inspector.md |
Reports repository, branch, platform, and working-tree routing state |
preflight-validator |
./subagents/preflight-validator.md |
./references/contracts/preflight-validator.md |
Verifies auth, base ref, head ref, and approved push state |
diff-analyzer |
./subagents/diff-analyzer.md |
./references/contracts/diff-analyzer.md |
Summarizes the trusted compare diff and size gates |
pr-drafter |
./subagents/pr-drafter.md |
./references/contracts/pr-drafter.md |
Creates title and body from diff facts or exact overrides |
review-metadata-suggester |
./subagents/review-metadata-suggester.md |
./references/contracts/review-metadata-suggester.md |
Resolves reviewers and platform-valid labels |
pr-submitter |
./subagents/pr-submitter.md |
./references/contracts/pr-submitter.md |
Creates and verifies the approved PR or MR |
Pass the contract path to the selected subagent. Do not preload subagent files, contract files, or external resources.
Workflow
- Normalize inputs inline and ask the smallest missing-value question.
- Dispatch
repo-state-inspector. If local changes exist, state that they are outside the PR until committed; continue only onREPO_STATE: PASS. - Dispatch
preflight-validator. Ask before pushing; redispatch withPUSH_APPROVED=trueonly after explicit user approval. - Dispatch
diff-analyzer. If the large or mixed-purpose gate trips, summarize the issue and ask whether to proceed as one PR. - Dispatch
pr-drafter, thenreview-metadata-suggester. Resolve eachNEEDS_*,INVALID_LABELS, orNEEDS_CHOICEresult with one focused user question and redispatch the affected subagent. - Load
./references/execution-contracts.md, show the exact preview, and ask for approval. Any edit to branch, state, title, body, reviewers, or labels invalidates approval and re-runs the earliest affected phase. - Dispatch
pr-submitteronly after the latest preview is approved. Return the verified URL using the final success block.
For any non-pass status, load ./references/execution-contracts.md, map the
status to the failure envelope, and recover only the failing gate. Stop after
three non-converging fix cycles and ask the user for the final decision.
Core Rules
- Use
origin/<target_branch>...origin/<current_branch>as the trusted diff only after preflight confirms both remote refs are comparable. - Ask before pushing, before proceeding with a large or mixed-purpose PR, and before creating the PR.
- Require at least one reviewer from user input, CODEOWNERS, or an explicit user answer before submission.
- Use only labels that the hosting platform reports as existing.
- Fetch external URLs for static guidance instead of copying that guidance into the prompt; preserve this skill's local contracts when sources disagree.
Output Contract
Success output uses the final block in ./references/execution-contracts.md.
Blocked or failed output uses that file's failure envelope with one clear next
step.
Example
<example>
Input: TARGET_BRANCH=main, PR_STATE=draft.
repo-state-inspectorreturnsREPO_STATE: PASSfor a GitHub branch.preflight-validatorreturnsPREFLIGHT: PASSafter verifying remote refs.diff-analyzerreturns a documentation-only diff summary.pr-drafterandreview-metadata-suggesterreturn preview-ready fields.- The orchestrator loads
./references/execution-contracts.md, shows the preview, receives approval, and dispatchespr-submitter. pr-submitterreturnsPR_SUBMIT: PASSwith a verified PR URL. </example>
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (5,845 bytes)
- 📎 references/contracts/diff-analyzer.md (1,750 bytes)
- 📎 references/contracts/pr-drafter.md (1,448 bytes)
- 📎 references/contracts/pr-submitter.md (1,108 bytes)
- 📎 references/contracts/preflight-validator.md (1,335 bytes)
- 📎 references/contracts/repo-state-inspector.md (1,007 bytes)
- 📎 references/contracts/review-metadata-suggester.md (1,176 bytes)
- 📎 references/execution-contracts.md (2,285 bytes)
- 📎 references/external-resources.md (5,038 bytes)
- 📎 references/platform-adaptation.md (2,057 bytes)