outl: Command for Claude Code

.claude/commands/check.md

check is a command for Claude Code from outlmd/outl. It costs 31 tokens per session (523 once invoked), scanned A, original, MIT.

A Rust workspace verification checklist that runs formatting, lint checks, tests, and documentation builds.

In plain words
What is it for?
Run it to validate the entire workspace and report the first failure without automatically changing code.
Why use it?
It catches style problems, compiler warnings, broken tests, and documentation errors before work is reported as complete.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Reuse

Borrowing it

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

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 check

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/outlmd/outl/check"><img src="https://agentmods.dev/badge/commands/outlmd/outl/check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 523 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.00031 $0.00523
Opus 5.5 $0.00012 $0.00209
Sonnet 5.5 $0.00006 $0.00105
Haiku 4.5 $0.00003 $0.00052

Measured 1mo ago against content hash db69979b1fe3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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/check.md · 38 lines

What it actually says

Run in sequence and report the result of each step:

  1. cargo fmt --all -- --check — formatting
  2. cargo clippy --workspace --all-targets -- -D warnings — lints
  3. cargo test --workspace --all-targets — tests
  4. RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps — docs (CI runs this; breaks on intra-doc links to private items, e.g. [`Foo`] where Foo is pub(crate). Drop the brackets: `Foo`.)
  5. bun run test — vitest across every package declaring the script (@outl/shared, outl-desktop, outl-mobile)
  6. bun run typecheck — tsc --noEmit across every package declaring it, which is those three plus the examples/* plugins (14 today)

Steps 5 and 6 are not optional extras: roughly a third of every GUI client is TypeScript, and several Rust invariants are enforced only on the TS side. shortcuts.support.test.ts is the desktop half of invariant 12 (a catalog that promises a chord no handler implements), and the theme suites are the client half of invariant 13. Reporting "done" on a Rust-only run leaves those unverified.

Both are fast — the full vitest fan-out is ~4s — so there is no reason to skip them. If bun is missing, say so explicitly rather than silently reporting a Rust-only pass as a full one.

If any step fails, stop and show the exact output. Do not attempt to fix automatically — only report.

Output format:

fmt:        PASS | FAIL (N files)
clippy:     PASS | FAIL (N warnings)
test:       PASS | FAIL (N failures)
doc:        PASS | FAIL (N warnings)
vitest:     PASS | FAIL (N failures)
typecheck:  PASS | FAIL (N errors)

[failure details, if any]
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. 1mo ago Changed · +11 lines · +12 tokens per session db69979b1fe3
  2. 1mo ago First seen · 27 lines · 19 tokens per session scan A 811040f2c227

Subscribe to this mod's changes

check is a command published in the GitHub repository outlmd/outl (222 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 523 once invoked, about $0.0001 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-09-01.