From knowledge-docs
Audit a Lark Wiki — flag stale/orphan/duplicate pages and propose archive/merge/re-parent. Triggers "wiki bị bừa", "restructure wiki", "wiki cleanup".
How this skill is triggered — by the user, by Claude, or both
Slash command
/knowledge-docs:doc-restructureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Read-only audit of a messy wiki — proposes archive/merge/re-parent
Read-only audit of a messy wiki — proposes archive/merge/re-parent batches. "5000 pages, 60% outdated, no one knows what to keep."
Verbs (the installed lark-* skills): raw wiki exposes only
+node-create, +move, +delete-space. Node listing + content
fetch → atomic lark-wiki skill. docs +search --filter (wiki type
via JSON filter), docs +fetch --api-version v2 --doc <url> for
content, contact +get-user for owner resolution. Atomic shapes +
token flags: connectors/LARK-RECIPES.md.
Read memory. taxonomy.md, quality-rules.md (staleness
threshold, owner rules), INDEX.md, team-roster.md.
Inventory space. Atomic lark-wiki skill: space-list →
node-list recursive. Build parent→children tree with depth + metadata.
Per-node enrich (parallel batch ~20). Atomic lark-wiki node
metadata gives title/owner/last_modified. Use docs +fetch --api-version v2 --doc <url> --limit 1 only when content_length /
link_count is needed (no metadata-only mode in raw CLI — keep reads minimal).
Detect issues:
| Rule | Trigger | Severity |
|---|---|---|
| Stale | last_modified >180d | warn |
| Very stale | >365d | high |
| Orphan owner | owner not in team-roster | high |
| Broken link | links to deleted doc | high |
| Duplicate title | exact match >1 | warn |
| Near-duplicate | title similarity >90% | info |
| Empty content | <100 chars | high |
| Wrong parent | tagged taxonomy ≠ actual parent | warn |
| Deep nesting | depth >5 | info |
| Single-page section | parent has 1 child >90d | info |
Bucket into batches: ARCHIVE (very stale + orphan owner), MERGE (near-dup titles → keep newer + redirect), RE-PARENT (wrong taxonomy), RE-ASSIGN (orphan owner → team-roster suggestion), FLATTEN (single-page section), DELETE-CANDIDATE (empty + >90d).
Report header (total / healthy / issues / last audit) + per-batch lists (ARCHIVE, MERGE, RE-PARENT, RE-ASSIGN, FLATTEN, DELETE) + projected "if you execute all" stats + action checklist with per-batch approve gates.
Required (librarian): taxonomy.md, quality-rules.md.
Recommended: INDEX.md, team-roster.md.
Quarterly full audit (mid-Q, not during planning); monthly mini
(ARCHIVE + RE-ASSIGN only); triggered when a team can't find anything.
On approve: wiki +move (re-parent) / atomic lark-wiki archive,
one item per call (pre-mutate hook fires each). Companion:
doc-from-template for new docs — together = author → maintain → archive.
npx claudepluginhub larkcowork/lark-cowork-plugins --plugin knowledge-docsProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.