/claude-mods:okf-opsfrom claude-mods
Assesses, validates, and helps adopt the Open Knowledge Format (OKF) for markdown+frontmatter knowledge bases. Includes a readiness scanner and conformance validator.
Ships in claude-mods. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The Open Knowledge Format (OKF) is a minimal, open convention for representing knowledge as a directory tree of markdown files with YAML frontmatter — the metadata and curated context that surrounds data and systems. This skill helps you assess whether a repo is a good fit, validate a bundle for conformance, and adopt OKF where it earns its keep.
Full format rules: references/okf-spec.md. Copy-ready concept doc: assets/concept-template.md.
OKF is a v0.1 draft (Google-published, platform-agnostic). It's deliberately
minimal: one required frontmatter field (type), reserved index.md/log.md, and a
permissive-consumption contract. Two consequences worth knowing up front:
type-derivation pass from
conformant. A repo of bare prose markdown needs frontmatter authored on every file —
often not worth it, and arguably the wrong files to make "concepts."The tools here are useful regardless of OKF's trajectory — assess-okf.py is a
general "how frontmatter-consistent is this doc tree?" scanner.
python scripts/assess-okf.py docs/ # human summary
python scripts/assess-okf.py --json docs/ | jq '.data.readiness_pct'
Reports total .md, how many already carry frontmatter, how many have a non-empty
type, a histogram of existing frontmatter keys (shows what vocabulary you already
have to derive type from), type-value distribution, reserved files present, files
that would need a type, and an overall readiness %. Never writes.
Read the histogram, not just the %. A repo at "0% readiness" with rich consistent
keys (e.g. every file has title/level/tags) is a cheap migration — you derive
type from an existing key. A repo at "0%" with mostly empty frontmatter is expensive.
To find candidates across many repos, run assess on each and compare.
type, fix any malformed files, done.python scripts/check-okf.py ./bundle # exit 0 conformant, 10 if not
python scripts/check-okf.py --json ./bundle | jq '.data[] | select(.severity=="error")'
python scripts/check-okf.py --strict ./bundle # soft warnings also fail
Enforces only the hard rules (every non-reserved .md has parseable frontmatter with a
non-empty type; reserved files get light sanity). Per OKF's permissive-consumption
rule, broken links and missing optional fields are INFO, never failures (unless
--strict). Wire check-okf.py --strict as a CI gate (exit 10 fails the build) once a
repo has adopted OKF.
Both scripts follow the Skill Resource Protocol: stdout is data-only (--json emits a
{"data":…,"meta":{"schema":…}} envelope), framing/progress to stderr, --help with
examples, semantic exit codes. Stdlib-only; PyYAML used if present, else a built-in
frontmatter parser (announced on stderr).
| Script | Role | Exit codes |
|---|---|---|
scripts/assess-okf.py | Read-only readiness scan of a doc tree | 0 scanned, 2 usage, 3 not-found |
scripts/check-okf.py | Conformance validator for a bundle | 0 conformant, 10 non-conformant, 4 unparseable frontmatter, 3 not-found, 2 usage |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
okf, open-knowledge-format, knowledge-base, frontmatter, validation, assessment
npx claudepluginhub 0xdarkmatter/claude-mods --plugin claude-mods116 skills in this plugin
/a11y-opsWeb accessibility end to end: WCAG 2.2 AA, EAA and ADA Title II obligations, audits (axe, pa11y, keyboard, screen reader), the common failures, accessibility statements, and server-rendered Craft CMS/Twig sites (Formie, CKEditor, multi-site lang). Use when asked about a11y, WCAG, EAA, EN 301 549, Section 508, VPAT, NVDA/VoiceOver, focus, skip links, ARIA, landmarks, alt text, form labels or errors, contrast, target size, or 'is my site accessible'./adr-opsAuthor, index, and lint Architecture Decision Records — append-only memory that recovers the WHY behind a system's shape. Triggers on: adr, architecture decision record, decision log, record this decision, supersede an adr, why was this decided, adr template, next adr number./api-design-opsOther plugins' skills for the same job