← ClaudeAtlas

prompt-to-drawio-skilllisted

Generate and edit draw.io artifacts from natural-language prompts without a frontend. Use when the user asks for prompt-to-diagram workflows that need `.drawio` output, optional image export (`png`/`svg`/`pdf`/`jpg`), context ingestion (image/PDF/text/URL), shape-library lookup, or visual validation loops.
lzfxxx/prompt-to-drawio-skill · ★ 4 · AI & Automation · score 65
Install: claude install-skill lzfxxx/prompt-to-drawio-skill
# Prompt To Drawio Use this skill to run a CLI-only version of Next AI Draw.io capabilities. ## Capability Set 1. Prompt -> `.drawio` generation. 2. Prompt-driven edit on existing diagrams (ID-based operations). 3. Optional image export (`png`, `svg`, `pdf`, `jpg`). 4. Context ingestion from local files (`txt/md/json/csv/pdf/image`) and URLs. 5. Shape library documentation injection (`aws4`, `gcp2`, `azure2`, `kubernetes`, etc.). 6. Visual quality validation with retry loops. 7. History snapshot backup before edits. ## Runtime Script Primary entrypoint: - `scripts/prompt_to_drawio.py` Subcommands: - `generate` - `edit` - `export` - `validate` - `library` Compatibility: - Legacy usage without subcommand is treated as `generate`. ## Runtime Modes Mode A (default, recommended): in-session LLM mode - If the assistant is directly executing this skill inside a Codex/LLM session, generation/edit can be done by the session model itself. - In this mode, `DRAWIO_LLM_API_KEY` is not required by the skill workflow. Mode B: standalone CLI mode - If you run `prompt_to_drawio.py generate|edit|validate` as an independent subprocess that must call a model API by itself, then API key is required. - Supported env key names: `DRAWIO_LLM_API_KEY` (preferred) or `OPENAI_API_KEY`. - Default key-loading rule: script auto-loads nearest `.env` from current working directory upward (first match), then reads key variables from it. - Override dotenv path with `DRAWIO_DOTENV_FILE=/absolute/path/