Kinic Wiki

Console

Skip to main content
Skills

Evidence capture

Ingest

Use ingest workflows when source material needs to become durable wiki evidence before review, synthesis, or later query.

SKILL.md

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

Frontmatter

name
kinic-wiki-ingest
description
Kinic Wiki workflow skill for ingesting evidence source material into the current canister-backed wiki workflow.

Kinic Wiki Ingest

Use this skill when the user wants to:

  • ingest local markdown, notes, docs, or folders into the wiki
  • normalize evidence source material before wiki synthesis
  • persist selected source material under /Sources/...
  • update existing wiki pages from new evidence
  • repair existing wiki pages only when the edit is part of source intake; otherwise use kinic-wiki-edit
  • initialize or repair an explicit LLM Wiki scope when the user asks for scoped structure
  • refresh database discovery metadata for public retrieval
  • generate conversation wiki pages from evidence sources, preferring one review-ready page unless the source clearly needs a split
  • create review-ready wiki pages without pushing immediately

Do not use this skill for:

  • ad hoc question answering without source intake
  • health-only review of an existing wiki
  • hidden publish or push workflows
  • leakage cleanup or broad existing-node repair without new source ingestion; use kinic-wiki-edit

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 the workflow explicitly writes it back through VFS commands.
  • Stop at review-ready unless the user explicitly asks for push. review-ready means edits and any existing or requested log.md updates are complete, but no push or publish step has run.
  • Keep source persistence separate from wiki synthesis.
  • For conversation sources, default to one generated wiki page rather than a fixed page scaffold.
  • Read current canonical notes before editing them.
  • Preserve settled exact fact spans in facts.md instead of paraphrasing or normalizing them away.
  • Do not rewrite exact values such as dates, money, fractions, spellings, product names, or role labels when a settled source span already exists.
  • facts.md is not a transcript dump. Exclude gratitude, acknowledgements, question phrasing, tentative future plans, scheduled meetings, deadlines, and dated event lines unless they are being routed to their canonical note.
  • When a relevant log.md already exists or the user asks for logging, update it append-only.
  • Do not create log.md by default.
  • PDF handling stays inside kinic-wiki-ingest as source normalization.
  • Use the embedded note-role rules in ingest.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 ingest.md before doing substantive Kinic Wiki ingest 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 Ingest Workflow

Turn source material into review-ready Kinic Wiki updates via kinic-vfs-cli (--help / docs/CLI.md): raw evidence in /Sources/..., organized notes in /Knowledge/....

Workflow

  1. Confirm target/access (status --json) and inspect existing scope (query-context --namespace /Knowledge --json, list-nodes, search-remote / search-path-remote, query-sql for 2+ known paths).
  2. Persist raw source under /Sources/<provider>/<id>.md before synthesizing /Knowledge/... (never move/rewrite existing sources unless asked).
  3. Draft/write review-ready /Knowledge/... pages only after write set is clear; read existing nodes immediately before overwrite (read-node --json) and pass --expected-etag.
    • delete-tree: inspect list-nodes --prefix <path> --recursive --json first; report unexpected paths. Append to existing log.md only when required (never create by default).
  4. Stop at review-ready unless push/publish is explicitly requested. Verify with representative read + search over affected prefix.

Content & Searchability Rules

  • Preserve exact values (dates, money, fractions, spellings, product names, roles) with source links. Keep tentative/transcript text out of facts.md; route contradictions/open items to question pages.
  • Topic article granularity (excluding index.md/overview.md/catalog.md): 1 topic/decision unit (target <= ~3,000 chars) — settled rules/facts, exceptions/edge cases, and source backing per claim via inline /Sources/... or subfolder/scope provenance.md (don't bloat namespace-root provenance.md). Summarize decisions; don't paste large raw dumps/diffs.
  • FTS5 searchability: preserve short canonical terms (税, 控除), and include key 3+ char domain terms in the filename/path (drives high-weight title/basename ranking) plus naturally in headings/body (1–2 char terms rely on path/substring fallback).

Catalog & Budget Rules

  • index.md = LLM agent catalog (not exhaustive inventory/evidence); overview.md = optional reader description.
  • query_context loads existing canonical namespace root pages (index.md, facts.md, preferences.md, plans.md, open_questions.md, overview.md, schema.md, events.md, summary.md, provenance.md) before search hits within budget_tokens (4 chars/token: CLI default 8,000 ≈ 32,000 chars; MCP default 2,000 ≈ 8,000 [max 8,000]; store API 0 ≈ 4,000; paths/metadata/links also count; first existing node always returns even if over budget; MCP defaults namespace to / where /index.md is canonical).
  • Keep <namespace>/index.md and subfolder index.md compact (target <= 2,000 chars) and combined canonical roots under half the MCP default (~4,000 chars). Spill large inventories to subfolder index.md or <namespace>/catalog.md (links + 1-line descriptions only — no prose summaries, or catalog.md can match search, exceed budget, and truncate later topic hits).
  • Update in-scope folder/root indexes with etag guards only on creation/move/deletion/substantive change (skip typos; no empty/none templates; report out-of-scope parent edits; never run rebuild-index/rebuild-scope-index for routine edits). Always pass --namespace for Knowledge (public API defaults to /Memory).

Handoffs

  • Answer-only: kinic-wiki-query · Existing-node repair: kinic-wiki-edit · Repeated inspect→repair→verify: kinic-wiki-maintain.