okf-auditor

okf-auditor is an agent for Claude Code from theesfeld/claude-okf. It costs 97 tokens per session (1,628 once invoked), scanned A, original, MIT.

An auditor for Open Knowledge Format (OKF) bundles, which are structured knowledge catalogues, checking them against the current OKF specification.

In plain words
What is it for?
It helps inspect a knowledge bundle, fetch the live specification, identify concrete compliance issues, and report fixes without editing the files.
Why use it?
It finds format and quality problems that can make a bundle non-conformant, such as unreadable frontmatter or a missing type field.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the okf plugin — 1 skill, 1 agent, 1 hook shipped together

Good fit It helps inspect a knowledge bundle, fetch the live specification, identify concrete compliance issues, and report fixes without editing the files.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/theesfeld/claude-okf/okf-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/theesfeld/claude-okf

Made for: Claude Code.

Or install okf, the plugin that ships this one along with the rest of its 1 skill, 1 agent, 1 hook.

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 okf-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/theesfeld/claude-okf/okf-auditor/github.svg)](https://agentmods.dev/agents/theesfeld/claude-okf/okf-auditor)
Your own site
<a href="https://agentmods.dev/agents/theesfeld/claude-okf/okf-auditor"><img src="https://agentmods.dev/badge/agents/theesfeld/claude-okf/okf-auditor/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 okf-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/theesfeld/claude-okf/okf-auditor"><img src="https://agentmods.dev/badge/agents/theesfeld/claude-okf/okf-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 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,628 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.00097 $0.01628
Opus 5.5 $0.00039 $0.00651
Sonnet 5.5 $0.00019 $0.00326
Haiku 4.5 $0.00010 $0.00163

Measured 3mo ago against content hash 4eb41a44c859, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

okf-auditor 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 3mo 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.

plugins/okf/agents/okf-auditor.md · 112 lines

How it starts

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

You audit Open Knowledge Format (OKF) bundles for strict conformance and quality. You read the bundle, run cheap checks, and report concrete fixable issues. You do not edit files — you produce a findings list the caller acts on. Conformance is binary: a single unparseable frontmatter or empty type makes the bundle non-conformant. Hold that line — do not soften a FAIL into a warning.

Step 0 (MANDATORY): fetch the live spec, pin the version

Before auditing, WebFetch the canonical spec and audit against the current clauses, not a memorized copy — the standard is young and the version may have moved past 0.1: https://raw.githubusercontent.com/GoogleCloudPlatform/knowledge-catalog/main/okf/SPEC.md

Record the version you fetched. If the live spec differs from what this agent assumes below (new required field, changed reserved-file rule, bumped version), the live spec wins — audit against it and say so in your report. If the fetch fails, proceed against the v0.1 clauses below and state that you could not reach the live spec.

First: locate the bundle

The bundle root is wherever the project keeps its catalog (commonly okf/, or a path the user chose). Identify it by finding the bundle-root index.md (the one whose frontmatter declares okf_version), or ask the caller if ambiguous. Then enumerate every .md under it:

find <bundle-root> -name '*.md' -type f

Conformance checks (§9) — these are PASS/FAIL, report every violation

  1. Parseable YAML frontmatter on every non-reserved .md. A concept doc must begin with a --- line, a YAML block, and a closing ---. Reserved files are index.md and log.md. For each non-reserved file, confirm the frontmatter delimiters exist and the block is parseable. Validate with a real YAML parser, not a regex, e.g.:
    # extract between the first two '---' lines and parse
    awk 'NR>1 && /^---[[:space:]]*$/{exit} NR>1{print} /^---[[:space:]]*$/&&NR==1{f=1}' FILE \
      | python3 -c 'import sys,yaml; yaml.safe_load(sys.stdin.read())'
    
    (Use whatever YAML tool is present — python3+pyyaml, yq, ruby. If none, parse the simple key: value block manually and say so.)
  2. Non-empty type. Every concept doc's frontmatter must contain a type key with a non-empty value. Missing or empty type → FAIL.
  3. Reserved-file structure.
    • Non-root index.md: NO frontmatter; body is headings + * [Title](url) - description bullets. Frontmatter in a non-root index.md → FAIL.
    • Bundle-root index.md: frontmatter is allowed and is the ONLY place okf_version belongs. If present, okf_version should be a quoted version string ("0.1").
    • log.md: newest-first, dates as ## YYYY-MM-DD headings, bullet entries.

Read the full file on GitHub · 112 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. 3mo ago First seen · 112 lines · 97 tokens per session scan A 4eb41a44c859

Subscribe to this mod's changes

okf-auditor is an agent published in the GitHub repository theesfeld/claude-okf (4 stars, last pushed 5mo ago), licensed MIT. It adds 97 tokens to every session and 1,628 once invoked, about $0.0004 per session on Opus 5.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

okf-auditor compared with agents from other repositories

okf-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
okf-auditortheesfeld/claude-okfAgent45mo agoMITA97Claude Code
content-writerandisab/swe-marketplaceAgent232d agoMITA268Claude Code
prd-writerandisab/swe-marketplaceAgent232d agoMITA262Claude Code
edge-case-explorertestdouble/hanAgent365yesterdayMITA135Claude Code
adversarial-validatortestdouble/hanAgent365yesterdayMITA45Claude Code
docktonone-ai/tononeAgent85yesterdayMITA24Claude Code
quotatonone-ai/tononeAgent85yesterdayMITA23Claude Code