cli-anything-drawio
HKUDS/CLI-Anything · Agent Skill
Crea, modifica ed esporta diagrammi Draw.io direttamente dalla riga di comando, gestendo progetti e forme.
Vai all'installazione ↓Panoramica
| Autore | |
|---|---|
| Repository | HKUDS/CLI-Anything ↗ |
| Cartella dello skill | cli-anything-drawio |
| Stelle | 49.057 |
| File inclusi | 1 |
| Licenza | Apache-2.0 |
| Aggiornato | 17 aprile 2026 |
| Link | Sorgente dello skill ↗ · Repository ↗ |
Verifica Mozgi
Cosa abbiamo trovato nei file dello skill. I dettagli con l’abbonamento.
Installazione
Uno skill è una cartella con un file SKILL.md. Scegli il tuo agente ed esegui i comandi in un terminale (macOS, Linux o Git Bash su Windows) dalla radice del progetto.
Incolla il prompt in Claude, Codex o un altro assistente: controllerà lo skill e lo installerà.
Install the “cli-anything-drawio” skill from mozgi.io (https://mozgi.io/skills/cli-anything-drawio/) for me. 1. Download the archive: https://mozgi.io/skills/cli-anything-drawio/download If it fails, take the skill folder from the source: https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-drawio 2. Read SKILL.md and the other files. Check the skill is safe: no hidden commands, no sending data elsewhere, no scripts doing something other than described. If anything looks suspicious, stop and tell me. 3. Put the “cli-anything-drawio” folder into your agent's skills folder: .claude/skills/ for Claude Code, .agents/skills/ for Codex, .cursor/skills/ for Cursor, .gemini/skills/ for Gemini CLI. Inside the project if we are in one, otherwise in the home folder (~/.claude/skills/ etc.). 4. Make sure <skills folder>/cli-anything-drawio/SKILL.md exists. 5. Briefly tell me what this skill does and offer to try it on my task. If you cannot do a step yourself, tell me what to click or type.
git clone --depth 1 --branch main https://github.com/HKUDS/CLI-Anything.git /tmp/CLI-Anything mkdir -p .claude/skills cp -r /tmp/CLI-Anything/skills/cli-anything-drawio .claude/skills/cli-anything-drawio
Riavvia Claude Code: lo skill compare nell'elenco; per richiamarlo a mano usa /cli-anything-drawio. Per tutti i progetti: ~/.claude/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/CLI-Anything.git /tmp/CLI-Anything mkdir -p .agents/skills cp -r /tmp/CLI-Anything/skills/cli-anything-drawio .agents/skills/cli-anything-drawio
Codex cerca gli skill in .agents/skills dalla cartella corrente fino alla radice del repo; richiamalo con /skills o $cli-anything-drawio. Per tutti i progetti: ~/.agents/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/CLI-Anything.git /tmp/CLI-Anything mkdir -p .cursor/skills cp -r /tmp/CLI-Anything/skills/cli-anything-drawio .cursor/skills/cli-anything-drawio
Cursor carica lo skill all'avvio; richiamalo con “/” nella chat Agent. Cursor legge anche .claude/skills e .agents/skills. Per tutti i progetti: ~/.cursor/skills.
git clone --depth 1 --branch main https://github.com/HKUDS/CLI-Anything.git /tmp/CLI-Anything mkdir -p .gemini/skills cp -r /tmp/CLI-Anything/skills/cli-anything-drawio .gemini/skills/cli-anything-drawio
Gemini CLI propone di attivare lo skill quando il compito corrisponde: tu confermi. Per tutti i progetti: ~/.gemini/skills.
Leggi SKILL.md e i file correlati prima di installare. Clicca un file per l'anteprima.
Contenuto di SKILL.md
Testo originale dell'autore · sola letturacli-anything-drawio
A CLI harness for Draw.io — create, edit, and export diagrams from the command line.
Installation
This CLI is installed as part of the cli-anything-drawio package:
pip install cli-anything-drawio
Prerequisites:
- Python 3.10+
- drawio must be installed on your system
Usage
Basic Commands
# Show help
cli-anything-drawio --help
# Start interactive REPL mode
cli-anything-drawio
# Create a new project
cli-anything-drawio project new -o project.json
# Run with JSON output (for agent consumption)
cli-anything-drawio --json project info -p project.json
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
cli-anything-drawio
# Enter commands interactively with tab-completion and history
Command Groups
Project
Project management: new, open, save, info.
| Command | Description |
|---------|-------------|
| new | Create a new blank diagram |
| open | Open an existing .drawio project file |
| save | Save the current project |
| info | Show detailed project information |
| xml | Print the raw XML of the current project |
| presets | List available page size presets |
Shape
Shape operations: add, remove, move, resize, style.
| Command | Description |
|---------|-------------|
| add | Add a shape to the diagram |
| remove | Remove a shape by ID |
| list | List all shapes on a page |
| label | Update a shape's label text |
| move | Move a shape to new coordinates |
| resize | Resize a shape |
| style | Set a style property on a shape |
| info | Show detailed info about a shape |
| types | List all available shape types |
Connect
Connector operations: add, remove, style.
| Command | Description |
|---------|-------------|
| add | Add a connector between two shapes |
| remove | Remove a connector by ID |
| label | Update a connector's label |
| style | Set a style property on a connector |
| list | List all connectors on a page |
| styles | List available edge styles |
Page
Page operations: add, remove, rename, list.
| Command | Description |
|---------|-------------|
| add | Add a new page |
| remove | Remove a page by index |
| rename | Rename a page |
| list | List all pages |
Export
Export operations: render to PNG, PDF, SVG.
| Command | Description |
|---------|-------------|
| render | Export the diagram to a file |
| formats | List available export formats |
Session
Session management: status, undo, redo.
| Command | Description |
|---------|-------------|
| status | Show current session status |
| undo | Undo the last operation |
| redo | Redo the last undone operation |
| save-state | Save session state to disk |
| list | List all saved sessions |
Examples
Create a New Project
Create a new drawio project file.
cli-anything-drawio project new -o myproject.json
# Or with JSON output for programmatic use
cli-anything-drawio --json project new -o myproject.json
Interactive REPL Session
Start an interactive session with undo/redo support.
cli-anything-drawio
# Enter commands interactively
# Use 'help' to see available commands
# Use 'undo' and 'redo' for history navigation
Export Project
Export the project to a final output format.
cli-anything-drawio --project myproject.json export render output.pdf --overwrite
State Management
The CLI maintains session state with:
- Undo/Redo: Up to 50 levels of history
- Project persistence: Save/load project state as JSON
- Session tracking: Track modifications and changes
Output Formats
All commands support dual output modes:
- Human-readable (default): Tables, colors, formatted text
- Machine-readable (
--jsonflag): Structured JSON for agent consumption
# Human output
cli-anything-drawio project info -p project.json
# JSON output for agents
cli-anything-drawio --json project info -p project.json
For AI Agents
When using this CLI programmatically:
1. Always use --json flag for parseable output
2. Check return codes - 0 for success, non-zero for errors
3. Parse stderr for error messages on failure
4. Use absolute paths for all file operations
5. Verify outputs exist after export operations
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Methodology: See HARNESS.md in the cli-anything-plugin
Version
1.0.0
Domande frequenti
Che cosa fa lo skill cli-anything-drawio?
Crea, modifica ed esporta diagrammi Draw.io direttamente dalla riga di comando, gestendo progetti e forme.
Come si installa cli-anything-drawio?
Apri il blocco “Installazione” in questa pagina e scegli il tuo agente — Claude Code, Codex, Cursor o Gemini CLI — per i comandi pronti che copiano la cartella dello skill nel posto giusto. Oppure copia il prompt dalla scheda “Con l'assistente” e lascia che sia l'assistente a controllare e installare lo skill.
Con quali modelli AI funziona cli-anything-drawio?
Gli skill sono semplici istruzioni in Markdown (formato Agent Skills), quindi cli-anything-drawio funziona con qualsiasi agente che legge SKILL.md: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode e altri. Il modello carica le istruzioni solo quando il compito corrisponde alla descrizione dello skill.
cli-anything-drawio è gratuito?
Lo skill è pubblicato apertamente da HKUDS con licenza Apache-2.0. Lo skill in sé non costa nulla: paghi solo il tuo fornitore AI per i token usati.
È sicuro installare gli skill?
Uno skill è un insieme di istruzioni che il tuo agente seguirà: leggi SKILL.md e i file correlati prima di installarlo. Gli script nella cartella dello skill vengono eseguiti solo se li esegue l'agente: controlla cosa fa e non concedere permessi superflui.
In cosa differisce uno skill da un server MCP o da un plugin?
Un server MCP o un plugin danno al modello nuovi strumenti: codice che viene eseguito e restituisce un risultato. Uno skill fornisce conoscenza e metodo: come affrontare il compito, quali passi seguire e com'è un buon risultato. Non servono server né chiavi API.