Create pr

From huzaifa525/claude-code-optimizer · View interactive version

Create pr is an AI agent skill from the GitHub repository huzaifa525/claude-code-optimizer. Use when the user wants to create a pull request, open a PR, or submit changes for review.

How to use this skill

Skill file

Create a pull request for the current branch.

Steps

  1. Gather context

```

git branch --show-current

git log main..HEAD --oneline

git diff main..HEAD --stat

git diff main..HEAD

```

  1. Analyze ALL commits on this branch (not just the latest)
  1. Generate PR
  1. Push and create PR

```

git push -u origin $(git branch --show-current)

```

Then create PR:

```

gh pr create --title "title" --body "$(cat <<'EOF'

## Summary

## Changes

## Test Plan

EOF

)"

```

  1. Return the PR URL

If $ARGUMENTS is provided

Use it as the base branch instead of main.

<!-- Skill by Huzefa Nalkheda Wala | github.com/huzaifa525 | claude-code-optimizer -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.