Agent skill

PR Prep

by athola in athola/claude-night-market

Prepares pull requests by running quality gates, drafting descriptions, and validating tests.

MITAuto-check passedDevelopment

Install PR Prep

skills CLI
$ npx skills add athola/claude-night-market --skill pr-prep -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market pr-prep --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/sanctum/skills/pr-prep .claude/skills/pr-prep && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-prep
GitHub stars
342
Token cost
~2.6k tokens
SKILL.md length
1,123 words
Files
4
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Prepares pull requests by running quality gates, drafting descriptions, and validating tests.

  • Works in 7 steps: Review Workspace (workspace-reviewed) → Run Quality Gates (quality-gates) → 5: Self-Review Pass (self-reviewed) → …
  • Completing a feature and ready for review
  • SKILL.md covers When NOT To Use, Usage, Required Progress Tracking and Step 1: Review Workspace…, plus 11 more sections
  • Calls git, make and python3

What it does

PR Prep is an agent skill from athola/claude-night-market. Prepares pull requests by running quality gates, drafting descriptions, and validating tests. Use when completing a feature and ready for review.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `modules/pr-template.md`, `modules/quality-gates.md` and `modules/todowrite-patterns.md`).

It sits in Development, covering Quality gates and Pull requests. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Completing a feature and ready for review
  • Tasks that involve Quality gates
  • Tasks that involve Pull requests

Example prompts

  • “Use the pr-prep skill to prepare pull requests by running quality gates, drafting descriptions, and validating tests”
  • “/pr-prep”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Review Workspace (workspace-reviewed)
  2. Run Quality Gates (quality-gates)
  3. 5: Self-Review Pass (self-reviewed)
  4. Summarize Changes (changes-summarized)
  5. Document Testing (testing-documented)
  6. Draft the PR (pr-drafted)
  7. Verify Content Quality (content-verified)

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • make
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Prep loads about 2.6k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 1,123 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 1,123 words, ~2,554 tokens.

Download SKILL.mdSave it as .claude/skills/pr-prep/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pr-prep
description
Prepares pull requests by running quality gates, drafting descriptions, and validating tests. Use when completing a feature and ready for review.
alwaysApply
false
category
artifact-generation
tags
git, pr, pull-request, quality-gates, testing
complexity
medium
model_hint
standard
estimated_tokens
1000
progressive_loading
true
modules
quality-gates.md, pr-template.md
dependencies
sanctum:git-workspace-review, imbue:proof-of-work, imbue:justify, imbue:structured-output, scribe:slop-detector, scribe:doc-generator

Pull Request Preparation Workflow

When NOT To Use

  • Reviewing someone else's PR (use sanctum:pr-review)
  • Only the commit message is needed (use sanctum:commit-messages)

Usage

Use this skill to stage changes and generate a PR summary. Run Skill(sanctum:git-workspace-review) first to capture the repository state and diffs.

Required Progress Tracking

Create TodoWrite items for these steps before starting:

  1. pr-prep:workspace-reviewed
  2. pr-prep:quality-gates
  3. pr-prep:self-reviewed
  4. pr-prep:changes-summarized
  5. pr-prep:testing-documented
  6. pr-prep:pr-drafted
  7. pr-prep:content-verified

Mark each item as complete as the section is finished.

Step 1: Review Workspace (workspace-reviewed)

Confirm that Skill(sanctum:git-workspace-review) is complete. If changes were staged after the initial review, re-execute the skill to refresh the context.

Step 2: Run Quality Gates (quality-gates)

Execute formatting, linting, and tests using project-specific commands (e.g., make lint, make test). Resolve all failures before proceeding. If a task cannot be executed locally, document the reason and the alternative validation performed. Language-specific commands and failure handling are detailed in modules/quality-gates.md.

Capabilities Reference Sync

If any plugin files changed (plugin.json, skills, commands, agents, or hooks), run make docs-sync-check to verify book/src/reference/capabilities-reference.md is current. If it reports discrepancies, run /sync-capabilities --fix or update the reference manually before proceeding.

Step 2.5: Self-Review Pass (self-reviewed)

Read the diff as if you are a reviewer seeing it for the first time. This catches scope creep, stale debug code, and unclear changes before anyone else spends time on them.

Automated checks:

bash
# Check for debug statements left in
git diff --cached --name-only | xargs grep -nE \
  '(console\.log|print\(|debugger|TODO|FIXME|HACK|XXX)' \
  2>/dev/null || true

# Check for commented-out code blocks (3+ consecutive lines)
git diff --cached | grep -c '^+.*//.*[a-zA-Z]' || true

# Check for formatting-only commits mixed with feature work
git log --oneline $(git merge-base HEAD origin/master)..HEAD | \
  grep -iE '(fmt|format|lint|style|whitespace)' || true

