pr-check

A pre-pull-request checklist that runs the project's local continuous-integration checks. Continuous integration means automated checks that catch problems before code is merged.

In plain words
What is it for?
Use it before opening a pull request in a project with the specified Makefile and checks. When checks fail, it asks how each problem should be handled.
Why use it?
It helps find shell, Python, test, build, lint, smoke-test, installer, and secret-scanning failures before a pull request is created.

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/osmantic/ods/pr-check
Clone the repo
git clone --depth 1 https://github.com/Osmantic/ODS

Made for: Claude Code.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,571 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.00009 $0.01571
Opus 5 $0.00005 $0.00785
Sonnet 5 $0.00002 $0.00314
Haiku 4.5 $0.00001 $0.00157

Measured 2d ago against content hash 4130d9eb6e70, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/pr-check.md · 195 lines

How it starts

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

PR Check Skill

Run all local CI checks before creating a PR. On failure, offer to fix issues interactively.

Philosophy: Ask Early, Ask Often

This skill should liberally use AskUserQuestion at decision points. CI check failures require judgment about whether to auto-fix, skip, or investigate. The user should approve each fix strategy.

  • When a check fails — ask how to handle before auto-fixing
  • When multiple checks fail — let the user prioritize which to fix first
  • After all checks pass — ask about next steps (PR, review, etc.)

Pre-flight

Before running checks, verify the Makefile exists:

ls -la ods/Makefile

If the Makefile doesn't exist, inform the user and stop.

Checks Overview

Display to user before running:

Running 8 ODS checks:

  1. Shell lint - bash -n syntax check on all .sh files
  2. Python compile - py_compile check on dashboard-api modules
  3. Tier map + contract tests - Unit and contract test suite
  4. BATS unit tests - Shell library tests via BATS
  5. Smoke tests - Platform-specific smoke tests
  6. Installer simulation - Installer simulation harness
  7. Dashboard build/lint - ESLint + Vite production build
  8. Secret scan - Pre-commit hooks (gitleaks, private keys)

Execute Script

Run the full gate (covers checks 1-6):

cd ods && make gate

Then run dashboard checks:

cd ods/extensions/services/dashboard && npm run lint && npm run build

Then run secret scan:

pre-commit run --all-files

IMPORTANT: Stream output to user in real-time.

On Success

If all checks pass:

AskUserQuestion:
  question: "All 8 PR checks passed! What would you like to do next?"
  header: "Next"
  multiSelect: false
  options:
    - label: "Create PR"
      description: "Run /pr to create a pull request with these changes"
    - label: "Run code review"
      description: "Run /code-review before creating the PR"
    - label: "Done"
      description: "Checks passed — I'll handle the rest manually"

Read the full file on GitHub · 195 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. 2d ago First seen · 195 lines · 9 tokens per session scan A 4130d9eb6e70

Subscribe to this mod's changes

pr-check is a command published in the GitHub repository Osmantic/ODS (5,819 stars, last pushed yesterday), licensed Apache-2.0. It adds 9 tokens to every session and 1,571 once invoked, about $0.0000 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.