system-audit

system-audit is a command for Claude Code from komunite/kalfa. It costs 14 tokens per session (1,013 once invoked), scanned A, original, MIT.

A deep audit of a project’s operating setup, including agents, commands, hooks, settings, and memory files. An audit is a systematic check for missing, invalid, or broken parts.

In plain words
What is it for?
Use it for monthly reviews or after large system changes to check the health of agents, commands, hooks, scripts, and project memory.
Why use it?
It finds configuration errors, missing scripts, broken references, incomplete files, and other problems after major changes.

Command for Claude Code

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/komunite/kalfa/system-audit
Clone the repo
git clone --depth 1 https://github.com/komunite/kalfa

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/komunite/kalfa/system-audit.svg)](https://agentmods.dev/commands/komunite/kalfa/system-audit)
Your own site
<a href="https://agentmods.dev/commands/komunite/kalfa/system-audit"><img src="https://agentmods.dev/badge/commands/komunite/kalfa/system-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 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,013 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.00014 $0.01013
Opus 5 $0.00007 $0.00507
Sonnet 5 $0.00003 $0.00203
Haiku 4.5 $0.00001 $0.00101

Measured 4d ago against content hash 205ae8cf6b46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

system-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 4d 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/system-audit.md · 93 lines

How it starts

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

Kapsamlı altyapı denetimi. Aylık veya büyük sistem değişikliklerinden sonra çalıştırın.

Kontroller

Kontrol 1: Agent Sağlığı

  • .claude/agents/*.md içindeki her dosyayı oku
  • Her birinin geçerli frontmatter'a (---) sahip olduğunu doğrula
  • TBD/TODO işaretçisi olmadığını doğrula
  • Referans verilen araçların var olduğunu kontrol et
  • İhtiyaç duyan agent'lar için agent-memory dizinlerinin var olduğunu kontrol et

Kontrol 2: Komut Sağlığı

  • .claude/commands/*.md içindeki her dosyayı oku
  • Her birinin geçerli frontmatter'a sahip olduğunu doğrula
  • allowed-tools'ların makul olduğunu kontrol et
  • Diğer komutlara kırık çapraz referans olmadığını doğrula

Kontrol 3: Hook Sağlığı

  • .claude/settings.json'ın geçerli JSON olduğunu doğrula
  • settings.json'da referans verilen her hook betiğinin var olduğunu kontrol et
  • Tüm hook betiklerinin çalıştırılabilir olduğunu doğrula (chmod +x)
  • Kuru test çalıştır: her hook boş girişle 0 çıkış kodu vermeli

Kontrol 4: Hafıza Katmanı Sağlığı

  • memory.md: 100 satırın altında mı? "Şimdi" güncel mi?
  • knowledge-base.md: 200 satırın altında mı? Tüm girdilerin [Source:]'u var mı?
  • knowledge-nominations.md: Eski adaylıklar var mı (>30 gün)?
  • agent-memory/: Dizinler mevcut agent'larla eşleşiyor mu?
  • Günlük Notlar: Son notlar mevcut mu?

Kontrol 5: Günlük Sağlığı

  • audit-trail.md: 5000 satırın altında mı?
  • incident-log.md: Çözülmemiş CRITICAL/HIGH olaylar var mı?
  • failure-log.md: Tekrarlayan kalıplar var mı?
  • verdicts.jsonl: Engelleme oranı ne? Görev türü kümelenmesi var mı?

Kontrol 6: İzin ve Config Tutarlılığı

  • .claude/settings.json hook'ları gerçek hook dosyalarıyla eşleşiyor
  • Sahipsiz hook betikleri yok (var ama referans verilmemiş)
  • Eksik hook betikleri yok (referans verilmiş ama yok)

Kontrol 7: Dosyalar Arası Tutarlılık

  • CLAUDE.md referansları gerçek dosya konumlarıyla eşleşiyor
  • Command-index.md gerçek komutlarla eşleşiyor
  • Komutlar arasında döngüsel bağımlılık yok

Kontrol 8: Yedekleme ve Depolama

  • .claude/backups/: Otomatik budama çalışıyor mu? (>7 gün eski dizin yok)
  • Proje kökünde olmaması gereken büyük dosyalar var mı?

Read the full file on GitHub · 93 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. 4d ago First seen · 93 lines · 14 tokens per session scan A 205ae8cf6b46

Subscribe to this mod's changes

system-audit is a command published in the GitHub repository komunite/kalfa (244 stars, last pushed 4mo ago), licensed MIT. It adds 14 tokens to every session and 1,013 once invoked, about $0.0001 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-08-30.