본문으로 건너뛰기
Skillpedia
이미지 및 아이콘58k · #3201

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/drawio/agent-harness/cli_anything/drawio/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 (--json flag): 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
  • 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