Additive bias audit:

Run Skill(imbue:justify) to compute the additive bias score and check Iron Law compliance. If the score is YELLOW or above, justify each flagged signal before proceeding. If RED or STOP, rethink the approach.

Manual verification:

  • Read the full diff: does every change serve the stated goal?
  • No debug statements or TODO markers left in
  • No commented-out code blocks
  • No formatting changes mixed with logic changes
  • No fixup commits that should be squashed
  • Additive bias score is GREEN or justified YELLOW
  • Iron Law compliance: PASS (no test tampering)

If issues are found, fix them before proceeding.

Step 3: Summarize Changes (changes-summarized)

Start from the analyzer rather than from a fresh reading of the diff:

bash
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pr_prep_analyze.py" --base origin/main

It reads the branch's changed files and commits, sorts the files into feature, test, docs and other, flags any ! breaking-change marker in a commit subject, reports the quality gates it can decide from the changed-file list (tests touched, docs touched, changes described), recommends a merge strategy, and prints a description scaffold. Pass --reviewer-map <json> to map path prefixes to reviewers, or --json to consume it as data.

A gate printed unknown (null in JSON) means the script evaluated nothing: it runs no test, lint or type check and makes no release decision, so passes_checks and includes_breaking_changes always read unknown. Treat unknown as "you must check this yourself", never as a pass. Step 2 is where passes_checks gets its answer.

Then use the notes from the workspace review and the analyzer's categories to identify the key points in the diffs, and group them into 2-4 paragraphs highlighting the technical changes and their rationale. Note breaking changes, migrations, or documentation updates.

Step 4: Document Testing (testing-documented)

List each test command executed and its result. If tests were skipped, document the reason and the mitigation plan.

Attach a manual test plan when any of these hold:

  • The change has no automated coverage.
  • It touches a user-facing or CLI-facing flow.
  • It is a bug fix. Give reproduce, fix, and verify steps, where the reproduce step fails on the parent commit.
  • It changes an external contract.

Write it as numbered steps, each stating its expected result. A step without an expected result is a step the reviewer cannot fail. Format and examples are in modules/pr-template.md.

Step 5: Draft the PR (pr-drafted)

Populate the template with the facts table (Who, Where, When), then the Why and What-and-how sections, then Test plan and Checklist. Write the title imperative and self-contained so it reads correctly in git log out of context.

All three table rows are filled on every PR. A row that does not apply says so (External: none, on merge) rather than being deleted, so a reader can tell an omitted blast radius from a blast radius of none.

Add issue references, screenshots, migration guides, or follow-up items as the change calls for them. Template structure, worked examples, and size variations are in modules/pr-template.md. The decision behind the structure, with its sources, is recorded in docs/adr/0021-pr-descriptions-in-two-registers.md.

Show full SKILL.md (400 more words)Show less

Step 6: Verify Content Quality (content-verified)

Apply Skill(scribe:slop-detector) principles to the draft. Verify that the PR description avoids tier-1 slop words (delve, comprehensive, leverage, utilize, robust, seamless) and formulaic phrases like "I'd be happy to" or "It should be noted." Ensure there is no AI attribution in the text and that all claims are grounded with evidence such as commands, numbers, or filenames. Use active voice and maintain a balanced structure with prose for context.

Vocabulary Substitutions
  • Replace leverage or utilize with use.
  • Replace comprehensive with thorough or complete.
  • Replace robust with solid or reliable.
  • Replace facilitate with help or enable.
  • Replace streamline with simplify.
Remediation

If the description contains slop, apply Skill(scribe:doc-generator) principles to ground claims with specifics, remove marketing language, and use direct statements.

Output Instructions

Write the final PR description to the specified path, then display the file path and its contents for confirmation.

Notes

Do not include tool or AI attribution in the PR text. If changes are required mid-process, re-run quality gates. This skill covers preparation; pushing changes and opening the PR occurs outside this workflow.

Supporting Modules

Troubleshooting

If project-specific commands like make or npm are unavailable, verify the environment setup against the README. For permission errors, check write access to build directories. If a step fails without clear output, retry the command with verbose flags to inspect the logs.

Exit Criteria

  • All 7 TodoWrite items (pr-prep:workspace-reviewed through pr-prep:content-verified) are marked complete before the skill declares done
  • Quality gates (formatting, linting, tests) run and pass; any failure is fixed before proceeding, not skipped
  • Every gate the analyzer printed as unknown has been decided by hand, because unknown means nothing evaluated it: the script runs no test, lint or type check, so passes_checks and includes_breaking_changes always arrive that way
  • PR description file written to the specified path and its contents displayed for confirmation
  • Facts table present with all three rows (Who, Where, When) filled, including the External: half of Where
  • Why section grounded in an issue, a number, or an incident rather than a general claim
  • Manual test plan attached whenever one of the four triggers in Step 4 fires, with an expected result on every step
  • Additive bias score from imbue:justify is GREEN, or YELLOW with each flagged signal explicitly justified
  • PR description contains none of the tier-1 slop words (delve, comprehensive, leverage, robust, seamless, etc.)

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in plugins/sanctum/skills/pr-prep of athola/claude-night-market.

  • SKILL.md
  • modules/pr-template.md
  • modules/quality-gates.md
  • modules/todowrite-patterns.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

