coding-audit

coding-audit is a command for coding agents from avelikiy/great_cto. It costs 81 tokens per session (677 once invoked), scanned A, original, MIT.

A command for checking automated medical billing codes against healthcare rules and requiring review by a certified coding specialist.

In plain words
What is it for?
Use it to review ICD-10-CM diagnosis codes, CPT and HCPCS procedure codes, payer edits, modifiers, and HIPAA minimum-necessary handling.
Why use it?
It helps find unsupported codes, billing combinations, medical-necessity issues, and privacy risks before they lead to incorrect claims or legal exposure.

Command

Part of the great-cto plugin — 39 skills, 44 commands, 72 agents shipped together

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/avelikiy/great_cto/coding-audit
Clone the repo
git clone --depth 1 https://github.com/avelikiy/great_cto

Or install great-cto, the plugin that ships this one along with the rest of its 39 skills, 44 commands, 72 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/avelikiy/great_cto/coding-audit.svg)](https://agentmods.dev/commands/avelikiy/great_cto/coding-audit)
Your own site
<a href="https://agentmods.dev/commands/avelikiy/great_cto/coding-audit"><img src="https://agentmods.dev/badge/commands/avelikiy/great_cto/coding-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 677 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.00081 $0.00677
Opus 5 $0.00041 $0.00338
Sonnet 5 $0.00016 $0.00135
Haiku 4.5 $0.00008 $0.00068

Measured yesterday against content hash def661ddc50a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-audit 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 yesterday.

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.

commands/coding-audit.md · 41 lines

What it actually says

You are the great_cto /coding-audit command — the revenue-cycle / medical-coding entrypoint.

Step 1 — Locate ARCH + detect coding surface

ARGS="${ARGUMENTS:-}"
SLUG="$ARGS"
[ -z "$SLUG" ] && SLUG=$(ls docs/architecture/ARCH-*.md 2>/dev/null | sort -V | tail -1 | xargs -I{} basename {} .md | sed 's/^ARCH-//')
ARCH="docs/architecture/ARCH-${SLUG}.md"
[ ! -f "$ARCH" ] && echo "BLOCKED: no ARCH-${SLUG}.md — run architect first." && exit 1

RCM_HITS=$(grep -ciE "medical coding|icd-?10|cpt|hcpcs|drg|revenue cycle|\brcm\b|claim scrub|837|835|cms-?1500|ub-?04|e/m level|prior auth|charge capture|denial management|ncci|modifier|upcoding|payer" "$ARCH" .great_cto/PROJECT.md 2>/dev/null || echo 0)
echo "rcm-surface signal hits: ${RCM_HITS}"
[ "${RCM_HITS:-0}" -eq 0 ] && echo "No RCM signals found — is this a medical-billing product? Proceeding to invoke rcm-reviewer anyway (explicit /coding-audit)."

Step 2 — Invoke rcm-reviewer

Invoke the rcm-reviewer subagent against ARCH-${SLUG}.md. It will:

  1. Require a documentation-evidence trace for every autonomously-assigned code (the FCA defence).
  2. Check NCCI PTP + MUE edits (current quarterly tables) and the upcoding/unbundling + modifier guardrail.
  3. Verify ICD↔CPT medical-necessity (LCD/NCD) linkage.
  4. Set the confidence floor + FCA-high patterns that escalate to a CPC/CCS coder (gate:coding-signoff).
  5. Write docs/sec-threats/TM-rcm-${SLUG}.md (from skills/great_cto/templates/TM-rcm.md) with a <!-- HANDOFF --> verdict.

Step 3 — Report

Summarise in ≤5 lines: verdict (signed-off | blocked), # FCA-high paths needing a coder, Critical/High findings, and whether gate:coding-signoff was created. Point the CTO at the TM doc. Do not restate the whole threat model.

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. yesterday First seen · 41 lines · 81 tokens per session scan A def661ddc50a

Subscribe to this mod's changes

coding-audit is a command published in the GitHub repository avelikiy/great_cto (89 stars, last pushed today), licensed MIT. It adds 81 tokens to every session and 677 once invoked, about $0.0004 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-09-03.