# Branch And Pr

> Use when a branch and PR is requested explicitly

- **Type:** Skill
- **Install:** `agentstack add skill-henryiii-skills-branch-and-pr`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [henryiii](https://agentstack.voostack.com/s/henryiii)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [henryiii](https://github.com/henryiii)
- **Source:** https://github.com/henryiii/skills/tree/main/branch-and-pr

## Install

```sh
agentstack add skill-henryiii-skills-branch-and-pr
```

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

## About

# Git branch, commit, and make a PR

## Rules:

* **No direct push to main or master** — always open a PR.
* The user's github handle comes from `gh api user --jq .login` unless you already know it
* Conventional Commits is followed
* The upstream remote might be named `upstream`, if that it doesn't exist, it might be named `origin`.

## Definitions:

``: the user's github handle
``: a conventional commits type (`feat`, `fix`, `chore`, `style`, `docs`, `test`, `refactor`, `ci`, `perf`). Can be specifed by user input. `chore` is for minor edits that are not fixes/ci/tests.
``: a short identifier based on the contents of this change.
``: a one line description, can be specified by user input or summarize from the diff with main/master or current change.
``: a longer description, summarized from the diff with main/master or current changes.
``: A git trailer set to `Assisted-by: :` currently used, like `Assisted-by: OpenCode:Kimi-K2.6` or `Assisted-by: Pi:glm-5.1`, for example.
``: The currenet agent harness.
``: The current AI model.

## Make a branch

If the current git branch is main or master, make a new branch with the pattern
`//`.

## Make a commit

If there are staged changes, make a commit. If there are no changes to commit,
abort the workflow and inform the user. If you are working on changes, you can
add those. The commit message should be `: \n\n\n\n`

## Make a PR

Use the `gh` tool to make a PR. Push to the user's fork if there is one (do not
make a fork), otherwise push to the upstream remote if the user has push
permission, and set upstream tracking. Make sure you add this line at the start
of the PR description:

:robot: *Human guided, AI assisted PR ([using this skill](https://github.com/henryiii/skills/blob/main/branch-and-pr/SKILL.md)). AI text below.* :robot:

So users know the text is generated. Add the `` above at the end of
the description.

## Source & license

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

- **Author:** [henryiii](https://github.com/henryiii)
- **Source:** [henryiii/skills](https://github.com/henryiii/skills)
- **License:** MIT

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-henryiii-skills-branch-and-pr
- Seller: https://agentstack.voostack.com/s/henryiii
- 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%.
