Skip to content
Back to skills

Create Pr

ASecurity

Create a pull request for implemented changes from a GitHub issue

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add Jartan-LLC/grimoire --skill create-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Pr?

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

Security grade badge for Create Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jartan-llc-create-pr/badge)](https://www.skillsdirectory.com/skills/jartan-llc-create-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: create-pr
description: Create a pull request for implemented changes from a GitHub issue
argument-hint: Issue number (may include additional context)
---

# Create Pull Request

Create a pull request from the current implementation branch for a GitHub issue.

Where the project's own rules say otherwise, follow them.

## Process

### 1. Verify Branch

Check existing local and remote branches for one related to this issue -- it may be named by issue number (`feature/issue-123`) or by description (`feature/audit-improvements`). Check it out and ensure it has committed changes ready for a PR.

### 2. Get Issue Context

Determine the issue number from the user's request and fetch the issue and its comments in one call:

```bash
gh issue view <issue-number> --json title,body,comments
```

Also load the `praxis:workspace-patterns` skill and read the issue's plan, `.claude/workspace/issue-<issue-number>/plan.md`, or any other plan file in the workspace for this issue.

### 3. Review All Changes

Load the `gitwise:commit-pr-writing` and `gitwise:github-conventions` skills. Determine the base branch: the branch this one was cut from, or, when that branch's PR has merged, the branch it merged into, as rule 2 of `stacks.md` in `gitwise:github-conventions` says. When you cannot tell, ask the user.

When the branch was cut from another PR's branch, other than a sub-issue's parent feature branch, follow `stacks.md` before creating the PR: it says when to open it and how to sync or restack the branch first. Until it says to open the PR, tell the user why instead.

Read `git diff <base>...HEAD` and the branch's commit messages (`git log <base>..HEAD`). Note what this session changed outside the diff (settings, tags, secrets) or did not run, and ask the user about changes outside the diff that this session did not make.

### 4. Create Pull Request

Read `.github/PULL_REQUEST_TEMPLATE.md` if the project has one, and write the PR title and description as `gitwise:commit-pr-writing` says, flagging where the change departs from the plan. When the branch's folder in the workspace has a `pr.md`, start from its title and description and change only what no longer holds against the diff. Then create the PR as a draft, as `gitwise:github-conventions` says:

```bash
gh pr create --draft --title "<title>" --body "<description>" --base <base-branch>
```

Include `Closes #<issue-number>` in the body.

When the base is another open PR's branch, other than a sub-issue's parent feature branch, link the new PR into that PR's stack as `stacks.md` says.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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