About sending-pull-request
A skill that defines a workflow for preparing and submitting code for review, including branch and diff checks, PR text, evidence assessment, and draft-state handling. It also distinguishes copy-only PR requests, which must not change the repository or forge.
Key features
- 01Inspect remote branches, commits, and working changes
- 02Prepare a conventional work branch
- 03Write PR titles and bodies from the diff
- 04Assess evidence and manage draft PR status
- 05Keep copy-only requests from changing repositories or forges
Use cases
- 01Submit local work for review
- 02Update an existing PR's title and body
- 03Draft or review PR/MR copy only
- 04Determine PR readiness from evidence
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ wkentaro/ agent-skills --skill sending-pull-requestAfter installing, type/sending-pull-requestin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
BODY.mdMEDIA.mdevals/evals.jsonDetails
From the project READMESend a pull request
When asked only to write or review a PR/MR title or body, inspect the supplied context, read BODY.md, and return the copy without changing the repository or forge. If evidence is requested, read MEDIA.md for formatting guidance, use supplied evidence only, and mark unverified evidence as pending. Do not run capture or publishing workflows for a copy-only request.
To send work for review:
-
Fetch
origin, resolve the current and default branches, and inspect commits and working-tree changes againstorigin/<default>. Stop if there is no work to send. -
Put the work on a conventional
<type>/<short-kebab-description>branch without stashing or changing it:-
Keep a conventional non-default branch.
-
On the default branch, choose the name from the work using its Conventional Commit type, then preserve every commit and working-tree change before resetting the local default branch:
git switch --no-track -c <new-branch> git branch -f <default> origin/<default> -
Rename a clearly auto-generated placeholder branch with
git branch -m <new-branch>. -
Stop on another non-conventional branch unless the user asked to rename it.
-
-
Verify that the branch and work are unchanged. Stop if any intended change is uncommitted.
-
Inspect the commits and diff against the default branch. Write a Conventional Commit title under 70 characters, read BODY.md, and write the body from what the diff cannot explain. Preserve any existing
<!-- before-and-after:start/end -->block until the evidence assessment below. -
Check for an open PR from the current branch. Push with tracking; use
--force-with-leaseonly after an intentional history rewrite. -
Create a draft PR with
--assignee @me, or update the existing PR's title and body, using a temporary--body-fileand deleting it afterward. Keep an existing PR in draft while evidence is pending, usinggh pr ready --undoif needed. -
Assess evidence on every PR creation or update, including nonvisual changes, following MEDIA.md. This skill owns the evidence decision, text evidence, verification, and recovery. Invoke the existing
before-and-afterskill for screenshots or recordings that need capturing or publishing; it needs no modifications or new result contract. -
On verified evidence or an intentional skip, apply the intended readiness: a direct user invocation makes the PR ready with
gh pr ready; an autonomous invocation leaves a draft unless the user requested otherwise. On failure, leave the PR as a draft and report the missing evidence or blocker with the PR URL. Never merge or approve the PR.