moradin-audit

moradin-audit is a skill for Claude Code, Codex from CloseTheLoops/moradin. It costs 27 tokens per session (423 once invoked), scanned A, original, MIT.

A health check for a Moradin knowledge store that finds missing metadata, unknown topic labels, unlinked files, and files that have not been updated recently.

In plain words
What is it for?
Use it weekly or before publishing to run an audit, group issues by file and severity, and propose specific fixes for metadata, indexes, tags, and outdated material.
Why use it?
It makes problems in the stored guidance visible before they cause confusion or become harder to maintain. It reports and suggests fixes without applying them automatically.

Skill for Claude CodeCodex

Part of the moradin plugin — 14 skills 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 skills/closetheloops/moradin/audit
Any agent
npx skills add CloseTheLoops/moradin --skill audit
Clone the repo
git clone --depth 1 https://github.com/CloseTheLoops/moradin

Made for: Claude Code, Codex.

Or install moradin, the plugin that ships this one along with the rest of its 14 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/closetheloops/moradin/audit.svg)](https://agentmods.dev/skills/closetheloops/moradin/audit)
Your own site
<a href="https://agentmods.dev/skills/closetheloops/moradin/audit"><img src="https://agentmods.dev/badge/skills/closetheloops/moradin/audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 423 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.00027 $0.00423
Opus 5 $0.00014 $0.00211
Sonnet 5 $0.00005 $0.00085
Haiku 4.5 $0.00003 $0.00042

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

Security

Grade A, and why

moradin-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.

skills/audit/SKILL.md · 50 lines

What it actually says

moradin:audit

Run a health check on Moradin's memory and report issues.

When invoked

/moradin:audit

Typically run weekly, or before a publish, or when something feels off.

What you do

  1. Run the audit script:

    python scripts/audit.py --format json
    
  2. Categorize issues by severity (error/warn/info):

    • ERROR: missing required frontmatter fields
    • WARN: unknown topic tags, orphan files (not in _INDEX)
    • INFO: stale files (unchanged > 180 days)
  3. Group issues by file and by type.

  4. For each issue, propose a concrete fix. Don't just report — recommend action:

    • Missing applies_to field → "Add applies_to: [universal] to frontmatter"
    • Unknown topic cargo → "Either rename to one of [harness, memory, ...] or justify adding cargo to taxonomy"
    • Orphan file → "Run python scripts/refresh_indexes.py to relink"
    • Stale file → "Decide: still applies? Add last_verified: <today> to keep, or mark superseded_by: <new> to retire"
  5. Don't auto-fix. Audit reports + proposes. Operator approves each fix.

  6. Summary report: count by severity, top 3 files needing attention.

Output

  • A human-readable report with concrete fix proposals
  • Operator-approved fixes get applied one by one (Edit, refresh_indexes.py)

Don't

  • Don't auto-delete stale files. Stale ≠ wrong — operator decides.
  • Don't add superseded_by markers without operator approval.
  • Don't reformat all frontmatter at once — touch only files with reported issues.
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 · 50 lines · 27 tokens per session scan A ae28c96a656f

Subscribe to this mod's changes

moradin-audit is a skill published in the GitHub repository CloseTheLoops/moradin (2 stars, last pushed 25d ago), licensed MIT. It adds 27 tokens to every session and 423 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-31.

Related

Other skills, from other repositories

llm-wiki-company-flow-audit

Map company/team information flows into an LLM-Wiki adoption plan. Use when the user asks where team knowledge lives, which streams can be automated, how Confluence/Jira/Slack/Drive changes stay synced, how fragile review is, how confidential data is handled, or whether maintenance cost is worth the benefit.

po4yka/llm-wiki-skills · 72 tokens

llm-wiki-capture-pipeline

Design cross-channel capture architecture and named connector runbooks for LLM-Wiki. Use when the user wants an inbox/raw topology, metadata contract, dedupe boundary, triage handoff, privacy defaults, capture-to-ingestion flow, or Telegram/email/Slack/PDF/GitHub/voice connector rules.

po4yka/llm-wiki-skills · 71 tokens

llm-wiki-orient

Explain the LLM-Wiki pattern, its raw/wiki/schema architecture, how it differs from RAG, GraphRAG and agent memory, and what ready-made solution families exist. Use when the user asks what LLM-Wiki is, whether it is worth adopting, what OpenWiki/wiki memory means, or how the ecosystem fits together.

po4yka/llm-wiki-skills · 75 tokens

llm-wiki-zero-to-working-wiki

Create a first useful LLM-Wiki from zero. Use when the user wants a zero-to-working-wiki walkthrough, first vault, first source ingest, first reusable query, first lint report, or a visible demo loop before a larger rollout; route full workflow installs to llm-wiki-setup.

po4yka/llm-wiki-skills · 71 tokens

wiki-lint

Run structural and trust health checks for an LLM-Wiki vault. Use for broken links, orphan pages, missing provenance, stale claims, contradiction reports, taxonomy drift, protected-section edits, and review queue generation.

po4yka/llm-wiki-skills · 47 tokens

llm-wiki-agent-memory-bridge

Decide what belongs in LLM-Wiki versus agent memory, AGENTS.md, CLAUDE.md, Auto Memory, Codex project memory, or other runtime memories. Use when instruction files are bloated, domain facts live in agent memory, or the user wants clean memory boundaries.

po4yka/llm-wiki-skills · 67 tokens