OKF Lint
okf-lint is a Go-based CLI consumer skill that validates an OKF bundle and gates CI
with its exit code. It is deterministic and read-only — no LLM, no mutation — and
shares its bundle scanner with okf-viz coverage (both call okf-go's ScanBundle).
When to Use
Use this skill to:
- Validate that a bundle conforms to the OKF spec (frontmatter rules, concept
type). - Gate a build/publish step on documentation quality (broken links, enrichment %).
- Catch regressions in CI before a bundle is ingested or shared.
It complements skills-ref validate (which checks a skill's SKILL.md frontmatter):
okf-lint validates the bundle's own concept documents.
How to Use
Lint a bundle
bashokf-lint lint --bundle <path-to-okf-bundle> [flags]
Flags:
--bundle(required): path to the OKF bundle directory.--min <pct>: fail if the enriched percentage is below this threshold (0 = no gate).--max-broken-links <N>: maximum tolerated broken cross-links before failing (default 0).--require-types(default true): fail if any concept is missing a non-emptytype.--strict(default false): also fail when there are orphan (cross-link-less) concepts.--json: emit the full report as JSON instead of the text summary.
Always-enforced spec conformance (independent of flags): the root index.md may
carry only okf_version; subdirectory index.md files must carry no frontmatter;
every concept must have parseable frontmatter. These cause a non-zero exit.
Exit code: 0 when all gates pass, 1 when any gate is violated (with the
reasons printed to stderr) — suitable for a CI gate.
bash# Example CI gate: require 80% enriched, no broken links, no missing types. okf-lint lint --bundle ./catalog --min 80
Inspect the schema (self-description)
bashokf-lint schema
Prints the machine-readable JSON description used by okf-mcp to expose the skill.


