OpenELIS-Global-2: Command for Claude Code

.specify/oe/commands/audit-branch.md

audit-branch is a command for Claude Code from DIGI-UW/OpenELIS-Global-2. It costs 0 tokens per session (4,359 once invoked), scanned A, original, MPL-2.0.

A branch review command that examines the difference between your current Git branch and its pull-request target, such as another development branch.

In plain words
What is it for?
Checking added code for debug leftovers, placeholder code, leaked task notes, verbose comments, and project-rule violations, with optional deeper analysis and fixes.
Why use it?
It finds code-quality problems and traces of assisted development that ordinary linters may miss before review.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is DIGI-UW/OpenELIS-Global-2's own configuration. It tells Claude Code how to work on OpenELIS-Global-2 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 OpenELIS-Global-2 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to DIGI-UW/OpenELIS-Global-2. 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/DIGI-UW/OpenELIS-Global-2/develop/.specify/oe/commands/audit-branch.md
Clone the repo
git clone --depth 1 https://github.com/DIGI-UW/OpenELIS-Global-2

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 audit-branch

README.md
[![agentmods](https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/audit-branch/github.svg)](https://agentmods.dev/commands/digi-uw/openelis-global-2/audit-branch)
Your own site
<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/audit-branch"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/audit-branch/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 audit-branch

Your own site · 80×15
<a href="https://agentmods.dev/commands/digi-uw/openelis-global-2/audit-branch"><img src="https://agentmods.dev/badge/commands/digi-uw/openelis-global-2/audit-branch.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 4,359 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.04359
Opus 5 $0.00000 $0.02180
Sonnet 5 $0.00000 $0.00872
Haiku 4.5 $0.00000 $0.00436

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

Security

Grade A, and why

audit-branch 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 10d 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.

.specify/oe/commands/audit-branch.md · 304 lines

How it starts

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

Audit Branch

When the user invokes /audit-branch (optionally with arguments), perform a tiered audit of the current branch diff against its PR target (or develop), identifying LLM-assisted development artifacts, code quality issues, and constitution violations.

This command produces a structured report with findings grouped by severity and detection tier. It is designed to run before PR submission to catch patterns that traditional linters miss — verbose comments, debug remnants, placeholder code, leaked task references, and architectural violations.

Key capabilities:

  • Tier 1 (Mechanical): Regex-based pattern matching against added lines in the diff — fast, tuned for low false positives; findings still require quick human review
  • Tier 2 (Heuristic): Structural analysis requiring context — comment-to-code adjacency, import usage, scope relevance
  • Tier 3 (Semantic): LLM reasoning over diff chunks with constitution rules as context — deepest analysis, opt-in via --deep
  • Auto-fix: Optional per-category fix for mechanical (Tier 1) findings with user confirmation
  • CI-ready: Exit codes and severity thresholds for pipeline integration

User Input

$ARGUMENTS

Interpret arguments best-effort. Support these patterns:

  • /audit-branch → Full Tier 1+2 audit of current branch vs PR target
  • /audit-branch --deep → Include Tier 3 semantic analysis
  • /audit-branch --tier 1 → Mechanical scan only (fastest)
  • /audit-branch --fix → After report, offer to auto-fix Tier 1 findings
  • /audit-branch --threshold {CRITICAL|HIGH|MEDIUM|LOW} → Set minimum severity for exit code failure (default: HIGH)
  • /audit-branch --since <ref> → Audit only changes since a specific ref (narrows diff scope, but full-branch is recommended)

Flags can be combined: /audit-branch --deep --fix --threshold MEDIUM

If any inputs are unclear, ask a single concise question and continue with safe defaults.

Safety Rules (non-negotiable)

Read the full file on GitHub · 304 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. 10d ago First seen · 304 lines · 0 tokens per session scan A 10f2426e7305

Subscribe to this mod's changes

audit-branch is a command published in the GitHub repository DIGI-UW/OpenELIS-Global-2 (251 stars, last pushed yesterday), licensed MPL-2.0. It costs nothing until one of its globs matches a file; then it loads 4,359 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-08-30.