cli-anything-drawio
하는 일
이 스킬은 에이전트가 텍스트 명령으로 Draw.io 다이어그램을 만들고 바꾸게 합니다. 순서도나 다이어그램을 빨리 만들어야 하는 모든 사람을 위한 스킬입니다.
사용하는 경우
- ✓글로 된 설명으로 순서도나 다이어그램을 만들고 싶을 때.
- ✓기존 다이어그램에 도형을 추가하거나 옮기거나 스타일을 바꾸고 싶을 때.
- ✓다이어그램을 파일로 내보내고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/drawio/agent-harness/cli_anything/drawio/skills/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“고객 가입 단계의 순서도를 만들고 파일로 내보내 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 각 다이어그램을 프로젝트 파일로 보관하고, 명령을 통해 도형, 스타일, 레이아웃을 편집합니다. 완성된 다이어그램을 내보낼 때는 drawio 프로그램을 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
cli-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:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify outputs exist after export operations
More Information
- Full documentation: See README.md in the package
- Test coverage: See TEST.md in the package
- Me
자주 묻는 질문
Draw.io가 설치되어 있어야 하나요?
네. 시스템에 drawio 프로그램이 설치되어 있어야 합니다.
다이어그램의 원시 코드를 보여 줄 수 있나요?
네. 현재 다이어그램의 원시 XML을 출력할 수 있습니다.
페이지 크기를 고를 수 있나요?
네. 스킬은 사용할 수 있는 페이지 크기 프리셋 목록을 제공합니다.
상세 정보
작성자의 원본 설명
Command-line interface for Drawio - A CLI harness for **Draw.io** — create, edit, and export diagrams from the command line....
repo: HKUDS/CLI-Anything
인기도
- GitHub 스타
- 58k
- 순위
- #3201
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-qgis
58k에이전트가 터미널에서 QGIS 지도 프로젝트를 열고 편집하고 내보내도록 돕습니다. 레이어, 피처, 인쇄 레이아웃, 처리 도구를 포함합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.