From kc-plugin-forge
Use when plugin documentation needs updating after feature changes, when verifying existing docs accurately reflect actual skill/agent behavior, or for periodic documentation maintenance. Scans source code, enriches with usage history from journal and memory, writes or updates docs, then reports gaps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kc-plugin-forge:kc-plugin-forge-doc-syncThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Input | Route |
| Input | Route |
|---|---|
| bare invocation | → Full Sync |
--check | → Report Only |
--auto | → Full Sync (skip confirmation) |
--section <doc-file> | → Targeted Sync (one doc file) |
reference/doc-sync-context.md → load Source Map, Doc Structure, Post-Sync Hooksskills/*/SKILL.md → for each: extract skill name, description, all --flags, modes (from routing tables), key conceptshooks/ → for each: extract event type, trigger condition, affected toolsdocs/*.md + README.md → for each: extract title, section headings, mentioned features, example countIf --section <doc-file>: filter Source Map to entries targeting that doc file only.
Output: gap_report + feature_inventory
Prerequisite: MCP tools episodic-memory and private-journal. If unavailable, skip Phase 2 with warning: "History enrichment skipped — MCP tools unavailable. Running static-only mode." Proceed to Phase 3 with unenriched gaps.
search("kc-plugin-forge") → extract usage patterns, user workflows, reported issuessearch_journal("kc-plugin-forge") → extract technical insights, debug findings, failed attemptsaccuracy_risk (priority fix)If --check: skip to Phase 6 after this phase.
Output: enriched_gaps
Unless --auto, present enriched_gaps grouped by severity (Critical first):
For each approved gap:
auto-sync flag in Doc Structure:
yes → rewrite section entirely from sourcepartial → edit only the specific subsection, preserve hand-written contentdoc-sync-context.mdDoc-probe agent not scaffolded (Light variant). Live probing disabled. To enable: run
/kc-plugin-forge kc-plugin-forgeand select Full for Doc Self-Iteration.
Skip this phase.
doc-sync-context.mdlast_sync date, version to current plugin versionOutput summary:
| Metric | Value |
|---|---|
| Gaps found | N |
| Gaps fixed | N |
| Accuracy risks found | N |
| Docs created | N |
| Docs updated | N |
| Reference self-updated | yes/no |
D1 learning: check for reusable patterns worth capturing:
reference/learned-patterns.mdAuto-issue: if unfixed gaps remain (user declined):
Post-sync hooks: read and execute plugin-specific actions from doc-sync-context.md Post-Sync Hooks section
auto-sync flag before overwriting--check never writes docsnpx claudepluginhub iamcxa/kc-claude-plugins --plugin kc-plugin-forgeCross-references documentation against code to detect drift, then reconciles changes via a human-gated, previewed write. Useful after code changes or before releases when docs may be stale.
Detects and fixes drift between code changes and documentation/guardrails, with a structured loop from detection through PR creation.
Updates documentation after code changes with quality gates, slop detection, and accuracy checks. Use when code changes require corresponding doc updates.