# Okf Lint

> Deterministic validator for Open Knowledge Format (OKF) bundles. Checks spec conformance (root index.md carries only okf_version, subdirectory index.md files carry no frontmatter, every concept has a non-empty type) plus enrichment coverage (placeholder descriptions, broken cross-links, orphans), and gates CI via its exit code. Use to validate an OKF bundle before publishing or ingestion, or to f…

- **Type:** Skill
- **Install:** `agentstack add skill-xsavikx-okf-skills-okf-lint`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [xSAVIKx](https://agentstack.voostack.com/s/xsavikx)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [xSAVIKx](https://github.com/xSAVIKx)
- **Source:** https://github.com/xSAVIKx/okf-skills/tree/master/skills/okf-lint
- **Website:** https://xsavikx.github.io/okf-skills/

## Install

```sh
agentstack add skill-xsavikx-okf-skills-okf-lint
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
okf-lint lint --bundle  [flags]
```

**Flags:**
- `--bundle` (required): path to the OKF bundle directory.
- `--min `: fail if the enriched percentage is below this threshold (0 = no gate).
- `--max-broken-links `: 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.

```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)

```bash
okf-lint schema
```

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

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [xSAVIKx](https://github.com/xSAVIKx)
- **Source:** [xSAVIKx/okf-skills](https://github.com/xSAVIKx/okf-skills)
- **License:** Apache-2.0
- **Homepage:** https://xsavikx.github.io/okf-skills/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-xsavikx-okf-skills-okf-lint
- Seller: https://agentstack.voostack.com/s/xsavikx
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
