# Ship PR

> Branch, dev deploy, PR draft review, then gh pr create, with your approval before the PR opens

Ship PR is a free AI agent skill on Agensi by Jeonghan Lee, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Jeonghan Lee](https://www.agensi.io/creators/creator-608)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ship-pr
- Tags: automation, git, github-cli, ci-cd, devops

## About this skill

### What it does

A small, predictable shipping routine for when a feature or fix is committed and ready for review:

1. **Create the branch** following your naming convention (default `feat/<TICKET>-<short-description>`).
2. **Deploy to dev** by merging into your dev branch and pushing, or by running your deploy command, then returning to the working branch.
3. **Draft the PR** (title `[<TICKET>] feat: ...`, changes, issue link, notes) and **show it to you first**. It uses your repo's `.github/pull_request_template.md` if one exists.
4. **Create the PR** with `gh pr create`, only after you approve the draft.

### Configurable

A short placeholder table sets the ticket format, branch pattern, PR base branch, dev branch, and issue-tracker URL. Values in your repo's CLAUDE.md or CONTRIBUTING.md take precedence. If something is unknown, the agent asks once before starting.

### Guardrails

- The PR base is always your main branch, never the dev branch.
- No PR is opened without an explicit OK on the draft.
- Keeps the ticket key in the branch name for repos whose bots require it.

### Requirements

Git and an authenticated GitHub CLI (`gh`).

## Known limitations

Requires GitHub CLI (gh) installed and authenticated. Cannot bypass manual approval step for PR creation. Branch naming follows specific ticket-based patterns.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Ship PR skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'ship pr' simplify my existing Git workflow?

This skill automates the transition from local code to a GitHub Pull Request by handling ticket-based branch naming, staging deployments, and template-driven PR generation in one sequence.

### What are the technical prerequisites for using this skill?

You will need the GitHub CLI (`gh`) and `git` installed and authenticated on your local machine, as the skill uses these tools to securely manage remote operations.

### Can I use my own custom PR templates with this skill?

Yes, the skill is designed to work with your repository's existing `.github/PULL_REQUEST_TEMPLATE.md` or can provide a structured default format if one isn't present.

### Does this skill handle the context switching between my feature branch and the dev branch?

The skill identifies your current branch, switches to the development/staging branch to merge and deploy, and then automatically returns you to your original working branch once the process is complete.

### Will this skill automatically open PRs without my final approval?

No, the skill generates a draft PR for your review first; it will only finalize and submit the Pull Request to GitHub once you have explicitly approved the generated content.

### Which AI agents or environments is this skill compatible with?

The skill works with any AI agent that has access to your local terminal and filesystem, provided the necessary GitHub CLI permissions are granted.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
