Automated summary
Creates a GitHub pull request using a template, notifies reviewers, and automatically monitors for review feedback.
Strengths
- Automates PR creation with a standard template
- Enforces build and documentation checks
- Background polling for review comments
- Triggers automatic handling of review feedback
Limitations
- Requires successful local build and commit/push beforehand
- Polling times out after 2 hours
- Depends on gh CLI and configured GitHub repository
Use this skill after finalizing changes, running a successful build, and pushing commits to trigger review.
Do not use for trivial changes that don't require formal review, or when CI is not set up.
Security analysis
SafeThe skill uses common GitHub CLI commands and a safe polling script. No destructive actions, no exfiltration of secrets, no obfuscation. It interacts locally with GitHub's API for legitimate purposes only.
No concerns found
How this analysis is madeExamples
Create a pull request for my current branch with title 'Fix login bug' and issue number #42.I've pushed my changes. Create a PR and begin monitoring for review comments.name: create-pr description: GitHub プルリクエストを作成する。ビルド成功・コミット・プッシュ完了後に使用。
create-pr スキル
GitHub プルリクエストを作成するワークフロー。
前提条件
- ローカルビルドが成功していること(
/maven-buildで確認)。 - コミット・プッシュが完了していること。
docs/配下のドキュメントを新規作成・大幅更新した場合は、ソースコード照合レビューが完了していること(.claude/rules/reference-docs.md参照)。
手順
1. PR テンプレートの確認
.github/pull_request_template.md を読み込み、テンプレート構造に準拠する。
2. PR 作成
gh pr create \
--title "<イシュー番号に対応するタイトル>" \
--body "$(cat <<'EOF'
## 概要
<コミットメッセージの要約を記載>
## 関連イシュー
Closes #<イシュー番号>
## チェックリスト
- [ ] 動作確認済み
- [ ] CI通過
- [ ] 関係者にレビュー依頼済み
EOF
)"
3. レビューの案内とポーリング
PR 作成が完了したら、ユーザーに以下を案内する:
PR を作成しました。別のターミナルで以下を実行してレビューしてください:
claude /review-pr <PR番号>このセッションでレビューコメントを監視しています。 レビューが投稿されたら自動で指摘対応を開始します。
案内後、バックグラウンドでレビューコメントのポーリングを開始する。
ポーリング手順
以下のコマンドをバックグラウンドで実行する(run_in_background を使用):
PR_NUM=<PR番号>
INTERVAL=30
MAX_WAIT=7200
REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
ELAPSED=0
while [ "$ELAPSED" -lt "$MAX_WAIT" ]; do
FOUND=$(gh api "repos/${REPO}/issues/${PR_NUM}/comments?per_page=100&sort=created&direction=desc" 2>/dev/null \
| python3 -c "
import sys, json
comments = json.load(sys.stdin)
for c in comments:
if 'Reviewed by Claude Code' in c.get('body', ''):
print(c['body'])
sys.exit(0)
sys.exit(1)
" 2>/dev/null)
if [ $? -eq 0 ]; then
echo "$FOUND"
exit 0
fi
sleep "$INTERVAL"
ELAPSED=$((ELAPSED + INTERVAL))
done
echo "TIMEOUT: ${MAX_WAIT}秒経過してもレビューコメントが検出されませんでした。"
exit 1
レビューコメント検知後
ポーリングタスクの完了通知を受けたら、GitHub API で結果を取得する:
PR_NUM=<PR番号>
REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
gh api "repos/${REPO}/issues/${PR_NUM}/comments?per_page=100&sort=created&direction=desc" 2>/dev/null \
| python3 -c "
import sys, json
comments = json.load(sys.stdin)
for c in comments:
if 'Reviewed by Claude Code' in c.get('body', ''):
print(c['body'])
sys.exit(0)
"
レビューコメントを取得したら、/check-review スキルの手順に従って
指摘事項への対応を自動で開始する。
注意事項
- PR 作成前に必ずユーザーに確認する。
- テンプレートの構造を勝手に変更しない。
- PR 本文に
Closes #<イシュー番号>を記述してイシューと連携する。
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-github-pull-request-mmh8qq7p' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-github-pull-request-mmh8qq7p/download' --output '.skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md.part' && mv '.skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md.part' '.skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md' && test -s '.skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/create-pr' && cp -R '.skill-downloads/create-github-pull-request-mmh8qq7p' '.claude/skills/create-pr'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-github-pull-request-mmh8qq7p'openskills read 'create-github-pull-request-mmh8qq7p'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-github-pull-request-mmh8qq7p/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.