About create-pr-for-branch
A human-triggered skill that creates a pull request for the current branch using `gh`. It checks `prepublishOnly` first when present and can include issue-closing lines in the PR body.
Key features
- 01Human-requested execution only
- 02Runs `prepublishOnly` when present
- 03Creates a PR with `gh`
- 04Adds issue-closing lines to the PR body
- 05Returns the PR URL and Markdown link
Use cases
- 01Open a PR for the current branch
- 02Run a package prepublish check before PR creation
- 03Link issues that the PR is intended to close
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ mtngtools/ agents --skill create-pr-for-branchAfter installing, type/create-pr-for-branchin Claude Code to confirm it loaded.
Details
From the project READMEcreate-pr-for-branch
human-only. Start this only when a human asks for it by name. If you arrived here from another skill, stop and get explicit confirmation before running any step.
Check if package has prepublishOnly script. If so, run first.
If that passes or you've been instructed to ignore prepublishOnly, create a pull request for the current branch using gh.
If the branch is meant to close issues, put Closes #{issue} in the PR body — one line per issue.
Provide both URL and markdown link to the PR.