Agent skill

Create Pull Request

Analyze changes and create a pull request using the gh CLI with repo conventions.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/create-pr-carrot-foundation-methodology-rules-2

SKILL.md

  1. Analyze changes: Review all commits on the branch since it diverged from main:

    bash
    git log main..HEAD --oneline
    git diff main...HEAD
    
  2. Push the branch if it has not been pushed yet:

    bash
    git push -u origin HEAD
    
  3. Create the PR using the gh CLI with the required repo flags:

    bash
    gh pr create \
      -a @me \
      -r @carrot-foundation/developers \
      --label <label> \
      -R carrot-foundation/methodology-rules \
      -t "<type>(<scope>): <description>"
    
    • Labels: feature, bug, chore, docs, refactoring
    • Title: Use conventional commit format matching the branch type
    • Body: Include a summary section, details of what changed, and a declaration checkbox
  4. Return the PR URL to the user once created.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results