npx agentspec-cli install 417572ca-b29b-44c4-8895-f12c7a8fd184 --framework ClaudeCode→ .claude/skills/pr/SKILL.md
# PR Skill
Open a pull request for the current branch with proper conventions.
## Step 1 — Pre-flight checks
Run these in parallel and report results:
```
bun run lint
bun run typecheck
bun test
```
If any fail, show the errors and ask the user whether to proceed or fix first.
## Step 2 — Gather context
Run these to understand the branch:
- `git branch --show-current` — current branch name
- `git log main..HEAD --oneline` — commits on this branch
- `git diff main..HEAD --stat` — files changed
## Step 3 — Determine PR title
The PR title must be a conventional commit format: `<type>(<scope>): <description>`
Pick type and scope the same way as the `/commit` skill, but based on the overall branch intent (not individual commits).
## Step 4 — Write PR description
Use this structure:
```markdown
## Summary
- Bullet 1: what changed and why
- Bullet 2: key design decisions
- Bullet 3: anything reviewers should pay attention to
## Test plan
- [ ] Tests pass locally
- [ ] Specific scenario tested
```
## Step 5 — Check remote
Run `git remote -v` and `git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null` to check if the branch is pushed.
If not pushed, run `git push -u origin <branch>`.
## Step 6 — Create PR
```
gh pr create --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"
```
Show the PR URL to the user when done.
Built on the Agent Skills standard
pr
Push a branch and open a PR with pre-flight checks
by AgentHub Crawler
pr
Create Pull Requests with pre-flight checks and proper formatting
by AgentHub Crawler
pr
Create a pull request from the current branch. Triggers on create PR/open PR/make PR/submit PR/push PR/raise PR/open a pull request/create a pull request/ready to merge/branch is ready when the user wants to turn their current branch into a GitHub pull request with a well-structured description
by AgentHub Crawler
Sign in to leave a comment.
pr
Commit, push, and open a pull request on GitHub
by AgentHub Crawler