Agent skill

PR Creator

by mblode in mblode/agent-skills

Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state.

MITAuto-check passedDevelopment

Install PR Creator

skills CLI
$ npx skills add mblode/agent-skills --skill pr-creator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mblode/agent-skills pr-creator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mblode/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pr-creator .claude/skills/pr-creator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-creator
GitHub stars
143
Token cost
~2.5k tokens
SKILL.md length
1,218 words
Files
3 (incl. references)
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state.

  • Works in 8 steps: Title. With a Linear ID: ABC-123: Add… → Body. One short paragraph: what changed… → No fake why. If the reason is not in the… → …
  • Asked to create a PR
  • SKILL.md covers Reference Files, Workflow, Rules and Anti-patterns: never write these, plus 5 more sections
  • Calls gh and git

What it does

PR Creator is an agent skill from mblode/agent-skills. Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state. Use when asked to "create a PR", "open a PR", "rewrite the PR description", or "polish this PR".

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `evals/evals.json` and `references/pr-polish.md`). Compatibility notes: Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI.

It sits in Development, covering Pull requests. It works with GitHub. The repository describes itself as: Nobody ships AI slop on purpose. These skills make sure you don’t. The licence is MIT.

When your agent uses it

  • Asked to create a PR
  • Rewrite the PR description

Example prompts

  • “create a PR”
  • “open a PR”
  • “rewrite the PR description”
  • “/pr-creator”

Requirements

  • Compatibility (from SKILL.md): Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI.

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Title. With a Linear ID: ABC-123: Add auth flow. Without one: Add auth flow. Under 60 characters, no trailing period. If the repo lints PR…
  2. Body. One short paragraph: what changed and why it matters. Length follows the change; a one-line body is fine for a one-line fix.
  3. No fake why. If the reason is not in the prompt, the Linear issue, the branch, the commits, or the diff, leave it out rather than…
  4. Risk and input only when real. One Risk: line for migrations, billing, auth, permissions, irreversible writes, wide blast radius, or a…
  5. Testing only if real. Say what you ran only if you ran it. Never a Test plan section, never checkboxes.
  6. Partial work. If this PR does not finish the Linear issue, keep the ID out of the title and write Part of ABC-123 in the body. Linear's…
  7. Draft and reviewers only when asked. --draft for "draft" or "WIP"; gh pr ready promotes it later, gh pr ready --undo demotes. --reviewer…
  8. Stop after the useful content. The harness's attribution setting owns the PR footer (Generated with Claude Code, session link). Never…

What it can do on your machine

Read from SKILL.md and the folder at commit cef4cfa. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI.

    From compatibility in the SKILL.md frontmatter.

Context cost

PR Creator loads about 2.5k tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 57 tokens; SKILL.md has 1,218 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~57
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mblode/agent-skills at commit cef4cfa, republished under its MIT licence (© mblode). 1,218 words, ~2,450 tokens.

Download SKILL.mdSave it as .claude/skills/pr-creator/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
pr-creator
description
Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state. Use when asked to "create a PR", "open a PR", "rewrite the PR description", or "polish this PR".
compatibility
Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI.

pr-creator

Write PR descriptions like a developer posting in Slack, not an AI summarizing a diff. The reviewer has none of your context, so the body answers what the diff cannot: why, what it costs if wrong, and where you want their view. The diff answers what changed.

  • IS: creating or updating a GitHub PR's title, body, draft state, and reviewers, plus the commit restructuring and review path that make a large diff readable.
  • IS NOT: changing the code in the diff or reviewing it for bugs (use tidy), watching CI and review comments after the PR exists (use pr-babysitter), or cutting npm releases (use autoship).

Reference Files

FileRead When
references/pr-polish.mdCommits contain fixup, WIP, or "address review" noise, the diff exceeds 500 lines, or the user asks to polish, restructure, squash, or split the PR

Workflow

Copy this checklist to track progress:

text
PR creation progress:
- [ ] Inspect the current branch and diff against the existing PR base, or the discovered default branch merge-base
- [ ] Existing PR? gh pr view --json url,state,isDraft (state OPEN means edit, not create)
- [ ] Linear ID from branch, commits, prompt, or issue link; no ID means no prefix
- [ ] Noisy commits or a >500-line diff? references/pr-polish.md, before pushing
- [ ] PR template present? Read it (paths under Templates)
- [ ] Draft title and body against Rules and Anti-patterns
- [ ] git push -u origin HEAD
- [ ] gh pr create (or gh pr edit); then gh pr view --json url,title and return the URL

Do not ask the user to approve the description first; the point is speed. They can ask for a rewrite and you run gh pr edit.

