Skip to content

Commit 659edfb

Browse files
dschloeclaude
andcommitted
Regenerate examples from their prompts and pair each prompt with its result
- Examples: rewrite the five main examples using only what each prompt states (earlier versions added subtitles, regions and descriptions the prompts did not contain); add eleven more so every prompt in PROMPTS.md has a real output image - README, PROMPTS.md: show prompt then result for each method - to_png.py: the esm.sh "?bundle" address for Excalidraw no longer resolves and font inlining stalls in headless Chrome; use the plain module address, skip font inlining and fall back to system fonts - infographic.md: use the left-right hierarchy template for comparing two named things; the compare-binary templates only draw Pros/Cons Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 11b8036 commit 659edfb

44 files changed

Lines changed: 1478 additions & 776 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎PROMPTS.md‎

Lines changed: 97 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 예시 프롬프트
22

3-
설치 후 아래 문장을 그대로 붙여 넣어 보세요. 스킬은 내용의 모양을 보고 방식을 고릅니다. 방식을 정하고 싶으면 문장 끝에 "인포그래픽으로", "draw.io로", "손그림으로"처럼 붙이면 됩니다.
3+
설치 후 아래 문장을 그대로 붙여 넣어 보세요. 프롬프트마다 그 문장으로 만든 실제 결과 이미지를 바로 아래에 붙였습니다. 스킬은 내용의 모양을 보고 방식을 고릅니다. 방식을 정하고 싶으면 문장 끝에 "인포그래픽으로", "draw.io로", "손그림으로"처럼 붙이면 됩니다.
44

55
모든 예시는 강의·업무 상황을 가정한 가상 내용입니다.
66

@@ -27,7 +27,7 @@
2727

2828
## 1. 인포그래픽 (요점, 단계, 비교, SWOT)
2929

30-
![인포그래픽 예시](examples/ai-adoption-steps-infographic.png)
30+
**프롬프트**
3131

3232
```
3333
아래 내용을 인포그래픽 한 장으로 만들고 PNG도 뽑아줘.
@@ -38,50 +38,96 @@
3838
4. 팀에 공유 - 스킬로 묶어 재사용
3939
```
4040

41+
**결과**
42+
43+
![단계 인포그래픽](examples/ai-adoption-steps-infographic.png)
44+
45+
**프롬프트**
46+
4147
```
4248
온라인 강의와 오프라인 강의를 비교하는 인포그래픽 만들어줘.
4349
온라인: 시간 제약이 적다, 질문 응답이 늦다
4450
오프라인: 즉석 피드백, 장소 비용 발생
4551
```
4652

53+
**결과**
54+
55+
![비교 인포그래픽](examples/online-offline-compare-infographic.png)
56+
57+
**프롬프트**
58+
4759
```
4860
사내 AI 교육 과정의 SWOT을 인포그래픽으로 정리해줘.
4961
강점: 실습 위주 / 약점: 강사 수 부족 / 기회: 자동화 수요 증가 / 위협: 무료 외부 강의
5062
```
5163

64+
**결과**
65+
66+
![SWOT 인포그래픽](examples/ai-training-swot-infographic.png)
67+
68+
**프롬프트**
69+
5270
```
5371
이번 학기 강의 로드맵을 타임라인 인포그래픽으로. 1주 오리엔테이션, 3주 데이터 수집, 6주 모델링, 9주 발표.
5472
```
5573

74+
**결과**
75+
76+
![타임라인 인포그래픽](examples/course-roadmap-timeline-infographic.png)
77+
5678
---
5779

58-
## 2. SVG 순서도 (분기 있는 흐름, 보고서에 바로 붙이기)
80+
## 2. SVG 다이어그램 (분기 있는 순서도, 시퀀스, 상태도, 마인드맵)
5981

60-
![순서도 예시](examples/assignment-flow.png)
82+
**프롬프트**
6183

6284
```
6385
과제 제출 처리 흐름을 순서도로 그려줘. PNG도.
6486
제출 → 마감 전인지 확인 → 마감 전이면 자동 채점, 아니면 지각 사유 확인(인정되면 자동 채점)
6587
→ 기준 점수 이상이면 통과, 아니면 보완 피드백 후 다시 제출
6688
```
6789

