Skip to content
Back to skills

Pr

ASecurity

Create a pull request with automatic quality checks and a proper commit message.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
developmentshellgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add blit386/blit386 --skill pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blit386-blit386/badge)](https://www.skillsdirectory.com/skills/blit386-blit386)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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): ...`)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.