mcpField
C
create-pr-for-branch

create-pr-for-branch

github.com/mtngtoolsDevelopment044 installsUpdated 3w ago
Repository

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

  1. 01Human-requested execution only
  2. 02Runs `prepublishOnly` when present
  3. 03Creates a PR with `gh`
  4. 04Adds issue-closing lines to the PR body
  5. 05Returns the PR URL and Markdown link

Use cases

  1. 01Open a PR for the current branch
  2. 02Run a package prepublish check before PR creation
  3. 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-branch

After installing, type/create-pr-for-branchin Claude Code to confirm it loaded.

Details

From the project README

create-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.

Comments

Markdown supported