Rules

  1. Title. With a Linear ID: ABC-123: Add auth flow. Without one: Add auth flow. Under 60 characters, no trailing period. If the repo lints PR titles (a semantic-pull-request or commitlint workflow under .github/workflows/), use its shape and put the ID at the end: feat: add auth flow (ABC-123). Linear links on the ID wherever it sits in the title.
  2. Body. One short paragraph: what changed and why it matters. Length follows the change; a one-line body is fine for a one-line fix.
  3. No fake why. If the reason is not in the prompt, the Linear issue, the branch, the commits, or the diff, leave it out rather than inventing one.
  4. Risk and input only when real. One Risk: line for migrations, billing, auth, permissions, irreversible writes, wide blast radius, or a subtle behavior change. One Input wanted: line when a decision in the diff is still open and the reviewer's view would change it; name the decision, never "thoughts welcome". Otherwise nothing.
  5. Testing only if real. Say what you ran only if you ran it. Never a Test plan section, never checkboxes.
  6. Partial work. If this PR does not finish the Linear issue, keep the ID out of the title and write Part of ABC-123 in the body. Linear's default automation moves a linked issue to Done when the PR merges; the non-closing magic word links without closing.
  7. Draft and reviewers only when asked. --draft for "draft" or "WIP"; gh pr ready promotes it later, gh pr ready --undo demotes. --reviewer alice,org/team only for people the user named; CODEOWNERS already requests owners.
  8. Stop after the useful content. The harness's attribution setting owns the PR footer (Generated with Claude Code, session link). Never hand-write one, and never strip one the harness or a repo policy appends. Everything above the footer is this skill's; its one-paragraph body replaces the harness's default Summary and Test plan sections.

Anti-patterns: never write these

  • Openers that narrate the artifact: "This PR implements...", "This change ensures...", "This commit introduces..."
  • Changelog verbs with no reason attached: "Refactored X to improve Y", "Updated Z to handle...", "Added comprehensive test coverage for..."
  • Lines that start with a filename or path; the diff already lists the files
  • A Test plan section with checkboxes
  • A bullet list that restates the diff
  • A body a reviewer must read exhaustively to find what matters: if the point is not in the first sentence, the paragraph is a summary, not a description

Examples

Feature (ABC-123 is the real Linear ID)
text
Title: ABC-123: Add auth flow with session management

Adds the auth flow needed for session-based login, including refresh, timeout handling, and a small error boundary for auth failures.

Input wanted: the 15-minute idle timeout is a guess; if product has a number, I'll use it.
Bugfix (real risk, real testing)
text
Title: PAY-482: Dedupe Stripe webhook retries

Stripe retries webhooks on timeout and our handler wasn't idempotent, so retried events created duplicate invoices. Now we record processed event IDs and skip repeats. Tested by replaying a captured retry sequence locally.

Risk: touches the billing write path.
Chore (no Linear ID, no why beyond the diff)
text
Title: Bump eslint to 9 and fix the new no-unused-vars hits

Bumps eslint to 9. The only code change is removing three unused imports it now flags.

The first two carry the real why from the commits and stop. Input wanted: earns its line in the first because the timeout is a decision the reviewer can change; Risk: earns its line in the second because the diff touches billing writes, and the testing sentence is there only because a replay actually ran. The third has no deeper why, so it does not pretend to.

Templates

GitHub reads the first match of pull_request_template.md (case-insensitive) in .github/, the repo root, or docs/, or a PULL_REQUEST_TEMPLATE/ directory in any of those for multiple templates. gh pr create --body skips the template entirely, so when one exists, read it and write the body in its shape: keep its headings, answer each in a sentence or two, and put the one-paragraph description under the first heading. Add nothing the template does not ask for.

Show full SKILL.md (468 more words)Show less

Creating the PR

Write the exact body to a temporary file with the file tool, then pass its path through --body-file. The examples use /tmp/pr-body.md; choose a task-specific temporary path during execution.

No PR yet: create
bash
git push -u origin HEAD   # when creating a PR for local commits

gh pr create --title "ABC-123: Add auth flow" --body-file /tmp/pr-body.md

gh pr view --json url,title   # evidence the PR exists; return the url

Add --draft or --reviewer here when Rule 7 applies. --base only when the target is not the default branch.

PR already open: update title and body

gh pr edit overwrites the title and body wholesale, so draft the full replacement, not a patch. Same rules and anti-patterns apply.

bash
# A metadata-only edit does not push local commits.

gh pr edit --title "ABC-123: Add auth flow" --body-file /tmp/pr-body.md

gh pr view --json url,title   # confirm the update; return the url

