ODS: Command for Claude Code

.claude/commands/pr-check.md

pr-check is a command for Claude Code from Osmantic/ODS. It costs 9 tokens per session (1,571 once invoked), scanned A, original, Apache-2.0.

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

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

This is Osmantic/ODS's own configuration. It tells Claude Code how to work on ODS 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 ODS configures →

About the project

ODS is a system for turning a PC, Mac, or Linux computer into a private local AI server, meaning a machine that runs models and related AI services itself. It supports local model inference, chat, voice, agents, workflows, document retrieval, search, and image generation. The catalogue includes commands and an instruction for operating or configuring this system.

Osmantic/ODS · 7,712 stars · on GitHub · discord.gg

Reuse

Borrowing it

Nothing to install: this file belongs to Osmantic/ODS. 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/Osmantic/ODS/main/.claude/commands/pr-check.md
Clone the repo
git clone --depth 1 https://github.com/Osmantic/ODS

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/osmantic/ods/pr-check/github.svg)](https://agentmods.dev/commands/osmantic/ods/pr-check)
Your own site
<a href="https://agentmods.dev/commands/osmantic/ods/pr-check"><img src="https://agentmods.dev/badge/commands/osmantic/ods/pr-check/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 pr-check

Your own site · 80×15
<a href="https://agentmods.dev/commands/osmantic/ods/pr-check"><img src="https://agentmods.dev/badge/commands/osmantic/ods/pr-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00009 $0.01571
Opus 5.5 $0.00004 $0.00628
Sonnet 5.5 $0.00002 $0.00314
Haiku 4.5 $0.00001 $0.00157

Measured 2mo ago against content hash 4130d9eb6e70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (7,712 stars, last pushed today), licensed Apache-2.0. It adds 9 tokens to every session and 1,571 once invoked, about $0.0000 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.