Create relationship between two knowledge entries
Creates bidirectional relationships between knowledge base entries with proper typing.
/plugin marketplace add greyhaven-ai/claude-code-config/plugin install knowledge-base@grey-haven-plugins<entry1-slug> <entry2-slug> <relationship-type>Create knowledge relationship: $ARGUMENTS <ultrathink> Knowledge gains power through connection. Isolated facts become insights when linked with purpose and meaning. </ultrathink> <megaexpertise type="ontology-specialist"> The assistant should use the knowledge-curator agent to create bidirectional relationships between entries with proper relationship typing. </megaexpertise> <context> Arguments: $ARGUMENTS Knowledge base path: .claude/knowledge/ Relationship types:
Launch Knowledge Curator Agent:
Use the Task tool with subagent_type="general-purpose" to invoke the knowledge-curator agent.
Prompt:
"Create a relationship between knowledge entries:
- Entry 1: [entry1-slug]
- Entry 2: [entry2-slug]
- Relationship: [entry1] [relationship-type] [entry2]
Please:
1. Find both entries in the knowledge base
2. Validate they exist
3. Update entry1's YAML frontmatter to add the relationship
4. Determine if bidirectional linking is appropriate:
- part-of → has-part (bidirectional)
- implements → implemented-by (bidirectional)
- references → optional bidirectional
- supersedes → superseded-by (bidirectional)
5. Update both files as needed
6. Update the manifest
7. Confirm the relationship was created
Show the updated relationship graph for both entries."
Present Results:
The assistant should make relationship creation seamless and ensure the knowledge graph remains consistent and meaningful.