Edge Batch Creation

SOP for creating multiple edges in a batch — efficient bulk relationship creation.

yogsoth-ai c8afbab 1.0 KB Updated

File contents

Edge Batch Creation

Create multiple edges efficiently. Used when a set of relationships has been identified and needs to be committed to the graph.

Tool

vault_add_edge (called multiple times)

Protocol

  1. Receive list of (source, target, edge_type) triples
  2. Validate all paths exist
  3. Call vault_add_edge for each triple
  4. Report successes and failures (duplicates are expected, not errors)
  5. Inline wikilinks: For each successfully created edge, ensure the source page contains [[dir/slug]] pointing to the target (dir/slug = target path minus .md). Place inline at semantically relevant location; if none, append at end. Skip if already present.

HARD-GATE

Yield

Returns: { attempted: number, created: number, duplicates_skipped: number }

yogsoth-ai/de-anthropocentric-research-engine/tree/main/skills/edge-batch-creation commit c8afbab46a

Frequently asked questions

npx skillmds@latest add yogsoth-ai/edge-batch-creation