🛠️ Open Pr
??ルリクエスト(変更提案)を適切な
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Open a pull request with proper PR template, test coverage, and review workflow. Guides agents through creating a PR that follows repo conventions, ensures existing behaviors aren't broken, covers new behaviors with tests, and handles review via bot when local testing isn't possible. TRIGGER when user asks to "open a PR", "create a PR", "make a PR", "submit a PR", "open pull request", "push and create PR", or any variation of opening/submitting a pull request.
🇯🇵 日本人クリエイター向け解説
??ルリクエスト(変更提案)を適切な
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 この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-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Open Pr を使って、最小構成のサンプルコードを示して
- › Open Pr の主な使い方と注意点を教えて
- › Open Pr を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Claude が読む原文 SKILL.md(中身を展開)
この本文は AI(Claude)が読むための原文(英語または中国語)です。日本語訳は順次追加中。
Open a Pull Request
Step 1: Pre-flight checks
Before opening the PR:
- Ensure all changes are committed
- Ensure the branch is pushed to the remote (
git push -u origin <branch>) - Run linters/formatters across the whole repo (not just changed files) and commit any fixes
Step 2: Test coverage
This is critical. Before opening the PR, verify:
Existing behavior is not broken
- Identify which modules/components your changes touch
- Run the existing test suites for those areas
- If tests fail, fix them before opening the PR — do not open a PR with known regressions
New behavior has test coverage
- Every new feature, endpoint, or behavior change needs tests
- If you added a new block, add tests for that block
- If you changed API behavior, add or update API tests
- If you changed frontend behavior, verify it doesn't break existing flows
If you cannot run the full test suite locally, note which tests you ran and which you couldn't in the test plan.
Step 3: Create the PR using the repo template
Read the canonical PR template at .github/PULL_REQUEST_TEMPLATE.md and use it verbatim as your PR body:
- Read the template:
cat .github/PULL_REQUEST_TEMPLATE.md - Preserve the exact section titles and formatting, including:
### Why / What / How### Changes 🏗️### Checklist 📋
- Replace HTML comment prompts (
<!-- ... -->) with actual content; do not leave them in - Do not pre-check boxes — leave all checkboxes as
- [ ]until each step is actually completed - Do not alter the template structure, rename sections, or remove any checklist items
PR title must use conventional commit format (e.g., feat(backend): add new block, fix(frontend): resolve routing bug, dx(skills): update PR workflow). See CLAUDE.md for the full list of scopes.
Use gh pr create with the base branch (defaults to dev if no [base-branch] was provided). Use --body-file to avoid shell interpretation of backticks and special characters:
BASE_BRANCH="${BASE_BRANCH:-dev}"
PR_BODY=$(mktemp)
cat > "$PR_BODY" << 'PREOF'
<filled-in template from .github/PULL_REQUEST_TEMPLATE.md>
PREOF
gh pr create --base "$BASE_BRANCH" --title "<type>(scope): short description" --body-file "$PR_BODY"
rm "$PR_BODY"
Step 4: Review workflow
If you have a workspace that allows testing (docker, running backend, etc.)
- Run
/pr-testto do E2E manual testing of the PR using docker compose, agent-browser, and API calls. This is the most thorough way to validate your changes before review. - After testing, run
/pr-reviewto self-review the PR for correctness, security, code quality, and testing gaps before requesting human review.
If you do NOT have a workspace that allows testing
This is common for agents running in worktrees without a full stack. In this case:
- Run
/pr-reviewlocally to catch obvious issues before pushing - Comment
/reviewon the PR after creating it to trigger the review bot - Poll for the review rather than blindly waiting — check for new review comments every 30 seconds using
gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/reviews --paginateand the GraphQL inline threads query. The bot typically responds within 30 minutes, but polling lets the agent react as soon as it arrives. - Do NOT proceed or merge until the bot review comes back
- Address any issues the bot raises — use
/pr-addresswhich has a full polling loop with CI + comment tracking
# After creating the PR:
PR_NUMBER=$(gh pr view --json number -q .number)
gh pr comment "$PR_NUMBER" --body "/review"
# Then use /pr-address to poll for and address the review when it arrives
Step 5: Address review feedback
Once the review bot or human reviewers leave comments:
- Run
/pr-addressto address review comments. It will loop until CI is green and all comments are resolved. - Do not merge without human approval.
Related skills
| Skill | When to use |
|---|---|
/pr-test |
E2E testing with docker compose, agent-browser, API calls — use when you have a running workspace |
/pr-review |
Review for correctness, security, code quality — use before requesting human review |
/pr-address |
Address reviewer comments and loop until CI green — use after reviews come in |
Step 6: Post-creation
After the PR is created and review is triggered:
- Share the PR URL with the user
- If waiting on the review bot, let the user know the expected wait time (~30 min)
- Do not merge without human approval