Create a pull request from the current branch with structured summary
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 PRSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer