Agent skill

Create PR

by joshukraine in joshukraine/dotfiles

Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.

MITAuto-check passedDevelopment

Install Create PR

skills CLI
$ npx skills add joshukraine/dotfiles --skill create-pr -a claude-code

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

GitHub CLI
$ gh skill install joshukraine/dotfiles create-pr --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/joshukraine/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/.claude/skills/create-pr .claude/skills/create-pr && 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
create-pr
GitHub stars
429
Token cost
~1.3k tokens
SKILL.md length
608 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.

  • Works in 8 steps: Verify prerequisites → Generate PR title → Analyze commits for description → …
  • Tasks that involve Pull requests
  • SKILL.md covers Command Options, Your task, PR Description Template and Example Usage
  • Calls gh and git

What it does

Create PR is an agent skill from joshukraine/dotfiles. Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. The repository describes itself as: :roundpushpin: My dotfiles for macOS using Neovim, Zsh, and Ghostty + Tmux. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/create-pr”

Workflow steps

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

  1. Verify prerequisites
  2. Generate PR title
  3. Analyze commits for description
  4. Create comprehensive description
  5. Update ROADMAP
  6. Identify and link related issues (discover → classify → confirm; don't rely on recall)
  7. Create the PR
  8. Confirm and validate

What it can do on your machine

Read from SKILL.md and the folder at commit b59ad5b. 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.

Context cost

Create PR loads about 1.3k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 608 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

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 joshukraine/dotfiles at commit b59ad5b, republished under its MIT licence (© joshukraine). 608 words, ~1,264 tokens.

Download SKILL.mdSave it as .claude/skills/create-pr/SKILL.md (or your agent's skills folder).
name
create-pr
description
Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.

Create Pull Request

Create a pull request from the current branch with proper formatting and issue linking.

Command Options

All flags are optional. By default, the issue number is inferred from the branch name and the PR is created as ready-to-review.

  • --issue N: Override automatic issue linking with a specific issue number (or comma-separated list: --issue 123,175)
  • --skip-issue-link: Skip issue linking entirely
  • --draft: Create PR as draft

Your task

  1. Verify prerequisites:

    • Confirm current branch is not main/master
    • Check that branch has commits ahead of base branch
    • Ensure branch is pushed to remote (push if needed)
  2. Generate PR title:

    • Use branch name as fallback
    • If single commit ahead: use commit message as title
    • If multiple commits: create descriptive title based on branch name and commit themes
    • Follow Conventional Commits format from global CLAUDE.md
  3. Analyze commits for description:

    • Get commit history: git log origin/<base-branch>..HEAD --oneline (use the base branch identified in step 1)
    • Group commits by type (feat, fix, docs, etc.)
    • Identify patterns and overall theme
  4. Create comprehensive description:

    • Summary section: 2-3 bullet points describing what this PR does
    • Changes section: Categorized list of changes from commits
    • Testing section: How the changes should be tested
    • Notes section: Any implementation details or decisions
  5. Update ROADMAP:

    • Check if the work corresponds to a checkbox item in docs/prd/ROADMAP.md
    • If a matching item exists, mark it complete ([x]) and commit the change to the branch before creating the PR
    • If no matching item exists, skip this step
  6. Identify and link related issues (discover → classify → confirm; don't rely on recall):

    • If --skip-issue-link: skip this step entirely.
    • Determine the primary issue(s) P:
      • --issue N (accepts a comma-separated list, e.g. --issue 123,175) → use directly as Close targets; skip discovery.
      • Otherwise extract from the branch name (fix/gh-123-... → P=123). If none can be determined, warn and ask whether to proceed with no linking.
    • Discover candidates mechanically (do not depend on having read the issue earlier in the session):
      • Fetch the primary issue's body and comments: gh issue view P --json number,title,body,comments
      • Extract every #<number> reference from that output.
      • For each referenced issue M, get its state: gh issue view M --json number,title,state — drop anything already closed or that is a PR.
    • Classify each open candidate by the language around the mention:
      • closes / fixes / resolves #M, or M is an unchecked task-list item this PR completes → Close (Closes #M)
      • part of / blocked by / relates to / see / parent #M → Reference (Refs #M, no closing keyword)
      • ambiguous → default to Reference and flag it
    • Confirm before creating the PR:
      • Only the primary issue P, no other open candidates → proceed silently with Closes #P.
      • More than one candidate, or any ambiguous one → print a short table (issue · title · proposed Close/Ref) and ask for a one-line confirm/override first.
    • Format: one keyword per line so GitHub parses them all — Closes #N per close target, Refs #N per reference.
  7. Create the PR:

    • Use gh pr create with generated title and description
    • Set base branch (usually main/master)
    • Default to ready (no --draft flag) unless --draft flag is explicitly passed
  8. Confirm and validate:

    • Show PR URL and title
    • Confirm issue linking (e.g., "✅ Linked to issue #123" or "⚠️ No issues linked")
    • Cross-check linking: every Close/Ref target identified in step 6 actually appears in the final description. If one is missing, warn before the PR is considered done (guards against silently dropping a second issue).
    • Validate PR metadata (warn, don't block): confirm the title follows Conventional Commits and the description contains a closing keyword (Closes #N). If either is missing, surface a warning so it can be fixed before review. (These checks previously lived in the retired /review-pr.)
Show full SKILL.md (5 more words)Show less

PR Description Template

markdown
## Summary

- What this PR does
- Key changes made

## Changes

- List of changes from commits

## Testing

- [ ] Tests pass
- [ ] Manual testing done

Closes #123

Example Usage

bash
# Default: Automatically detects issue from branch name (e.g., fix/gh-123-description)
/create-pr

# Explicit issue linking (when branch name doesn't contain an issue number)
/create-pr --issue 123

# Explicit multi-issue linking (PR closes more than one issue)
/create-pr --issue 123,175

# Skip issue linking entirely
/create-pr --skip-issue-link

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

Files

Just SKILL.md in claude/.claude/skills/create-pr of joshukraine/dotfiles.

Open the folder on GitHubat commit b59ad5b

Compare with similar skills

Create PR 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.

Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR this skilljoshukraine/dotfiles429—~1.3kAutomated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated 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
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • 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
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

More from joshukraine/dotfiles

All 24 skills in this repo
  • Todoist CLI

    joshukraine/dotfiles

    Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI.

    429 GitHub starsUsed in 2 repos~6.9k tokens
    Auto-check passed
  • Autopilot Triage

    joshukraine/dotfiles

    Vet open issues for autonomous resolution and queue the qualifying ones with the autopilot-queued label — the start-of-day "fill the queue" half of the triage → run split.

    429 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Checkpoint

    joshukraine/dotfiles

    Quick 2-minute status update on current phase, completed work, blockers, and health check.

    429 GitHub stars~600 tokensUpdated 2 days ago
    Auto-check passed
  • Debrief

    joshukraine/dotfiles

    Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions.

    429 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Drift Check

    joshukraine/dotfiles

    Pre-PR advisory check for deviations from the project spec. An agent skill from joshukraine/dotfiles.

    429 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Dustoff

    joshukraine/dotfiles

    Assess a project that's been dormant for months and produce a prioritized re-entry plan — lifecycle stage, what's stale or broken, and how far the project's tooling has drifted from current…

    429 GitHub stars~3.1k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Create PR

What does Create PR do?

Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation. Create PR is an agent skill from joshukraine/dotfiles. Create a pull request with auto-generated description, issue linking, ROADMAP updates, and PR-metadata validation.

When should I use Create PR?

Create PR fits situations like: tasks that involve Pull requests.

How do I install Create PR in Claude Code?

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

How do I install Create PR in Codex?

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

Can I use Create PR 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 joshukraine/dotfiles --skill create-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-pr, .gemini/skills/create-pr, .github/skills/create-pr and .opencode/skills/create-pr in your project.

What does Create PR need to run?

Going by SKILL.md and its folder, Create PR needs the command-line tools its instructions call (gh and git).

Does Create PR 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 Create PR 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 Create PR use?

Create PR 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 Create PR use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create PR?

Skills that share tags, products or a category with Create PR: Finishing a Development Branch (obra/superpowers, 296k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR?

joshukraine (a GitHub user) maintains it in joshukraine/dotfiles, which has 429 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 6, 2026.

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