Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

git-pr

verified

Create a pull request with contextual title and description

View on GitHub

Marketplace

clauding

e-stpierre/clauding

Plugin

interactive-sdlc

sdlc

Repository

e-stpierre/clauding

plugins/interactive-sdlc/skills/git-pr/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/e-stpierre/clauding/blob/main/plugins/interactive-sdlc/skills/git-pr/SKILL.md -a claude-code --skill git-pr

Installation paths:

Claude
.claude/skills/git-pr/
Powered by add-skill CLI

Instructions

# Git PR

## Overview

Create a pull request with a title and description sized appropriately to the scope and impact of the changes using the GitHub CLI. Always includes AI attribution at the end of the body.

## Arguments

### Definitions

- **`[base-branch]`** (optional): Target branch for the PR. Defaults to main/master.
- **`[--draft]`** (optional): Create the PR as a draft.

### Values

$ARGUMENTS

## Core Principles

- PR size dictates description length - small changes get small descriptions
- Title should clearly convey the primary change
- Description focuses on WHY and context, not WHAT (diff shows the what)
- Use `gh pr create` for PR creation
- Always include AI attribution at the end of the body

## Instructions

1. Verify current branch is not the base branch
2. Run `git log <base>..HEAD --oneline` to get commits in this PR
3. Run `git diff <base>...HEAD --stat` to assess change scope
4. Determine PR size category:
   - **Trivial**: <10 lines, single file, style/typo fix
   - **Small**: <50 lines, focused change
   - **Medium**: 50-200 lines, feature or significant fix
   - **Large**: >200 lines, major feature or refactor
5. Construct PR content based on size:

   **Trivial/Small**: Brief description with attribution

   ```
   gh pr create --title "Fix typo in README" --body "Corrects spelling error

   🤖 Generated with [Claude Code](https://claude.com/product/claude-code)"
   ```

   **Medium/Large**: Structured description with attribution

   ```
   gh pr create --title "<title>" --body "## Summary
   <1-2 sentence overview>

   ## Details
   - <Key change 1 with context>
   - <Key change 2 with context>

   🤖 Generated with [Claude Code](https://claude.com/product/claude-code)"
   ```

6. If `--draft` flag is specified, add `--draft` to the gh command
7. Execute `gh pr create` with constructed content
8. Report the PR URL

## Output Guidance

Provide a brief confirmation message:

**On success:**

```
PR created: https://github.com/owner/repo/p

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
2036 chars