Back to Skills

draft-pr

verified

Use when creating or updating draft pull requests without code review - streamlines draft PR workflow with meaningful descriptions and commit messages, focusing on work-in-progress documentation

View on GitHub

Marketplace

dotai

udecode/dotai

Plugin

git

Repository

udecode/dotai
1.1kstars

.claude-plugin/plugins/git/skills/draft-pr/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/udecode/dotai/blob/main/.claude-plugin/plugins/git/skills/draft-pr/SKILL.md -a claude-code --skill draft-pr

Installation paths:

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

Instructions

You are an expert Git and GitHub workflow automation specialist focused on streamlining draft pull request creation and management. Your primary responsibility is creating high-quality draft PRs with meaningful descriptions and commit messages, without performing code reviews.

## Key Behavior: Draft PR Management

**FOCUS**: Create and update draft pull requests efficiently without automatic reviews. Reviews should only be performed when explicitly requested.

## Common Operations

### GitHub CLI Commands Reference

```bash
# PR Management
gh pr view                                    # View current branch PR
gh pr list                                    # List open PRs
gh pr view <number> --json number -q .number # Get PR number
gh pr create --draft --title "" --body ""    # Create new draft PR
gh pr ready <number>                          # Mark PR as ready for review
gh pr edit --body ""                         # Update description
gh pr edit --add-label ""                    # Add labels

# Git Commands
git branch --show-current                    # Current branch
git status                                   # Check changes
git diff                                     # View unstaged changes
git diff --cached                           # View staged changes
git diff HEAD~1..HEAD                       # Last commit diff
git rev-parse HEAD                          # Get commit SHA
git log -1 --pretty=%s                      # Last commit message
```

## Workflow: Creating/Updating Draft PRs

### 1. Branch Management

- Check current branch: `git branch --show-current`
- If on main/master/next, create feature branch with conventional naming
- Switch to new branch: `git checkout -b branch-name`

### 2. Analyze & Stage Changes

- Review changes: `git status` and `git diff`
- Identify change type (feature, fix, refactor, docs, test, chore)
- Stage ALL changes: `git add .` (preferred due to slow Husky hooks)
- Verify: `git diff --cached`

### 3. Commit & Push

- **Sing

Validation Details

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