.claude/skills/pr-prep/SKILL.md
Run a quality gate before creating a PR — review, fix, test, report, produce QGR receipt
npx skillsauth add the-agency-ai/the-agency .claude/skills/pr-prepInstall 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.
Run this before creating a pull request. Invokes /quality-gate for the review+fix cycle, produces a QGR receipt, and prepares the branch for PR creation. The captain uses this before /captain-review or direct PR creation.
Unlike /phase-complete, this does NOT squash commits or land on master. It gates the current branch state for PR readiness.
$ARGUMENTS is empty, read the branch name and git log --oneline -10 to infer the PR scope. Construct a description.git diff --stat HEAD and git status. Note any uncommitted changes — they should be committed or stashed before the QG runs.docs/plans/ if one exists.Invoke /quality-gate via the Skill tool, passing pr-prep: $ARGUMENTS as the skill argument. The pr-prep prefix tells /quality-gate what boundary type to use for the QGR receipt filename.
This runs the full QG protocol: parallel agent review → consolidate → bug-exposing tests → fix → coverage tests → confirm clean → present QGR → write QGR receipt file.
The QG scope is the full diff against origin/master — everything that will be in the PR.
Wait for the QGR to be presented and the receipt file written before proceeding.
If the QG found and fixed issues (it usually does):
/git-safe-commit to commit them. The QGR receipt from Step 2 covers the pre-fix state; the commit will update the staged content. This is expected — the receipt proves the QG ran.Present a summary:
PR Prep Complete
- Branch:
{branch}- QGR receipt:
{path}- QG findings: N found, N fixed
- Tests: N passing, 0 failing
- Ready for:
/captain-review,gh pr create, or/code-review
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment