Skills Explorer Add Skills

diagram

An agent skill by garrytan, from garrytan/gstack. Tags: diagrams, documentation, visualization.

What it does

Turn an English description (or mermaid source) into a diagram triplet: the source, an editable .excalidraw file you can open on excalidraw.com, and rendered SVG + PNG. (gstack)

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add garrytan/gstack --skill diagram

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/garrytan/gstack
cp -r gstack/diagram ~/.claude/skills/diagram

Safety box score

Grade C, moderate risk: 35 of 100 risk points, rated 2026-10-16. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill generates local diagram artifacts from Mermaid or English, rendering a `.mmd`, `.excalidraw`, `.svg`, and `.png` triplet. The main risks are local command execution, writes into home-directory state for staging and telemetry, and delegated behavior in helper scripts that are not visible in this markdown.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution2 (moderate)It shells out to `~/.claude/skills/gstack/bin/gstack-skill-start`, `bun run ... gstack-render.ts` with `--eval`, and `gstack-skill-end`, so it runs local commands and browser-side code.
Network access0 (none)The skill explicitly says `Fully offline` and `No CDN, no network`, and the visible commands do not contact remote hosts.
Filesystem reach2 (moderate)It writes artifacts to `./diagrams/` or `/tmp/gstack-diagrams/`, stages render files under `${TMPDIR:-/tmp}/gstack-render`, and logs telemetry to `$GSTACK_STATE_ROOT/analytics/`.
Secrets & credentials0 (none)No tokens, passwords, `.env` files, keychains, or browser sessions are read or requested in the visible workflow.
Privilege & persistence0 (none)There is no `sudo`, global install, service registration, shell startup edit, or other privilege-changing step in the visible instructions.
Instruction hijack surface2 (moderate)It tells the agent to treat the skill file as executable instructions and to honor `GSTACK_INSTRUCTION_BEGIN` blocks from tool output, which is an instruction-fetch mechanism.
Irreversible actions1 (low)The skill only creates local diagram artifacts and logs telemetry; it does not post, deploy, pay, or delete anything external.
Transparency2 (moderate)Core behavior is delegated to uninspected helpers and a bundled renderer (`gstack-skill-start`, `gstack-render.ts`, `gstack-skill-end`) not shown here, so some effects are outside the reviewed file.

Before installing

Rated 2026-10-16 by an automated review of 1 file from the skill's repository.

Source

Repository
garrytan/gstack (all skills from this repository)
Path
diagram/SKILL.md
Branch
main
Updated
2026-10-05