Kinic Wiki

Console

Skip to main content
Skills

Safe mutation

Edit

Use edit workflows for remote wiki page corrections, redactions, leakage cleanup, and multi-node repair after reading the current node revision.

SKILL.md

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

Frontmatter

name
kinic-wiki-edit
description
Kinic Wiki workflow skill for safe remote wiki page edits, redactions, leakage cleanup, and multi-node repair with etag-aware VFS commands.

Kinic Wiki Edit

Use this skill when the user wants to:

  • remove or redact leaked, stale, duplicated, or invalid text from wiki nodes
  • edit existing /Knowledge/... pages without new source ingestion
  • repair many existing nodes after a lint, search, or incident finding
  • apply the same text replacement across multiple wiki pages

Do not use this skill for:

  • answer-only wiki queries; use kinic-wiki-query
  • report-only health checks; use kinic-wiki-lint
  • evidence source ingestion or new evidence synthesis; use kinic-wiki-ingest
  • skill store package lifecycle work; use kinic-skill-registry

Core rules:

  • Read edit.md before mutating remote wiki nodes.
  • Treat the canister wiki as the source of truth.
  • Always read current node content and etag before editing.
  • Prefer etag-aware CLI commands for existing node repair.
  • Keep replacement scope explicit: path list, old text, new text, expected etag, verification.
  • Update the affected scope log.md for every page edit.
  • Stop and ask before destructive deletion, unclear redaction policy, or API-contract changes.

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 Edit Workflow

Goal

Safely repair, redact, or update existing Kinic Wiki nodes. Use this workflow only when the user asked for mutation or accepted a specific repair.

CLI Reference

  • Use kinic-vfs-cli for all remote reads and mutations.
  • Run kinic-vfs-cli --help for the command list.
  • Run kinic-vfs-cli <command> --help before using an unfamiliar mutation command.
  • Use docs/CLI.md as the full CLI usage reference when working inside this repo.

Workflow

  1. Confirm target database and access with status --json.
  2. Build the candidate path set with query-context --namespace <target-prefix>, search, inventory, or link commands.
  3. Use query-sql for 2 or more known-path reads when narrowing candidates.
  4. Read every accepted target immediately before mutation with read-node --json or selected fields including path, etag, and content.
  5. Apply the smallest safe mutation: write-node, append-node, edit-node, multi-edit-node, delete-node, or delete-tree.
  6. Pass --expected-etag whenever the command supports it.
  7. Verify the affected prefix with a narrow search or representative read.
  8. Update the relevant scope log.md append-only when the repo workflow requires it.

Mutation Safety

  • Do not mutate from stale reads.
  • Do not edit paths that were not explicitly accepted into the repair set.
  • For delete-tree, inspect first with list-nodes --prefix <path> --recursive --json and stop if unexpected paths are present.
  • Ask before destructive deletion, unclear redaction policy, or API-contract changes.
  • For multi-node repairs, keep a path-by-path summary of old state, intended replacement, etag, command, and verification result.

Boundaries

  • Use kinic-wiki-query for answer-only work.
  • Use kinic-wiki-ingest when new source material must be persisted or synthesized.
  • Use kinic-wiki-lint for report-only health checks.

Catalog and maintenance repairs

An explicitly authorized kinic-wiki-maintain repair run accepts supported, non-destructive repairs within its declared prefix; it does not need a second acceptance for each path. Its budgets and exclusions still apply. Ordinary lint findings do not authorize edits.

For article creation, moves, deletion, or substantive changes, inspect affected folder and parent indexes and update navigation when necessary, within the authorized scope. Do not rewrite indexes for typo-only changes. Read actual inventory and verify links rather than trusting the index to be exhaustive. Preserve curated descriptions; broad rebuilds are not normal maintenance.

Indexes are agent catalogs. Reader descriptions belong in optional overview.md. To split a mixed index, first read both files, merge unique prose and references into the overview, verify that write, then remove only transferred prose from the index. Never delete the catalog or overwrite an existing overview wholesale. A failed split remains an unresolved repair.

After repair, read the saved body and rerun relevant lint checks. Write acknowledgement alone does not demonstrate resolution. For a maintenance run, report conflicts, partial progress, and unresolved findings under its execution contract.