Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blit386-blit386)
---
name: pr
description:
Create a pull request with automatic quality checks, a conventional commit, and the gh CLI. Use when the user wants to
open a PR or push a branch for review. Takes a package argument (blit386, demos, website, kit, create-blit386, or root
for repo-wide files) to pick the right preflight gate and commit scope conventions.
---
# Create Pull Request
Create a pull request with automatic quality checks and a proper commit message.
## Usage
```text
/pr <package> Add sprite batching optimization
```
The description after the package argument becomes the commit subject.
## Steps
1. Verify branch
- Confirm the current branch is not `main` or `master`
- Run `git status` to see all changes (add `git ls-files --others --exclude-standard` too, to catch untracked files a
diff alone misses)
2. Run quality checks
- Execute `/preflight <package>` (or the underlying `pnpm run preflight` / package-specific checks - see that skill)
- If any check fails, stop and report errors; don't proceed with failing checks
3. Review changes
- Run `git diff` to review all modifications
- Run `git log origin/main..HEAD` to see commits
- Verify changes align with the description
- Run `/review <package>` and `/ponytail:ponytail-review` after the last edit: the commit review gate refuses a Claude
Code commit whose content both did not see, and the same gate refuses `gh pr create` unless both saw the branch's
final content (`.claude/rules/commit-review-gate.md`). Present them as two full reports, not one merged summary
4. Create commit
- Stage relevant files with `git add`
- Generate a conventional commit message:
- Format: `<type>(<scope>): <description>`
- Types (commitlint-enforced): `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`,
`revert`. Subject lowercase, no trailing period, header at most 100 characters
- Scopes are convention only, not enforced by commitlint - prefer one already used by that package's history (see the
per-package list below)
- DCO sign-off: `git commit -s` - required for every package. `.github/workflows/dco.yml` is a single repo-wide workflow
(no path filter) that checks every commit in a PR/push regardless of which package it touches
- Include trailer: `Co-Authored-By: Claude <noreply@anthropic.com>`
5. Push and create PR
- Push to remote: `git push -u origin HEAD`
- Write the body to a scratch file outside the repo (the session scratchpad or a temp dir) and create the PR with
`gh pr create --title '<title>' --body-file <file>`. Never inline the body with `--body`: an apostrophe ends the
quoted string, and the repo's shell guard blocks any call whose text names a destructive git command. Keep apostrophes
out of the title too, since it sits in single quotes. Use:
- Title matching the commit message
- Body with summary and test plan
- Link to related issues if any
6. Return PR URL
- Display the GitHub PR URL for review
## Requirements
- `gh` CLI must be installed and authenticated
- The current branch must not be `main` or `master`
- All quality checks must pass
## Per-package commit scopes
- `blit386`: `docs`, `audio`, `assets`, `overlay`, `core`, `api`, `ci`, `renderer`, `tests`, `utils`, `rules`,
`release`, `security`, `input`, `deps` / `deps-dev`, `visual`, `camera` (rare/legacy: `examples`)
- `demos`: `demos` (most common - demo JS source), `ui` (shared UI kit), `assets`, `docs`, `skills`, `deps`
- `website`: `content`, `ci`, `docs`, `deps`, `config`
- `kit` / `create-blit386`: no fixed convention beyond the general type enum - pick a scope that matches the changed
area (`kit`, `scaffold`, `templates`, `cli`, `migrations`, `docs`, `deps`)
- `root` (files outside every package: root `CLAUDE.md`, `.claude/`, `.husky/`, `.github/`, root configs): `repo` is the
established scope (see recent history, e.g. `refactor(repo): ...`)