Install
npx skillscat add buidlguidl/sandgarden-skills/pr-create Install via the SkillsCat registry.
SKILL.md
Trigger this skill when the user asks to create/open a PR or "ship it"
If no other instructions are provided, create a PR from the current branch to the repository’s default branch.
Before creating the PR:
- Verify the current branch is NOT the default branch
- Verify there are commits ahead of the default branch. If there are uncommitted changes, suggest committing them first
- Run
git diff <default-branch>...HEADandgit log <default-branch>..HEADto understand ALL changes on the branch, not just the latest commit. - If the PR is already created, just push the changes to the branch
Format of the PR
- title: concise description of the main change
- body:
- Summary: A really concise description of the changes
- How to test: Instructions on how reviewers can test the changes
- (optional) Tricky things to look out for when reviewing (database changes, auth, security, important copy, etc)
- (optional) A collapsible section with a detailed description of the changes
Tool
Use the gh CLI to create the PR or interact with the GitHub repo. If the user doesn't have it, suggest installing it.