90+
**결과**
91+
92+
![순서도](examples/assignment-flow.png)
93+
94+
프롬프트에 "사유가 인정되지 않으면"이 없어서, 스킬이 그 갈래를 지어내지 않고 `[확인 필요]`로 남겼습니다.
95+
96+
**프롬프트**
97+
6898
```
6999
로그인 과정을 시퀀스 다이어그램으로 그려줘. 사용자, 웹, 인증 서버 세 참여자.
70100
```
71101

102+
**결과**
103+
104+
![시퀀스 다이어그램](examples/login-sequence.png)
105+
106+
**프롬프트**
107+
72108
```
73109
수강 신청 상태가 바뀌는 과정을 상태도로: 신청 → 승인 대기 → 승인/반려 → 수강 중 → 수료
74110
```
75111

112+
**결과**
113+
114+
![상태도](examples/enrollment-states.png)
115+
116+
**프롬프트**
117+
76118
```
77119
'데이터 분석 입문' 강의 내용을 마인드맵으로 정리해줘. 가지: 데이터 수집, 전처리, 시각화, 모델링
78120
```
79121

122+
**결과**
123+
124+
![마인드맵](examples/data-analysis-mindmap.png)
125+
80126
---
81127

82128
## 3. draw.io (담당자별 업무 흐름도, 나중에 고칠 그림)
83129

84-
![draw.io 예시](examples/approval-flow.png)
130+
**프롬프트**
85131

86132
```
87133
교육 신청 승인 절차를 담당자별(신청자, 팀장, 교육팀) 흐름도로 draw.io 파일과 PNG로 만들어줘.
@@ -90,39 +136,71 @@
90136
→ 반려면 신청자가 반려 사유 확인
91137
```
92138

139+
**결과**
140+
141+
![draw.io 스윔레인](examples/approval-flow.png)
142+
143+
**프롬프트**
144+
93145
```
94146
구매 요청부터 지급까지 결재 흐름을 스윔레인으로 그려줘. 요청자, 팀장, 재무팀. 수정할 거라 draw.io로.
95147
```
96148

149+
**결과**
150+
151+
![draw.io 결재 흐름](examples/purchase-approval.png)
152+
153+
**프롬프트**
154+
97155
```
98156
이 회원 테이블 구조를 ER 다이어그램으로 draw.io 링크 만들어줘.
99157
회원(회원ID, 이름, 이메일) 1:N 수강신청(신청ID, 회원ID, 과정ID) N:1 과정(과정ID, 과정명)
100158
```
101159

160+
**결과**
161+
162+
![draw.io ER 다이어그램](examples/member-course-er.png)
163+
102164
---
103165

104166
## 4. 엑스칼리드로 (손그림, 화이트보드, 수업 중 함께 고치기)
105167

106-
![엑스칼리드로 예시](examples/rag-sketch.png)
168+
**프롬프트**
107169

108170
```
109171
RAG가 답을 만드는 과정을 손그림 느낌으로 그려줘. PNG도.
110172
질문 → 문서 검색 → (사내 문서에서 관련 문단 찾기) → LLM이 검색 결과를 참고 → 근거 있는 답변
111173
```
112174

175+
**결과**
176+
177+
![엑스칼리드로 손그림](examples/rag-sketch.png)
178+
179+
**프롬프트**
180+
113181
```
114182
오늘 수업 판서용으로, 지도학습과 비지도학습 차이를 엑스칼리드로 스케치로 그려줘.
115183
```
116184

185+
**결과**
186+
187+
![엑스칼리드로 판서](examples/supervised-vs-unsupervised.png)
188+
189+
**프롬프트**
190+
117191
```
118192
팀 회고 화이트보드 틀을 엑스칼리드로로 만들어줘. 칸: 잘한 점, 아쉬운 점, 다음에 할 일
119193
```
120194

