# Edge Batch Creation

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

- Skill: `yogsoth-ai/edge-batch-creation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yogsoth-ai/edge-batch-creation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yogsoth-ai/edge-batch-creation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: yogsoth-ai (https://skillmd.com/u/yogsoth-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yogsoth-ai/edge-batch-creation

---


# 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

<HARD-GATE>
All source and target paths must exist before batch creation begins.
Validate the full batch upfront, not one-by-one.
</HARD-GATE>

## Yield

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

