pre-pr

pre-pr is a command for Claude Code from allxsmith/bestax. It costs 21 tokens per session (431 once invoked), scanned A, original, MIT.

A command that runs the full pre-pull-request checks and reviews the current code changes. These checks include building, type checking, tests, linting, formatting, and a Storybook build.

In plain words
What is it for?
Use it as a final review of a branch, including component documentation, stories, listings, skills, and commit-message requirements when relevant.
Why use it?
It catches failed checks and review gaps before a pull request is opened, without changing the files.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it as a final review of a branch, including component documentation, stories, listings, skills, and commit-message requirements when relevant.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/allxsmith/bestax/pre-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/allxsmith/bestax

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/allxsmith/bestax/pre-pr/github.svg)](https://agentmods.dev/commands/allxsmith/bestax/pre-pr)
Your own site
<a href="https://agentmods.dev/commands/allxsmith/bestax/pre-pr"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/pre-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pre-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/allxsmith/bestax/pre-pr"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/pre-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 431 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00431
Opus 5.5 $0.00008 $0.00172
Sonnet 5.5 $0.00004 $0.00086
Haiku 4.5 $0.00002 $0.00043

Measured yesterday against content hash a0a75c9e0288, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pre-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pre-pr.md · 29 lines

What it actually says

/pre-pr — gate + self-review before opening a PR

  1. Run pnpm all (the pre-PR chain listed under Commands in CLAUDE.md). If it fails, report the failing task and stop: fix it before reviewing.
  2. Read the working diff (git status, git diff main...HEAD plus any uncommitted changes). Check every diff against "Finishing a change" in the root CLAUDE.md, and against the CLAUDE.md in each directory the diff touches. If it adds a component, also review it against CONTRIBUTING-COMPONENTS.md (repo root — Read it), focusing on what CI can NOT catch:
    • prop-level changes without matching story/docs/skills updates
    • missing listing surfaces (guide page section, homepage card — step 2)
    • code, tests, CSS or docs copied from elsewhere without its credit, from a license that doesn't allow it, into shipped code without the maintainer's approval, or missing from its commit message ("Other libraries" in CLAUDE.md), and what the PR's "Origin and references" section will need to say
    • skills sync for themeable or shared-helper changes (step 3) Always check each commit's type and scope: a scope-gated type needs a scope from RELEASE_SCOPES in commitlint.config.js, and a change to more than one package needs a commit per package.
  3. Report a short summary: gate result, then each checklist gap with the file to touch. Do not fix anything — this command only reviews.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +2 lines a0a75c9e0288
  2. 2d ago Changed · +3 lines 7b29ab39746b
  3. 25d ago Changed · -1 lines 26a4aa5985ad
  4. 3mo ago First seen · 25 lines · 21 tokens per session scan A e97fc932311f

Subscribe to this mod's changes

pre-pr is a command published in the GitHub repository allxsmith/bestax (15 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 431 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

pre-pr compared with commands from other repositories

pre-pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pre-prallxsmith/bestaxCommand15yesterdayMITA21Claude Code
review-blocksbartstc/vite-ts-react-templateCommand1267d agoMITA0Claude Code
quality-commandsJNTMTMTM/eIslandCommand3605d agoGPL-3.0A0Claude Code
finnolehsvyrydov/AI-development-teamCommand1816d agoMITA25Claude Code
code-reviewHoangNguyen0403/agent-skills-standardCommand597yesterdayMITA0Claude Code
code-quality-reviewsaeedkolivand/ai-job-hunter-appCommand66yesterdayApache-2.0A19Claude Code
entropy-scanapp-vitals/shipwrightCommand17yesterdayMITA83Claude Code