audit

audit is a command for Claude Code from superuser-pal/awesome-second-brain. It costs 0 tokens per session (2,435 once invoked), scanned A, original, MIT.

A command that checks the structure and consistency of an Obsidian vault, a folder of linked Markdown notes, including folders, metadata, links, indexes, and Bases.

In plain words
What is it for?
Use it after major reorganizations or substantial work to audit the vault, fix problems that can be fixed automatically, and flag issues needing your decision.
Why use it?
It finds misplaced notes, broken links, missing metadata, stale content, and inconsistencies that can make a personal knowledge base difficult to use.

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/superuser-pal/awesome-second-brain/audit
Clone the repo
git clone --depth 1 https://github.com/superuser-pal/awesome-second-brain

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/superuser-pal/awesome-second-brain/audit.svg)](https://agentmods.dev/commands/superuser-pal/awesome-second-brain/audit)
Your own site
<a href="https://agentmods.dev/commands/superuser-pal/awesome-second-brain/audit"><img src="https://agentmods.dev/badge/commands/superuser-pal/awesome-second-brain/audit.svg" alt="Measured on agentmods" 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 2,435 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.00000 $0.02435
Opus 5 $0.00000 $0.01218
Sonnet 5 $0.00000 $0.00487
Haiku 4.5 $0.00000 $0.00244

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

Security

Grade A, and why

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/core/audit.md · 232 lines

How it starts

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

Vault Audit

Deep structural audit of the vault. Checks indexes, folder placement, frontmatter, links, Bases, and consistency. Fix what can be fixed, flag what needs user input.

When to use: After substantial sessions, after reorganization, or periodically to maintain vault health. For lighter end-of-session checks, use /close-day instead.

Usage

/audit

Subagents

This command orchestrates two subagents for deep analysis:

  • vault-librarian — orphan detection, broken links, frontmatter validation, stale notes, index consistency
  • cross-linker — finds missing wikilinks, orphan notes, broken backlinks

Launch vault-librarian first for the structural audit, then cross-linker for link quality.

Workflow

1. Check Folder Structure

Verify the vault matches the expected layout:

  • dashboards/HOME.md exists
  • bases/ contains all .base files (none scattered elsewhere)
  • work/01_PROJECTS/ contains only notes with status: active
  • work/07_ARCHIVE/2025/ and work/07_ARCHIVE/2026/ contain only status: completed notes
  • work/03_INCIDENTS/ contains only notes tagged incident
  • work/02_1-1/ contains only 1:1 meeting notes
  • work/06_ORG/PEOPLE.md has a ## [Name] section for each known person
  • work/06_ORG/TEAMS.md has a ## [Name] section for each known team
  • templates/ contains only template files (with {{placeholders}})
  • thinking/ is clean (no leftover drafts that should have been promoted)
  • Nothing unexpected at vault root (allowed: CLAUDE.md, vault-manifest.json, CHANGELOG.md, CONTRIBUTING.md, README.md, LICENSE, .gitignore — no user notes; Home.md lives in dashboards/)

2. Check Indexes

Read and verify each index file:

  • dashboards/HOME.md — do embedded Base views reference existing Bases? Are quick links valid?
  • work/INDEX.md — are active projects still active? Are completed items in the right section? Any missing notes?
  • brain/MEMORIES.md — is the "Recent Context" section current? Any stale claims?
  • work/06_ORG/PEOPLE.md — are roles and project assignments current?
  • work/05_REVIEW/WINS.md — do PR counts and project descriptions match reality?
  • brain/SKILLS.md — are all slash commands registered? Workflows still valid?

Read the full file on GitHub · 232 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 · 232 lines · 0 tokens per session scan A dcb4fb8456bb

Subscribe to this mod's changes

audit is a command published in the GitHub repository superuser-pal/awesome-second-brain (14 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,435 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.

Related

Other commands, from other repositories

canvas

AI-orchestrated visual canvas production — create, populate, layout, present, generate, and export Obsidian canvases.

AgriciDaniel/claude-canvas · 25 tokens

ingest

Ingest a source (URL/file/text) into Raw Sources + compile 1015 Wiki pages, with mandatory user-purpose gate and mothership cross-linking.

johnfkoo951/cmds-llm-wiki · 33 tokens

audit

Audit the whole Wiki vault against 3 knowledge-integrity criteria — eligibility coverage, MOC-cluster consistency, confidence calibration. Produces a vault health report and queues high-priority pages for /verify.

johnfkoo951/cmds-llm-wiki · 41 tokens

verify

Verify a single Wiki page against 3 knowledge-integrity criteria — eligibility, consistency, confirmability. Writes verificationStatus back to the page; flags conflicts as disputed rather than deleting them.

johnfkoo951/cmds-llm-wiki · 37 tokens

lint

Run comprehensive wiki health check — orphans, broken links, contradictions, stale pages, index sync, MOC coverage, v2/v4/v5 frontmatter coverage, Core Context freshness, and cross-vault link integrity (mainVaultRelated/mainVaultCmds).

johnfkoo951/cmds-llm-wiki · 53 tokens

onboard

Interview-based first-run setup for this LLM Wiki kit. Asks the essential questions (vault location/name, Mode A/B, mothership path, Core Context identity + reuse axes), then fills every placeholder and writes Core Context so the wiki knows you from day one. Activate when the user says "온보딩해줘", "처음 시작할게", "처음 시작"…

johnfkoo951/cmds-llm-wiki · 139 tokens