agentsclimarketplace

Write excalidraw

Skill brentzo/ren-atlas-skills/skills/write-excalidraw

Writes the architecture atlas into an Obsidian vault. Creates an Architecture/ folder, generates one Markdown note per project (frontmatter, wikilinks to neighbors, embedded Mermaid neighbor diagram), a system map-of-content index, and hand-authors editable .excalidraw.md canvases to strict positioning/color/size/spacing specs (reciprocal arrow bindings so arrows follow drags, bound labels, collision-checked layout). Running it writes or rebuilds the canvases in place (it never deletes files); refresh-vault is the conservative maintainer that preserves manual edits. Use after generate-mermaid-architecture, or when the user wants their architecture written into Obsidian / as Excalidraw canvases. Emits generated-region markers and a summaries.json for the rest of the pipeline.From its SKILL.md

Install
npx -y skills add brentzo/ren-atlas-skills --skill write-excalidraw

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

8.7 KB, as published. Nobody here has run it

write-excalidraw

Persist the atlas into an Obsidian vault as linked notes with embedded Mermaid, plus hand-authored Excalidraw canvases. Stage 4 of the pipeline. Excalidraw canvases are hand-authored to strict specs — you place every element yourself, which gives full control and supports any diagram type.

Inputs

  • manifest.json, graph.json, and diagrams/*.mmd under .atlas/.
  • Vault path — resolve per vault-resolution (explicit arg > ATLAS_VAULT > recorded in memory > ask). Required here (this is where everything lands). If artifacts are currently in a cwd ./.atlas/, move them to <vault>/Architecture/.atlas/.

Read these first (the strict specs)

What to write

Follow the canonical vault-layout — projects/ mirrors the source repo tree (not grouped by kind).

<vault>/Architecture/
├── _index.md                          # MOC: system Mermaid + links to every project + legend
├── System.excalidraw.md               # hand-authored system canvas
├── <domain>.excalidraw.md             # likewise, per domain tag, if wanted
├── projects/                          # mirrors the repo tree (see vault-layout)
│   └── <relPath>.md                   #   a project at repo path <relPath> → projects/<relPath>.md
│                                      #   (leaf dir = filename; parent dirs = folders)
└── .atlas/
    ├── ... (manifest, graph, diagrams)
    └── summaries.json                 # compact context cache for load-session-context

Generated-region markers (critical)

Every note this skill writes wraps its machine-generated body between:

<!-- atlas:generated:start -->
…regenerated content…
<!-- atlas:generated:end -->

refresh-vault only rewrites between these markers. Put anything the user might hand-edit (a free "Notes" heading) outside them. Never emit a note without these markers — they are the contract that keeps the vault editable.

Per-project note — projects/<relPath>.md

Place each note to mirror the repo per vault-layout: compute relPath = the project's root relative to its scan root (roots[].path), and write to Architecture/projects/<relPath>.md — leaf directory as the filename, parent dirs as folders (e.g. repo services/api → projects/services/api.md). For multiple scan roots, namespace by repo basename. The filename is the leaf basename, so add aliases: [<atlas-id>] to the frontmatter — that keeps [[<atlas-id>]] wikilinks resolving even though the file isn't named by id. Cross-note references stay [[<atlas-id>]].

Frontmatter:

---
atlas-id: <project id>
aliases: [<project id>]          # so [[<project id>]] resolves to this basename-named file
type: project
kind: <kind>
language: [<languages>]
framework: [<frameworks>]
tags: [architecture, <domain tags…>]
root: <absolute root path>
---

Body (inside the generated markers):

  • # <name>
  • Talks to — bullet list of outgoing edges as wikilinks with protocol: - [[api-gateway]] — HTTP (sync). Resolve each to to a project note via [[<id>]]; externals render as plain text (e.g. Stripe (saas)), not links. Every [[wikilink]] must resolve to a vault note (a project id or [[_index]]); never wikilink an external or any non-note target, or it becomes a phantom graph node that spawns an empty file when clicked. See vault-layout → "Every wikilink MUST resolve".
  • Used by — incoming edges, same style.
  • Owns / responsibility — one line if inferable from kind + entry points; otherwise omit (don't pad).
  • An embedded neighbor diagram from stage 3:
    ```mermaid
    <contents of diagrams/project.<id>.mmd>
    ```
    
  • A collapsed Evidence detail (optional) listing a few edge evidence snippets.

After the closing marker, add a ## Notes heading left empty for the human.

Index — _index.md

Generated-marked body with: the system Mermaid (diagrams/system.mmd) embedded, a legend for the styling conventions, and a grouped list of [[<id>]] links (by domain tag if present, else by kind).

summaries.json

Write a compact array consumed by load-session-context, one entry per project:

{ "version": "1",
  "projects": [
    { "id": "web-frontend", "name": "web-frontend", "root": "/abs/path",
      "kind": "app", "talksTo": [{"id":"api-gateway","protocol":"http","sync":"sync"}],
      "usedBy": [], "owns": "auth UI, dashboard", "note": "Architecture/projects/<relPath>.md" }
  ] }

Keep owns short — it's a token-thrifty summary, not the whole note.

The Excalidraw canvases — hand-authored to strict specs

Hand-author each canvas (System.excalidraw.md, and per-domain canvases) by placing every element yourself. Follow the three specs exactly — there is no converter; the rigor is what keeps the output clean. The system/domain canvases are graph/flowchart form, so use the layered layout.

Procedure per canvas:

  1. Lay out nodes with the layered algorithm and spacing constants from layout-algorithms.md (sources left → stores right, barycenter ordering within ranks). Compute every x/y; never randomize.
  2. Encode elements per reference/excalidraw-format.md: a rectangle + one bound text per node (filled by role from design-system.md); an arrow per edge with reciprocal binding (the arrow in both endpoint rectangles' boundElements, so arrows follow a dragged node) + one bound label; routed points so multi-rank edges bend around intermediate nodes; dashed + async color for async edges.
  3. Run the collision check (layout-algorithms § collision) — no node box, node label, or edge label may overlap. Fix spacing/labels and recompute before writing.
  4. Stable ids (rect-<id>, arrow-<from>-<to>, …) so refresh-vault can update in place.

Overwrite policy

Running this skill is the request to write the canvases — you do not need the user to also say "regenerate/overwrite". Create each canvas if absent; if it already exists, rebuild it in place from the current graph. Writing the canvas is the skill's whole job; don't refuse and make the user repeat themselves.

  • Never delete a file. Overwrite in place only — that single guard is what prevents the "my canvas vanished" failure; refusing to write was never needed for safety.
  • If an existing canvas may hold manual edits (the user rearranged it in Obsidian), go ahead and rebuild it, but say so in your report ("rebuilt System.excalidraw — hand-tuned positions replaced") so it's not a surprise.
  • The conservative, edit-preserving path is refresh-vault: when it or any automatic/background maintenance runs, it flags a hand-edited canvas as stale instead of rebuilding it. A user who wants to keep manual layout should refresh rather than re-run this skill.

Done criteria & handoff

Report the notes and _index.md written, and the canvases written or rebuilt (flagging any rebuild that replaced possible manual edits). Confirm you ran the collision check. Mention that load-session-context can now load this vault and refresh-vault keeps the source .mmd/graph.json current.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.