create-pr

Installation
SKILL.md

Create a PR

The description is written for a reviewer who tests by using the app. Lead with what the end user notices. Implementation detail goes last and stays short.

When the repo tracks work in Linear, every PR is tied to an issue. The issue id in the title (<PREFIX>-<n>) is what lets Linear's GitHub integration link the PR and move the issue: open PR → In Progress / In Review, merged → Done (the exact mapping is in the team's Git automation settings). A PR without an id is invisible to Linear, so its ticket sits in Todo until someone moves it by hand. If the repo uses GitHub Issues instead, put Closes #<n> in the body.

Discover the project first

Read these once, and use what they say everywhere below instead of assuming:

  • AGENTS.md / CLAUDE.md / CONTRIBUTING.md: commands, migration rules, title conventions, release-notes rules, and what local dev is connected to.
  • Default branch (<default> below): gh repo view --json defaultBranchRef -q .defaultBranchRef.name.
  • Package manager from the lockfile: bun.lock/bun.lockb → bun, pnpm-lock.yaml → pnpm, yarn.lock → yarn, package-lock.json → npm. Scripts come from package.json, or from the Makefile / justfile in other stacks.
  • CI gates: .github/workflows/*.yml shows which scripts CI runs, and on which paths.
  • Title convention: git log --oneline -20 origin/<default>. Check for Conventional Commits and an issue-id suffix.
  • Issue prefix: the Linear team key (list_teams), or the ids in recent titles.
  • Scratch directory (<scratch> below): if git check-ignore -q .context/pr/probe.md succeeds, use .context/pr/, otherwise mktemp -d. Never use a fixed /tmp path, because it collides across worktrees and sessions. Name files <branch-slug>, which is the branch name with / replaced by -.

Workflow

Installs
8
Repository
alon710/configs
GitHub Stars
2
First Seen
Oct 2, 2026