--- name: lit-schematic description: "P&ID, PFD, equipment layout, apparatus figure and isometric cutaway drawings. A LitFamily extension in wjgoarxiv-skills: this stub loads the installed copy, or gives the agy install line." --- # lit-schematic: a LitFamily extension in wjgoarxiv-skills lit-schematic drew physical schematics of real hardware: P&IDs with ISA-5.1 tags, PFDs, equipment layouts, journal apparatus figures and isometric cutaways, as editable SVG with a QA gate and a 600 dpi render. 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-schematic/`, a copy written for agy, so a LitGravity install stays small and anyone who wants a schematic copies in this one folder. This file keeps the id. `lit schematic …`, `lit pid …`, `lit pfd …`, `lit cutaway …`, `lit` prompts with 공정도, 계장도, 모식도 or 장치도, and `/litgravity:lit-schematic` 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-schematic` 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-schematic 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-schematic"? *$' {} + 2>/dev/null if [ -e ~/.gemini/config/skills/lit-schematic ] || [ -L ~/.gemini/config/skills/lit-schematic ]; then b=~/.gemini/extension-backups/$(date +%Y%m%d-%H%M%S); mkdir -p "$b" && mv ~/.gemini/config/skills/lit-schematic "$b/" && echo "moved to $b/lit-schematic"; fi mkdir -p ~/.gemini/config/skills && [ ! -e ~/.gemini/config/skills/lit-schematic ] && cp -R "/variants/litgravity/lit-schematic" ~/.gemini/config/skills/lit-schematic printf '{"id":"%s","source":"%s","variant":"litgravity","installed_at":"%s"}\n' lit-schematic "/variants/litgravity/lit-schematic" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > ~/.gemini/config/skills/lit-schematic/.litfamily-extension.json ``` Line one only looks: it prints every `SKILL.md` named lit-schematic 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-schematic ] || [ -L .agents/skills/lit-schematic ]; then b=~/.gemini/extension-backups/$(date +%Y%m%d-%H%M%S)-project; mkdir -p "$b" && mv .agents/skills/lit-schematic "$b/" && echo "moved to $b/lit-schematic"; fi mkdir -p .agents/skills && [ ! -e .agents/skills/lit-schematic ] && cp -R "/variants/litgravity/lit-schematic" .agents/skills/lit-schematic printf '{"id":"%s","source":"%s","variant":"litgravity","installed_at":"%s"}\n' lit-schematic "/variants/litgravity/lit-schematic" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > .agents/skills/lit-schematic/.litfamily-extension.json ``` The folder is the whole skill, with its own scripts, references and engine locks. Its neighbours (lit-diagram-drawer 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-schematic`, 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-schematic`, the copy is `lit-schematic`. ## When this stub is read 1. Look for the installed copy with `read_file`: first `.agents/skills/lit-schematic/SKILL.md` in the workspace, then `~/.gemini/config/skills/lit-schematic/SKILL.md`, the order agy loads them. 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-schematic did, that it is a LitFamily extension now, kept in wjgoarxiv-skills (`variants/litgravity/lit-schematic/`), the `extensions install` command and the install lines above, and that you made nothing yet. Do not draw the schematic another way in its place (a hand-written SVG, a box-and-arrow diagram). 4. **Not found, inside a workflow.** Inside a lit workflow (lit-loop, litwork, start-work, review-work) that reached this skill, write `lit-schematic not installed` once in the ledger and the reply with the install lines, finish the parts that need no schematic, 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 schematic 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.