indykite-ciq-create-relationship

Installation
SKILL.md

IndyKite ContX IQ - create a new relationship

Create a brand-new relationship between two nodes that already exist in the IndyKite Graph (IKG), driven by a ContX IQ policy + Knowledge Query and run via POST /contx-iq/v1/execute. The policy declares an allowed_upserts.relationships.relationship_types whitelist of {type, source_node_label, target_node_label} triples and matches the two endpoint nodes in its cypher; the Knowledge Query's upsert_relationships array names the new relationship and references those cypher variables as source and target. The endpoint nodes must already exist - only the relationship is created.

This skill covers exactly that - relationship creation between two pre-existing nodes. Other paths are deliberately out of scope:

  • Creating a new node uses allowed_upserts.nodes.node_types and upsert_nodes - see indykite-ciq-create-node.
  • Creating a relationship to a brand-new node combines both: an upsert_nodes entry for the new node plus an upsert_relationships entry that points its source or target at the fresh name. The schema supports this; this skill keeps the example tight to two existing endpoints for clarity. See "Adapting for a fresh endpoint" near the bottom.
  • Updating an existing relationship's properties uses allowed_upserts.relationships.existing_relationships.
  • Deletes use allowed_deletes.relationships.

For reads, see indykite-ciq-read.

When to use

Activate this skill when the user:

Installs
47
Repository
indykite/skills
First Seen
May 19, 2026
indykite-ciq-create-relationship — indykite/skills