195+
**결과**
196+
197+
![엑스칼리드로 회고 틀](examples/retro-board.png)
198+
121199
---
122200

123201
## 5. 구조도 (서비스·시스템 구성)
124202

125-
![구조도 예시](examples/training-platform-architecture.png)
203+
**프롬프트**
126204

127205
```
128206
사내 교육 플랫폼 구조도를 그려줘. PNG도.
@@ -131,10 +209,22 @@ RAG가 답을 만드는 과정을 손그림 느낌으로 그려줘. PNG도.
131209
API 서버는 수강 기록 DB와 자료 저장소(PDF·영상)에 접근한다.
132210
```
133211

212+
**결과**
213+
214+
![구조도](examples/training-platform-architecture.png)
215+
216+
**프롬프트**
217+
134218
```
135219
이 README를 읽고 프로젝트 구조를 구조도로 그려줘. 모르는 기술 스택은 [확인 필요]로 표시해.
136220
```
137221

222+
**결과**
223+
224+
![README로 그린 구조도](examples/project-structure-architecture.png)
225+
226+
위 그림은 이 저장소의 README를 읽혀서 만든 것입니다.
227+
138228
---
139229

140230
## 이미지(PNG) 뽑기

‎README.md‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,83 @@ npx skills add dschloe/one-page-diagrams
131131
| 손그림, 화이트보드, 수업 중 함께 고치기 | [Excalidraw](https://excalidraw.com) | `.excalidraw` + PNG | https://excalidraw.com |
132132
| 서비스·시스템 구성 | 구조도 | `.html` + PNG | 웹 브라우저 |
133133

134+
아래는 방식마다 실제로 넣은 프롬프트와 그 결과입니다. 원본 파일은 [examples](examples) 폴더에 있고, 방식별로 더 많은 프롬프트와 결과는 [PROMPTS.md](PROMPTS.md)에 있습니다.
135+
136+
#### 1. 인포그래픽
137+
138+
**프롬프트**
139+
140+
```
141+
아래 내용을 인포그래픽 한 장으로 만들고 PNG도 뽑아줘.
142+
제목: 업무에 AI를 붙이는 4단계
143+
1. 반복 업무 찾기 - 매주 반복하는 일
144+
2. 프롬프트 작성 - 입력·출력 형식 정하기
145+
3. 결과 검토 - 사실·수치는 사람이
146+
4. 팀에 공유 - 스킬로 묶어 재사용
147+
```
148+
149+
**결과**
150+
151+
![인포그래픽 결과](examples/ai-adoption-steps-infographic.png)
152+
153+
#### 2. SVG 다이어그램
154+
155+
**프롬프트**
156+
157+
```
158+
과제 제출 처리 흐름을 순서도로 그려줘. PNG도.
159+
제출 → 마감 전인지 확인 → 마감 전이면 자동 채점, 아니면 지각 사유 확인(인정되면 자동 채점)
160+
→ 기준 점수 이상이면 통과, 아니면 보완 피드백 후 다시 제출
161+
```
162+
163+
**결과**
164+
165+
![SVG 다이어그램 결과](examples/assignment-flow.png)
166+
167+
#### 3. draw.io
168+
169+
**프롬프트**
170+
171+
```
172+
교육 신청 승인 절차를 담당자별(신청자, 팀장, 교육팀) 흐름도로 draw.io 파일과 PNG로 만들어줘.
173+
신청자가 신청 → 팀장 검토 → 승인 여부 판단
174+
→ 승인이면 교육팀이 수강 등록 후 안내 메일 발송
175+
→ 반려면 신청자가 반려 사유 확인
176+
```
177+
178+
**결과**
179+
180+
![draw.io 결과](examples/approval-flow.png)
181+
182+
#### 4. Excalidraw
183+
184+
**프롬프트**
185+
186+
```
187+
RAG가 답을 만드는 과정을 손그림 느낌으로 그려줘. PNG도.
188+
질문 → 문서 검색 → (사내 문서에서 관련 문단 찾기) → LLM이 검색 결과를 참고 → 근거 있는 답변
189+
```
190+
191+
**결과**
192+
193+
![Excalidraw 결과](examples/rag-sketch.png)
194+
195+
#### 5. 구조도
196+
197+
**프롬프트**
198+
199+
```
200+
사내 교육 플랫폼 구조도를 그려줘. PNG도.
201+
수강생은 수강생 웹, 강사·관리자는 관리자 화면을 쓴다.
202+
두 화면 모두 API 서버를 거치고, API 서버는 인증(사내 계정 로그인)을 확인한다.
203+
API 서버는 수강 기록 DB와 자료 저장소(PDF·영상)에 접근한다.
204+
```
205+
206+
**결과**
207+
208+
![구조도 결과](examples/training-platform-architecture.png)
209+
210+
134211
---
135212

136213
## 3. 이미지(PNG) 뽑기

‎dist/one-page-diagrams.zip‎

227 Bytes
Binary file not shown.

‎examples/ai-adoption-steps-infographic.html‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
var SYNTAX = String.raw`infographic sequence-ascending-steps
2929
data
3030
title 업무에 AI를 붙이는 4단계
31-
desc 작은 반복 업무부터 시작해 팀 표준으로 넓힌다
3231
sequences
3332
- label 반복 업무 찾기
3433
desc 매주 반복하는 일
590 Bytes
Loading
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<!DOCTYPE html>
2+
<html lang="ko">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>사내 AI 교육 과정 SWOT</title>
7+
<style>
8+
* { margin: 0; padding: 0; box-sizing: border-box; }
9+
body { background: #ffffff; font-family: 'Pretendard','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif; }
10+
.bar { position: fixed; top: 12px; right: 12px; z-index: 10; display: flex; gap: 6px; }
11+
.bar button { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; cursor: pointer; }
12+
#container { width: 1200px; min-height: 600px; margin: 0 auto; padding: 24px; }
13+
#msg { display: none; margin: 40px auto; width: 640px; color: #b91c1c; font-size: 15px; line-height: 1.6; }
14+
@media print { .bar { display: none; } }
15+
.capture .bar { display: none; }
16+
</style>
17+
</head>
18+
<body>
19+
<div class="bar">
20+
<button onclick="save('png')">PNG로 저장</button>
21+
<button onclick="save('svg')">SVG로 저장</button>
22+
</div>
23+
<div id="container"></div>
24+
<p id="msg">그림을 불러오지 못했습니다. 인터넷 연결을 확인한 뒤 새로고침하세요. 이 파일은 AntV Infographic 라이브러리를 인터넷(CDN)에서 불러옵니다.</p>
25+
26+
<script src="https://cdn.jsdelivr.net/npm/@antv/infographic@0.2.20/dist/infographic.min.js"></script>
27+
<script>
28+
var SYNTAX = String.raw`infographic compare-swot
29+
data
30+
title 사내 AI 교육 과정 SWOT
31+
compares
32+
- label 강점
33+
icon trophy
34+
children
35+
- label 실습 위주
36+
- label 약점
37+
icon alert circle
38+
children
39+
- label 강사 수 부족
40+
- label 기회
41+
icon trending up
42+
children
43+
- label 자동화 수요 증가
44+
- label 위협
45+
icon shield alert
46+
children
47+
- label 무료 외부 강의
48+
theme
49+
palette #2563eb #7c3aed #f97316 #059669`;
50+
var infographic = null;
51+
52+
function draw() {
53+
if (!window.AntVInfographic) { document.getElementById('msg').style.display = 'block'; return; }
54+
if (!infographic) {
55+
infographic = new AntVInfographic.Infographic({ container: '#container', width: '100%', height: '100%' });
56+
}
57+
infographic.render(SYNTAX);
58+
document.body.setAttribute('data-rendered', '1');
59+
}
60+
61+
function save(type) {
62+
if (!infographic) return;
63+
infographic.toDataURL({ type: type }).then(function (url) {
64+
var a = document.createElement('a');
65+
a.download = document.title + '.' + type;
66+
a.href = url;
67+
a.click();
68+
});
69+
}
70+
71+
draw();
72+
if (document.fonts && document.fonts.ready) { document.fonts.ready.then(draw).catch(function () {}); }
73+
</script>
74+
</body>
75+
</html>
495 KB
Loading
-202 KB
Binary file not shown.

‎examples/approval-flow.drawio‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<mxCell id="lane1" value="팀장" style="swimlane;horizontal=0;startSize=48;html=1;fontSize=15;fontStyle=1;fillColor=#f8fafc;strokeColor=#cbd5e1;swimlaneFillColor=#ffffff;" vertex="1" parent="1"><mxGeometry x="30" y="240" width="1228" height="150" as="geometry"/></mxCell>
77
<mxCell id="lane2" value="교육팀" style="swimlane;horizontal=0;startSize=48;html=1;fontSize=15;fontStyle=1;fillColor=#f8fafc;strokeColor=#cbd5e1;swimlaneFillColor=#ffffff;" vertex="1" parent="1"><mxGeometry x="30" y="390" width="1228" height="150" as="geometry"/></mxCell>
88
<mxCell id="n_apply" value="교육 신청" style="rounded=1;arcSize=40;whiteSpace=wrap;html=1;fillColor=#dbeafe;strokeColor=#2563eb;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane0"><mxGeometry x="108" y="43" width="140" height="64" as="geometry"/></mxCell>
9-
<mxCell id="n_review" value="신청서 검토" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#f1f5f9;strokeColor=#64748b;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane1"><mxGeometry x="338" y="43" width="140" height="64" as="geometry"/></mxCell>
9+
<mxCell id="n_review" value="검토" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#f1f5f9;strokeColor=#64748b;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane1"><mxGeometry x="338" y="43" width="140" height="64" as="geometry"/></mxCell>
1010
<mxCell id="n_ok" value="승인?" style="rhombus;whiteSpace=wrap;html=1;fillColor=#fef3c7;strokeColor=#d97706;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane1"><mxGeometry x="568" y="33" width="140" height="84" as="geometry"/></mxCell>
1111
<mxCell id="n_enroll" value="수강 등록" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#dcfce7;strokeColor=#16a34a;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane2"><mxGeometry x="798" y="43" width="140" height="64" as="geometry"/></mxCell>
1212
<mxCell id="n_notify" value="안내 메일&lt;br&gt;발송" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#f1f5f9;strokeColor=#64748b;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane2"><mxGeometry x="1028" y="39" width="140" height="72" as="geometry"/></mxCell>
1313
<mxCell id="n_reject" value="반려 사유&lt;br&gt;확인" style="rounded=1;arcSize=14;whiteSpace=wrap;html=1;fillColor=#fee2e2;strokeColor=#dc2626;strokeWidth=2;fontSize=15;fontColor=#0f172a;" vertex="1" parent="lane0"><mxGeometry x="798" y="39" width="140" height="72" as="geometry"/></mxCell>
1414
<mxCell id="e0" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;" edge="1" source="n_apply" target="n_review" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
1515
<mxCell id="e1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;" edge="1" source="n_review" target="n_ok" parent="lane1"><mxGeometry relative="1" as="geometry"/></mxCell>
16-
<mxCell id="e2" value="예" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" source="n_ok" target="n_enroll" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
16+
<mxCell id="e2" value="승인" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" source="n_ok" target="n_enroll" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
1717
<mxCell id="e3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;" edge="1" source="n_enroll" target="n_notify" parent="lane2"><mxGeometry relative="1" as="geometry"/></mxCell>
18-
<mxCell id="e4" value="아니오" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;dashed=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" source="n_ok" target="n_reject" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
18+
<mxCell id="e4" value="반려" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;endArrow=block;endFill=1;strokeColor=#475569;strokeWidth=2;fontSize=13;labelBackgroundColor=#ffffff;dashed=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" edge="1" source="n_ok" target="n_reject" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
1919
</root></mxGraphModel></diagram></mxfile>

‎examples/approval-flow.png‎

-2.34 KB
Loading

0 commit comments

Comments
 (0)