pre-pr

pre-pr is a command for Claude Code from allxsmith/bestax. It costs 21 tokens per session (357 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

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.

agentmods
npx agentmods add commands/allxsmith/bestax/pre-pr
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.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.svg" alt="Measured on agentmods" 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 357 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00357
Opus 5 $0.00010 $0.00179
Sonnet 5 $0.00004 $0.00071
Haiku 4.5 $0.00002 $0.00036

Measured 4d ago against content hash e97fc932311f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d ago.

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 · 25 lines

What it actually says

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

  1. Run pnpm all (build, typecheck, test+coverage, bundle:stats, lint, format:check, storybook build). If it fails, report the failing task and stop — fix before reviewing.
  2. Read the working diff (git status, git diff main...HEAD plus any uncommitted changes). If the diff touches bulma-ui/src components, stories, SCSS, or skills/, review it against the checklist in 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)
    • skills sync for themeable or shared-helper changes (step 3) For diffs that don't touch components (docs-only, tooling, workflows), SKIP the component checklist and just review the diff generally. Always check commit message type/scope (feat|fix|perf|refactor|style need scope bulma-ui|docs|create-bestax).
  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. 4d 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 (11 stars, last pushed 4d ago), licensed MIT. It adds 21 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 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.