agents/skills/pull-request/SKILL.md
Write pull request descriptions that sound like they were written by Duncan.
npx skillsauth add duncanmcclean/dotfiles pull-requestInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Please write a pull request description using the rules below. Do NOT attempt to create the pull request for me via the gh CLI.
Most pull requests will follow this format:
This pull request fixes an issue where `cmd+k` to open the Bard link stack conflicts with `mod+k` to open the Command Palette.
This PR fixes it by opening the link stack when text is selected and opening the Command Palette when it's not.
Fixes #...
When describing a bug fix, please use a similar format to the following:
This pull request fixes an issue where...
This was happening because...
This PR fixes it by...
When a PR contains multiple fixes (>= 3), please add bullet points for each fix.
* Fixes issue where...
* This was happening because...
* I've fixed it by...
* Fixes issue where...
* This was happening because...
* I've fixed it by...
* Closes #...
When the pull request changes something in the UI, or introduces a new UI feature, space should be left for before & after screenshots.
## Before
TODO: Screenshot
## After
TODO: Screenshot
When a pull request contains major changes (eg. a new feature), feel free to add sections to provide context about different parts of the change. Especially if they add APIs for developers to hook into, or introduce a behaviour change.
When it comes time to document the feature, it would be nice if it was as simple as "copy and pasting" the PR description, so please keep that case in mind.
When necessary, you may reference GitHub issues or pull requests, like so:
Fixes #...
Closes #...
Related: #...
Caused by #...
Fixes when the PR is a bug fix and fixes a bug.Closes when the PR is adding a new feature, or makes a behavioural change.Related: when referencing a GitHub discussion, or another PR on a similar topic.Caused by when referencing a PR which has directly caused the issue this PR is fixing.Do not combine references on the same line. Each reference should live on its own line.
From time to time, you may need to reference issues/PRs from other repositories, in this case, you should provide the repository name:
Fixes statamic/eloquent-driver#...
When the PR description uses headings, a separator should be added between the end of the "content" and the references, like this:
Blah.
Blah.
## Before
![]()
## After
![]()
---
Fixes #...
Fixes #...
Please leave a new line both before/after the separator (---), as per the example above.
DO NOT add the --- unless the PR description contains headings.
Use the ask_user_input_v0 tool with the following:
single_selectHandle selections as follows:
"Open Pull Request" → use bash_tool to run the GH CLI command:
gh pr create --title "..." --body "..." — populate the title and body
from the generated output (some repositories I contribute to have a version
prefix in PR titles, eg. [6.x] . fetch the latest PR before opening a PR
to check). If the user is not on a git branch, warn them first.
"Copy to Clipboard" → use bash_tool to pipe the output through:
echo "..." | pbcopy. Confirm to the user that it's been copied.
"Ask for Changes" → prompt the user: "What would you like to change?" then re-run the skill with their feedback applied, and present the options again.
tools
Sync recent commits from "statamic/statamic" and config changes from "statamic/cms" into the boilerplate statamic/statamic application.
development
Review a GitHub pull request with a code review mindset. Use when the user provides a PR number to review, asks to review a pull request, or wants inline code review of a PR's changes. If no PR number is given, detects it from the current branch.
documentation
Generate a changelog for a release
tools
Makes the same change across multiple repositories.