ohdearquant/khive/polish
Claude Code and agent skill by ohdearquant/khive
- community
Checking that the SKILL.md file is still in the repository.
Audit graph health and fix issues — orphans, low-degree nodes, duplicates, stale edges. Report before/after.
Install
npx vskill@latest install ohdearquant/khive/polishSKILL.md
The same SKILL.md was published earlier as ohdearquant/khive/polish.
Polish
Your graph needs maintenance. This skill audits health, identifies issues, and fixes them.
The MCP server exposes one tool — request — that takes the verb call as a string:
The verb examples in this skill show the inner call. Wrap each one as request(ops="…").
Namespace rule (ADR-007): KG operations always use the shared namespace (local), even when the MCP server runs with --actor lambda:myproject. Do NOT override the namespace for entity/edge/note operations. The knowledge graph is cross-project by design.
Workflow
1. Get the lay of the land
2. Check each entity for edge count
For every entity listed:
Classify:
- Orphan (0 edges): must fix — every entity needs at least one relationship
- Under-linked (concepts < 4, projects < 3, documents < 2): should fix
- Healthy (at or above target): skip
3. Find duplicates
Search for entities with similar names:
If two entities refer to the same real-world thing (e.g., "LoRA" and "Low-Rank Adaptation"):
merge deduplicates entities. Properties combine, tags union, edges rewire to the kept entity, and the duplicate is removed. Both IDs must refer to entities.
For duplicate notes — use supersession instead:
Supersession does NOT transfer annotations. The new note must explicitly declare its own annotates. The old note stays in the store but is excluded from search(kind="note").
4. Fix orphans and under-linked entities
For each orphan or under-linked entity, think about:
- What is it a kind of? →
instance_of - What does it extend? →
extends - Who introduced it? →
introduced_by - What competes with it? →
competes_with - What project implements it? →
implements
Create the appropriate links. If you can't determine the relationship from context, search for clues:
5. Audit edge quality
List edges from high-value entities:
Check for:
- Wrong direction:
introduced_bygoing paper → concept (should be concept → paper) - Wrong relation:
extendsused whereinstance_offits better - Low weight on confident relations: definitional relations should be weight 1.0
Fix with:
6. Report
Summarize:
- Entities audited: N
- Orphans fixed: N (list them)
- Under-linked fixed: N
- Duplicates merged: N
- Edges corrected: N
- Before density: X edges/entity → After density: Y edges/entity
Density targets
| Entity kind | Minimum edges | Required relationship types | |
|---|---|---|---|
concept | 4 | At least one parent (instance_of or extends), introduced_by if source exists, competes_with if alternatives exist | |
project | 3 | implements (what concept), structural (contains/part_of), depends_on | |
document | 2 | introduced_by edges FROM concepts it introduced | |
person | 1 | introduced_by from their work | |
org | 1 | contains or structural relationship |
Data-vs-view principle
Supersession keeps the old record and marks it superseded — it never deletes, copies, or transfers data. "Show only current" is a query concern handled by the search filter, not by data mutation. If you want to actually remove something, the verb is delete.
Stop condition
No orphans. All entities at or above minimum density. No obvious duplicates. Stale edges corrected. Report filed.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingmarketplace/khive/skills/polish/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ohdearquant/khive/polish)