with one click
create-pr
Create a pull request from the current branch with structured summary
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create a pull request from the current branch with structured summary
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Convenes multiple agents to debate an important decision
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
QA + bugfix cycle until it passes
Convenes multiple agents to debate an important decision
| name | create-pr |
| description | Create a pull request from the current branch with structured summary |
| user-invocable | true |
| workflow | {"version":1,"steps":[{"id":"verify-branch","role":"system","intent":"Verify not on main/develop, check for uncommitted changes, get commits ahead of main.","produces":["branch-name","branch-state","commit-list"]},{"id":"gather-context","role":"system","intent":"Collect diff stats, run tests and lint for PR description context.","requires":["branch-state"],"produces":["diff-summary","test-result","lint-result"]},{"id":"generate-description","role":"system","intent":"Build structured PR description from commits, diff stats, and test results.","requires":["commit-list","diff-summary","test-result","lint-result"],"produces":["pr-description","pr-title"],"gate":true},{"id":"create-pr","role":"system","intent":"Push branch to origin and create PR via gh CLI.","requires":["pr-description","pr-title","branch-name"],"produces":["pr-url"]},{"id":"post-creation","role":"system","intent":"Display PR URL and suggest next steps.","requires":["pr-url"],"produces":["summary"],"gate":true}]} |
Creates a pull request from the current feature branch with a structured summary, test results, and change description. Closes the pipeline loop: init -> build-feature -> create-pr.
/build-feature/create-pr
main or develop -- refuse to create PR from default branchesgit status to check for uncommitted changes -- if any, warn the user and ask whether to commit firstgit log main..HEAD --oneline to get the list of commits that will be in the PRCollect the information needed for the PR description:
git log main..HEAD --oneline -- list of all commits on this branchgit diff main..HEAD --stat -- files changed with line countsnpm test) and capture pass/failnpm run lint) and capture pass/failfeature/dark-mode -> dark-mode)If tests or lint fail, warn the user but allow them to proceed (some PRs are draft/WIP).
Build a structured PR description:
## Summary
[2-4 bullet points describing what this PR does, derived from commit messages]
## Changes
[File-level summary from git diff --stat]
## Test plan
- [x] Tests: [pass/fail] ([count] tests)
- [x] Lint: [pass/fail]
- [ ] [Any manual verification steps if applicable]
git push -u origin [branch-name]gh pr create:
main (or the project's default branch)/code-review for an AI code review"gh pr merge [number]"User: /create-pr
Checking branch state...
Branch: feature/dark-mode (4 commits ahead of main)
Tests: 82 passed, 0 failed
Lint: 0 errors
Creating PR...
PR #42: "feat: add dark mode toggle to settings"
https://github.com/org/repo/pull/42
Next steps:
- Request review from a teammate
- Run /code-review for AI code review
- Merge when ready
wip: commits from build-feature checkpoints, consider squashing them before creating the PR