Skip to content
Agentmart
Submit a tool

commit-pr

Create or update a draft pull request from the current branch.

Skill by ryanmazzolini

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ryanmazzolini-commit-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create or update a draft pull request from the current branch. Use when opening or updating a PR.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/commit-pr

What's inside

Skill name
commit-pr
Description
Create or update a draft pull request from the current branch. Use when opening or updating a PR.
License
MIT
Instructions
66 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Pull Request

## Workflow

1. Identify the branch this work should merge into. Inspect the commits, `git diff <base>...HEAD --stat`, the full branch diff, and any existing PR. Do not treat the stat as a substitute for the full diff. Resolve unexpected commits or files. Treat an existing title, body, and test results as potentially stale.
2. Confirm that the branch fits the [scope rules](#scope). Stop if it contains work that should be split or deferred.
3. Run focused checks while diagnosing problems, then run the repository's expected regression checks. If a check is blocked or impractical, say what did not run and why, then ask how to handle the gap. This decision does not replace review or PR approval.
4. Confirm that the final code-bearing branch diff has independent review under [the review gate](../../ship/ship/references/review-gate.md). Record changes made after review. Re-review when the gate requires it.
5. Understand why the change exists. If the diff and commits do not explain it, read the related issue or work item. Identify what happened before, why it was a problem, and what happens now.
6. Draft the title and body using the guidance below. Follow the writing guidance in the active project and user instructions.
7. Show the full title and body, base branch, review evidence, and validation status. End the response by asking for confirmation or edits; do not stop after presenting the draft or status.
8. After explicit approval, push if needed and create or update the PR. Create new PRs as drafts. When `monitor_github_pr` is available, call it with the canonical URL after creating a PR; after updating an existing PR, also pass `notifyExistingFeedback: false` so historical feedback does not trigger another turn. Then show the PR URL and offer next steps.

## Scope

Each PR should have one purpose: deliver a useful result or safely prepare for one immediate next change. When a PR is preparation, explain in the body what it delivers, how that supports the next change, and what remains undelivered.

Stop and propose splitting or deferring work when the branch also contains another useful result, unrelated cleanup or optimization, generalization for a possible future need, or unrelated formatting. Keep extra work only when this PR or the repository checks require it for safety, compatibility, or formatting enforced by project tools.

Wait for confirmation before removing work or rewriting history.

## Title

Name the concrete change or problem solved at the level this PR delivers. An API capability or refactor is a valid result; the title need not promise a downstream user benefit. Prefer a specific change over a vague phrase about preparing for future work. Use sentence case and a direct action verb. Keep the claim within this PR's scope; explain its broader purpose and any follow-up work in the body.

Treat existing PR, ticket, branch, and commit wording as context, not an approved title. The title should tell a teammate what changes or what problem is solved without the original discussion. Keep useful project terms, but avoid stacked nouns. Repository conventions may add metadata such as a ticket ID.

## Body

Write for a capable engineer who has not read the ticket or followed the work. Give them a self-contained explanation of the affected workflow and change, not an investigation report. Establish the context needed to understand the problem, new behavior, important limits, and validation before trimming repetition.

Use `Description`, `Details`, and `Testing` as headings.

### Description

Explain the surrounding workflow, why this change is needed, and what it delivers. Establish who uses the workflow, what they are trying to do, and how the previous behavior or missing capability leads to this change. Make clear which capabilities this PR delivers and which require later integration. Order the explanation for understanding rather than requiring the first sentence to carry both context and result. Walk through the changed behavior, including consequential interactions and what stays unchanged. Size the explanation to what the reader needs to understand, not a paragraph limit; a list of changed features is not a substitute for that explanation. When the behavior is not immediately obvious, use one representative example to ground the explanation. Explain project terms when you first use them.

### Details

Explain implementation mechanics only after the behavior is clear. Keep each cause-and-effect path together. When correctness depends on a failure, rollback, or retry sequence, name enough steps to show how the change produces the result. Use concrete subjects and direct verbs. Keep connected ideas in prose, use numbered steps when order matters, and use bullets only for genuinely separate facts.

Include only the behavior, limits, and trade-offs needed to review the change. Omit decision history, exhaustive alternatives, and file-by-file summaries.

### Testing

List the checks run on the current branch and their results. Add relevant manual, UI, or deployment verification, and say what could not be tested. Include screenshots or video for UI changes. Keep review and agent process out of this section.

Upload screenshots and videos with `--attach '<path>#<alt text>'` on `gh pr create`, `gh pr edit`, or `gh pr comment`, one flag per file, run from inside the repository. Reference each file in the body with the exact path string passed to the flag, such as `![Nothing left to move](./empty.png)`, and gh rewrites it to the uploaded URL in place. An unreferenced file is appended to the end of the body. Alt text should name the state shown.

## Links

Link only to pages the reviewer can open, such as a ticket, PR, commit, GitHub file, or shared design document. When an issue is available from the branch name or user context, use its ID as the link text, for example `[sc-123](...)`.

Do not link to local paths, editor links, or vault notes. Summarize any context that exists only locally.

## Final check

Before presenting the draft:

- Make sure every changed commit and file supports the PR's one purpose.
- Remove repeated context, abstract phrasing that hides who or what performs the action, and detail that does not help review.
- Keep simple changes short.
- Check that the title names the concrete change or problem solved and the Description independently explains its context, purpose, and scope. Neither should claim benefits deferred to later work.
- Read the Description without Details or links. Make sure a teammate new to the work can explain the previous workflow, the problem, the changed workflow, and important limits without reconstructing the story from feature bullets. Restore missing context before trimming; keep supporting mechanics in Details.

From ryanmazzolini/pi-skills, MIT.

More from ryanmazzolini/pi-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ryanmazzolini

Cite this page

commit-pr skill. Agent Mart. https://agentmart.dev/skills/ryanmazzolini-commit-pr (last updated 2026-10-24)