champion-critical-file-hold

champion-critical-file-hold is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (6,625 once invoked), scanned A, original, MIT.

A safety step for a pull request, which is a proposed code change awaiting review, that places or removes a durable hold based on whether critical files were changed. It runs after a specified critical-file check and never merges the pull request.

In plain words
What is it for?
Use it in a pull-request merge process to maintain an operator hold after a critical-file failure and close it only after a passing check.
Why use it?
It prevents a failed critical-file check from disappearing through an ordinary retry and keeps the safety decision visible until the check passes or a later change narrows the diff.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./.loom/scripts/post-comment.sh "$PR_NUMBER" --pr --body "<!-- champion:hold-state head=$HEAD_SHA auth=$HOLD_AUTH -->.

Good fit Use it in a pull-request merge process to maintain an operator hold after a critical-file failure and close it only after a passing check.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools
agentmods
npx agentmods add commands/rjwalters/kicad-tools/champion-critical-file-hold

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 champion-critical-file-hold

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-critical-file-hold/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/champion-critical-file-hold)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/champion-critical-file-hold"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-critical-file-hold/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 champion-critical-file-hold

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/champion-critical-file-hold"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/champion-critical-file-hold.svg" alt="Reviewed on agentmods" width="80" 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 6,625 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.06625
Opus 5.5 $0.00000 $0.02650
Sonnet 5.5 $0.00000 $0.01325
Haiku 4.5 $0.00000 $0.00662

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

Security

Grade A, and why

champion-critical-file-hold 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 21d 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/loom/champion-critical-file-hold.md · 378 lines

How it starts

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

Champion: Critical-File Durable Hold (#6879, #9016)

A sub-step of champion-pr-merge.md → "Safety Criteria" → "critical-files: Critical File Exclusion Check". Read it once that check-loop has run, whatever the verdict: FAIL opens/maintains the hold, PASS alone closes an open episode. It owns one label (loom:blocked + a reason-only park record, #11861) and three markers on one PR; it never merges and never removes loom:pr.

Rationale: .loom/docs/critical-file-hold.md.

The rules

  • A critical-file FAIL is a one-way terminal state, so it gets a durable loom:blocked hold on the merge-risk criterion's pattern — never the "Transient failures" template, nor the merge-risk criterion's sticky-hold machinery (#4742).
  • A FAIL skips Steps 2-3 for this PR in every state, released included — with one exception (#13321): on a merge-queue repo a released PR gets the queue handoff (below), because the operator has no way to finish a queue-mode merge by hand. Elsewhere releasing hands the merge to the operator, never back to Champion. loom:auto-merge-ok does not release it (the merge-risk criterion's override).
  • The operator's release is the label's ABSENCE (#9016): a hand-removed loom:blocked, while this episode is open and the change has not moved, IS the release: Champion never removes it mid-episode (#11861 keeps it on through the Doctor round-trip).
  • The release is scoped to a diff, not a commit id (#9416): this verdict is a pure function of the file list, so the operator decided about that change.

Repo-declared critical paths (#13542)

A repo may add its own critical paths in .loom/config.json → champion.extraCriticalPaths (bash globs on the full path, matched against filename and previous_filename). A hit fails critical-files on any edit and enters this machine like a built-in hit; the hold comment names the matched glob. It is checked before standing_auth_eval, so no standing-authorization class or carve-out can waive it, and it never joins the kept set: the human release below is the only release.

Read the full file on GitHub · 378 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. 21d ago Changed · +6 lines eed1db2c743a
  2. 26d ago Changed · +16 lines 8f3bd6fbcaca
  3. 29d ago Changed · +5 lines 6c90a37710a3
  4. 1mo ago Changed · +55 lines 569dc5ccb396
  5. 1mo ago Changed · +37 lines 70881bccf144
  6. 1mo ago Changed · +16 lines b8fdf8804915
  7. 1mo ago Changed · +24 lines 61afe3430697
  8. 1mo ago Changed · +5 lines 474159957946
  9. 1mo ago Changed 20ec686ed62c
  10. 1mo ago First seen · 214 lines · 0 tokens per session scan A 125778ef749b

Subscribe to this mod's changes

champion-critical-file-hold is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,625 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-09-28.

Related

champion-critical-file-hold compared with commands from other repositories

champion-critical-file-hold next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
champion-critical-file-holdrjwalters/kicad-toolsCommand7715d agoMITA0Claude Code
review-branchdamusix/atomic-claudeCommand117todayMITA35Claude Code
diff-reviewcoco-research/cocoCommand3233d agoApache-2.0A11Claude Code
spec-trace-requirementsrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
refactorRchGrav/claudeboxCommand1.2k2mo agoMITA9Claude Code
initazrtydxb/procoderCommand21223d agoApache-2.0A16Claude Code