← ClaudeAtlas

memai-linklisted

Stitch the MemAI relations GRAPH: typed edges between memories (supersedes / relates_to / contradicts / links_to), turning [[wikilinks]] written in a body into real edges, connecting complementary memories that share a domain, and preserving lineage (checkpoint to note, archived to successor). Uses dedup_scan to find candidate pairs and get_relations before every edge, so a rerun creates nothing twice. Use when asked to "link memories", to "connect" or "relate" two memories, to "materialize the wikilinks", to "stitch the relations graph", or when invoked as the linking step of the [[memai-maintenance]] pass. Conceptual base: [[memai-memory]]. Siblings in the same pass: [[memai-checkpoints]], [[memai-distill]], [[memai-confidence]].
Filipe-Soares-de-Almeida/MemAI · ★ 0 · AI & Automation · score 70
Install: claude install-skill Filipe-Soares-de-Almeida/MemAI
# memai-link — stitching the memory graph Creates the edges that make the store navigable. It **only relates**: when a pair is the **same thing**, that is a merge and goes to [[memai-distill]]. ## 1. Relation vocabulary (keep it consistent) | `relation_type` | When it applies | |---|---| | `supersedes` | A replaces or retires B — a new version → the old one, a kept checkpoint → the archived one. Lineage. | | `relates_to` | Complementary, the same subject, or the same phenomenon from another angle. The default. | | `contradicts` | A and B claim incompatible things — pair it with the `contradicted` confidence of [[memai-confidence]]. | | `links_to` | A generic pointer when none of the above fits. | > `link_memories` takes `relation_type` as **free text** — nothing rejects a > fifth spelling. Write one of those four. ## 2. What is worth linking - **Materialize `[[wikilinks]]`.** A body that cites `[[slug]]` and has no edge in the graph gets a `relates_to`: a note on the queue drain whose text points at `[[cache-warmup-cold-start]]` reads as a link and is not one until the edge exists. - **Complementary memories under one domain.** Two notes filed in `acme/x100`, one on the batch retry and one on the queue drain it re-enqueues into, that nobody ever connected. - **checkpoint → note lineage.** A kept checkpoint → the canonical note for the mechanism (`relates_to`); an **archived** checkpoint from a finished `proj-1042` → the note that inherited its durable cont