Kinic Wiki

Console

Skip to main content
Skills

Read workflow

Query

Use query workflows when an agent needs to inspect wiki content, read known nodes, or answer from a public wiki URL or database ID.

SKILL.md

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

Frontmatter

name
kinic-wiki-query
description
Search and read Kinic Wiki VFS databases from wiki.kinic.xyz URLs or database IDs using kinic-vfs-cli; use for find, search, inspect, read, summarize, or answer-only wiki queries.

Kinic Wiki Query

Use this skill when the user wants to:

  • find, search, inspect, read, or summarize wiki content
  • answer questions from a https://wiki.kinic.xyz/db/<database_id>/... URL
  • answer questions from a raw Kinic database ID such as db_pfy2cqesybpl
  • explore what the wiki currently contains before deciding on edits or ingestion

Do not use this skill for:

  • first-pass source ingestion
  • health-only wiki inspection
  • routine page creation or repair
  • editing, deleting, redacting, or mutating wiki nodes; 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 a workflow explicitly writes it back through VFS commands.
  • Use kinic-vfs-cli first for wiki.kinic.xyz URLs. Do not start from Web HTML parsing.
  • Never run destructive or write commands.
  • Default to answer-only behavior.
  • Read the minimum note set needed to support the answer.
  • Cite paths actually read, not only search hits.
  • Include source URL and source path when node metadata provides them. Do not invent missing metadata.

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

Kinic Wiki Query Workflow

Read-only search, inspection, summarization, and answer-only tasks via kinic-vfs-cli (--help / docs/CLI.md).

Workflow

  1. Extract database_id from https://wiki.kinic.xyz/db/<database_id>/... or prompt. Use mainnet default canister unless explicitly overridden (--canister-id).
  2. Confirm target/access with status --json.
  3. Normal questions: query-context --namespace /Knowledge --json using 2–4 space-separated keywords (see below). Answer from returned nodes + evidence, never status/list-nodes/search-remote/search-path-remote alone.
  4. Recall/inventory/reads:
    • Content/path recall: search-remote / search-path-remote
    • Inventory: list-nodes (defaults to /Knowledge; pass --prefix / when scope is unknown)
    • 2+ known paths or narrow classification: query-sql (escape SQL literals; no untrusted free text)
    • 1 final evidence body / exact-value confirmation: read-node --path <path> --json
    • Source refs for a known /Knowledge/... path: source-evidence --node-path <path> --json (flag is --node-path, not --path)
    • JSON shapes: query-context nests bodies at nodes[].node.{path,content} (and search_hits[].path); search-remote returns a top-level array; query-sql returns rows[] as JSON strings.
    • Whole-scope reads/sync: snapshot/export commands (check --help).

Query Formulation

  • FTS5 trigram indexes whitespace-separated tokens >=3 chars (AND + OR recall); 1–2 char terms act as strict AND filters (must appear in path/title/content). Free-form unsegmented Japanese/CJK sentences easily miss on wording differences (exact quotes/single short terms can still hit via substring fallback).
  • Distill questions into 2–4 space-separated 3+ char domain keywords (translate colloquialisms/brands, e.g. MacBookを25万円で一括経費 → 少額減価償却資産 30万円 減価償却, 令和7年から基礎控除はいくら? → 基礎控除 令和7年).
  • Check search_hits and target article bodies (not just nodes, as /Knowledge/index.md returns even on 0 search hits).
  • If search_hits is empty with truncated: true, inspect nodes first and run search-remote with the same keywords before broadening.
  • On a true miss: drop optional 1–2 char modifiers first → narrow to 1–2 core 3+ char terms → try alias/English → check /Knowledge/index.md or list-nodes --prefix /.
  • Scopes: /Knowledge (rules/explanations), /Skills (checklists/procedures), /Sources (primary records). Public API defaults to /Memory — always pass --namespace for Knowledge.

Broad Questions & Output

  • Broad/comparison/synthesis: build a multi-term candidate set (raw phrase, nouns, aliases, title/domain terms); check /Sources and root prefixes if /Knowledge is sparse; separate title/path hits from topic hits; group evidence by work/source/prefix; mark cross-work generalization as inference; report scope, confirmed points, inference, and coverage limits.
  • index.md is navigation (not exhaustive inventory/evidence); overview.md is reader synthesis (not exact-claim evidence). If large catalogs crowd the budget, narrow --namespace or use search-remote + direct reads.
  • Rules: never mutate; no Web HTML parsing when CLI works; no Kinic Memory MCP for Wiki URLs/IDs; preserve exact spellings/paths/IDs/dates/URLs; cite paths actually read (plus source URL/path only when present).
  • Multi-claim questions: verify cited /Sources covers each claim and explicitly note any gap. Exact-value questions: state exact value first, then path. If no candidate remains, answer insufficient evidence.