Skip to content

Commit aae3b60

Browse files
dschloeclaude
andcommitted
Add one-page-diagrams skill: 5 diagram methods, PNG export, plugins for Claude Code and Codex
- skills/one-page-diagrams: router SKILL.md + references for AntV infographic, SVG diagram, draw.io, Excalidraw, architecture diagram - scripts: build.py (spec -> .drawio/.excalidraw), to_png.py (Chrome/Edge headless), check.py, drawio_link.py (stdlib only) - examples with rendered PNGs, PROMPTS.md, MIT LICENSE, NOTICE.md - .claude-plugin and .codex-plugin manifests, dist zip for claude.ai/ChatGPT Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Und7BW22nmTe8DGwLD6Mq
1 parent 6178b0d commit aae3b60

38 files changed

Lines changed: 4283 additions & 1 deletion

‎.agents/plugins/marketplace.json‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "one-page-diagrams",
3+
"interface": { "displayName": "한 장 그림" },
4+
"plugins": [
5+
{
6+
"name": "one-page-diagrams",
7+
"source": { "source": "local", "path": "./" },
8+
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
9+
"category": "Productivity"
10+
}
11+
]
12+
}

‎.claude-plugin/marketplace.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "one-page-diagrams",
3+
"owner": { "name": "dschloe", "url": "https://github.com/dschloe" },
4+
"description": "보고서·강의자료용 그림 한 장 스킬",
5+
"plugins": [
6+
{
7+
"name": "one-page-diagrams",
8+
"source": "./",
9+
"description": "인포그래픽, 순서도, draw.io, 엑스칼리드로, 구조도를 무료 파일과 PNG로 만든다.",
10+
"category": "productivity"
11+
}
12+
]
13+
}

‎.claude-plugin/plugin.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "one-page-diagrams",
3+
"displayName": "한 장 그림 (One-Page Diagrams)",
4+
"description": "글 몇 줄을 보고서·강의자료용 그림 한 장으로. 인포그래픽, 순서도, draw.io 업무 흐름도, 엑스칼리드로 손그림, 구조도를 무료·무설치 파일과 PNG로 만든다.",
5+
"version": "1.0.0",
6+
"author": { "name": "dschloe", "url": "https://github.com/dschloe" },
7+
"homepage": "https://github.com/dschloe/one-page-diagrams",
8+
"repository": "https://github.com/dschloe/one-page-diagrams",
9+
"license": "MIT",
10+
"keywords": ["diagram", "infographic", "flowchart", "drawio", "excalidraw", "architecture", "korean"]
11+
}

