okf-lint

okf-lint is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 111 tokens per session (705 once invoked), scanned A, original, Apache-2.0.

A validator for Open Knowledge Format (OKF) bundles, which are folders of structured concept documents. It checks required structure, types, descriptions, and links between concepts.

In plain words
What is it for?
Use it in checks for documentation or publishing pipelines, with optional minimum enrichment and limits for broken links or orphaned concepts.
Why use it?
It catches malformed documentation, missing descriptions, broken references, and other issues before a bundle is shared or used in a build.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it in checks for documentation or publishing pipelines, with optional minimum enrichment and limits for broken links or orphaned concepts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xsavikx/okf-skills/okf-lint
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.

Any agent
npx skills add xSAVIKx/okf-skills --skill okf-lint
Clone the repo
git clone --depth 1 https://github.com/xSAVIKx/okf-skills

Made for: Claude Code, Codex.

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-lint

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-lint"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 705 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00111 $0.00705
Opus 5 $0.00056 $0.00352
Sonnet 5 $0.00022 $0.00141
Haiku 4.5 $0.00011 $0.00071

Measured 11d ago against content hash 34b631e2b4d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

okf-lint 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 11d 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/okf-lint/SKILL.md · 63 lines

What it actually says

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:

  1. Validate that a bundle conforms to the OKF spec (frontmatter rules, concept type).
  2. Gate a build/publish step on documentation quality (broken links, enrichment %).
  3. 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

okf-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-empty type.
  • --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.

# Example CI gate: require 80% enriched, no broken links, no missing types.
okf-lint lint --bundle ./catalog --min 80

Inspect the schema (self-description)

okf-lint schema

Prints the machine-readable JSON description used by okf-mcp to expose the skill.

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 63 lines · 111 tokens per session scan A 34b631e2b4d4

Subscribe to this mod's changes

okf-lint is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 11d ago), licensed Apache-2.0. It adds 111 tokens to every session and 705 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

okf-open-knowledge-format

Create, validate, and enrich Open Knowledge Format (OKF) bundles — the open spec for representing organizational knowledge as markdown files with YAML frontmatter. Use when the user mentions 'OKF', 'Open Knowledge Format', 'knowledge bundle', 'OKF bundle', 'create a knowledge base for agents', 'validate OKF', 'convert…

fabricioctelles/skills · 168 tokens

okfy

Use when a user wants an agent to use docs through OKFy, set up or verify an OKFy MCP docs source, convert docs websites or local Markdown into OKF bundles, generate activation proof, or answer from an existing OKFy bundle/workspace.

0dust/OKFy · 54 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When GLM needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

jjyaoao/HelloAgents · 51 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When GLM needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing…

jjyaoao/HelloAgents · 97 tokens