一键导入
create-pr
Prepare and open a pull request for the current branch after validating the full diff and running checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Prepare and open a pull request for the current branch after validating the full diff and running checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Abandon an active issue or release a stale issue claim so another agent can pick it up.
Use in repositories that track work with the agent-issues local issue workflow.
Claim exactly one issue, fix it, and create a pull request starting from a clean branch.
Push the current branch, open or update its PR, and loop through CI failures and review feedback until the PR is clean.
Like solve-issue, but skips plan confirmation and goes straight to implementation.
| name | create-pr |
| description | Prepare and open a pull request for the current branch after validating the full diff and running checks. |
Create a pull request for the current branch's changes.
Before starting, check for a repo-scoped skill with additional instructions:
.claude/skills/create-pr-local/SKILL.md (Claude Code).agents/skills/create-pr-local/SKILL.md (Codex)If either exists, read it and follow its instructions alongside this workflow. The local skill should stay narrow: repo-specific validation commands, generated-artifact rules, dependency policy, pre-PR checks, and other project constraints.
Do not expect create-pr-local to repeat shared PR mechanics. This skill owns
branch summarization, default-branch merges, validation timing, submit-pr
handoff, PR creation or update, CI watching, review feedback loops, and timeout
handling through submit-pr and agent-submit.
Commit any uncommitted work. Check git status — if there are staged or unstaged changes, commit them before proceeding. Everything that's part of this PR should be in a commit.
Understand the full scope of changes. Run this single command — it fetches origin, then prints the commits ahead of the default branch and the diff stat:
branch-summary
Read through the actual diffs and changed files — don't just look at filenames. You need to understand what changed and why.
Merge the default branch so you're testing against the latest code:
git merge --no-edit origin/$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)
Fix any merge conflicts before proceeding. Use --no-edit so repo merge settings do not drop you into an interactive editor mid-workflow.
Format issues. Run issue-fmt to auto-format issue files before validation.
Run pre-validation steps from the local skill if it exists (e.g., regenerate stale test fixtures, build generated code). Skip this step if no local skill is present or if the local skill says those steps are owned by .agent-issues/submit-hooks.json5.
Run the validation suite. Consult the local create-pr-local skill for the specific commands. If no local skill exists, look for Makefile targets like make check, make test, or make lint. Fix any failures before proceeding. Do not create a PR with failing checks. If repo validation is wired into .agent-issues/submit-hooks.json5, agent-submit will run it during the next step; do not duplicate long-running checks unless the local skill asks for an earlier targeted run.
After validation, run git status again before pushing. Build and test commands can dirty tracked files. Commit intentional artifacts or clean incidental churn before you open the PR.
Submit the PR. Invoke the submit-pr skill (no arguments) — it composes the title and body from the branch state, pushes, opens or updates the PR, and loops through CI failures and review feedback until the PR is clean.
submit-pr handles this.