# Create Pr

> Use when the user wants to create a pull request, open a PR, or submit changes for review.

- **Type:** Skill
- **Install:** `agentstack add skill-huzaifa525-claude-code-optimizer-create-pr`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [huzaifa525](https://agentstack.voostack.com/s/huzaifa525)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** https://github.com/huzaifa525/claude-code-optimizer/tree/master/templates/.claude/skills/create-pr
- **Website:** https://www.npmjs.com/package/claude-code-optimizer

## Install

```sh
agentstack add skill-huzaifa525-claude-code-optimizer-create-pr
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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
   ```

2. **Analyze ALL commits** on this branch (not just the latest)

3. **Generate PR**

   - **Title**: Under 70 characters, describes the change
   - **Body**: Summary bullets + test plan

4. **Push and create PR**
   ```
   git push -u origin $(git branch --show-current)
   ```

   Then create PR:
   ```
   gh pr create --title "title" --body "$(cat <<'EOF'
   ## Summary
   - Bullet point 1
   - Bullet point 2
   - Bullet point 3

   ## Changes
   - [file] — [what changed and why]

   ## Test Plan
   - [ ] Test step 1
   - [ ] Test step 2
   - [ ] Test step 3
   EOF
   )"
   ```

5. **Return the PR URL**

## If $ARGUMENTS is provided

Use it as the base branch instead of `main`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** [huzaifa525/claude-code-optimizer](https://github.com/huzaifa525/claude-code-optimizer)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/claude-code-optimizer

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-huzaifa525-claude-code-optimizer-create-pr
- Seller: https://agentstack.voostack.com/s/huzaifa525
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
