Create Draft Pull Request banner
drewipson drewipson

Create Draft Pull Request

Git community intermediate

Description

Create a draft pull request for the current branch following project conventions.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

Repository README

This is the README for drewipson/claude-code-config, shared by 5 entries in this directory. It describes the repository, not this entry specifically.

Create Draft Pull Request

Create a draft pull request for the current branch following project conventions.

Instructions

  1. **Verify prerequisites:**

    • Check current branch: git branch --show-current
    • Ensure commits exist: git log origin/main..HEAD
    • Confirm branch is pushed: git push -u origin if needed
  2. **Analyze all changes:**

    • Review full diff: git diff main...HEAD
    • List all commits: git log main..HEAD --oneline
    • Understand the scope and purpose of all changes
  3. **Generate PR description with this structure:**

## Summary
Brief overview of what this PR accomplishes (2-3 sentences).

## Changes
- **Feature/Fix Name**: Description of change
- **Another Change**: Description
- List all significant changes

## Technical Details
- Implementation approach or architectural decisions
- Key files modified
- Any dependencies added or updated

## Testing
- [ ] Tested in Extension Development Host
- [ ] Manual testing completed
- [ ] Cross-platform testing (if applicable)
- [ ] No console errors or warnings

## Screenshots (if applicable)
Add screenshots for UI changes

## Breaking Changes
None / List any breaking changes

## Checklist
- [ ] Code follows project style guidelines
- [ ] TypeScript strict mode compliance (no `any` types)
- [ ] Error handling implemented
- [ ] Documentation updated (CLAUDE.md, README.md)
- [ ] No debugging code or console.log statements
- [ ] Tested thoroughly
  1. Create the draft PR:
gh pr create --draft \
  --title ": " \
  --body ""

PR Title Format

Use conventional commit format:

: 

**Examples:**

  • feat: add visual hook builder with multi-step wizard
  • fix: resolve file watcher crash on Windows
  • refactor: extract file discovery logic to service
  • docs: comprehensive VS Code extension development guide

PR Best Practices

Title

  • Use conventional commit type (feat, fix, docs, refactor, etc.)
  • Keep under 72 characters
  • Be specific and descriptive
  • Lowercase except proper nouns

Description

  • Comprehensive but concise: Include all relevant information
  • Context: Why is this change needed?
  • Approach: How was it implemented?
  • Testing: What testing was performed?
  • Screenshots: For any UI changes
  • Breaking changes: Clearly document if applicable

Before Creating

  • Ensure all tests pass
  • Remove debugging code
  • Update documentation
  • Rebase on latest main if needed
  • Review your own changes first

Output

After creating the draft PR:

  1. Display the PR URL
  2. Show PR number and title
  3. List changed files count
  4. Show next steps:
    • Request review when ready
    • Convert from draft to ready for review
    • Address any CI/CD feedback

Example

✓ Created draft pull request

PR #42: feat: add visual hook builder
https://github.com/username/claude-code-manager/pull/42

📝 Files cha