Kinic Wiki

Console

Skip to main content
Skills

Health inspection

Lint

Use lint workflows to find wiki structure issues, missing source evidence, stale paths, malformed skill packages, or inconsistent store layout.

SKILL.md

Read the skill as documentation or switch to the exact source.

Frontmatter

name
kinic-wiki-lint
description
Kinic Wiki workflow skill for inspecting local and remote wiki health without silently fixing it.

Kinic Wiki Lint

Use this skill when the user wants to:

  • inspect wiki health
  • look for isolated or duplicated pages
  • check whether /Knowledge/index.md is stale
  • review missing links, weak structure, or outdated organization
  • inspect database discovery metadata for public retrieval
  • decide what to fix next without auto-applying changes

Do not use this skill for:

  • primary source ingestion
  • ordinary question answering
  • hidden repair runs

Core rules:

  • Treat the canister wiki as the source of truth.
  • Organized wiki nodes live under /Knowledge/...; evidence sources live under /Sources/<provider>/<id>.md.
  • Treat local Markdown as review or drafting aid unless a workflow explicitly writes it back through VFS commands.
  • Default to report-only behavior.
  • Do not silently fix pages.
  • Prefer concrete findings over vague style commentary.
  • Keep local lint and remote inspection conceptually separate.
  • Check note-role boundary violations as well as missing pages.
  • Treat exact-value drift in facts.md as a real canonicality problem, not a style nit.
  • Use the embedded note-role rules in lint.md as the trust model. When this skill runs inside the repo and docs/STORE_API.md is available, use that file only as the current repo-local refinement.

Read lint.md before doing substantive Kinic Wiki lint work.

For bounded repeated inspection, repair, and reinspection, use kinic-wiki-maintain. index.md is an agent catalog; optional overview.md is the reader description.

Kinic Wiki Lint Workflow

Read-only local/remote wiki health inspection via kinic-vfs-cli (--help / docs/CLI.md). Never mutate, rebuild, or hand off to edit without separate authorization (kinic-wiki-maintain repair mode, kinic-wiki-edit, or kinic-wiki-ingest).

Workflow

  1. Remote: confirm access (status --json). Keep local Markdown checks separate from remote canister checks.
  2. Inventory/structure: list-nodes (reconcile bounded limits via subtree decomposition or ordered SQL keyset batches; otherwise report partial coverage and uninspected ranges).
  3. Targeted inspection: read-node-context (link/catalog context only), search-remote / search-path-remote + link commands, query-context --namespace <prefix> --json (public API defaults to /Memory), query-sql (2+ known paths), read-node --json (final offending line), snapshot/export only for whole-scope checks.

Findings

Report each finding with stable ID, exact paths, severity/impact, command/inspected evidence, and a focused repair (no vague style commentary).

  • Canonicality: exact-value drift in facts.md; exact evidence leaking into summaries.
  • Structure/catalog: empty root templates despite existing knowledge, broken links, missing navigation to important articles/child scopes, misleading summaries, duplicate/isolated notes, note-role violations (curated omission alone is not a defect; don't require indexes in empty folders; legacy prose-mixing indexes need preserved merge into overview.md, not deletion; never treat stale catalogs as proof articles are absent).
  • bloated-canonical-root: treat <namespace>/index.md (or subfolder index.md) > ~2,000 chars — or combined canonical roots (index.md, facts.md, overview.md, summary.md, etc.) > half the tightest caller budget (recommended: MCP default query-context --namespace <ns> --task <q> --budget-tokens 2000 --json ≈ 8,000 chars, since CLI defaults to 8,000 tokens) — as an inspection trigger, not an auto-defect. Verify crowding via independent search-remote <q> --prefix <ns> --top-k 10 --json using the exact same space-joined task + entities query (since query_context.search_hits is budget-trimmed); compare top-10 against nodes[].node.path, and compare returned nodes[].node.content length against query-sql length(content) of canonical roots and omitted top hits to distinguish canonical-root bloat from an oversized regular article (e.g. bloated catalog.md).
  • unbacked-claim: for multi-claim topic articles, inspect the body alongside inline /Sources/... links and the two store-resolved provenance files (immediate parent provenance.md and /Knowledge/<scope>/provenance.md; source-evidence alone aggregates links without per-claim mapping). Flag only when distinct claims lack backing across both.
  • Surface incomplete inspection, permission errors, and ambiguity explicitly. Re-verify modified content and inventory before closing any repair finding.