kg-maintainlisted
Install: claude install-skill mironmax/claudecode-plugins
# Maintenance Reference (Detailed)
## When Invoked Directly (/kg-maintain)
Run a focused maintenance pass in this order:
1. `kg_read(cwd)` — check health stats: orphan %, avg edges/node, size warning
2. **Always**: scan all gists against the current kg-capture standard — tighten any that exceed it, regardless of graph size
3. **Always**: spot-check notes on recently-touched nodes — rewrite any that have grown chaotic or redundant (see "Notes Hygiene" below)
4. If graph is large or has size warning → **Prune**: merge duplicates, split oversized nodes, remove stale touches
5. After pruning → **Fertilize**: connect nodes clarified during pruning, add missing edges
6. **Water** throughout: update any gist that feels stale given what you just read
Announce findings: "Graph health: N nodes, E edges, O% orphans. Running [prune|fertilize|water] pass."
Report what changed: nodes merged, gists tightened, edges added.
## What a Healthy Graph Looks Like
A healthy graph is a mesh of connections, not isolated facts. Most nodes participate
in at least one edge. Health stats show this at a glance:
- Low orphan rate — most nodes connected
- Reasonable edge density — linked but not over-connected
- Mix of levels — user patterns inform project decisions
## Maintenance Operations
When auditing the graph with kg_read:
- **Disconnected nodes** — appear in no edges. Connect them with edges if appropriate. Only delete if truly orphaned AND factually incorrect.
- **Duplicates** — overlapping g