‎.codex-plugin/plugin.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "one-page-diagrams",
3+
"version": "1.0.0",
4+
"description": "Turn a few lines of text into one diagram for slides and reports: infographic, flowchart, draw.io workflow, Excalidraw sketch, architecture. Free, no-install files plus PNG.",
5+
"author": { "name": "dschloe", "url": "https://github.com/dschloe" },
6+
"homepage": "https://github.com/dschloe/one-page-diagrams",
7+
"repository": "https://github.com/dschloe/one-page-diagrams",
8+
"license": "MIT",
9+
"keywords": ["diagram", "infographic", "flowchart", "drawio", "excalidraw", "korean"],
10+
"skills": "./skills/",
11+
"interface": {
12+
"displayName": "한 장 그림",
13+
"shortDescription": "보고서·강의자료용 그림 한 장 만들기",
14+
"developerName": "dschloe",
15+
"category": "Productivity",
16+
"capabilities": ["Skills"],
17+
"websiteURL": "https://github.com/dschloe/one-page-diagrams",
18+
"defaultPrompt": [
19+
"이 내용을 인포그래픽 한 장으로 만들어줘",
20+
"교육 신청 승인 절차를 담당자별 흐름도로 그려줘",
21+
"우리 서비스 구성을 구조도로 그려줘"
22+
]
23+
}
24+
}

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__pycache__/
2+
*.pyc
3+
.onepage-capture.html
4+
.DS_Store

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 dschloe
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎NOTICE.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Third-party notices
2+
3+
이 프로젝트(MIT)는 아래 공개 프로젝트의 설계 규칙, 문법 설명, 링크 형식을 참고해 한국어로 다시 쓰고 줄였습니다. 원본 코드를 그대로 복사해 넣지는 않았으며, 각 참고 문서 첫머리에 출처를 적었습니다.
4+
5+
| 프로젝트 | 라이선스 | 참고한 부분 | 사용 위치 |
6+
|---|---|---|---|
7+
| [antvis/infographic](https://github.com/antvis/infographic) | MIT, Copyright (c) 2025 AntV | 인포그래픽 문법, 템플릿 목록, HTML 렌더링 방식 | `references/infographic.md`, `assets/infographic-template.html` |
8+
| [JimLiu/baoyu-skills](https://github.com/JimLiu/baoyu-skills) (`baoyu-diagram`) | MIT, Copyright (c) 2026 Jim Liu | SVG 다이어그램 디자인 규칙(그리는 순서, 간격, 역할별 색) | `references/svg-diagram.md` |
9+
| [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp) | Apache-2.0, Copyright JGraph Ltd | draw.io XML 규칙, 편집 링크(#R, #create) 형식, 뷰어 임베드 방식 | `references/drawio.md`, `scripts/drawio_link.py`, `scripts/to_png.py` |
10+
| [excalidraw/excalidraw](https://github.com/excalidraw/excalidraw), [excalidraw/excalidraw-mcp](https://github.com/excalidraw/excalidraw-mcp) | MIT | .excalidraw 파일 형식, `exportToSvg` | `references/excalidraw.md`, `scripts/build.py`, `scripts/to_png.py` |
11+
| [Cocoon-AI/architecture-diagram-generator](https://github.com/Cocoon-AI/architecture-diagram-generator) | MIT, Copyright (c) 2025 Cocoon AI | 구조도 디자인 규칙(역할별 색, 화살표 가림 처리, 범례 위치) | `references/architecture.md`, `assets/architecture-template.html` |
12+
13+
실행 시 브���우저가 인터넷에서 불러오는 라이브러리(AntV Infographic, draw.io 뷰어, Excalidraw)는 이 저장소에 포함되어 있지 않으며 각 라이선스를 따릅니다.
14+
15+
Apache-2.0 원문: https://www.apache.org/licenses/LICENSE-2.0

‎PROMPTS.md‎

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# 예시 프롬프트
2+
3+
설치 후 아래 문장을 그대로 붙여 넣어 보세요. 스킬은 내용의 모양을 보고 방식을 고릅니다. 방식을 정하고 싶으면 문장 끝에 "인포그래픽으로", "draw.io로", "손그림으로"처럼 붙이면 됩니다.
4+
5+
모든 예시는 강의·업무 상황을 가정한 가상 내용입니다.
6+
7+
---
8+
9+
## 1. 인포그래픽 (요점, 단계, 비교, SWOT)
10+
11+
![인포그래픽 예시](examples/ai-adoption-steps-infographic.png)
12+
13+
```
14+
아래 내용을 인포그래픽 한 장으로 만들고 PNG도 뽑아줘.
15+
제목: 업무에 AI를 붙이는 4단계
16+
1. 반복 업무 찾기 - 매주 반복하는 일
17+
2. 프롬프트 작성 - 입력·출력 형식 정하기
18+
3. 결과 검토 - 사실·수치는 사람이
19+
4. 팀에 공유 - 스킬로 묶어 재사용
20+
```
21+
22+
```
23+
온라인 강의와 오프라인 강의를 비교하는 인포그래픽 만들어줘.
24+
온라인: 시간 제약이 적다, 질문 응답이 늦다
25+
오프라인: 즉석 피드백, 장소 비용 발생
26+
```
27+
28+
```
29+
사내 AI 교육 과정의 SWOT을 인포그래픽으로 정리해줘.
30+
강점: 실습 위주 / 약점: 강사 수 부족 / 기회: 자동화 수요 증가 / 위협: 무료 외부 강의
31+
```
32+
33+
```
34+
이번 학기 강의 로드맵을 타임라인 인포그래픽으로. 1주 오리엔테이션, 3주 데이터 수집, 6주 모델링, 9주 발표.
35+
```
36+
37+
---
38+
39+
## 2. SVG 순서도 (분기 있는 흐름, 보고서에 바로 붙이기)
40+
41+
![순서도 예시](examples/assignment-flow.png)
42+
43+
```
44+
과제 제출 처리 흐름을 순서도로 그려줘. PNG도.
45+
제출 → 마감 전인지 확인 → 마감 전이면 자동 채점, 아니면 지각 사유 확인(인정되면 자동 채점)
46+
→ 기준 점수 이상이면 통과, 아니면 보완 피드백 후 다시 제출
47+
```
48+
49+
```
50+
로그인 과정을 시퀀스 다이어그램으로 그려줘. 사용자, 웹, 인증 서버 세 참여자.
51+
```
52+
53+
```
54+
수강 신청 상태가 바뀌는 과정을 상태도로: 신청 → 승인 대기 → 승인/반려 → 수강 중 → 수료
55+
```
56+
57+
```
58+
'데이터 분석 입문' 강의 내용을 마인드맵으로 정리해줘. 가지: 데이터 수집, 전처리, 시각화, 모델링
59+
```
60+
61+
---
62+
63+
## 3. draw.io (담당자별 업무 흐름도, 나중에 고칠 그림)
64+
65+
![draw.io 예시](examples/approval-flow.png)
66+
67+
```
68+
교육 신청 승인 절차를 담당자별(신청자, 팀장, 교육팀) 흐름도로 draw.io 파일과 PNG로 만들어줘.
69+
신청자가 신청 → 팀장 검토 → 승인 여부 판단
70+
→ 승인이면 교육팀이 수강 등록 후 안내 메일 발송
71+
→ 반려면 신청자가 반려 사유 확인
72+
```
73+
74+
```
75+
구매 요청부터 지급까지 결재 흐름을 스윔레인으로 그려줘. 요청자, 팀장, 재무팀. 수정할 거라 draw.io로.
76+
```
77+
78+
```
79+
이 회원 테이블 구조를 ER 다이어그램으로 draw.io 링크 만들어줘.
80+
회원(회원ID, 이름, 이메일) 1:N 수강신청(신청ID, 회원ID, 과정ID) N:1 과정(과정ID, 과정명)
81+
```
82+
83+
---
84+
85+
## 4. 엑스칼리드로 (손그림, 화이트보드, 수업 중 함께 고치기)
86+
87+
![엑스칼리드로 예시](examples/rag-sketch.png)
88+
89+
```
90+
RAG가 답을 만드는 과정을 손그림 느낌으로 그려줘. PNG도.
91+
질문 → 문서 검색 → (사내 문서에서 관련 문단 찾기) → LLM이 검색 결과를 참고 → 근거 있는 답변
92+
```
93+
94+
```
95+
오늘 수업 판서용으로, 지도학습과 비지도학습 차이를 엑스칼리드로 스케치로 그려줘.
96+
```
97+
98+
```
99+
팀 회고 화이트보드 틀을 엑스칼리드로로 만들어줘. 칸: 잘한 점, 아쉬운 점, 다음에 할 일
100+
```
101+
102+
---
103+
104+
## 5. 구조도 (서비스·시스템 구성)
105+
106+
![구조도 예시](examples/training-platform-architecture.png)
107+
108+
```
109+
사내 교육 플랫폼 구조도를 그려줘. PNG도.
110+
수강생은 수강생 웹, 강사·관리자는 관리자 화면을 쓴다.
111+
두 화면 모두 API 서버를 거치고, API 서버는 인증(사내 계정 로그인)을 확인한다.
112+
API 서버는 수강 기록 DB와 자료 저장소(PDF·영상)에 접근한다.
113+
```
114+
115+
```
116+
이 README를 읽고 프로젝트 구조를 구조도로 그려줘. 모르는 기술 스택은 [확인 필요]로 표시해.
117+
```
118+
119+
---
120+
121+
## 이미지(PNG) 뽑기
122+
123+
| 상황 | 말할 것 |
124+
|---|---|
125+
| 처음부터 PNG까지 | 요청 끝에 "PNG도 뽑아줘" |
126+
| 이미 만든 그림 | "방금 그림 PNG로 뽑아줘" |
127+
| 크게 | "PNG 3배 해상도로" (`--scale 3`) |
128+
| 여러 개 한 번에 | "이 폴더의 .drawio 파일 전부 PNG로" |
129+
130+
Claude Code·Codex에서는 PC에 있는 Chrome이나 Edge로 PNG를 만듭니다(Windows는 Edge가 기본 설치). claude.ai·ChatGPT 웹에서는 결과 HTML을 열어 `PNG로 저장` 버튼을 누르거나, diagrams.net·excalidraw.com에서 내보내기를 쓰면 됩니다.
131+
132+
---
133+
134+
## 고치기
135+
136+
```
137+
2번 단계 설명을 '프롬프트 템플릿 만들기'로 바꿔줘
138+
```
139+
```
140+
색을 파랑 계열 두 가지로만 줄여줘
141+
```
142+
```
143+
어두운 배경으로 다시
144+
```
145+
```
146+
가로가 너무 길어. 위에서 아래로 배치해줘
147+
```
148+
```
149+
같은 내용을 draw.io로도 만들어줘
150+
```
151+
152+
## 잘 나오게 쓰는 요령
153+
154+
- 한 장에 메시지 하나. 항목은 9개 이하.
155+
- 단계와 분기를 화살표(→)로 적으면 순서를 정확히 따릅니다.
156+
- 담당자별로 나누고 싶으면 "담당자: A, B, C"를 명시하세요.
157+
- 수치는 직접 주세요. 스킬은 없는 수치를 만들지 않고 `[확인 필요]`로 남깁니다.
158+
- 결론 문장을 제목으로 주면 슬라이드에 바로 쓰기 좋습니다. 예: "승인은 팀장 단계에서 가장 오래 걸린다".

0 commit comments

Comments
 (0)