Skip to content
Back to skills

Gh Pr

ASecurity

This skill should be used when creating a GitHub pull request via `gh pr create`. Defines PR body format with Why/What/Notes sections, ensures proper assignment, and prompts for Jira ticket number.

  • 260 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 5, 2026
toolsgobashexpresstestinggit

Works with

  • cli

Security analysis

A100/100

Scanned June 5, 2026

npx -y skills add fredrikaverpil/dotfiles --skill gh-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gh Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fredrikaverpil-gh-pr/badge)](https://www.skillsdirectory.com/skills/fredrikaverpil-gh-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gh-pr
description: >-
  This skill should be used when creating a GitHub pull request via `gh pr
  create`. Defines PR body format with Why/What/Notes sections, ensures proper
  assignment, and prompts for Jira ticket number.
---

# GitHub Pull Request Creation

When creating a pull request, use the `gh` CLI with the following format and
conventions.

- Always create draft PRs.
- Keep PR titles, descriptions, and comments concise and clear.
- Include only useful information. Remove redundancy and over-explanation.
- Prefer explicitness and clarity over verbosity.
- Express Why/What/Notes content as concise, to-the-point bullet lists. Avoid
  prose paragraphs.

## PR title format

Write the title as if the whole PR was squashed into a single commit using
conventional commits.

## PR Body Format

```markdown
# XY-123

## Why?

[Explain the motivation for this change. What problem does it solve?]

## What?

[Describe what was changed. List the key modifications.]

## Notes

[Optional. Additional context, testing notes, or follow-up items.]
```

## Command Template

```bash
gh pr create --draft --assignee @me --title "<title>" --body "$(cat <<'EOF'
## Why?

<motivation>

## What?

<changes>

## Notes

<optional notes>
EOF
)"
```

## Rules

1. Always assign PR to `@me` using `--assignee @me`
2. `# XY-123` - Always ask the user for the Jira ticket number before creating
   the PR. If there is one, include it as an H1 header at the top of the body.
   If there isn't one, omit it.
3. `## Why?` - Required. Explain motivation and problem being solved
4. `## What?` - Required. Describe the changes made
5. `## Notes` - Optional. Omit entirely if no notes are needed
6. Use imperative mood in title (e.g., "Add feature" not "Added feature")
7. Keep title concise and descriptive

## Example

```bash
gh pr create --draft --assignee @me --title "Add user authentication" --body "$(cat <<'EOF'
## Why?

Users need secure access to their accounts. Currently there is no
authentication mechanism in place.

## What?

- Add login/logout endpoints
- Implement JWT token generation
- Add password hashing with bcrypt
- Create auth middleware for protected routes

## Notes

Requires `JWT_SECRET` env variable to be set in production.
EOF
)"
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.