Skip to content
Agentmart
Submit a tool

pr

Create a well-structured GitHub pull request that gives the reviewer full context: what issue is being addressed, what problem it solves, what changed, why…

Skill by OpalBolt

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/opalbolt-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create a well-structured GitHub pull request that gives the reviewer full context: what issue is being addressed, what problem it solves, what changed, why, and how to verify. Use this skill whenever you are about to run `gh pr create`, open a pull request, or produce a PR for completed work. Also use it at the end of any autonomous agent loop that resolves a GitHub issue — even if the user didn't explicitly ask for a PR.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr

What's inside

Skill name
pr
Description
Create a well-structured GitHub pull request that gives the reviewer full context: what issue is being addressed, what problem it solves, what changed, why, and how to verify. Use this skill whenever you are about to run `gh pr create`, open a pull request, or produce a PR for completed work. Also use it at the end of any autonomous agent loop that resolves a GitHub issue — even if the user didn't explicitly ask for a PR.
License
MIT
Instructions
139 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PR Skill

You are about to open a pull request. A good PR lets the reviewer understand the work without
having to reverse-engineer the diff. Follow every step.

## Step 1 — Verify you are on a branch

```bash
git branch --show-current
```

If the output is `main`, **stop immediately**:

> You are on `main`. A pull request requires a feature branch. Create one for this work
> before opening a PR.

Do not proceed until you are on a non-main branch.

## Step 2 — Find the issue number

Every PR must reference a GitHub issue. Look in this order:

1. **Branch name** — extract from patterns like `feature/123-...`, `fix/123`,
   `issue/123-slug`, `123-slug`, `GH-123`.
2. **Recent commits** — if the commits on this branch reference `#42`, that is likely the issue.
3. **Conversation or task context** — the user or task description may have stated it.

If you cannot find an issue number, **stop completely**:

> No GitHub issue found for this work. Please provide the issue number — every PR must
> trace back to an issue.

Do not invent a number. Do not use a placeholder. Do not proceed without a real issue number.

## Step 3 — Understand what changed

Run these commands before writing a single word of the PR:

```bash
git log main..HEAD --oneline          # commits on this branch
git diff main..HEAD --stat            # files changed, lines added/removed
git diff main..HEAD                   # full diff
gh issue view <number>                # the problem statement and acceptance criteria
```

Read everything. The issue tells you the *problem*. The diff shows the *solution*.
The commit log shows the *sequence of decisions*. You need all three to write a good PR.

## Step 4 — Write the PR

### Title

Format: `type(scope): description (#issue)`

Same rules as commit messages:
- **type**: `feat`, `fix`, `docs`, `refactor`, `perf`, `test`, `chore`, `ci`, `build`
- **scope**: optional — use it when it meaningfully narrows the context
- **description**: lowercase, imperative mood ("add", "fix", not "added" or "fixes"), no trailing period
- **72 characters or fewer** — count them

```
feat(auth): add JWT refresh token rotation (#42)
fix(api): handle nil pointer in user lookup (#87)
chore: upgrade Go toolchain to 1.23 (#101)
```

### Body

Use this exact structure — every section, every time:

```
Closes #<issue>

## Problem

<What was broken, missing, or needed. Describe the "before" state: what happened, what
failed, what was absent. One to three sentences. Pull from the issue body if it explains
it well — don't reinvent it.>

## Changes

<Bullet list of what was changed. Files, components, behaviours. Focus on the what —
keep it scannable. Don't pad this with obvious things like "updated tests"; mention
the things a reviewer will actually want to navigate to.>

- ...
- ...

## Why

<The reasoning. Why this approach and not another? What constraint or insight drove the
design? If a simpler solution was rejected, say why. Be honest about trade-offs. This
is the section that ages best — six months from now, nobody will remember why, and this
is where they'll look.>

## How to verify

<Step-by-step instructions a reviewer can follow to confirm the changes work. Concrete
enough that someone unfamiliar can execute it. If there are tests, name them. If it's a
CLI command, write it out. If it requires setup, say so.>

1. ...
2. ...
```

Keep each section proportional to the change. A one-line fix doesn't need three
paragraphs. A significant refactor deserves real detail. Don't pad; don't omit.

## Step 5 — Create the PR

```bash
gh pr create \
  --title "<title>" \
  --body "$(cat <<'EOF'
Closes #<issue>

## Problem

<problem>

From OpalBolt/Personal-AI-Marketplace, MIT.

More from OpalBolt/Personal-AI-Marketplace

Signals

Stars
2
Forks
1
Open issues
0
Last commit (this folder)
Aug 9, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from OpalBolt

Cite this page

pr skill. Agent Mart. https://agentmart.dev/skills/opalbolt-pr (last updated 2026-10-24)