Wiki curator

From Sistema2D/FrameCode-VibeWork · View interactive version

Wiki curator is an AI agent skill from the GitHub repository Sistema2D/FrameCode-VibeWork. Promote sourced reusable knowledge, merge duplicates, compact sessions and rotate memory. Use when adding, merging, reviewing or archiving wiki notes. Do not use for framework policy changes.

How to use this skill

Skill file

SKILL: Wiki Curator

Maintain the LLM Wiki as a continuously improving knowledge base while preserving FCVW's pillars: updates on demand, measurable freshness, and low token cost.

Purpose

Promote sourced reusable knowledge into the smallest canonical wiki surface without duplicating records or loading the full archive by default.

Activation Triggers

Load this skill when a task involves:

Inputs

Changed source records, current canonical page candidates, wiki/README.md, taxonomy, metrics, active index/log, typed relationship findings, stale-source review candidates, and an explicit source-bounded search scope.

Fixed Cost Mode

Always use the standard optimized mode. Do not ask the user to choose a cost mode.

Load only:

  1. AGENTS.md checklist summary.
  2. CONTEXT_MAP.md row for the active session type.
  3. wiki/index.md and wiki/README.md.
  4. the taxonomy in wiki/README.md when theme, tag, or freshness decisions are needed.
  5. Source files that directly triggered the curation: changed plans, changelogs, troubleshooting records, audits, decisions, sessions, or specific wiki pages.

Do not read every wiki page unless governance-validator (wiki lint mode) reports an anomaly that requires it.

Curation Loop

  1. Collect trigger sources: identify new or changed source records and load only their summaries or relevant sections.
  2. Decide promotion: promote only knowledge that meets wiki/README.md promotion criteria.
  3. Merge before create: update an existing related page when the topic already exists; create a new page only for a distinct reusable concept.
  4. Cluster topics: link related pages with Obsidian-style links and record canonical pages for superseded or overlapping notes.
  5. Refresh metadata: set last_reviewed, related_version, tags, theme, theme_color, maturity, and next_review when applicable; do not require maturity for source, raw, or session records.
  6. Use typed relations deliberately: prefer the narrowest meaningful relation, resolve every target, and rely on generated inverse edges instead of copying both directions.
  7. Review changed sources: when a tracked source_digest changes, inspect only pages linked through derived_from; confirm, update, supersede, or invalidate them before refreshing the digest.
  8. Update metrics: record freshness, promotion, duplication, source-impact, and taxonomy results in the active plan.
  9. Log curation: summarize the curation in the active plan or session note; git history is the log.
  10. Validate: run deterministic governance-validator (wiki lint mode) for minor/major releases or when three or more wiki pages changed; semantic review remains optional and source-bounded.

Tag and Theme Rules

Metrics

Record or verify these thresholds:

| Metric | Target |

|---|---|

| Freshness SLA | reviewed before each note's next_review date |

| Promotion precision | no trivial one-off notes promoted |

| Duplication | related notes linked or merged before release |

| Taxonomy coverage | curated pages have canonical tags and theme metadata |

| Source impact | changed tracked sources have explicit dependent-page decisions |

| Typed integrity | no broken, ambiguous, self, or redundant manually copied relation |

| Cost control | no broad wiki crawl without a lint finding or explicit request |

Non-Responsibilities

Required output

Pages created, updated, merged, superseded, or deferred; sources and confidence; index/log changes; metric impact; and residual review work.

Exit Criteria

Product knowledge handoff

For product pages, preserve the distinction between sourced expected behavior, observed behavior and exact QA runs. QA owns first-run live mapping and functional replay; curator owns deduplication, source review and lifecycle. Do not promote an observed defect into approved intent, refresh a changed behavior hash to reuse an old pass, or claim browser execution from document review. Review only affected product pages; preserve earlier runs and unresolved expectations.

Mode: Session compaction (formerly `aicc-compact`)

Create a bounded session handoff with collision-resistant identity.

Purpose

Capture only the state required to continue work without replaying the full conversation.

Use when

Do not create a session file for a trivial read-only exchange or duplicate information already canonical elsewhere.

Identity

Use id: SES-YYYYMMDD-HHMMSS-<short-id>. The short ID may be a commit prefix or random hexadecimal token. Never derive uniqueness only from “highest session number + 1”.

Suggested filename: YYYYMMDD-HHMMSS-<short-id>-<slug>.md.

Inputs

Non-responsibilities

Procedure

  1. Verify actual workspace and plan state.
  2. Create the page from governance/TEMPLATE_NOTE.md (session block).
  3. Link canonical files rather than copying their contents.
  4. Record decisions, failures, validation, unresolved risks, and next step.
  5. Add index/log entry only when the session is useful for future retrieval.
  6. Check ID uniqueness.

Required output

A concise, sourced handoff that distinguishes completed work, active work, blocked work, and optional next steps.

Validation and exit

Mode: Memory rotation (formerly `memory-rotation`)

Archive and curate old sessions without destroying audit evidence.

Purpose

Keep active session context bounded while preserving historical evidence and promoting sourced reusable knowledge.

Use when

Do not use for

Inputs

Procedure

  1. Inventory active sessions and choose a bounded archive range.
  2. Identify decisions, patterns, failures, and unresolved conflicts.
  3. Promote only sourced, reusable knowledge; update an existing canonical page before creating a duplicate.
  4. Create wiki/archive/YYYY/README.md with range, sources, destination paths, and unresolved items.
  5. Move selected sessions to wiki/archive/YYYY/.
  6. Keep the latest 3–10 relevant sessions active.
  7. Update index, log, metrics, and backlinks.
  8. Run wiki lint in incremental mode.

Required output

Record files moved, knowledge promoted, duplicates merged, unresolved conflicts, retention decision, and validation.

Validation and exit

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.