lit-diagram-drawer · diff
git:20261112.a693fe9 to git:20261112.1abdb82
3 added, 1 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: lit-diagram-drawer
description: "Architecture, workflow, data-model and timeline diagrams. A LitFamily extension in wjgoarxiv-skills: this stub loads the installed copy, or gives the agy install line."
---
# lit-diagram-drawer: a LitFamily extension in wjgoarxiv-skills
lit-diagram-drawer drew architecture, workflow, data-model and timeline diagrams as editable SVG, checked and exported to PNG. It no longer ships inside LitGravity. It is a LitFamily extension now, and the whole skill folder lives in the separate wjgoarxiv-skills repository at `variants/litgravity/lit-diagram-drawer/`, a copy written for agy, so a LitGravity install stays small and anyone who wants a diagram copies in this one folder.
This file keeps the id. `lit diagram …`, `lit 다이어그램 …`, `lit 도식 …`, and `/litgravity:lit-diagram-drawer` still land here, and the steps below take it from there.
## Install it in agy
+ The short route is LitGravity's own command, run in a terminal: `npx @litfamily/litgravity extensions install lit-diagram-drawer` prints what it would do, and the same with `--yes` does it (`--project` for one workspace). It fetches the skill, stops if another skill named lit-diagram-drawer sits where agy loads skills, moves an old copy aside and writes the receipt; `extensions update`, `remove` and `check` do the rest. The lines below are the same steps by hand.
+
wjgoarxiv-skills is public at https://github.com/wjgoarxiv/wjgoarxiv-skills. Clone it (`git clone https://github.com/wjgoarxiv/wjgoarxiv-skills`), then paste these four lines one at a time (zsh or bash) in the workspace you use agy in. They put the skill in agy's user skills, which every workspace sees:
```bash
find .agents/skills _agents/skills ~/.gemini/config/skills ~/.gemini/skills -maxdepth 2 -name SKILL.md -exec grep -l -E '^name: *"?lit-diagram-drawer"? *$' {} + 2>/dev/null
if [ -e ~/.gemini/config/skills/lit-diagram-drawer ] || [ -L ~/.gemini/config/skills/lit-diagram-drawer ]; then b=~/.gemini/extension-backups/$(date +%Y%m%d-%H%M%S); mkdir -p "$b" && mv ~/.gemini/config/skills/lit-diagram-drawer "$b/" && echo "moved to $b/lit-diagram-drawer"; fi
mkdir -p ~/.gemini/config/skills && [ ! -e ~/.gemini/config/skills/lit-diagram-drawer ] && cp -R "<path to your wjgoarxiv-skills clone>/variants/litgravity/lit-diagram-drawer" ~/.gemini/config/skills/lit-diagram-drawer
printf '{"id":"%s","source":"%s","variant":"litgravity","installed_at":"%s"}\n' lit-diagram-drawer "<path to your wjgoarxiv-skills clone>/variants/litgravity/lit-diagram-drawer" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > ~/.gemini/config/skills/lit-diagram-drawer/.litfamily-extension.json
```
Line one only looks: it prints every `SKILL.md` named lit-diagram-drawer that agy could load, and nothing when there is none. agy keeps one same-name skill without a word, a workspace copy first, so move any other one it names aside too. Line two moves an existing copy whole into a dated folder under `~/.gemini/extension-backups/`, which agy never loads; line three copies into the emptied place; line four writes the receipt `.litfamily-extension.json` inside the copy.
For one workspace only, run line one, then these three in the workspace root:
```bash
if [ -e .agents/skills/lit-diagram-drawer ] || [ -L .agents/skills/lit-diagram-drawer ]; then b=~/.gemini/extension-backups/$(date +%Y%m%d-%H%M%S)-project; mkdir -p "$b" && mv .agents/skills/lit-diagram-drawer "$b/" && echo "moved to $b/lit-diagram-drawer"; fi
mkdir -p .agents/skills && [ ! -e .agents/skills/lit-diagram-drawer ] && cp -R "<path to your wjgoarxiv-skills clone>/variants/litgravity/lit-diagram-drawer" .agents/skills/lit-diagram-drawer
printf '{"id":"%s","source":"%s","variant":"litgravity","installed_at":"%s"}\n' lit-diagram-drawer "<path to your wjgoarxiv-skills clone>/variants/litgravity/lit-diagram-drawer" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > .agents/skills/lit-diagram-drawer/.litfamily-extension.json
```
The folder is the whole skill, with its own scripts, references and engine locks. Its neighbours (lit-schematic and lit-scientific-visualization) install the same way, one folder each. Start a new conversation, or type `/skills reload`; the skill then answers as `/lit-diagram-drawer`, and `lit` prompts that reach this stub hand over to it. To update it, run the same lines again: the old copy moves to a new dated backup and the receipt is rewritten. To remove it, run the second line alone. Nothing is deleted; clear old backups out of `~/.gemini/extension-backups/` when you no longer need them. The LitGravity installer writes only its own plugin folder, so upgrading or removing LitGravity leaves the copy alone, and the names never clash: this stub is `litgravity:lit-diagram-drawer`, the copy is `lit-diagram-drawer`.
## When this stub is read
1. Look for the installed copy with `read_file`: first `~/.gemini/config/skills/lit-diagram-drawer/SKILL.md`, then `.agents/skills/lit-diagram-drawer/SKILL.md` in the workspace.
2. **Found.** Read it and follow it for this task; its folder is the root for every relative path it names. It was written for agy and needs no LitGravity hook: every check it names is a command it tells you to run.
- 3. **Not found, asked directly.** Reply in a few lines: what lit-diagram-drawer did, that it is a LitFamily extension now, kept in wjgoarxiv-skills (`variants/litgravity/lit-diagram-drawer/`), the install lines above, and that you made nothing yet. Do not draw the diagram another way in its place (a hand-written SVG, Mermaid, ASCII art).
+ 3. **Not found, asked directly.** Reply in a few lines: what lit-diagram-drawer did, that it is a LitFamily extension now, kept in wjgoarxiv-skills (`variants/litgravity/lit-diagram-drawer/`), the `extensions install` command and the install lines above, and that you made nothing yet. Do not draw the diagram another way in its place (a hand-written SVG, Mermaid, ASCII art).
4. **Not found, inside a workflow.** Inside a lit workflow (lit-loop, litwork, start-work, review-work) that reached this skill, write `lit-diagram-drawer not installed` once in the ledger and the reply with the install lines, finish the parts that need no diagram, and mark the part that needs it BLOCKED, not done.
## Hard stops
- Give the install lines with the placeholder; never a path from this machine.
- Never say a diagram exists unless the installed copy made it and you looked at the result.
- A headless run (`agy -p`) never copies the skill in itself: give the install lines and stop.