Gotchas

  • gh pr create on a branch with no upstream: in a TTY it blocks on a "Where should we push?" prompt; from a non-interactive harness it aborts with you must first push the current branch to a remote, or use the --head flag. Either way, git push -u origin HEAD first.
  • Non-interactive gh pr create needs both --title and --body (or --fill); without them it exits with must provide --title and --body (or --fill) when not running interactively. --fill copies commit messages verbatim, which is exactly the changelog body this skill exists to avoid.
  • If a body or commit message goes through a shell heredoc instead of --body-file, quote the delimiter (<<'EOF'). Unquoted <<EOF lets the shell expand backticks and $vars in the text, corrupting it or running commands.
  • Two different failures look alike: on the default branch, gh pr create aborts with must be on a branch named differently than "main"; on a branch with nothing new against the base it fails with No commits between main and <branch>. The first needs a branch, the second a commit.
  • A branch with an open PR fails gh pr create with a pull request for branch ... into branch main already exists. gh pr view --json state first; OPEN means gh pr edit. A MERGED or CLOSED result is a stale PR, so create a new one.
  • Derive the Linear ID from the branch, uppercased: Linear's default branch format is username/abc-123-title-slug, so mblode/abc-123-add-auth gives ABC-123. Never guess an ID: Linear links the PR to whatever ID the title contains, and a wrong one moves someone else's issue.
  • Plain git diff omits committed changes. Use the actual PR base with three-dot diff; do not assume main, especially for stacked PRs.
  • Restructure commits before the first push. Force-pushing a rewritten branch under an open PR marks existing inline comments "outdated" and the reviewer loses their thread.
  • tidy: run before creating to check the diff for bugs and fix them; this skill edits only the PR and its commits.
  • pr-babysitter: hand off after creation to watch CI, conflicts, and review comments.
  • autoship: npm release pipeline (changesets, version PR, publish); "ship it" without release context routes here instead.

Maintenance only: evals/evals.json contains regression scenarios for changes to this skill; it does not load during a user task.

© mblode, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/pr-creator of mblode/agent-skills.

  • SKILL.md
  • evals/evals.json
  • references/pr-polish.md

Open the folder on GitHubat commit cef4cfa

Compare with similar skills

PR Creator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Creator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Creator this skillmblode/agent-skills143—~2.5kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed

More from mblode/agent-skills

All 28 skills in this repo
  • Agent Ready

    mblode/agent-skills

    Implements agent-readiness on public sites and docs from Mintlify Agent Score, AFDocs, Is Agentic, Is It Agent Ready, or url-discovery-bench reports, or from server logs of agents 404ing on guessed…

    143 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Skills Creator

    mblode/agent-skills

    Creates and improves portable Agent Skills with a validator, routing scenarios, and evidence-based keep, cut, merge, or retire decisions.

    143 GitHub stars~2.8k tokensUpdated 2 days ago
    Auto-check passed
  • Chat History

    mblode/agent-skills

    Recovers decisions, previous fixes, research, and what followed a prompt from past AI conversations, with source evidence.

    143 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • CI Speedup

    mblode/agent-skills

    Cuts the wait from push to green by measuring a pipeline's critical path from run timestamps, then splitting, sharding, trimming setup and sharing test module state, with a before/after ledger.

    143 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • PR Babysitter

    mblode/agent-skills

    Monitors or repairs an open GitHub PR: CI failures, conflicts, review threads, and merge readiness, reporting state changes.

    143 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • App Verification

    mblode/agent-skills

    Builds and maintains a repo's own verification harness (verify CLI, doctor, worktree isolation, feature map, seed data) and a reproduce-first bug handoff.

    143 GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed

Works with

Categories

Questions about PR Creator

What does PR Creator do?

Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state. PR Creator is an agent skill from mblode/agent-skills. Creates or updates GitHub PRs with house-style titles and bodies, issue linking, repository templates, and draft state.

When should I use PR Creator?

PR Creator fits situations like: asked to create a PR; rewrite the PR description.

How do I install PR Creator in Claude Code?

Run `npx skills add mblode/agent-skills --skill pr-creator -a claude-code`. Or copy the skill folder (skills/pr-creator in mblode/agent-skills) into .claude/skills/pr-creator in your project. Claude Code loads it when a task matches its description.

How do I install PR Creator in Codex?

Run `npx skills add mblode/agent-skills --skill pr-creator -a codex`. Or copy the skill folder (skills/pr-creator in mblode/agent-skills) into .agents/skills/pr-creator in your project. Codex loads it when a task matches its description.

Can I use PR Creator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mblode/agent-skills --skill pr-creator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-creator, .gemini/skills/pr-creator, .github/skills/pr-creator and .opencode/skills/pr-creator in your project.

What does PR Creator need to run?

Going by SKILL.md and its folder, PR Creator needs the command-line tools its instructions call (gh and git). Compatibility (from SKILL.md): Requires Git and authenticated GitHub access. The documented command workflow uses GitHub CLI..

Does PR Creator access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Creator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Creator use?

PR Creator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Creator use?

About 2.5k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to PR Creator?

Skills that share tags, products or a category with PR Creator: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Creator?

mblode (a GitHub user) maintains it in mblode/agent-skills, which has 143 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 6, 2026.

Source: mblode/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.