Kb Lint logo

Kb Lint

Community
stjbrown
kb-lint

Health-check a knowledge bundle for conformance and drift; optionally auto-fix safe issues.

Overview

Publisherstjbrown
Repositoryagent-knowledge
Skill namekb-lint
Stars
44
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by stjbrown on GitHub. Read the source before you install it.

Installation

Install the Kb Lint AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/stjbrown/agent-knowledge/tree/main/skills/kb-lint
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/stjbrown/agent-knowledge.git /tmp/agent-knowledge
mkdir -p .claude/skills
cp -r /tmp/agent-knowledge/skills/kb-lint .claude/skills/kb-lint
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kb Lint in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kb Lint on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kb Lint is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

kb-lint — health-check the bundle

Keep a bundle trustworthy as it compounds by catching drift — the decay a growing knowledge base accumulates. Two passes: a deterministic conformance check (mechanical, scripted) and a drift audit (fuzzy, judgment). Run both; report findings by severity. With fix, repair what is safe.

1. Conformance (deterministic)

For a bundle-wide format or lifecycle migration, first inventory active metadata with the same frontmatter-aware checker:

node "<skill-dir>/scripts/conformance.mjs" <bundle-dir> --inventory --json

The inventory parses only each concept's leading YAML frontmatter and reports body # Citations separately. Its observations include counts and exact paths for every active top-level key and status value; legacy_citations counts citation sections, numbered items, separately defined footnote sources, total source records, and common citation shapes; structured_sources counts the postflight concepts, entries, and entries carrying resource. An absent observation means zero. Do not use repository-wide grep to classify active metadata because prose and fenced examples can contain inactive field names and lifecycle values. Resolve every reported frontmatter error before planning from the counts.

Run the bundled checker against the target bundle (default knowledge/). It is a zero-dependency Node script (node >=18); <skill-dir> is this skill's directory — ${CLAUDE_SKILL_DIR} under Claude Code, or whatever path your host exposes for the skill:

node "<skill-dir>/scripts/conformance.mjs" <bundle-dir>

It reports ERROR for a hard SPEC §11 failure and warn for producer-profile defects in optional v0.2 fields, broken links, non-ISO log dates, and stale dates. Optional-family warnings never make the bundle non-conformant. Broken links are explicitly tolerated by §6.1.

Completion criterion: the checker has run and every ERROR it reported is listed for the report (and fixed, if in fix mode).

2. Drift audit (judgment)

The checker can't see meaning. Audit the bundle for the ways a compounding artifact rots — this is the legwork that makes lint worth running. Cover every check:

  • Contradictions — concepts asserting conflicting facts that aren't linked conflicts_with.
  • Stale claims — statements a newer source has superseded but that were never marked superseded_by; overviews behind their children.
  • Orphans — concepts with zero inbound cross-links (index/log exempt; overviews exempt).
  • Missing cross-references — concepts about the same entity/theme that don't link to each other.
  • Coverage gaps — entities named repeatedly across concepts but lacking their own concept; data gaps a source or web search could fill.
  • Provenance gaps — concepts making external claims with neither OKF v0.2 sources nor a legacy # Citations / Reference trail.
  • v0.2 metadata drift — sources entries without resource, footnote labels without a matching sources[].id, malformed generated/verified actors or dates, invalid lifecycle values, and Attested Computations missing their required runtime or computation contract.
  • Repository drift — for living repository documentation, missing paths in sources[].resource, evidence that no longer supports the documented behavior, or source changes since spec/repository_state.md's documented_revision that affect a concept without a corresponding update. A lingering documented_worktree: true there requires comparison with the current working tree. Skip this check when repository evidence or Git history is unavailable.
  • Schema drift — types used but absent from spec/types.md; documented types that no longer describe their concepts; spelling/case variants; or one overloaded type hiding several recurring, materially distinct entity kinds. Treat unused documented types as Info, not an error.

Completion criterion: every check above has been run across the whole bundle and its findings recorded — not a sample.

3. Report

Present findings grouped by check, each tagged:

  • Error — §11 conformance failures. The bundle is non-conformant until fixed.
  • Warning — drift that degrades trust (contradictions, stale claims, orphans, broken links).
  • Info — suggestions (coverage gaps, new concepts or sources worth adding).

Turn coverage gaps into concrete next moves: questions to investigate, sources to ingest, or repository evidence to inspect through kb-document. Append a dated summary (counts + notable findings) to the bundle's log.md — append-only.

Completion criterion: a severity-grouped report is delivered and a log.md summary appended.

Fix mode

If invoked with fix, repair only what is safe and unambiguous, then re-report what was fixed vs. what needs a human:

  • Safe to auto-fix: stale overviews (regenerate from children), missing cross-links, malformed log dates, broken links with an obvious target, index entries out of sync with files.
  • Never auto-fix: anything that changes a claim's meaning. A contradiction or a stale claim is resolved by ingest under the trust model (supersede/conflict) — never by editing meaning in place here. Type renames, merges, splits, deprecations, and migrations also require user confirmation; report the proposed schema change and affected concepts together. Route living repository behavior that needs a meaning update to kb-document, which applies the trust model's narrow versioned-repository exception with source evidence and a revision log.

Completion criterion: every safe issue is fixed and every meaning-level issue is flagged (not touched); the re-report distinguishes the two.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Kb Lint AI skill do?

Health-check a knowledge bundle for conformance and drift; optionally auto-fix safe issues.

Why use Kb Lint on TypingMind?

Because you install it once and use it with any model. Kb Lint is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kb Lint in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/stjbrown/agent-knowledge/tree/main/skills/kb-lint. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Kb Lint?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kb Lint?

As many as you like. As long as a model supports skills, you can use Kb Lint with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kb Lint AI skill free?

Yes. It is published on GitHub by stjbrown under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