Run this helper free — no credit card
Every helper is free for 30 days. Answer 3 questions and get the full result in 2 minutes.
Start free →pr
Push branch and create a GitHub PR with concise, issue-linked description
👁 2 views · 📦 0 installs
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 3 AI agents
- Lifetime updates included
Run this helper
Answer a few questions and let this helper do the work.
▸Advanced: use with your AI agent
Description
# Create Pull Request Push branch and create a PR with a concise, issue-linked description. > **IMPORTANT:** This skill MUST be used for ALL pull request creation — even when the user says "create pr" without `/pr`. Never create a PR without following these steps. ## Current Branch Context - Branch: !`git branch --show-current` - Commits: !`git log main..HEAD --oneline 2>/dev/null` - Changed files: !`git diff main..HEAD --stat 2>/dev/null` ## Arguments - `$ARGUMENTS` - Issue reference (optional, e.g., `#42` or `42`). If provided, the PR will be linked to this issue. ## Instructions 1. **Review the branch context above** — the commits and changed files are already loaded. 2. **MANDATORY: Update CHANGELOG.md** — Read `CHANGELOG.md` and check the `## Unreleased` section. If the changes from this branch are NOT already listed there, you MUST update it before proceeding. **Do NOT skip this step. Do NOT proceed to push without verifying.** - Add entries under the appropriate subsection (`### Added`, `### Changed`, `### Fixed`, etc.) - Reference issue numbers where applicable (e.g., `(Issue #123)`) - Commit the update: ```bash git add CHANGELOG.md && git commit -m "docs: update changelog" ``` 3. **Push branch**: ```bash git push -u origin HEAD ``` - The `pre-commit` hook runs tests, shellcheck, and linting automatically on commit. Ensure all checks passed before pushing. - If push fails, read the output, fix the issue, commit the fix, and retry. Do NOT use `--no-verify` to bypass. 4. **Generate PR title**: - If `$ARGUMENTS` contains an issue number, fetch the issue title: ```bash gh issue view <number> --json title -q '.title' ``` - PR title format: `<type>(<scope>): <short description>` (conventional commit style, under 70 chars) - Derive the type from the branch prefix (`feat/` → feat, `fix/` → fix, `docs/` → docs) 5. **Create PR** using the template from `.github/PULL_REQUEST_TEMPLATE.md`: ```bash gh pr create --title "<title>" --assignee @me --label "<label>" --body "$(cat <<'EOF' ## 🤔 Background Related #<issue-number> <1-2 sentences: motivation and context for the changes> ## 💡 Changes - <bullet 1: what changed and why> - <bullet 2> - <bullet 3> (optional) - <bullet 4> (optional) EOF )" ``` **MANDATORY:** Always follow the PR template structure (`## 🤔 Background` + `## 💡 Changes`). Never use a different format. **Assignee:** Always assign to `@me` (the PR creator). **Labels:** Add the single most relevant label based on the branch prefix and change context: - `bug` — branch starts with `fix/` and addresses a defect - `enhancement` — branch starts with `feat/` or adds new functionality - `documentation` — branch starts with `docs/` or only changes docs - `refactor` — code restructuring with no behavior change - `ui` — visual/frontend-only changes - `investigation` — spikes, research, or exploratory work **Body guidelines:** - **Background**: Link the issue with `Related #<number>`, then 1-2 sentences of context. **NEVER use `Closes` or `Fixes`.** - **Changes**: 2-4 short bullet points. Focus on *what* and *why*, not implementation details. - **No file lists, no class names, no code snippets** in the body. - Keep the entire body under 15 lines. 6. **Move issue to "In Review"** in GitHub Project (if issue number provided): ```bash # Read project config from .claude/github-project.json ITEM_ID=$(gh project item-list PROJECT_NUMBER --owner OWNER --format json \ | jq -r '.items[] | select(.content.number == ISSUE_NUMBER) | .id') gh project item-edit \ --id "$ITEM_ID" \ --project-id "PROJECT_ID" \ --field-id "STATUS_FIELD_ID" \ --single-select-option-id "IN_REVIEW_OPTION_ID" ``` **Note:** Requires `project` scope. Run `gh auth refresh -s project` if needed. 7. **Report the PR URL** to the user. ## Example Usage ``` /pr /pr #42 /pr 15 ```
Security Status
Scanned
Passed automated security checks
Related AI Tools
More Coding tools you might like
fbdl-mcp (MCP)
Free during launchNormally $5MCP server for Meta's FBDL (Facebook Developer Language). Lets AI agents generate, validate, and explore FBDL scripts used in Meta's bug bounty program (MMBRC).
Run freePocketBase Task MCP Server (MCP)
FreeMCP server integrating with PocketBase to manage tasks and projects. Enables AI models to create tasks, list tasks with status filters, and browse projects.
Run freecio
Free首席信息官专家,精通 IT 战略规划、数据管理、信息系统架构、网络安全和数字化转型
Run freepr
FreeOpen or update a draft PR for the current branch. Use when: create PR, open PR, draft PR, pull request, prepare for review.
Run freemcp-phish (MCP)
FreeCombines phish.net and phish.in APIs into twelve tools for setlists, songs, jam-charts, reviews, and audio.
Run free@babel/helper-wrap-function
FreeHelper to wrap functions inside a function call.
Run free