Validate
Check that an Open Knowledge Format (OKF) bundle is conformant with the v0.2 spec (§11). Use when asked to validate, lint, or check an OKF bundle, or before committing changes to one. Runs a deterministic Python checker — not an eyeball pass. Also migrates a v0.1 bundle to v0.2 in place with `--migrate`.From its SKILL.md
npx -y skills add scaccogatto/okf-skills --skill validateAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
3.1 KB, as published. Nobody here has run it
Validate an OKF bundle
Run the deterministic conformance checker against the target bundle. Default to
the project's .okf/ directory when no path is given.
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_validate.py" $ARGUMENTS
If uv is unavailable, fall back to:
python3 -m pip install --quiet pyyaml && \
python3 "${CLAUDE_SKILL_DIR}/scripts/okf_validate.py" $ARGUMENTS
${CLAUDE_SKILL_DIR} resolves whether this skill runs as part of the okf
plugin or is installed standalone (e.g. via npx skills add), so the checker is
always found alongside the skill.
Interpret the result:
- ERROR → a hard §11 conformance failure (no parseable frontmatter, or a
missing/empty
type). The bundle is non-conformant. Fix every one. - warn → soft guidance (missing recommended field, non-ISO log date, broken cross-link, a malformed v0.2 family, a footnote naming no source, an actor that misses the §7 shapes, a computation path that resolves nowhere). Never blocks; broken links in particular are explicitly tolerated by the spec (§6.1). Fix when cheap.
One warning is worth more than the others: a §7 near-miss such as Human:dana
or human/dana. §5.3 keys trust tiers off the exact lowercase human: prefix,
so the concept silently reads as machine-confirmed when a person did review it.
Fix that one on sight.
v0.1 bundles validate too: a legacy timestamp or # Citations section is
reported as a warning naming its v0.2 replacement (generated.at, sources),
never as an error (§13.1). Under --strict those warnings do fail the run —
that is the migration nudge, and --migrate is the door.
Migrating a v0.1 bundle
--migrate rewrites the bundle in place before validating — the one mode of
this skill that is not read-only, so say what it will touch before running it on
a bundle the user has not asked to migrate. It is textual (comments, key order
and quoting survive) and idempotent.
uv run "${CLAUDE_SKILL_DIR}/scripts/okf_validate.py" .okf --migrate --strict
It hoists timestamp to generated: { by: process:okf-migrate, at }, lifts a
# Citations list into sources, and bumps okf_version. Two limits worth
repeating to the user: generated.by cannot be recovered for pre-v0.2 content
(hence the process: actor — the concept stays correctly unverified under
§5.3), and per-claim [^id] attribution was never encoded in v0.1, so only the
source list moves up.
Exit codes
Non-zero if any error is present, or if warnings exceed the gate:
--strict allows none, --max-warnings N allows N, the default allows any.
Add --json for machine-readable output (useful in CI).
What ships with it: 1 file
24.7 KB alongside SKILL.md, 1 of them executable
scripts/
- okf_validate.pyruns24.7 KB
Gives 0 of the 12 instructions most quality gates skills give
Counted across 1,524 of the 2,830 authors here whose files we hold, read 2026-09-06
- Read full output and check exit codein 45 of 1524, across 40 files
- Verify output confirms the claimin 44 of 1524, across 39 files
- Identify the command that proves the claimin 43 of 1524, across 39 files
- Execute the full verification commandin 36 of 1524, across 30 files
- Produce a verification reportin 34 of 1524, across 18 files
- Review git diff changesin 30 of 1524, across 16 files
- Fix build failures immediatelyin 29 of 1524, across 9 files
- Group findings by severityin 28 of 1524
- State claim only with evidencein 27 of 1524, across 22 files
- Verify regression tests with red-green cyclein 26 of 1524, across 22 files
- Run the full test suitein 26 of 1524, across 25 files
- Run test suite with coveragein 25 of 1524, across 10 files
Said here and by no other author read
- Run the conformance checker against the target bundle
- Default to the .okf directory if no path is provided
- Fix all hard conformance errors
- Fix human prefix warnings on sight
- Fix soft warnings when cheap
- State changes before running with migrate
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.