/khive:polishfrom khive
Audits knowledge graph health by detecting orphans, under-linked entities, duplicates, and stale edges. Provides automated fixes via merge, relinking, and supersession.
Ships in khive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
request(ops="list(kind=\"entity\", entity_kind=\"concept\", limit=50)")
request(ops="[list(kind=\"edge\", source_id=\"<u>\"), list(kind=\"edge\", target_id=\"<u>\")]") # parallel batch
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.
list(kind="entity", entity_kind="concept", limit=50)
list(kind="entity", entity_kind="project", limit=20)
For every entity listed:
neighbors(node_id="<entity-id>", direction="both")
Classify:
Search for entities with similar names:
search(kind="entity", query="<entity name>")
If two entities refer to the same real-world thing (e.g., "LoRA" and "Low-Rank Adaptation"):
merge(into_id="<keep-id>", from_id="<remove-id>")
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:
create(kind="note", note_kind="<kind>", content="<better version>",
annotates=["<target-entities>"])
link(source_id="<new-note-id>", target_id="<old-note-id>", relation="supersedes")
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").
For each orphan or under-linked entity, think about:
instance_ofextendsintroduced_bycompetes_withimplementsCreate the appropriate links. If you can't determine the relationship from context, search for clues:
search(kind="note", query="<entity name>")
search(kind="entity", query="<broader category>")
List edges from high-value entities:
list(kind="edge", source_id="<entity-id>")
list(kind="edge", target_id="<entity-id>")
list(kind="edge", source_id="<entity-id>", relations=["introduced_by", "extends"]) # filter by relation type
Check for:
introduced_by going paper → concept (should be concept → paper)extends used where instance_of fits betterFix with:
update(kind="edge", id="<edge-id>", relation="<correct-relation>")
update(kind="edge", id="<edge-id>", weight=1.0)
delete(kind="edge", id="<edge-id>") # if the edge is just wrong
Summarize:
| 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 |
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.
No orphans. All entities at or above minimum density. No obvious duplicates. Stale edges corrected. Report filed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ohdearquant/khive --plugin khive11 skills in this plugin
/brainTune adaptive recall with brain profilesTune adaptive recall with brain profiles — inspect profiles and posteriors, manage lifecycle (activate/deactivate/archive/reset), emit feedback (brain.feedback / brain.auto_feedback) to shift recall weights, and wire actors to profiles via bind/unbind/resolve/bindings. Use whenever recall behavior feels off, a new tuning profile is needed, or you need to confirm which profile serves a given caller./commCoordinate over commCoordinate with other agents and lambdas over khive comm — be attributable (set KHIVE_ACTOR), address by actor (to="lambda:X") with a subject, triage your inbox by sender + subject, reply to thread, and inspect channel polling freshness. Use whenever you send a message, check your inbox, follow up in a conversation, read a thread, or diagnose channel delivery./digestOther plugins' skills for the same job