PR Prep next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Prep compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Prep this skillathola/claude-night-market342—~2.6kAutomated safety check: PassMIT
PlotJuggler Ship CheckPlotJuggler/PlotJuggler6.2k—~1.3kAutomated safety check: PassMPL-2.0
Pull Requestnoh-rs/nohrs156—~4.1kAutomated safety check: PassMIT
Compound Engineering Code ReviewEveryInc/compound-engineering-plugin25k—~2kAutomated safety check: PassMIT
Sonarcloud Reviewlucasvieirasilva/nx-plugins153—~2.7kAutomated safety check: NotesMIT
PR Preflight Checkliaohch3/claude-tap3.3k—~615Automated safety check: PassMIT

Similar skills

  • PlotJuggler Ship Check

    PlotJuggler/PlotJuggler

    Runs a gated finish-line checklist before committing a PlotJuggler PJ4 change: build proof, red-test triage, hooks, docs freshness and a diff self-review.

    6.2k GitHub stars~1.3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Pull Request

    noh-rs/nohrs

    Take a change from working tree to a merge-ready pull request, then keep iterating until the CI checks and AI reviewers (CodeRabbit, cubic) all pass.

    156 GitHub stars~4.1k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Compound Engineering Code Review

    EveryInc/compound-engineering-plugin

    Runs a staged pull request or diff review using selected reviewer personas, checking the change against its stated intent and project standards before producing findings.

    25k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Sonarcloud Review

    lucasvieirasilva/nx-plugins

    Fetches and triages SonarCloud findings (issues, security hotspots, quality gate) for the current pull request or branch of this repository via the SonarCloud Web API, summarizes them in a markdown…

    153 GitHub stars~2.7k tokensUpdated 10 days ago
    DevelopmentAuto-check: notes
  • PR Preflight Check

    liaohch3/claude-tap

    Runs a single merge-readiness check on a pull request: metadata, GitHub Actions status, local lint, format and test gates, and PR body rules, ending in READY or NOT_READY.

    3.3k GitHub stars~615 tokensUpdated 16 days ago
    DevelopmentAuto-check passed
  • Submit PR

    FutureTense/keymaster

    Procedure for preparing and submitting pull requests in keymaster, enforcing the required PR template (.github/PULLREQUESTTEMPLATE.md), checklist validation, and quality gates.

    349 GitHub stars~830 tokensUpdated today
    DevelopmentAuto-check passed

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Questions about PR Prep

What does PR Prep do?

Prepares pull requests by running quality gates, drafting descriptions, and validating tests. PR Prep is an agent skill from athola/claude-night-market. Prepares pull requests by running quality gates, drafting descriptions, and validating tests.

When should I use PR Prep?

PR Prep fits situations like: completing a feature and ready for review; tasks that involve Quality gates; tasks that involve Pull requests.

How do I install PR Prep in Claude Code?

Run `npx skills add athola/claude-night-market --skill pr-prep -a claude-code`. Or copy the skill folder (plugins/sanctum/skills/pr-prep in athola/claude-night-market) into .claude/skills/pr-prep in your project. Claude Code loads it when a task matches its description.

How do I install PR Prep in Codex?

Run `npx skills add athola/claude-night-market --skill pr-prep -a codex`. Or copy the skill folder (plugins/sanctum/skills/pr-prep in athola/claude-night-market) into .agents/skills/pr-prep in your project. Codex loads it when a task matches its description.

Can I use PR Prep in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill pr-prep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-prep, .gemini/skills/pr-prep, .github/skills/pr-prep and .opencode/skills/pr-prep in your project.

What does PR Prep need to run?

Going by SKILL.md and its folder, PR Prep needs the command-line tools its instructions call (git, make and python3). Our summary lists: Python 3.

Does PR Prep access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Prep safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Prep use?

PR Prep is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Prep use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Prep?

Skills that share tags, products or a category with PR Prep: PlotJuggler Ship Check (PlotJuggler/PlotJuggler, 6.2k stars), Pull Request (noh-rs/nohrs, 156 stars), Compound Engineering Code Review (EveryInc/compound-engineering-plugin, 25k stars) and Sonarcloud Review (lucasvieirasilva/nx-plugins, 153 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Prep?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.