promptpit: Command for Claude Code

.claude/commands/pre-pr-check.md

pre-pr-check is a command for Claude Code from nirelbaz/promptpit. It costs 0 tokens per session (408 once invoked), scanned A, original, MIT.

A pre-release check for PromptPit that runs tests, linting, building, code review, adapter verification, and code simplification before a pull request. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it on a completed feature branch to compare changes with the main branch and resolve findings before opening a pull request.
Why use it?
It catches failing checks, design problems, and incorrect integrations before the changes are submitted.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex.

This is nirelbaz/promptpit's own configuration. It tells Claude Code how to work on promptpit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything promptpit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nirelbaz/promptpit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nirelbaz/promptpit/main/.claude/commands/pre-pr-check.md
Clone the repo
git clone --depth 1 https://github.com/nirelbaz/promptpit

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-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/nirelbaz/promptpit/pre-pr-check.svg)](https://agentmods.dev/commands/nirelbaz/promptpit/pre-pr-check)
Your own site
<a href="https://agentmods.dev/commands/nirelbaz/promptpit/pre-pr-check"><img src="https://agentmods.dev/badge/commands/nirelbaz/promptpit/pre-pr-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 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.00000 $0.00408
Opus 5 $0.00000 $0.00204
Sonnet 5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

Measured 8d ago against content hash 5e2566d9e02d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pre-pr-check 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 8d 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-check.md · 21 lines

What it actually says

Pre-PR quality gate for PromptPit. Run this on your feature branch after implementation is complete, before opening a PR. Chains three checks: code review, adapter correctness verification, and code simplification.

Steps

  1. Pre-flight. Verify the branch has changes against main (git diff origin/main --stat). If no diff, stop. Run npm test && npm run lint && npm run build — all three must pass before proceeding. If any fail, fix them first.

  2. Code review. Run /review to do a pre-landing review of the full diff against main. This catches structural issues (SQL safety, race conditions, trust boundaries, enum completeness) and runs the fix-first pipeline. Address all findings before continuing.

  3. Adapter correctness. Dispatch the AI Stack Expert agent to verify adapter changes against real-world tool behavior. The expert should:

    • Read the diff (git diff origin/main)
    • For each changed adapter (claude-code, cursor, codex, copilot, standards), verify file paths, field names, and formats match how the tool actually works
    • Flag anything that contradicts real tool behavior (wrong config field names, unsupported file locations, incorrect extensions)
    • Check MCP config format correctness per-adapter (JSON vs TOML, field names)
    • Check rule/skill/agent file naming conventions per-adapter

    Skip this step if the diff doesn't touch any files under src/adapters/, src/commands/install.ts, or src/commands/status.ts.

  4. Simplify. Run /simplify to review changed code for reuse opportunities, code quality issues, and efficiency problems. This catches duplicated logic, parameter sprawl, and unnecessary work.

  5. Final verification. Run npm test && npm run lint && npm run build one last time to confirm nothing broke during the review fixes. Report the final test count and confirm the branch is ready for PR.

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. 8d ago First seen · 21 lines · 0 tokens per session scan A 5e2566d9e02d

Subscribe to this mod's changes

pre-pr-check is a command published in the GitHub repository nirelbaz/promptpit (6 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 408 tokens. 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-31.