pre-pr

pre-pr is a command for Claude Code from bybren-llc/a-safe-pulse. It costs 7 tokens per session (594 once invoked), scanned A, a copy of pre-pr, MIT.

A pre-pull-request validation command that runs tests, a build, documentation checks, Git checks, and a rebase onto the latest development branch.

In plain words
What is it for?
It helps verify unit tests and TypeScript/build checks, format Markdown, inspect Git status and commits, update the branch, and confirm related documentation is present.
Why use it?
It catches code, documentation, branch, commit, and uncommitted-change problems before a pull request is created.

Command for Claude Code

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

Good fit It helps verify unit tests and TypeScript/build checks, format Markdown, inspect Git status and commits, update the branch, and confirm related documentation is present.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bybren-llc/a-safe-pulse/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/bybren-llc/a-safe-pulse

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/bybren-llc/a-safe-pulse/pre-pr.svg)](https://agentmods.dev/commands/bybren-llc/a-safe-pulse/pre-pr)
Your own site
<a href="https://agentmods.dev/commands/bybren-llc/a-safe-pulse/pre-pr"><img src="https://agentmods.dev/badge/commands/bybren-llc/a-safe-pulse/pre-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 594 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 92% copy Near-identical to another mod 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.00007 $0.00594
Opus 5 $0.00003 $0.00297
Sonnet 5 $0.00001 $0.00119
Haiku 4.5 $0.00001 $0.00059

Measured 3d ago against content hash 91521df9177d, 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 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 3d 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.

Origin

This is a copy

92% identical to pre-pr — 10 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📋 TEMPLATE: This command is a template. See "Customization Guide" below to adapt for your infrastructure.

You are preparing to create a Pull Request. Execute the MANDATORY @CONTRIBUTING.md validation workflow:

Validation Checklist

1. Code Quality Validation

Run CI validation suite:

npm test && npm run build

This runs:

  • TypeScript type checking
  • ESLint validation
  • Unit tests
  • Format checking

BLOCKER: Must pass before proceeding. Fix any failures.

2. Documentation Linting

Auto-fix markdown formatting:

npx markdownlint-cli2 --fix "**/*.md"

Verify no errors remain:

npx markdownlint-cli2 "**/*.md"

3. Git Status Check

Verify all changes committed:

git status

BLOCKER: No uncommitted changes allowed in PR.

4. Rebase onto Latest Dev

Fetch and rebase:

git fetch origin
git rebase origin/dev

BLOCKER: Must be up-to-date with dev branch.

5. Commit Message Validation

Check all commits follow SAFe format:

git log origin/dev..HEAD --oneline

Required format: type(scope): description [ASP-XXX]

BLOCKER: All commits must reference Linear ticket.

6. Documentation Updates

Verify related docs updated:

  • CLAUDE.md (if architecture/workflow changed)
  • CONTRIBUTING.md (if process changed)
  • Specialized docs (feature-specific)

7. PR Template Ready

Confirm you can fill out ALL sections:

  • 📋 Summary with Linear ticket link
  • 🎯 Changes Made
  • 🧪 Testing
  • 📊 Impact Analysis
  • 🔄 Multi-Team Coordination
  • ✅ Pre-merge Checklist

Workflow

Execute steps 1-6 in order.

Report results for each step:

  • ✅ PASS: Step completed successfully
  • ⚠️ WARNING: Non-blocking issue found
  • ❌ BLOCKER: Must fix before PR

Success Criteria

All validation steps pass. Ready to create PR with:

git push --force-with-lease origin {branch-name}
gh pr create --title "..." --body "..."

Report final status and any remaining blockers.

Read the full file on GitHub · 123 lines

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. 3d ago First seen · 123 lines · 7 tokens per session scan A 91521df9177d

Subscribe to this mod's changes

pre-pr is a command published in the GitHub repository bybren-llc/a-safe-pulse (9 stars, last pushed 5mo ago), licensed MIT. It adds 7 tokens to every session and 594 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to pre-pr, differing in 10 lines, and is treated as a copy.