thuthi-plugin 0.0.0-stage โ†’ 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.claude-plugin/marketplace.json +55 -0
  2. package/README.md +13 -2
  3. package/bin/parallel-browser.js +109 -0
  4. package/extension/background.js +1329 -0
  5. package/extension/config.json +1 -0
  6. package/extension/guard.js +44 -0
  7. package/extension/manifest.json +10 -0
  8. package/extension/overlay.js +104 -0
  9. package/extension/popup.html +34 -0
  10. package/extension/popup.js +39 -0
  11. package/extension-reloader/manifest.json +13 -0
  12. package/extension-reloader/sw.js +17 -0
  13. package/package.json +13 -4
  14. package/plugins/thuthi/.claude-plugin/plugin.json +8 -0
  15. package/plugins/thuthi/context.md +3 -0
  16. package/plugins/thuthi/hooks/hooks.json +15 -0
  17. package/plugins/thuthi/skills/setup/SKILL.md +55 -0
  18. package/plugins/thuthi/skills/setup/scripts/doctor.py +249 -0
  19. package/plugins/thuthi/skills/setup/scripts/selftest.py +188 -0
  20. package/plugins/thuthi/tools/claude-switch/claude_switch.py +8 -0
  21. package/plugins/thuthi/tools/legacy_launcher.py +65 -0
  22. package/plugins/thuthi/tools/statusline/statusline.py +8 -0
  23. package/plugins/thuthi-accounts/.claude-plugin/plugin.json +9 -0
  24. package/plugins/thuthi-accounts/bin/claude-switch +5 -0
  25. package/plugins/thuthi-accounts/bin/claude-switch.cmd +4 -0
  26. package/plugins/thuthi-accounts/hooks/hooks.json +15 -0
  27. package/plugins/thuthi-accounts/lib/tls.py +68 -0
  28. package/plugins/thuthi-accounts/lib/usage_store.py +150 -0
  29. package/plugins/thuthi-accounts/setup_check.py +21 -0
  30. package/plugins/thuthi-accounts/skills/claude-switch/SKILL.md +48 -0
  31. package/plugins/thuthi-accounts/tools/claude-switch/claude-switch-tui.py +397 -0
  32. package/plugins/thuthi-accounts/tools/claude-switch/claude_switch.py +1204 -0
  33. package/plugins/thuthi-accounts/tools/claude-switch/credstore.py +417 -0
  34. package/plugins/thuthi-accounts/tools/claude-switch/install.py +301 -0
  35. package/plugins/thuthi-accounts/tools/claude-switch/tests/selftest.py +491 -0
  36. package/plugins/thuthi-accounts/tools/statusline/statusline.py +212 -0
  37. package/plugins/thuthi-agenda-picker/.claude-plugin/plugin.json +9 -0
  38. package/plugins/thuthi-agenda-picker/context.md +3 -0
  39. package/plugins/thuthi-agenda-picker/hooks/hooks.json +15 -0
  40. package/plugins/thuthi-agenda-picker/lib/pbpage.py +397 -0
  41. package/plugins/thuthi-agenda-picker/setup_check.py +18 -0
  42. package/plugins/thuthi-agenda-picker/skills/agenda-picker/SKILL.md +280 -0
  43. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/design-rules.md +110 -0
  44. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/diagram/base.css +33 -0
  45. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/agenda.json +146 -0
  46. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/A-dark.svg +5 -0
  47. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/A-light.svg +5 -0
  48. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/B-dark.svg +5 -0
  49. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/B-light.svg +5 -0
  50. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/C-dark.svg +5 -0
  51. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/C-light.svg +5 -0
  52. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/base.css +33 -0
  53. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/name-B.html +15 -0
  54. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/now-dark.svg +5 -0
  55. package/plugins/thuthi-agenda-picker/skills/agenda-picker/references/example/shots/now-light.svg +5 -0
  56. package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/picker.py +1286 -0
  57. package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/selftest.py +771 -0
  58. package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/shot.py +117 -0
  59. package/plugins/thuthi-agenda-picker/skills/agenda-picker/scripts/template.html +1029 -0
  60. package/plugins/thuthi-arch-diagram/.claude-plugin/plugin.json +9 -0
  61. package/plugins/thuthi-arch-diagram/lib/pbpage.py +397 -0
  62. package/plugins/thuthi-arch-diagram/lib/tls.py +68 -0
  63. package/plugins/thuthi-arch-diagram/setup_check.py +10 -0
  64. package/plugins/thuthi-arch-diagram/skills/arch-diagram/SKILL.md +125 -0
  65. package/plugins/thuthi-arch-diagram/skills/arch-diagram/references/design-rules.md +110 -0
  66. package/plugins/thuthi-arch-diagram/skills/arch-diagram/references/example-shop.py +167 -0
  67. package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/check.py +194 -0
  68. package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/diagramkit.py +682 -0
  69. package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/interact_test.py +115 -0
  70. package/plugins/thuthi-arch-diagram/skills/arch-diagram/scripts/render.py +113 -0
  71. package/plugins/thuthi-browser/.claude-plugin/plugin.json +9 -0
  72. package/plugins/thuthi-browser/context.md +3 -0
  73. package/plugins/thuthi-browser/hooks/hooks.json +15 -0
  74. package/plugins/thuthi-browser/lib/pbpage.py +397 -0
  75. package/plugins/thuthi-browser/setup_check.py +93 -0
  76. package/plugins/thuthi-browser/skills/parallel-browser/SKILL.md +271 -0
  77. package/plugins/thuthi-browser/skills/parallel-browser/references/api.md +243 -0
  78. package/plugins/thuthi-browser/skills/parallel-browser/references/install.md +106 -0
  79. package/plugins/thuthi-demo-video/.claude-plugin/plugin.json +9 -0
  80. package/plugins/thuthi-demo-video/lib/pbpage.py +397 -0
  81. package/plugins/thuthi-demo-video/setup_check.py +14 -0
  82. package/plugins/thuthi-demo-video/skills/demo-video/SKILL.md +261 -0
  83. package/plugins/thuthi-demo-video/skills/demo-video/scripts/caption.html +16 -0
  84. package/plugins/thuthi-demo-video/skills/demo-video/scripts/cursor.js +132 -0
  85. package/plugins/thuthi-demo-video/skills/demo-video/scripts/demo_video.py +2416 -0
  86. package/plugins/thuthi-demo-video/skills/demo-video/scripts/example_scenario.py +97 -0
  87. package/plugins/thuthi-demo-video/skills/demo-video/scripts/frame.html +95 -0
  88. package/plugins/thuthi-demo-video/skills/demo-video/scripts/overlay.js +129 -0
  89. package/plugins/thuthi-demo-video/skills/demo-video/scripts/title.html +30 -0
  90. package/plugins/thuthi-no-more-slop/.claude-plugin/plugin.json +9 -0
  91. package/plugins/thuthi-no-more-slop/setup_check.py +10 -0
  92. package/plugins/thuthi-no-more-slop/skills/no-more-slop/LICENSE +21 -0
  93. package/plugins/thuthi-no-more-slop/skills/no-more-slop/SKILL.md +235 -0
  94. package/plugins/thuthi-no-more-slop/skills/no-more-slop/SOURCE.txt +1 -0
  95. package/plugins/thuthi-no-more-slop/skills/no-more-slop/agents/openai.yaml +6 -0
  96. package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/examples.md +289 -0
  97. package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/tokens.md +46 -0
  98. package/plugins/thuthi-no-more-slop/skills/no-more-slop/references/unslop-fallback.md +36 -0
  99. package/plugins/thuthi-no-more-slop/skills/no-more-slop/scripts/count_tells.py +426 -0
  100. package/plugins/thuthi-orca/.claude-plugin/plugin.json +9 -0
  101. package/plugins/thuthi-orca/context.md +5 -0
  102. package/plugins/thuthi-orca/hooks/hooks.json +18 -0
  103. package/plugins/thuthi-orca/hooks/orca-team-grid.ts +21 -0
  104. package/plugins/thuthi-orca/setup_check.py +12 -0
  105. package/plugins/thuthi-orca/skills/orca-new-work/SKILL.md +492 -0
  106. package/plugins/thuthi-orca/tools/orca-team-grid/bin/tmux +338 -0
  107. package/plugins/thuthi-orca/tools/orca-team-grid/tests/selftest.py +299 -0
  108. package/runtime/client.js +69 -0
  109. package/runtime/daemon.js +503 -0
  110. package/runtime/focus-monitor.js +53 -0
  111. package/runtime/keys.js +86 -0
  112. package/runtime/owner.js +64 -0
  113. package/runtime/recorder.js +267 -0
  114. package/runtime/relay.js +95 -0
  115. package/runtime/session.js +1599 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "thuthi-arch-diagram",
3
+ "version": "0.13.3",
4
+ "description": "arch-diagram ์Šคํ‚ฌ: ๋ฌธ์„œ ยท ์ฝ”๋“œ ์กฐ์‚ฌ ๊ฒฐ๊ณผ๋ฅผ Overview + ํด๋ฆญ ํŒ์—… ์ƒ์„ธ๋กœ ๋œ ๋‹จ์ผ HTML ๋‹ค์ด์–ด๊ทธ๋žจ์œผ๋กœ ๋งŒ๋“ ๋‹ค (๋ชจ๋ˆˆ ๋ฐ”ํƒ• ยท ๊ณต์‹ ๋กœ๊ณ  ํƒ€์ผ ยท ๋ฒˆํ˜ธ ๋งค๊ธด ํ๋ฆ„)",
5
+ "author": {
6
+ "name": "thuthi"
7
+ },
8
+ "dependencies": ["thuthi", "thuthi-browser"]
9
+ }
@@ -0,0 +1,397 @@
1
+ """thuthi ์Šคํ‚ฌ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ parallel-browser ๋กœ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ๋‹ค๋ฃจ๊ฒŒ ํ•˜๋Š” ์–‡์€ ๋‹ค๋ฆฌ.
2
+
3
+ from pbpage import Browser
4
+ with Browser("agenda-selftest") as b: # ์„ธ์…˜ ํ•˜๋‚˜ (ํƒญ ๋ฌถ์Œ). ๋๋‚˜๋ฉด ๋‹ซ๋Š”๋‹ค
5
+ pg = b.new_page(viewport=(1360, 900)) # ์ฒซ ํƒญ์„ ์“ฐ๊ณ , ๋‹ค์Œ๋ถ€ํ„ฐ๋Š” ์ƒˆ ํƒญ
6
+ pg.goto("http://127.0.0.1:8000/")
7
+ pg.click("#send"); pg.screenshot("/tmp/a.png")
8
+
9
+ parallel-browser ๋Š” ์‚ฌ์šฉ์ž Chrome ยท Edge ์˜ ์—์ด์ „ํŠธ ์ „์šฉ ์ฐฝ์—์„œ ๋Œ๊ณ  ํฌ์ปค์Šค๋ฅผ ๊ฐ€์ ธ๊ฐ€์ง€ ์•Š๋Š”๋‹ค. `parallel-browser nodejs`
10
+ ํ”„๋กœ์„ธ์Šค ํ•˜๋‚˜๋ฅผ ๋„์›Œ ๋‘๊ณ  JSON ํ•œ ์ค„์”ฉ ๋ช…๋ น์„ ๋ณด๋‚ธ๋‹ค (์„ธ์…˜ ๋ฉ”์„œ๋“œ ์ด๋ฆ„์„ ๊ทธ๋Œ€๋กœ ๋ถ€๋ฅธ๋‹ค: "goto", "mouse.move", "cdp" โ€ฆ).
11
+ ์ž‘์—…์ด ๋๋‚˜๋ฉด ์„ธ์…˜์„ ๋‹ซ๋Š”๋‹ค (์‚ฌ์šฉ์ž ์š”์ฒญ: ๊ฐ ์ž‘์—… ๋’ค ์ž๊ธฐ๊ฐ€ ๋„์šด ํƒญ์€ ๋ˆ๋‹ค).
12
+ ์„ธ์…˜ ์ฃผ์ธ์€ ์ด ํŒŒ์ด์ฌ ํ”„๋กœ์„ธ์Šค๋‹ค (PB_OWNER_PID). ์˜ˆ์™ธ๋กœ ์ฃฝ์–ด close ๋ฅผ ๋ชป ๋ถˆ๋Ÿฌ๋„ ๋ฐ๋ชฌ์ด ๋ช‡ ์ดˆ ์•ˆ์— ํƒญ์„ ๋‹ซ๋Š”๋‹ค.
13
+ Page ๋Š” Playwright ๋™๊ธฐ API ์˜ ์ผ๋ถ€์™€ ๊ฐ™์€ ์ด๋ฆ„ ยท ๋ชจ์–‘์ด๋ผ Playwright ๋กœ ์“ฐ๋˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์กฐ๊ธˆ๋งŒ ๊ณ ์ณ ์˜ฎ๊ธธ ์ˆ˜ ์žˆ๋‹ค.
14
+ python3 3.9 ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋งŒ ์“ด๋‹ค.
15
+ """
16
+ from __future__ import annotations
17
+
18
+ import json
19
+ import os
20
+ import queue
21
+ import re
22
+ import shutil
23
+ import subprocess
24
+ import sys
25
+ import threading
26
+ import time
27
+ from pathlib import Path
28
+
29
+ MARK = "@@PB "
30
+
31
+ # parallel-browser nodejs ์•ˆ์—์„œ ๋„๋Š” ์ชฝ. ํ•œ ์ค„์— ๋ช…๋ น ํ•˜๋‚˜๋ฅผ ๋ฐ›์•„ ์ฐจ๋ก€๋กœ ์‹คํ–‰ํ•˜๊ณ  ๊ฒฐ๊ณผ๋ฅผ MARK ๋ฅผ ๋ถ™์—ฌ ๋Œ๋ ค์ค€๋‹ค.
32
+ SERVER_JS = r"""
33
+ const cfg = JSON.parse(process.env.PBPAGE_CFG || '{}');
34
+ const s = await session(cfg.label || 'thuthi', cfg.options || {});
35
+ const send = (o) => process.stdout.write('@@PB ' + JSON.stringify(o) + '\n');
36
+ s.onDialog(async (d) => ({ accept: cfg.acceptDialogs !== false }));
37
+ send({ id: 0, ok: true, result: { handle: s.handle, tabId: s.tabId } });
38
+ let chain = Promise.resolve(), closing = false;
39
+ const run = async (m) => {
40
+ try {
41
+ if (m.path === '__close') { closing = true; await s.close(); return send({ id: m.id, ok: true, result: null }); }
42
+ const parts = m.path.split('.');
43
+ let obj = s;
44
+ for (const p of parts.slice(0, -1)) obj = obj[p];
45
+ const fn = obj[parts[parts.length - 1]];
46
+ if (typeof fn !== 'function') throw new Error('no such method: ' + m.path);
47
+ const r = await fn.apply(obj, m.args || []);
48
+ send({ id: m.id, ok: true, result: r === undefined ? null : r });
49
+ } catch (e) {
50
+ send({ id: m.id, ok: false, error: String((e && e.stack) || e) });
51
+ }
52
+ };
53
+ await new Promise((resolve) => {
54
+ let buf = '';
55
+ process.stdin.setEncoding('utf8');
56
+ process.stdin.on('data', (chunk) => {
57
+ buf += chunk;
58
+ let i;
59
+ while ((i = buf.indexOf('\n')) >= 0) {
60
+ const line = buf.slice(0, i); buf = buf.slice(i + 1);
61
+ if (line.trim()) { const m = JSON.parse(line); chain = chain.then(() => run(m)); }
62
+ }
63
+ });
64
+ process.stdin.on('end', resolve);
65
+ });
66
+ await chain;
67
+ if (!closing) { try { await s.close(); } catch (e) {} }
68
+ """
69
+
70
+ # ํŽ˜์ด์ง€ JS ์˜ค๋ฅ˜๋ฅผ ๋ชจ์•„ ๋‘๋Š” ์Šคํฌ๋ฆฝํŠธ (Playwright ์˜ pageerror ๋Œ€์‹ ). ์ƒˆ ๋ฌธ์„œ๋งˆ๋‹ค ๋จผ์ € ๋ˆ๋‹ค.
71
+ ERRORS_JS = """(() => { if (window.__pbErrors) return; window.__pbErrors = [];
72
+ addEventListener('error', e => window.__pbErrors.push(String(e.message || e)));
73
+ addEventListener('unhandledrejection', e => window.__pbErrors.push('unhandled: ' + String(e.reason))); })();"""
74
+
75
+ FN_RE = re.compile(r"^\s*(async\s+)?(function\b|\([^()]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)")
76
+
77
+
78
+ class PBError(RuntimeError):
79
+ pass
80
+
81
+
82
+ def _pb_js():
83
+ """parallel-browser CLI ์˜ js (bin/parallel-browser.js). npm link ๊ฐ€ ๊ฑด ๊ณณ โ†’ ๋งˆ์ผ“ํ”Œ๋ ˆ์ด์Šค ๋ ˆํฌ โ†’ ์ด ๋ ˆํฌ ์ˆœ."""
84
+ cands = []
85
+ cmd = shutil.which("parallel-browser")
86
+ if cmd:
87
+ cands.append(Path(cmd).parent / "node_modules" / "parallel-browser" / "bin" / "parallel-browser.js")
88
+ try:
89
+ km = Path(os.environ.get("CLAUDE_CONFIG_DIR") or Path.home() / ".claude") / "plugins" / "known_marketplaces.json"
90
+ loc = (json.loads(km.read_text(encoding="utf-8")).get("thuthi-plugin") or {}).get("installLocation")
91
+ if loc:
92
+ cands.append(Path(loc) / "bin" / "parallel-browser.js")
93
+ except (OSError, ValueError):
94
+ pass
95
+ cands.append(Path(__file__).resolve().parents[3] / "bin" / "parallel-browser.js")
96
+ return next((str(c) for c in cands if c.is_file()), None)
97
+
98
+
99
+ def pb_argv() -> list:
100
+ """parallel-browser ๋ฅผ ๋ถ€๋ฅด๋Š” ๋ช…๋ น ์•ž๋ถ€๋ถ„. Windows ๋Š” npm ์ด ๋งŒ๋“  parallel-browser.cmd ๋ผ ์ด๋ฆ„๋งŒ์œผ๋กœ๋Š” ์‹คํ–‰๋˜์ง€ ์•Š๊ณ 
101
+ (WinError 2), .cmd ๋ฅผ ๊ฑฐ์น˜๋ฉด ์—ฌ๋Ÿฌ ์ค„ -e ์ธ์ž๊ฐ€ ๊นจ์ง„๋‹ค (Windows ์‹ค์ธก). ๊ทธ๋ž˜์„œ node ๋กœ js ๋ฅผ ์ง์ ‘ ๋ถ€๋ฅธ๋‹ค."""
102
+ if sys.platform == "win32":
103
+ node, js = shutil.which("node"), _pb_js()
104
+ if node and js:
105
+ return [node, js]
106
+ return [shutil.which("parallel-browser") or "parallel-browser"]
107
+ return ["parallel-browser"]
108
+
109
+
110
+ def utf8_stdio() -> None:
111
+ """Windows ์ฝ˜์†”(cp949)์—์„œ โœ“ ยท ํ•œ๊ธ€์„ ์ฐ๋‹ค UnicodeEncodeError ๋กœ ์ฃฝ์ง€ ์•Š๊ฒŒ stdout ยท stderr ๋ฅผ UTF-8 ๋กœ."""
112
+ for f in (sys.stdout, sys.stderr):
113
+ try:
114
+ f.reconfigure(encoding="utf-8", errors="replace")
115
+ except (AttributeError, ValueError):
116
+ pass
117
+
118
+
119
+ class Browser:
120
+ """parallel-browser ์„ธ์…˜ ํ•˜๋‚˜. ํƒญ(Page) ์—ฌ๋Ÿฌ ๊ฐœ๋ฅผ ๊ฐ€์งˆ ์ˆ˜ ์žˆ๋‹ค."""
121
+
122
+ def __init__(self, label: str = "thuthi", *, accept_dialogs: bool = True,
123
+ budget: int = 4, timeout: float = 60):
124
+ cfg = {"label": label, "acceptDialogs": accept_dialogs, "options": {"budget": budget}}
125
+ # ์„ธ์…˜ ์ฃผ์ธ = ์ด ํŒŒ์ด์ฌ. ์ด๊ฒŒ ๋๋‚˜๋ฉด ๋ฐ๋ชฌ์ด ์„ธ์…˜์„ ๋‹ซ๋Š”๋‹ค
126
+ env = dict(os.environ, PBPAGE_CFG=json.dumps(cfg), PB_OWNER_PID=str(os.getpid()))
127
+ self.proc = subprocess.Popen([*pb_argv(), "nodejs", "-e", SERVER_JS], stdin=subprocess.PIPE,
128
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, encoding="utf-8",
129
+ errors="replace", bufsize=1, env=env)
130
+ self._q: dict[int, queue.Queue] = {}
131
+ self._lock = threading.Lock()
132
+ self._next = 1
133
+ self._stderr: list[str] = []
134
+ self._ready: queue.Queue = queue.Queue()
135
+ self._q[0] = self._ready
136
+ threading.Thread(target=self._read, daemon=True).start()
137
+ threading.Thread(target=lambda: self._stderr.extend(self.proc.stderr), daemon=True).start()
138
+ try:
139
+ hello = self._ready.get(timeout=timeout)
140
+ except queue.Empty:
141
+ self.proc.kill()
142
+ raise PBError("parallel-browser ์„ธ์…˜์„ ์—ด์ง€ ๋ชปํ–ˆ๋‹ค: " + "".join(self._stderr)[-500:])
143
+ if not hello.get("ok"):
144
+ raise PBError(hello.get("error", "์„ธ์…˜ ์—ด๊ธฐ ์‹คํŒจ"))
145
+ self.handle = hello["result"]["handle"]
146
+ self._first_tab = hello["result"]["tabId"]
147
+ self._cur_tab = self._first_tab
148
+ self.pages: list[Page] = []
149
+ self.closed = False
150
+
151
+ # -- ํ†ต์‹ 
152
+ def _read(self):
153
+ for line in self.proc.stdout:
154
+ if not line.startswith(MARK):
155
+ continue
156
+ msg = json.loads(line[len(MARK):])
157
+ q = self._q.get(msg.get("id"))
158
+ if q:
159
+ q.put(msg)
160
+ for q in list(self._q.values()): # ํ”„๋กœ์„ธ์Šค๊ฐ€ ๋๋‚ฌ๋‹ค
161
+ q.put({"ok": False, "error": "parallel-browser ํ”„๋กœ์„ธ์Šค๊ฐ€ ๋๋‚ฌ๋‹ค: " + "".join(self._stderr)[-500:]})
162
+
163
+ def call(self, path: str, *args, timeout: float = 60):
164
+ if self.closed:
165
+ raise PBError("์„ธ์…˜์ด ๋‹ซํ˜”๋‹ค")
166
+ with self._lock:
167
+ mid = self._next
168
+ self._next += 1
169
+ q = self._q[mid] = queue.Queue()
170
+ self.proc.stdin.write(json.dumps({"id": mid, "path": path, "args": list(args)}) + "\n")
171
+ self.proc.stdin.flush()
172
+ try:
173
+ msg = q.get(timeout=timeout)
174
+ except queue.Empty:
175
+ raise PBError(f"{path}: {timeout}์ดˆ ์•ˆ์— ๋‹ต์ด ์—†๋‹ค")
176
+ finally:
177
+ self._q.pop(mid, None)
178
+ if not msg.get("ok"):
179
+ raise PBError(f"{path}: {msg.get('error')}")
180
+ return msg.get("result")
181
+
182
+ def _use(self, tab):
183
+ if tab != self._cur_tab:
184
+ self.call("use", tab)
185
+ self._cur_tab = tab
186
+
187
+ # -- ํƒญ
188
+ def new_page(self, url: str = "", *, viewport=None, dpr: float = 1, color_scheme: str | None = "light",
189
+ collect_errors: bool = True) -> "Page":
190
+ if not self.pages:
191
+ tab = self._first_tab
192
+ else:
193
+ tab = self.call("newTab", "about:blank")
194
+ tab = tab.get("tabId", tab) if isinstance(tab, dict) else tab
195
+ pg = Page(self, tab)
196
+ self.pages.append(pg)
197
+ if viewport:
198
+ pg.set_viewport(viewport[0], viewport[1], dpr)
199
+ if color_scheme:
200
+ pg.cdp("Emulation.setEmulatedMedia", {"features": [{"name": "prefers-color-scheme", "value": color_scheme}]})
201
+ if collect_errors:
202
+ pg.cdp("Page.addScriptToEvaluateOnNewDocument", {"source": ERRORS_JS})
203
+ if url:
204
+ pg.goto(url)
205
+ return pg
206
+
207
+ def close(self):
208
+ if self.closed:
209
+ return
210
+ try:
211
+ self.call("__close", timeout=20)
212
+ except PBError:
213
+ pass
214
+ self.closed = True
215
+ try:
216
+ self.proc.stdin.close()
217
+ self.proc.wait(timeout=20)
218
+ except (OSError, subprocess.TimeoutExpired):
219
+ self.proc.kill()
220
+
221
+ def __enter__(self):
222
+ return self
223
+
224
+ def __exit__(self, *exc):
225
+ self.close()
226
+
227
+
228
+ class _Mouse:
229
+ def __init__(self, pg: "Page"):
230
+ self.pg = pg
231
+ self._down = False
232
+
233
+ def move(self, x, y, steps: int = 1):
234
+ self.pg._call("mouse.move", x, y, {"steps": steps, "button": "left" if self._down else "none"})
235
+
236
+ def down(self):
237
+ self._down = True
238
+ self.pg._call("mouse.down")
239
+
240
+ def up(self):
241
+ self._down = False
242
+ self.pg._call("mouse.up")
243
+
244
+ def click(self, x, y):
245
+ self.pg._call("mouse.click", x, y)
246
+
247
+ def wheel(self, dx, dy):
248
+ self.pg._call("mouse.wheel", dx, dy)
249
+
250
+
251
+ class _Keyboard:
252
+ def __init__(self, pg: "Page"):
253
+ self.pg = pg
254
+
255
+ def press(self, key: str):
256
+ self.pg._call("press", key)
257
+
258
+ def type(self, text: str, delay: float = 0):
259
+ self.pg._call("type", text, {"delay": delay})
260
+
261
+
262
+ class Locator:
263
+ """CSS ์„ ํƒ์ž ํ•˜๋‚˜. count ยท first ยท click ยท inner_text ๋งŒ ์“ด๋‹ค."""
264
+
265
+ def __init__(self, pg: "Page", sel: str, nth: int | None = None):
266
+ self.pg, self.sel, self.nth = pg, sel, nth
267
+
268
+ def count(self) -> int:
269
+ return self.pg.evaluate(f"document.querySelectorAll({json.dumps(self.sel)}).length")
270
+
271
+ @property
272
+ def first(self) -> "Locator":
273
+ return Locator(self.pg, self.sel, 0)
274
+
275
+ def _target(self) -> str:
276
+ return f"css={self.sel}" + (f" >> nth={self.nth}" if self.nth is not None else "")
277
+
278
+ def click(self):
279
+ self.pg._call("click", self._target())
280
+
281
+ def inner_text(self) -> str:
282
+ return self.pg._el(self.sel, "e.innerText", self.nth or 0)
283
+
284
+ def is_visible(self) -> bool:
285
+ return self.pg._visible(self.sel)
286
+
287
+ def focus(self):
288
+ self.pg._el(self.sel, "(e.focus(), null)", self.nth or 0)
289
+
290
+ def scroll_into_view_if_needed(self):
291
+ self.pg._el(self.sel, "(e.scrollIntoView({block: 'center'}), null)", self.nth or 0)
292
+
293
+
294
+ class Page:
295
+ """ํƒญ ํ•˜๋‚˜. Playwright Page ์™€ ๊ฐ™์€ ์ด๋ฆ„์˜ ๋ฉ”์„œ๋“œ ์ผ๋ถ€."""
296
+
297
+ def __init__(self, browser: Browser, tab):
298
+ self.b, self.tab = browser, tab
299
+ self.mouse = _Mouse(self)
300
+ self.keyboard = _Keyboard(self)
301
+ self.viewport_size = None
302
+
303
+ def _call(self, path, *args, timeout: float = 60):
304
+ self.b._use(self.tab)
305
+ return self.b.call(path, *args, timeout=timeout)
306
+
307
+ def cdp(self, method: str, params: dict | None = None):
308
+ return self._call("cdp", method, params or {})
309
+
310
+ def set_viewport(self, width: int, height: int, dpr: float = 1):
311
+ self.cdp("Emulation.setDeviceMetricsOverride", {"width": width, "height": height, "deviceScaleFactor": dpr, "mobile": False})
312
+ self.viewport_size = {"width": width, "height": height}
313
+
314
+ # -- ์ด๋™
315
+ def goto(self, url: str, wait_until: str = "load", timeout: float = 30):
316
+ # # ๋’ค๋งŒ ๋ฐ”๋€Œ๋ฉด ๋ฌธ์„œ๋ฅผ ๋‹ค์‹œ ์ฝ์ง€ ์•Š์•„ load ๊ฐ€ ์˜ค์ง€ ์•Š๋Š”๋‹ค. Playwright ์ฒ˜๋Ÿผ ๊ฐ™์€ ๋ฌธ์„œ ์•ˆ ์ด๋™์œผ๋กœ ์ฒ˜๋ฆฌํ•œ๋‹ค.
317
+ cur = self.url() or ""
318
+ if "#" in url and cur.split("#")[0] == url.split("#")[0]:
319
+ self.evaluate(f"location.href = {json.dumps(url)}")
320
+ return
321
+ self._call("goto", url, {"waitUntil": wait_until, "timeout": int(timeout * 1000)}, timeout=timeout + 10)
322
+
323
+ def reload(self):
324
+ self._call("reload")
325
+
326
+ def url(self) -> str:
327
+ return self._call("url")
328
+
329
+ def close(self):
330
+ self._call("closeTab", self.tab)
331
+ self.b.pages.remove(self)
332
+ self.b._cur_tab = None
333
+
334
+ # -- ์ฝ๊ธฐ
335
+ def evaluate(self, expr: str, arg=None):
336
+ if FN_RE.match(expr):
337
+ expr = f"({expr})({json.dumps(arg)})"
338
+ return self._call("evaluate", expr)
339
+
340
+ def _el(self, sel: str, body: str, nth: int = 0, timeout: float = 5):
341
+ """์„ ํƒ์ž๊ฐ€ ๋‚˜์˜ฌ ๋•Œ๊นŒ์ง€ ๊ธฐ๋‹ค๋ ธ๋‹ค๊ฐ€ e ๋กœ body ๋ฅผ ๊ณ„์‚ฐํ•œ๋‹ค (Playwright ์˜ ์ž๋™ ๋Œ€๊ธฐ ๋Œ€์‹ )."""
342
+ js = f"""(async () => {{ const end = Date.now() + {int(timeout * 1000)};
343
+ for (;;) {{ const e = document.querySelectorAll({json.dumps(sel)})[{nth}];
344
+ if (e) return {body};
345
+ if (Date.now() > end) throw new Error('์—†๋‹ค: ' + {json.dumps(sel)});
346
+ await new Promise(r => setTimeout(r, 50)); }} }})()"""
347
+ return self._call("evaluate", js)
348
+
349
+ def inner_text(self, sel: str) -> str:
350
+ return self._el(sel, "e.innerText")
351
+
352
+ def get_attribute(self, sel: str, name: str):
353
+ return self._el(sel, f"e.getAttribute({json.dumps(name)})")
354
+
355
+ def _visible(self, sel: str) -> bool:
356
+ return self.evaluate(f"""(e => !!e && e.checkVisibility() && e.getClientRects().length > 0)
357
+ (document.querySelector({json.dumps(sel)}))""")
358
+
359
+ def is_visible(self, sel: str) -> bool:
360
+ return self._visible(sel)
361
+
362
+ def locator(self, sel: str) -> Locator:
363
+ return Locator(self, sel)
364
+
365
+ def errors(self) -> list:
366
+ return self.evaluate("window.__pbErrors || []") or []
367
+
368
+ # -- ์กฐ์ž‘
369
+ def click(self, sel: str):
370
+ self._call("click", f"css={sel}")
371
+
372
+ def fill(self, sel: str, text: str):
373
+ self._call("fill", f"css={sel}", text)
374
+
375
+ def hide_overlay(self, hide: bool = True):
376
+ """parallel-browser ๊ฐ€ ํŽ˜์ด์ง€์— ๋„์šฐ๋Š” ์ƒํƒœ ํ‘œ์‹œ (ํŒŒ๋ž€ ํ…Œ๋‘๋ฆฌ ยท ๋ผ๋ฒจ ยท [๋‚ด๊ฐ€ ํ•˜๊ธฐ]) ๋ฅผ ์ˆจ๊ธฐ๊ฑฐ๋‚˜ ๋˜์‚ด๋ฆฐ๋‹ค.
377
+
378
+ ์Šคํฌ๋ฆฐ์ƒท ยท ๋…นํ™”์— ์ฐํžˆ์ง€ ์•Š๊ฒŒ ํ•˜๋ ค๋Š” ๊ฒƒ์ด๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ๊ทธ ํƒญ์„ ๋„˜๊ฒจ๋ฐ›๋Š” ๋ฒ„ํŠผ๋„ ๊ฐ™์ด ์ˆจ์œผ๋ฏ€๋กœ ์ฐ๋Š” ๋™์•ˆ๋งŒ ์ˆจ๊ธด๋‹ค.
379
+ """
380
+ self.evaluate(f"""(() => {{ let st = document.getElementById('__pbpage_hide__');
381
+ if ({'true' if hide else 'false'}) {{ if (!st) {{ st = document.createElement('style'); st.id = '__pbpage_hide__';
382
+ st.textContent = '#__parallel_browser_overlay__, [data-parallel-browser] {{ display: none !important; }}';
383
+ document.documentElement.appendChild(st); }} }}
384
+ else if (st) st.remove(); }})()""")
385
+
386
+ def screenshot(self, path: str, full_page: bool = False, clean: bool = True):
387
+ """clean=True ๋ฉด ์ƒํƒœ ํ‘œ์‹œ๋ฅผ ์ˆจ๊ธด ์ฑ„ ์ฐ๊ณ  ๋˜์‚ด๋ฆฐ๋‹ค."""
388
+ if clean:
389
+ self.hide_overlay(True)
390
+ try:
391
+ self._call("screenshot", str(path), {"fullPage": full_page}, timeout=40)
392
+ finally:
393
+ if clean:
394
+ self.hide_overlay(False)
395
+
396
+ def wait_for_timeout(self, ms: float):
397
+ time.sleep(ms / 1000)
@@ -0,0 +1,68 @@
1
+ """HTTPS ์šฉ SSL context (python3 3.9 ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋งŒ). ํšŒ์‚ฌ TLS ๊ฒ€์‚ฌ ์•„๋ž˜์—์„œ๋„ ๋ถ™๊ฒŒ CA ๋ฅผ ๋” ์‹ฃ๋Š”๋‹ค.
2
+
3
+ - ๊ธฐ๋ณธ CA (Windows ๋Š” ์—ฌ๊ธฐ์„œ ์‹œ์Šคํ…œ ์ธ์ฆ์„œ ์ €์žฅ์†Œ๋ฅผ ์‹ฃ๋Š”๋‹ค)
4
+ - SSL_CERT_FILE ยท REQUESTS_CA_BUNDLE ยท NODE_EXTRA_CA_CERTS ํŒŒ์ผ (Claude Code ๋„ NODE_EXTRA_CA_CERTS ๋ฅผ ์“ด๋‹ค)
5
+ - macOS: ํ‚ค์ฒด์ธ(์‹œ์Šคํ…œ ยท ๋กœ๊ทธ์ธ) ์ธ์ฆ์„œ ๋ชจ์Œ. python ์˜ OpenSSL ์€ ํ‚ค์ฒด์ธ์„ ๋ณด์ง€ ์•Š๋Š”๋‹ค (ํ•˜๋ฃจ ์บ์‹œ)
6
+ - Python 3.13 ๋ถ€ํ„ฐ ๊ธฐ๋ณธ์ธ X.509 ์—„๊ฒฉ ๊ฒ€์‚ฌ๋Š” ๋ˆ๋‹ค. ํšŒ์‚ฌ CA(Authority Key Identifier ์—†์Œ ๋“ฑ)๋ฅผ ๊ฑฐ๋ถ€ํ•˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.
7
+ curl ยท Node ์ฒ˜๋Ÿผ ์ฒด์ธ ยท ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๊ฒ€์ฆ๋งŒ ํ•œ๋‹ค (Docker debian python 3.13 ์‹ค์ธก)
8
+ claude-switch ์—”์ง„๊ณผ ์•Œ๋ฆผ ํ›…์ด ๊ฐ™์ด ์“ด๋‹ค.
9
+ """
10
+ from __future__ import annotations
11
+
12
+ import os
13
+ import ssl
14
+ import subprocess
15
+ import sys
16
+ import time
17
+ from pathlib import Path
18
+ from typing import Optional
19
+
20
+ _SSL = None
21
+
22
+
23
+ def _cache_dir() -> Path:
24
+ env = os.environ.get("CLAUDE_SWITCH_STATE_DIR")
25
+ return Path(env) if env else Path.home() / ".local" / "share" / "claude-switch"
26
+
27
+
28
+ def _macos_ca_bundle() -> Optional[str]:
29
+ path = _cache_dir() / "ca-macos.pem"
30
+ try:
31
+ if path.exists() and time.time() - path.stat().st_mtime < 86400 and path.stat().st_size > 0:
32
+ return str(path)
33
+ pems = []
34
+ for args in (["security", "find-certificate", "-a", "-p"],
35
+ ["security", "find-certificate", "-a", "-p", "/Library/Keychains/System.keychain"],
36
+ ["security", "find-certificate", "-a", "-p", "/System/Library/Keychains/SystemRootCertificates.keychain"]):
37
+ r = subprocess.run(args, capture_output=True, text=True, timeout=20)
38
+ if r.returncode == 0:
39
+ pems.append(r.stdout)
40
+ text = "".join(pems)
41
+ if "BEGIN CERTIFICATE" not in text:
42
+ return None
43
+ path.parent.mkdir(parents=True, exist_ok=True)
44
+ tmp = path.with_name(path.name + f".{os.getpid()}")
45
+ tmp.write_text(text)
46
+ os.replace(tmp, path)
47
+ return str(path)
48
+ except (OSError, subprocess.TimeoutExpired):
49
+ return None
50
+
51
+
52
+ def ssl_context() -> ssl.SSLContext:
53
+ global _SSL
54
+ if _SSL is not None:
55
+ return _SSL
56
+ ctx = ssl.create_default_context()
57
+ ctx.verify_flags &= ~getattr(ssl, "VERIFY_X509_STRICT", 0)
58
+ extra = [os.environ.get(k) for k in ("SSL_CERT_FILE", "REQUESTS_CA_BUNDLE", "NODE_EXTRA_CA_CERTS")]
59
+ if sys.platform == "darwin":
60
+ extra.append(_macos_ca_bundle())
61
+ for f in extra:
62
+ if f and os.path.isfile(f):
63
+ try:
64
+ ctx.load_verify_locations(cafile=f)
65
+ except (ssl.SSLError, OSError):
66
+ pass
67
+ _SSL = ctx
68
+ return ctx
@@ -0,0 +1,10 @@
1
+ """thuthi-arch-diagram ์ ๊ฒ€ (thuthi:setup ์˜ doctor.py ๊ฐ€ ๋ถ€๋ฅธ๋‹ค). ๋ Œ๋” ยท ์ƒํ˜ธ์ž‘์šฉ ๊ฒ€์‚ฌ๋Š” parallel-browser ๋งŒ ์“ด๋‹ค (thuthi-browser ์ค„)."""
2
+ from __future__ import annotations
3
+
4
+ import sys
5
+
6
+
7
+ def check(d) -> list:
8
+ py = sys.version_info[:2] >= (3, 9)
9
+ return [("arch-diagram", d.OK if py else d.BAD, "python3 (ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋งŒ)",
10
+ "๋ Œ๋” ยท ์ƒํ˜ธ์ž‘์šฉ ๊ฒ€์‚ฌ๋Š” parallel-browser ์ค„์„ ๋ณธ๋‹ค")]
@@ -0,0 +1,125 @@
1
+ ---
2
+ name: arch-diagram
3
+ description: >-
4
+ ๋ฌด์—‡์„ ๊ทธ๋ฆด์ง€ ์ •ํ•ด์ง€๋ฉด โ€” ๋ฌธ์„œ ยท ๋งˆํฌ๋‹ค์šด ยท ์ฝ”๋“œ๋ฒ ์ด์Šค ์กฐ์‚ฌ ๊ฒฐ๊ณผ ยท ๋Œ€ํ™”์—์„œ ์„ค๋ช…ํ•œ ๊ตฌ์„ฑ ์–ด๋А ๊ฒƒ์ด๋“  โ€” Overview ํ•œ ์žฅ + ๋…ธ๋“œ ํด๋ฆญ ํŒ์—… ์ƒ์„ธ ๋‹ค์ด์–ด๊ทธ๋žจ์œผ๋กœ ๋œ ๋‹จ์ผ HTML ํŒŒ์ผ์„ ๋งŒ๋“ ๋‹ค.
5
+ ์ž…๋ ฅ ํ˜•ํƒœ๋Š” ์ •ํ•˜์ง€ ์•Š๊ณ  ์‚ฐ์ถœ๋ฌผ ์–‘์‹๋งŒ ๊ณ ์ •ํ•œ๋‹ค. ๊ธฐ๋ณธ ์Šคํƒ€์ผ์€ stack-diagram ๊ฒฐ์˜ ํƒ€์ผ ์Šคํƒ€์ผ
6
+ (๋ฐ์€ ๋ชจ๋ˆˆ ๋ฐ”ํƒ• ยท ๊ณต์‹ ๋กœ๊ณ  ํƒ€์ผ(devicon ยท simple-icons) ยท ์ƒ‰ ๋ฌถ์Œ ยท ์ง๊ฐ ์„  ยท ์ฃผ ํ๋ฆ„ ๋ฒˆํ˜ธ โ‘ โ‘ก ยท ๋ช…๋ น ์นฉ)์ด๊ณ ,
7
+ ํ•œ๊ธ€ ๊ทœ์น™(Pretendard/Apple SD Gothic Neo, ์ œ๋ชฉ ์‚ฐ์„ธ๋ฆฌํ”„, ํ•œ๊ธ€ 12px ํ•˜ํ•œ)๊ณผ ํŒ์—…
8
+ (:target ๊ธฐ๋ฐ˜, ESC ๋‹ซ๊ธฐ, ๋ฐฐ๊ฒฝ ์Šคํฌ๋กค ์ž ๊ธˆ, hover 1.1๋ฐฐ ํ™•๋Œ€)์„ ์–น๋Š”๋‹ค. "์ด ๋ฌธ์„œ๋ฅผ ๋‹ค์ด์–ด๊ทธ๋žจ์œผ๋กœ ๊ทธ๋ ค์„œ html ๋กœ",
9
+ "์ด ์ €์žฅ์†Œ ๊ตฌ์กฐ ์กฐ์‚ฌํ•ด์„œ ๊ตฌ์„ฑ๋„ ๊ทธ๋ ค์ค˜", "๊ฐœ์š” + ํด๋ฆญํ•˜๋ฉด ์ƒ์„ธ ๋œจ๊ฒŒ", "๋„๋ฉ”์ธ/์—์ด์ „ํŠธ ๊ตฌ์„ฑ ๊ทธ๋ฆผ",
10
+ "์•„ํ‚คํ…์ฒ˜ ๊ทธ๋ฆผ์œผ๋กœ ์ •๋ฆฌํ•ด์ค˜" ๊ฐ™์€ ์š”์ฒญ์— ์ง„์ž…ํ•œ๋‹ค. ์ฐจํŠธ(๋ง‰๋Œ€ยท์„ ยท์‚ฐ์ )๋‚˜ ํ‘œ ํ•œ ์žฅ์ด๋ฉด ์ถฉ๋ถ„ํ•œ ๋‚ด์šฉ์€
11
+ ๋Œ€์ƒ์ด ์•„๋‹ˆ๋‹ค. diagram-design ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ ๋…๋ฆฝ โ€” ๊ทธ ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์ถ”๊ฐ€๋กœ ๋กœ๋“œํ•˜์ง€ ๋ง ๊ฒƒ.
12
+ argument-hint: <ํŒŒ์ผ ๊ฒฝ๋กœ ยท ์กฐ์‚ฌ ๋Œ€์ƒ ยท ๋˜๋Š” ๊ทธ๋ฆด ๋‚ด์šฉ ์„ค๋ช…> [์ถœ๋ ฅ ๊ฒฝ๋กœ]
13
+ ---
14
+
15
+ # arch-diagram โ€” ์–ด๋–ค ์ž…๋ ฅ์ด๋“  Overview + ํŒ์—… ๋‹ค์ด์–ด๊ทธ๋žจ HTML ๋กœ
16
+
17
+ **์ž…๋ ฅ์€ ์ •ํ•˜์ง€ ์•Š๋Š”๋‹ค.** ๋ฌธ์„œ ยท ์ฝ”๋“œ ์กฐ์‚ฌ ยท ๋Œ€ํ™” ์„ค๋ช… ์–ด๋А ๊ฒƒ์ด๋“  "๊ทธ๋ฆด ์‚ฌ์‹ค"๋งŒ ๋ชจ์ด๋ฉด ๊ฐ™์€ ์–‘์‹์œผ๋กœ ๋‚˜์˜จ๋‹ค. ์‚ฐ์ถœ๋ฌผ์€ **HTML ํ•œ ํŒŒ์ผ** (CSS ยท SVG ยท ์ž‘์€ ์ธ๋ผ์ธ JS, ์™ธ๋ถ€ ์ž์›์€ Google Fonts ๋งŒ). ์ƒ์„ฑ์€ ํŒŒ์ด์ฌ ์Šคํฌ๋ฆฝํŠธ๋กœ ํ•˜๊ณ , ๊ทธ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‚ฐ์ถœ๋ฌผ ์˜†์— ๋‚จ๊ธด๋‹ค. ๊ฒ€์‚ฌ โ†’ ๋ Œ๋” โ†’ ๋ˆˆ์œผ๋กœ ํ™•์ธ โ†’ ์ˆ˜์ •์„ ํ†ต๊ณผํ•  ๋•Œ๊นŒ์ง€ ๋ˆ๋‹ค.
18
+
19
+ ## ํŒŒ์ผ ์ง€๋„
20
+
21
+ | ํŒŒ์ผ | ์—ญํ•  |
22
+ |---|---|
23
+ | `scripts/diagramkit.py` | SVG ์กฐ๋ฆฝ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ. ํƒ€์ผ ์Šคํƒ€์ผ(๊ธฐ๋ณธ): `svg(..., grid=True)` `tile` `tile_h` `group` `edge` `chip` `badge` `icon` `logo` `note` `circled` `legend_tiles` `link` `build_page(table=โ€ฆ)`. ์˜› ์—๋””ํ† ๋ฆฌ์–ผ ์Šคํƒ€์ผ: `node` `zone` `hline` `vline` `elbow_h` `elbow_v` `L_hv` `L_vh` `label` `lside` `legend` `lane_frame`. ์„ค๋ช… ๋ฌธ์žฅ์šฉ `codeify` (์‹๋ณ„์ž โ†’ ์ฝ”๋“œ ์นฉ) |
24
+ | `scripts/check.py` | ์ ‘๊ทผ์„ฑ ยท ๋‹จ์ผ ํŒŒ์ผ(์™ธ๋ถ€ ์ž์›ยท์™ธ๋ถ€ ์Šคํฌ๋ฆฝํŠธ ๊ธˆ์ง€, ๋กœ๊ณ ๋Š” `data:image` ๋งŒ) ยท ๊ฒน์นจ(ํƒ€์ผ ยท ์ด๋ฆ„ ยท ์นฉ ยท ์„  ๋ผ๋ฒจ ยท ๋ฌถ์Œ ๋ผ๋ฒจ๋ผ๋ฆฌ, ์„ ์ด ๊ธ€์ž๋‚˜ ๋‚จ์˜ ํƒ€์ผ์„ ์ง€๋‚˜๊ฐ, ๊ธ€์ž๊ฐ€ ๋ฌถ์Œ ํ…Œ๋‘๋ฆฌ์— ๊ฑธ์นจ, ์˜› ๋…ธ๋“œ ยท ๋ผ๋ฒจ ๋งˆ์Šคํฌ) ยท ํ•œ๊ธ€ 12px ยท ๋Š๊ธด ๋งํฌ ๊ฒ€์‚ฌ (exit 1 = ์‹คํŒจ) |
25
+ | `scripts/render.py` | parallel-browser ๋กœ ์ •ํ•ด์ง„ ํฌ๊ธฐ ์Šคํฌ๋ฆฐ์ƒท (+ ํŒ์—… ์—ด๋ฆฐ ์ƒํƒœ, ์„ธ๋กœ ๋ถ„ํ• , `--svg N` ์œผ๋กœ ๋„“์€ ๊ทธ๋ฆผ ํ•œ ์žฅ ์ „์ฒด). ๋๋‚˜๋ฉด ํƒญ์„ ๋‹ซ๋Š”๋‹ค |
26
+ | `scripts/interact_test.py` | parallel-browser ๋กœ hover ยท ํด๋ฆญ ยท ESC ยท ์Šคํฌ๋กค ์ž ๊ธˆ ยท ๋„“์€ ๊ทธ๋ฆผ ์ขŒ์šฐ ์Šคํฌ๋กค ์‹ค์ธก (`python3 โ€ฆ`, ๋๋‚˜๋ฉด ํƒญ์„ ๋‹ซ๋Š”๋‹ค) |
27
+ | `references/design-rules.md` | ํ† ํฐ ยท ํƒ€์ผ ยท ๋ฌถ์Œ ยท ์นฉ ยท ์—ฐ๊ฒฐ์„  ยท ๋ฐฐ์น˜ ยท ํ•œ๊ธ€ ยท ํŒ์—… ํŒจํ„ด ยท ์ด๋ฆ„ ๊ทœ์น™ ยท ๋ฌธ์ฒด. **๊ทธ๋ฆฌ๊ธฐ ์ „์— ์ฝ๋Š”๋‹ค** |
28
+ | `references/example-shop.py` | ์›Œํฌ๋“œ ์˜ˆ์ œ (ํƒ€์ผ ์Šคํƒ€์ผ, Overview 1 + ํŒ์—… 2 + "๋ˆ„๊ฐ€ ๋ฌด์—‡์„ ๋งก๋‚˜" ํ‘œ, ๊ฐ€์ƒ์˜ ์ฃผ๋ฌธ ์„œ๋น„์Šค. ๋กœ๊ณ  react ยท nodejs ยท postgresql ยท redis ยท rabbitmq ยท python ยท git ยท stripe ยท mailgun ยท claude). ์ƒˆ ์ƒ์„ฑ ์Šคํฌ๋ฆฝํŠธ๋Š” ์ด๊ฑธ ๋ณต์‚ฌํ•ด์„œ ์‹œ์ž‘ |
29
+
30
+ ## ์ ˆ์ฐจ
31
+
32
+ ### 1. ๊ทธ๋ฆด ์‚ฌ์‹ค์„ ๋ชจ์€๋‹ค โ€” ์ž…๋ ฅ ํ˜•ํƒœ์— ๋งž์ถฐ
33
+
34
+ ์ž…๋ ฅ์ด ๋ฌด์—‡์ด๋“  ์ด ๋‹จ๊ณ„์˜ ๊ฒฐ๊ณผ๋ฌผ์€ ๊ฐ™๋‹ค: **์‚ฌ์‹ค ๋ชฉ๋ก** (์•„๋ž˜ (a)~(e)). ํ˜•ํƒœ๋ณ„ ๋ชจ์œผ๋Š” ๋ฒ•:
35
+
36
+ - **ํŒŒ์ผ ยท ๋งˆํฌ๋‹ค์šด ยท URL ยท ๋„๊ตฌ๊ฐ€ ๋Œ๋ ค์ค€ ๋ณธ๋ฌธ**: ๋๊นŒ์ง€ ์ฝ๋Š”๋‹ค. 10๋งŒ ์ž๊ธ‰ HTML ์ด๋ฉด ํƒœ๊ทธ๋ฅผ ๋ฒ—๊ฒจ `/tmp/src.txt` ๋กœ ๋งŒ๋“ค๊ณ  **๊ธ€์ž ๋ฒ”์œ„๋กœ ์ž˜๋ผ ์ „๋ถ€ ์ฝ๋Š”๋‹ค** (`head -c` ๋Š” ๋ฐ”์ดํŠธ๋ผ ํ•œ๊ธ€์ด ๊นจ์ง„๋‹ค โ€” ํŒŒ์ด์ฌ ์Šฌ๋ผ์ด์Šค๋กœ).
37
+ - **"์กฐ์‚ฌํ•ด์„œ ๊ทธ๋ ค์ค˜"** (์ฝ”๋“œ๋ฒ ์ด์Šค ยท ์‹œ์Šคํ…œ): ๋จผ์ € ์กฐ์‚ฌํ•œ๋‹ค โ€” ์ง„์ž…์  ยท ๋ชจ๋“ˆ ๊ฒฝ๊ณ„ ยท ํ˜ธ์ถœ/์˜์กด ๊ด€๊ณ„ ยท ์„ค์ • ยท ๋ฌธ์„œ(README, docs/, manifest ๋ฅ˜)๋ฅผ ํ›‘๊ณ , ํ•„์š”ํ•˜๋ฉด Explore ์—์ด์ „ํŠธ๋กœ ๋„“๊ฒŒ ์Šค์บ”ํ•œ๋‹ค. ์กฐ์‚ฌ ๊ฒฐ๊ณผ๋ฅผ (a)~(e) ๋กœ ์ •๋ฆฌํ•ด ์‚ฌ์šฉ์ž์—๊ฒŒ ํ•œ ๋ฒˆ ๋ณด์—ฌ ์ฃผ๊ณ  ๋‚˜์„œ ๊ทธ๋ฆฐ๋‹ค โ€” ์กฐ์‚ฌํ•œ ์‚ฌ์‹ค์ด ํ‹€๋ฆฌ๋ฉด ๊ทธ๋ฆผ ์ „์ฒด๊ฐ€ ํ‹€๋ฆฐ๋‹ค. **์ด๋ฏธ ์žˆ๋Š” ๊ทธ๋ฆผ์„ ๊ฐฑ์‹ ํ•  ๋•Œ๋„ ๊ฑด๋„ˆ๋›ฐ์ง€ ์•Š๋Š”๋‹ค** (๋ฐ”๋€ ๊ตฌํš์„ ์˜› ๊ทธ๋ฆผ ํ‹€์— ๋ง๋Œ€๊ธฐ๋งŒ ํ–ˆ๋‹ค๊ฐ€ ๊ตฌ์กฐ ๋ณ€ํ™”๊ฐ€ ์•ˆ ๋ณด์ธ๋‹ค๋Š” ์ง€์ ์„ ๋ฐ›์•˜๋‹ค โ€” ํฌ๊ฒŒ ๋ฐ”๋€ ๊ตฌํš์€ ์ƒˆ ๊ตฌ์กฐ๋กœ ๋‹ค์‹œ ๊ทธ๋ฆฐ๋‹ค).
38
+ - **๋Œ€ํ™”์—์„œ ์„ค๋ช…ํ•œ ๊ตฌ์„ฑ**: ์„ค๋ช…์„ (a)~(e) ๋กœ ์˜ฎ๊ฒจ ์ ๊ณ  ๋น ์ง„ ๊ด€๊ณ„๋Š” ๋˜๋ฌป์ง€ ๋ง๊ณ  ๊ฐ€์ •์œผ๋กœ ํ‘œ์‹œํ•œ๋‹ค.
39
+
40
+ ์ ์–ด ๋‘˜ ๊ฒƒ:
41
+ (a) ์›๋ณธ์ด ๋ช…์‹œํ•œ **์ด๋ฆ„ ๊ทœ์น™**๊ณผ ์ „์ฒด ์‹๋ณ„์ž (์—†์œผ๋ฉด ์ฝ”๋“œ/๋ฌธ์„œ์— ์‹ค์ œ๋กœ ์“ฐ์ธ ์ด๋ฆ„ ๊ทธ๋Œ€๋กœ),
42
+ (b) ๊ตฌํš/๋„๋ฉ”์ธ ๋‹จ์œ„ โ€” ํŒ์—… ํ•œ ์žฅ์ด ๋  ๋ฉ์–ด๋ฆฌ,
43
+ (c) ๊ฐ ๊ตฌํš์˜ ๋…ธ๋“œ ํ›„๋ณด์™€ ๊ด€๊ณ„(ํ˜ธ์ถœ ยท ์†Œ์œ  ยท ์ž…๋ ฅ/์ถœ๋ ฅ ยท ๊ฒŒ์ดํŠธ),
44
+ (d) ์›๋ณธ์ด ๊ฐ•์กฐํ•˜๋Š” "๊ฒฐ์ด ๋‹ค๋ฅธ" ๊ฒƒ = ํƒ€์ผ tint ๊ฐ•์กฐ ํ›„๋ณด (1~2๊ณณ), ๊ทธ๋ฆฌ๊ณ  ์ฃผ ํ๋ฆ„์˜ ์ˆœ์„œ(โ‘  โ‘ก โ‘ข ๋กœ ๋งค๊ธธ ๊ฒƒ),
45
+ (e) ๊ทธ๋ฆผ์œผ๋กœ ๊ทธ๋ฆฌ์ง€ ์•Š์„ ๋ถ€๊ฐ€ ์ •๋ณด โ€” ๊ตฌํš์— ๋”ธ๋ฆฐ ๊ฒƒ(๊ทธ ๊ตฌํš์˜ ์ •๋ณธ ๋ฌธ์„œ ์œ„์น˜, ์—”์ง„ ยท API ๋ชฉ๋ก, ์šด์˜ ๊ทœ์น™)์€ **๊ทธ ๊ตฌํš ํŒ์—…์˜ ๋ณด์ถฉ ์„ค๋ช…(`aside`)** ์œผ๋กœ ๋„ฃ๋Š”๋‹ค. ์–ด๋А ๊ตฌํš์—๋„ ์†ํ•˜์ง€ ์•Š๋Š” ๊ณตํ†ต ์ •๋ณด๋งŒ ํŽ˜์ด์ง€ ์•„๋ž˜ ์นด๋“œ๋กœ ๋‘”๋‹ค(์„ ํƒ). "๊ทธ๋ฆผ์— ๋‹ด์ง€ ๋ชปํ•œ ๊ฒƒ๋“ค" ๊ฐ™์€ ๋ชจ์Œ ์นด๋“œ ์„น์…˜์— ๊ตฌํš๋ณ„ ์ •๋ณด๋ฅผ ๋ชฐ์•„ ๋‘์ง€ ์•Š๋Š”๋‹ค.
46
+
47
+ ### 2. ๋‚˜๋ˆ„๊ธฐ ๊ณ„ํš์„ ์„ธ์šฐ๊ณ  ํ•œ ์ค„๋กœ ์•Œ๋ฆฐ๋‹ค
48
+
49
+ - **Overview**: ์‚ฌ๋žŒ ยท ๊ตฌํš(์„œ๋น„์Šค ยท ๋„๋ฉ”์ธ) ํƒ€์ผ + ์ž…๋ ฅ + ๊ณตํ†ต ์ง„์ž…, ๊ตฌ์กฐ ๋ฐ– ์‚ฌ๋žŒ ์† ๋‹จ๊ณ„๋Š” ๋”ฐ๋กœ ์ƒ์ž. ์ƒ์„ธ๊ฐ€ ์žˆ๋Š” ํƒ€์ผ๋งŒ ๋งํฌ.
50
+ - **ํŒ์—…**: ๊ตฌํš๋งˆ๋‹ค ํ•œ ์žฅ. ๋…ธ๋“œ ยท ํ™”์‚ดํ‘œ ๊ฐœ์ˆ˜ ์ƒํ•œ์€ ์—†๋‹ค โ€” ์›๋ณธ์— ๋”ฐ๋กœ ์žˆ๋Š” ๋…ธ๋“œ๋ฅผ ํ•ฉ์น˜์ง€ ์•Š๊ณ , ํ•œ ๊ตฌํš์„ ๊ฐœ์ˆ˜ ๋•Œ๋ฌธ์— ๋‘ ์žฅ์œผ๋กœ ๋‚˜๋ˆ„์ง€ ์•Š๋Š”๋‹ค (design-rules ยง5).
51
+ - ๊ธฐ๋ณธ์€ ํƒ€์ผ ์Šคํƒ€์ผ ๊ตฌ์„ฑ๋„(๋ฌถ์Œ + ํƒ€์ผ + ์ง๊ฐ ์„ ). ์‹œ๊ฐ„ ยท ์—ญํ• ์ด ์ง€๋ฐฐ ์ถ•์ธ ๊ทธ๋ฆผ๋งŒ ์˜› Swimlane(`lane_frame`, `svg(grid=False)`)์„ ์“ด๋‹ค.
52
+ - ์‚ฌ์šฉ์ž์—๊ฒŒ "ํƒ€์ž… ยท ์žฅ ์ˆ˜ ยท ๋บ€ ๊ฒƒ"์„ 3~4์ค„๋กœ ๋งํ•˜๊ณ  ๋ฐ”๋กœ ๊ทธ๋ฆฐ๋‹ค (์‚ฌ์šฉ์ž๊ฐ€ ์•ˆ ๋ณด๊ณ  ์žˆ์œผ๋ฉด ๊ฐ€์ •์œผ๋กœ ์ ๊ณ  ์ง„ํ–‰).
53
+
54
+ ### 3. ์ƒ์„ฑ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์“ด๋‹ค
55
+
56
+ ```bash
57
+ cp ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/references/example-shop.py <์ถœ๋ ฅํด๋”>/<slug>.gen.py
58
+ ```
59
+
60
+ - `from diagramkit import *` ๊ฒฝ๋กœ๋Š” ์˜ˆ์ œ ์ƒ๋‹จ์ฒ˜๋Ÿผ ์Šคํ‚ฌ์˜ `scripts/` ๋ฅผ `sys.path` ์— ๋„ฃ๋Š”๋‹ค.
61
+ - ๊ทธ๋ฆผ ํ•จ์ˆ˜ ํ•˜๋‚˜ = svg ํ•œ ์žฅ (`svg(slug, title, desc, W, H, body, grid=True)`, ํญ ๊ธฐ๋ณธ 1600). **์—ด(C0, C1 โ€ฆ) ยท ํ–‰(R1, R2 โ€ฆ) ์ƒ์ˆ˜๋ฅผ ๋จผ์ € ์ •ํ•˜๊ณ ** ํƒ€์ผ์„ ๊ทธ ์นธ์— ๋†“๋Š”๋‹ค. ์„  ๊ฒฝ๋กœ๋ฅผ ๋จผ์ € ์ ๊ณ  ๊ต์ฐจ๋ฅผ ์—†์•ค ๋’ค ํƒ€์ผ ์ž๋ฆฌ๋ฅผ ์ •ํ•œ๋‹ค.
62
+ - ๊ทธ๋ฆฌ๋Š” ์ˆœ์„œ: `group` โ†’ `edge` โ†’ `tile` (์„ ์ด ํƒ€์ผ ์•„๋ž˜๋กœ ๊น”๋ฆฐ๋‹ค).
63
+ - **ํƒ€์ผ**: ์ปดํฌ๋„ŒํŠธ๋งˆ๋‹ค `tile(x, y, ์ด๋ฆ„, ๋ณด์กฐ์ค„, logo_spec='react' | 'si:stripe', icon_kind='person' โ€ฆ)`. ๊ณต์‹ ๋กœ๊ณ ๊ฐ€ ์žˆ์œผ๋ฉด ๋กœ๊ณ (์ƒ‰์„ ๋ฐ”๊พธ์ง€ ์•Š๋Š”๋‹ค), ์—†์œผ๋ฉด ์„  ์•„์ด์ฝ˜. ์‚ฌ๋žŒ์€ `person`, ์„œ๋ฒ„ ยท ํ”„๋กœ์„ธ์Šค๋Š” `server`, ํ”„๋กœ๊ทธ๋žจ ยท ์—์ด์ „ํŠธ๋Š” ๋กœ๊ณ ๋‚˜ `robot` ์ด๋‹ค. ๋กœ๊ณ ๋งŒ์œผ๋กœ ์‚ฌ๋žŒ์ธ์ง€ ๊ธฐ๊ณ„์ธ์ง€ ๋ชจํ˜ธํ•˜๋ฉด `badge_kind=`. ๊ฐ™์€ ๊ฒƒ ์—ฌ๋Ÿฌ ๊ฐœ๋Š” `count=N` ํ•œ ํƒ€์ผ.
64
+ - **์นฉ**: ๊ทธ ํƒ€์ผ์ด ๋Œ๋ฆฌ๋Š” ๋ช…๋ น ยท ์Šคํ‚ฌ์€ `chips=['skill-name']` (์•ž์— `/` ๊ฐ€ ๋ถ™๋Š”๋‹ค). ๋ณด์กฐ์ค„์„ ์ค„์ผ ๋•Œ๋„ ์Šคํ‚ฌ ์ด๋ฆ„์€ ์นฉ์œผ๋กœ ๋‚จ๊ธด๋‹ค.
65
+ - **์„ **: `edge([(x1,y1), (x2,y1), (x2,y2)], '๋ผ๋ฒจ', kind='main'|'int'|'ext', num=1)`. ์ฃผ ํ๋ฆ„์—๋งŒ `num` ์œผ๋กœ โ‘ โ‘กโ‘ข. ํƒ€์ผ ์•„๋ž˜๋กœ ๋‚˜๊ฐ€๋Š” ์„ ์€ ๋ณด์กฐ์ค„ ์•„๋ž˜(ํƒ€์ผ y + 166)์—์„œ ์‹œ์ž‘ํ•œ๋‹ค. ๋ผ๋ฒจ์ด ๋‹ค๋ฅธ ์„  ยท ๊ธ€์ž ยท ๋ฌถ์Œ ํ…Œ๋‘๋ฆฌ์— ๊ฑธ๋ฆฌ๋ฉด `at=(x, y)` ๋กœ ์˜ฎ๊ธด๋‹ค.
66
+ - **๋ฌถ์Œ**: `group(x, y, w, h, '๋ผ๋ฒจ', 'server'|'pc'|'external'|'outside', note='ร— N')`. ์‚ฌ๋žŒ์ด ์†์œผ๋กœ ํ•˜๋Š” ์ผ์€ `outside` ์ƒ์ž์— ๋‘๊ณ , ์‹œ์Šคํ…œ์— ๋“ค์–ด๊ฐ€๋Š” ๊ณณ์œผ๋กœ ์ง„์งœ ์„  ํ•˜๋‚˜(`git pull` ๋“ฑ)๋ฅผ ์ž‡๋Š”๋‹ค.
67
+ - ์ œ๋ชฉ ยท svg `<title>` ์—๋Š” **์›๋ณธ์˜ ์ „์ฒด ์‹๋ณ„์ž** (design-rules ยง7).
68
+ - ํ๋ฆ„์ด ๊ธธ์–ด 1600 ์— ์•ˆ ๋“ค์–ด๊ฐ€๋ฉด `svg()` ํญ์„ ๋„“๊ฒŒ ์ค€๋‹ค. ์ค„์ง€ ์•Š๊ณ  ์ œ ํญ์œผ๋กœ ๊ทธ๋ ค์ ธ ์ขŒ์šฐ ์Šคํฌ๋กค๋œ๋‹ค.
69
+ - `build_page(...)` ์— Overview ยท popups ยท (์„ ํƒ) `table=dict(title='๋ˆ„๊ฐ€ ๋ฌด์—‡์„ ๋งก๋‚˜', head=[โ€ฆ], rows=[[โ€ฆ]])` ยท footer ๋ฅผ ๋„˜๊ธด๋‹ค. ์ƒ์„ธ๊ฐ€ ์žˆ๋Š” ํƒ€์ผ๋งŒ `link('#popup-x', tile(...))` ๋กœ ๊ฐ์‹ผ๋‹ค. `hint` ์— "์–ด๋А ํƒ€์ผ์„ ๋ˆ„๋ฅด๋ฉด ๋ฌด์—‡์ด ์—ด๋ฆฌ๋Š”์ง€" ํ•œ ์ค„.
70
+ - **๊ธด ์‚ฐ๋ฌธ ์„น์…˜์„ ์“ฐ์ง€ ์•Š๋Š”๋‹ค.** `intro` ๋Š” ํ•œ๋‘ ๋ฌธ์žฅ, ํŒ์—… `body` ๋Š” ํ•œ ๋ฌธ๋‹จ์ด๋ฉด ๋œ๋‹ค. ๊ทธ๋ฆผ๊ณผ ํ‘œ๊ฐ€ ์„ค๋ช…์ด๋‹ค. ๊ทธ๋ž˜๋„ ์„ค๋ช…์ด ๊ธธ์–ด์ง€๋ฉด ์งง์€ ๋„์ž… `<p>` + `<ul><li><b>์†Œ์ œ๋ชฉ</b>๋ฌธ์žฅ</li>โ€ฆ</ul>` ๋กœ ๋‚˜๋ˆˆ๋‹ค (ํ•œ ๋ฌธ๋‹จ์— ๋ชฐ์ง€ ์•Š๋Š”๋‹ค).
71
+ - **์„ค๋ช… ์† ์‹๋ณ„์ž๋Š” `codeify(html, names=[...], patterns=[...])` ๋กœ ์ฝ”๋“œ ์นฉ์„ ์”Œ์šด๋‹ค.** ํ‹ฐ์ผ“ ๋ฒˆํ˜ธ ยท ํŒŒ์ผ ยท ํ”Œ๋ž˜๊ทธ ยท `key=value` ยท `items[]` ยท snake/SCREAMING_SNAKE ยท ๊ธด kebab id ๋Š” ๊ธฐ๋ณธ์œผ๋กœ ์žก๊ณ , ๊ทธ ํ”„๋กœ์ ํŠธ์—์„œ ์ด๋ฆ„์œผ๋กœ ์“ฐ์ด๋Š” ์งง์€ ๋‚ฑ๋ง์€ `names` ๋กœ, ์Šคํ‚ฌ ์ด๋ฆ„(`/shop-[a-z-]+`) ยท ์—ฌ๋Ÿฌ ๋‚ฑ๋ง ๋ช…๋ น์€ `patterns` ๋กœ ๋„˜๊ธด๋‹ค. ๊ฒฐ๊ณผ HTML ์—์„œ `</code>-` ์ฒ˜๋Ÿผ ์นฉ์ด ์‹๋ณ„์ž ์ค‘๊ฐ„์—์„œ ๋Š๊ธด ๊ณณ์ด ์—†๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.
72
+ - ํŽ˜์ด์ง€์— ๋“ค์–ด๊ฐˆ **ํ•œ๊ตญ์–ด ๋ฌธ์žฅ์€ design-rules ยง10 ์„ ์ง€์ผœ์„œ ์“ด๋‹ค.** ์ œ๋ชฉ-๋ถ€์ œ-๋ณธ๋ฌธ 3๋‹จ ๋ฐ˜๋ณต, em dash ๋ถ€์—ฐ, "A๊ฐ€ ์•„๋‹ˆ๋ผ B" ์žฌ์ •์˜, ์ถ”์ƒ ๋ช…์‚ฌ ์กฐ์–ด, ์ฝ”๋“œ๊ฐ€ ํ•˜์ง€ ์•Š๋Š” ๋™์ž‘์„ ์•”์‹œํ•˜๋Š” ์กฐ์–ด๋Š” ๊ธˆ์ง€๋‹ค.
73
+ - ์‹คํ–‰ํ•˜๋ฉด `WARN` ์ด ์ฐํžŒ๋‹ค: `logo` (๋ชป ๋ฐ›์•„ ์„  ์•„์ด์ฝ˜์œผ๋กœ ๊ทธ๋ฆผ. ์ด๋ฆ„์„ ๊ณ ์น˜๊ฑฐ๋‚˜ ๋กœ์ปฌ ํŒŒ์ผ์„ ์ค€๋‹ค), `edge-diagonal`, ์˜› ์Šคํƒ€์ผ์˜ ํญ ยท `overflow-v` ยท ํ•œ๊ธ€ ๋ฑƒ์ง€. ๋กœ๊ณ ๋Š” ์ฒ˜์Œ ํ•œ ๋ฒˆ ์ธํ„ฐ๋„ท์—์„œ ๋ฐ›์œผ๋ฏ€๋กœ ์ƒŒ๋“œ๋ฐ•์Šค ๋ฐ–์—์„œ ๋Œ๋ฆฐ๋‹ค (๊ทธ ๋’ค๋Š” ์บ์‹œ).
74
+
75
+ ### 4. ๊ฒ€์‚ฌ โ†’ ๋ Œ๋” โ†’ ๋ˆˆ์œผ๋กœ โ†’ ์ˆ˜์ •
76
+
77
+ ```bash
78
+ python3 <slug>.gen.py
79
+ python3 ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/scripts/check.py <out>.html
80
+ python3 ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/scripts/render.py <out>.html --height 1600 # ๋ฉ”์ธ (ํญ ๊ธฐ๋ณธ 1700)
81
+ python3 ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/scripts/render.py <out>.html --fragment popup-a --height 1000 --out /tmp/nd-a.png
82
+ python3 ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/scripts/render.py <out>.html --svg 2 --out /tmp/nd-svg2.png # ๋„“์€ ๊ทธ๋ฆผ ์ „์ฒด (๋ฌธ์„œ ์ˆœ์„œ N๋ฒˆ์งธ svg)
83
+ ```
84
+
85
+ - PNG ๋Š” Read ๋กœ ์—ด์–ด ๋ณธ๋‹ค. ๋ณผ ๊ฒƒ: ๋ผ๋ฒจ์ด ์„  ยท ๋ฌถ์Œ ํ…Œ๋‘๋ฆฌ ยท ์ด๋ฆ„์— ๋ฌผ๋ ธ๋Š”๊ฐ€, ์„ ์ด ๋‚จ์˜ ํƒ€์ผ์„ ์ง€๋‚˜๊ฐ€๋Š”๊ฐ€, ์„ ๋ผ๋ฆฌ ๊ต์ฐจํ•˜๋Š”๊ฐ€, ์ฃผ ํ๋ฆ„ ๋ฒˆํ˜ธ๊ฐ€ ์ˆœ์„œ๋Œ€๋กœ์ธ๊ฐ€, ์‚ฌ๋žŒ ยท ๊ธฐ๊ณ„๊ฐ€ ์•„์ด์ฝ˜์œผ๋กœ ๊ฐˆ๋ฆฌ๋Š”๊ฐ€, ์Šคํ‚ฌ ์นฉ์ด ๋น ์ง€์ง€ ์•Š์•˜๋Š”๊ฐ€, ๊ฐ™์€ ์ƒ์ž๊ฐ€ ๋‘˜ ๊ทธ๋ ค์ง€์ง€ ์•Š์•˜๋Š”๊ฐ€, ๋กœ๊ณ ๊ฐ€ ์„  ์•„์ด์ฝ˜์œผ๋กœ ๋–จ์–ด์ง„ ๊ณณ์ด ์—†๋Š”๊ฐ€.
86
+ - hover ์ƒํƒœ๋ฅผ ๋ณด๊ณ  ์‹ถ์œผ๋ฉด `sed 's/\.node-link:hover/.node-link[href="#popup-b"]/g' out.html > /tmp/hov.html` ๋กœ ํ•œ ํƒ€์ผ์„ hover ๋กœ ๊ณ ์ •ํ•ด ์ฐ๋Š”๋‹ค.
87
+ - `check.py` ๊ฐ€ OK ์ด๊ณ  ๋ Œ๋”์—์„œ ๊ฒน์นจ์ด ์—†์„ ๋•Œ๊นŒ์ง€ ๋ฐ˜๋ณต. ๋ณดํ†ต 2~3๋ฐ”ํ€ด.
88
+ - ๋งˆ์ง€๋ง‰์— ์‹ค์ œ ๋ธŒ๋ผ์šฐ์ €๋กœ ์ƒํ˜ธ์ž‘์šฉ์„ ํ™•์ธํ•œ๋‹ค: `python3 ${CLAUDE_PLUGIN_ROOT}/skills/arch-diagram/scripts/interact_test.py <out>.html` (์ƒŒ๋“œ๋ฐ•์Šค ๋ฐ–, parallel-browser ๊ฐ€ ์—ฐ๊ฒฐ๋ผ ์žˆ์–ด์•ผ ํ•œ๋‹ค). hover ํ™•๋Œ€ ยท ํด๋ฆญ์œผ๋กœ ํŒ์—… ์—ด๋ฆผ ยท ESC ๋กœ ๋‹ซํž˜ ยท ๋ฐฐ๊ฒฝ ์Šคํฌ๋กค ์ž ๊ธˆ ยท ๋„“์€ ๊ทธ๋ฆผ ์ขŒ์šฐ ์Šคํฌ๋กค์„ ๊ฒ€์‚ฌํ•ด FAIL ์ด๋ฉด exit 1.
89
+
90
+ ### 4.5 ์‚ฌ์‹ค ๋Œ€์กฐ โ€” ์กฐ์‚ฌํ•ด์„œ ๊ทธ๋ฆฐ ๊ทธ๋ฆผ์ด๋ฉด ๋„˜๊ธฐ๊ธฐ ์ „์—
91
+
92
+ ๋ชจ์–‘ ๊ฒ€์‚ฌ๊ฐ€ ํ†ต๊ณผํ•ด๋„ ๋‚ด์šฉ์ด ํ‹€๋ฆฌ๋ฉด ๊ทธ๋ฆผ ์ „์ฒด๊ฐ€ ํ‹€๋ฆฐ๋‹ค. ๋„˜๊ธฐ๊ธฐ ์ „์— **๋ชจ๋“  ๋ฌธ์žฅ ยท ๋…ธ๋“œ ์ด๋ฆ„๊ณผ ๋ณด์กฐ์ค„ ยท ํ™”์‚ดํ‘œ(๋ˆ„๊ฐ€ ๋ˆ„๊ตฌ๋ฅผ ๋ถ€๋ฅด๋Š”์ง€, ์ˆœ์„œ) ยท ๋ผ๋ฒจ ยท ๋ฒ”๋ก€** ๋ฅผ ์›๋ณธ(์ฝ”๋“œ ยท ๋ฌธ์„œ)๊ณผ ๋Œ€์กฐํ•œ๋‹ค.
93
+
94
+ - ํŒ์—…์ด ์—ฌ๋Ÿฌ ์žฅ์ด๋ฉด **ํŒ์—…๋งˆ๋‹ค ๊ฒ€์ฆ ์—์ด์ „ํŠธ๋ฅผ ํ•˜๋‚˜์”ฉ ๋ณ‘๋ ฌ๋กœ** ๋„์šด๋‹ค. ์ž…๋ ฅ์€ ๊ทธ ํŒ์—…์˜ ๋ณด์ด๋Š” ๊ธ€์ž(์ƒ์„ฑ HTML ์—์„œ ํƒœ๊ทธ๋ฅผ ๋ฒ—๊ธด ๊ฒƒ)์™€ ์ƒ์„ฑ ์Šคํฌ๋ฆฝํŠธ์˜ ํ•ด๋‹น ๊ทธ๋ฆผ ํ•จ์ˆ˜(ํ™”์‚ดํ‘œ ๊ด€๊ณ„), ๋Œ€์กฐํ•  ์›๋ณธ ๊ฒฝ๋กœ๋‹ค. ๋Œ๋ ค๋ฐ›๋Š” ํ˜•์‹์€ ํ•ญ๋ชฉ๋งˆ๋‹ค `๊ทธ๋ฆผ ์† ๋ฌธ๊ตฌ ยท ํŒ์ •(ํ‹€๋ฆผ / ์˜คํ•ด ์†Œ์ง€ / ๊ทผ๊ฑฐ ์—†์Œ) ยท ๊ทผ๊ฑฐ(file:line + ์ธ์šฉ) ยท ๊ณ ์น  ๋ฌธ๊ตฌ` ๋‹ค.
95
+ - ์š”์•ฝํ•˜๋ ค๊ณ  ๋ถ™์ธ ์ค„์ž„๋ง์ด ์ฝ”๋“œ๊ฐ€ ํ•˜์ง€ ์•Š๋Š” ์ผ์„ ๋œปํ•˜๊ฒŒ ๋˜๋ฉด "์˜คํ•ด ์†Œ์ง€" ๋กœ ์นœ๋‹ค (์˜ˆ: ์›๋ณธ์—์„œ ๋‹ค์‹œ ๋งž์ถ”๊ณ  ์ผ๋ถ€ ๊ฐ’์€ ์ด์–ด ๋ฐ›๋Š” ๋™์ž‘์„ "์ „์ˆ˜ ์žฌ์ƒ์„ฑ", "์ตœ์ข…ํ™”" ๋กœ ์ ์€ ๊ฒƒ).
96
+ - ์›๋ณธ ๋ฌธ์„œ๋ผ๋ฆฌ ์–ด๊ธ‹๋‚˜๋ฉด ์‹คํ–‰ ์ฝ”๋“œ ์ชฝ์„ ๋”ฐ๋ฅด๊ณ , ๊ทธ๋ฆผ์—๋Š” ํ™•์ •๋œ ๊ฒƒ๋งŒ ์ ๋Š”๋‹ค. ์›๋ณธ ์ €์žฅ์†Œ์˜ ๋ฌธ์„œ ๊ฒฐํ•จ์€ ๊ทธ๋ฆผ์— ์นด๋“œ๋กœ ์‹ฃ์ง€ ์•Š๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ๋”ฐ๋กœ ๋ณด๊ณ ํ•œ๋‹ค.
97
+ - ๊ณ ์นœ ๋’ค 4๋‹จ๊ณ„(๊ฒ€์‚ฌ ยท ๋ Œ๋” ยท ์ƒํ˜ธ์ž‘์šฉ)๋ฅผ ๋‹ค์‹œ ๋ˆ๋‹ค.
98
+
99
+ ### 5. ๋„˜๊ธธ ๋•Œ
100
+
101
+ - ๊ฒฝ๋กœ, ๊ตฌ์„ฑ(Overview + ํŒ์—… ๋ช‡ ์žฅ), **์›๋ณธ์—์„œ ๋บ€ ๊ฒƒ**(์ƒ๋žตํ•œ ์„ , ๋ณธ๋ฌธ ๋ฌธ์žฅ์œผ๋กœ ๋Œ๋ฆฐ ๋‚ด์šฉ), ๊ฐ€์ •(๊ธ€๊ผด ํด๋ฐฑ ๋“ฑ), ์ œ์•ฝ(`:has()` ๋ธŒ๋ผ์šฐ์ € ์š”๊ฑด)์„ ์งง๊ฒŒ.
102
+ - ์ƒ์„ฑ ์Šคํฌ๋ฆฝํŠธ ๊ฒฝ๋กœ๋„ ์•Œ๋ฆฐ๋‹ค โ€” ๋‹ค์Œ ์ˆ˜์ •์€ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ๊ณ ์ณ ์žฌ์ƒ์„ฑํ•œ๋‹ค.
103
+
104
+ ## ๊ฒช์–ด์„œ ๊ตณํžŒ ๊ฒƒ (๋‹ค์‹œ ๋ฐŸ์ง€ ์•Š๊ธฐ)
105
+
106
+ - **๋ณด์กฐ์ค„์„ ์ค„์ด๋‹ค ์Šคํ‚ฌ ์ด๋ฆ„์ด ๋น ์กŒ๋‹ค** (2026-11-02). ์นธ์ด ์ข๋‹ค๊ณ  `/aidu-test-run-case` ๊ฐ™์€ ์ด๋ฆ„์„ ์ง€์› ๋‹ค๊ฐ€ "์–ด๋””์„œ ๋ฌด์—‡์„ ๋Œ๋ฆฌ๋Š”์ง€ ์•ˆ ๋ณด์ธ๋‹ค" ๋Š” ์ง€์ ์„ ๋ฐ›์•˜๋‹ค. ๋ช…๋ น ยท ์Šคํ‚ฌ์€ `chips=` ๋กœ ํƒ€์ผ ์•„๋ž˜์— ๋‚จ๊ธฐ๊ณ  `/` ๋ฅผ ๋ถ™์ธ๋‹ค.
107
+ - **๋ผ๋ฒจ ยท ์ œ๋ชฉ์ด ์—ฐ๊ฒฐ์„  ์œ„์— ์•‰์•˜๋‹ค.** ์„ ์ด ๊ธ€์ž๋ฅผ ๊ฐ€๋ฅด๋ฉด ์ฝํžˆ์ง€ ์•Š๋Š”๋‹ค. ๋ผ๋ฒจ์„ ์„ ์—์„œ ๋–ผ์–ด ๋†“๊ณ (`at=`), ๋ฌถ์Œ ํ…Œ๋‘๋ฆฌ์™€ ํƒ€์ผ ์ด๋ฆ„ ์œ„์—๋„ ๋‘์ง€ ์•Š๋Š”๋‹ค. ํƒ€์ผ ์•„๋ž˜๋กœ ๋‚˜๊ฐ€๋Š” ์„ ์€ ๋ณด์กฐ์ค„ ๋ฐ‘์—์„œ ์‹œ์ž‘ํ•œ๋‹ค. `check.py` ๊ฐ€ ์žก๋Š”๋‹ค.
108
+ - **์› ์•ˆ์— ๋ฒˆํ˜ธ ๊ธ€๋ฆฌํ”„๋ฅผ ๋„ฃ์—ˆ๋”๋‹ˆ ๊นจ์ ธ ๋ณด์˜€๋‹ค.** ์› ๋„ํ˜• + ์ˆซ์ž, `โ‘ ` ๊ธ€์ž ๋‘˜ ์ค‘ ํ•˜๋‚˜๋งŒ ์“ด๋‹ค. ๊ธฐ๋ณธ์€ ๋ผ๋ฒจ ์•ž `โ‘ ` (`edge(num=1)`).
109
+ - **"์ด ๊ตฌ์กฐ ๋ฐ–" ์ƒ์ž๋ฅผ ์„  ์—†์ด ๋–ผ์–ด ๋‘์—ˆ๋”๋‹ˆ** ๊ทธ ๊ฒฐ๊ณผ๊ฐ€ ์–ด๋””๋กœ ๋“ค์–ด๊ฐ€๋Š”์ง€ ์•ˆ ๋ณด์˜€๋‹ค. ๋ฐ”๊นฅ ์ƒ์ž๋Š” ์‹œ์Šคํ…œ์— ๋“ค์–ด๊ฐ€๋Š” ๊ณณ์œผ๋กœ ์ง„์งœ ์„  ํ•˜๋‚˜(`git pull` ๋“ฑ)๋กœ ์ž‡๋Š”๋‹ค.
110
+ - **๊ฑฐ์˜ ๊ฐ™์€ ์ƒ์ž ๋‘˜์€ ์ฝ๋Š” ์‚ฌ๋žŒ์„ ํ—ท๊ฐˆ๋ฆฌ๊ฒŒ ํ–ˆ๋‹ค** ("๋‘˜์ด ๋‹ค๋ฅธ ๊ฑฐ๋ƒ"). ๊ฐ™์€ ๊ฒƒ์ด ์—ฌ๋Ÿฌ ๊ฐœ๋ฉด ํ•œ ์ƒ์ž์— `ร— N`.
111
+ - ๋กœ๊ณ  ๋ฐ›๊ธฐ๋Š” ํšŒ์‚ฌ TLS ๊ฒ€์‚ฌ์— ๋ง‰ํ˜”๋‹ค (`CERTIFICATE_VERIFY_FAILED`). `lib/tls.py` ๊ฐ€ ํ‚ค์ฒด์ธ ยท `NODE_EXTRA_CA_CERTS` ๋ฅผ ์‹ค์–ด ํ•ด๊ฒฐํ•œ๋‹ค. devicon ์— ์—†๋Š” ์ด๋ฆ„์€ 404 ๊ฐ€ ์•„๋‹ˆ๋ผ 403 ์ด ์˜จ๋‹ค. ์–ด๋А ์ชฝ์ด๋“  ์„  ์•„์ด์ฝ˜์œผ๋กœ ๋–จ์–ด์ง„๋‹ค.
112
+
113
+ - **zsh ์—์„œ `echo =====` ๋Š” `=cmd` ํ™•์žฅ์œผ๋กœ ํ„ฐ์ง„๋‹ค.** ๊ตฌ๋ถ„์„ ์€ `---` ๋กœ.
114
+ - `render.py` ยท `interact_test.py` ๋Š” parallel-browser ๋กœ ์ฐ๊ณ  ์žฐ๋‹ค (์ƒŒ๋“œ๋ฐ•์Šค ๋ฐ–, parallel-browser ๊ฐ€ ์—ฐ๊ฒฐ๋ผ ์žˆ์–ด์•ผ ํ•œ๋‹ค). ํ™•์žฅ์€ `file://` ์„ ๋ง‰์•„์„œ ํŒŒ์ผ์ด ๋“  ํด๋”๋ฅผ 127.0.0.1 ์ž„์‹œ ์„œ๋ฒ„๋กœ ์—ฐ๋‹ค. `--bands` ๋Š” ์Šคํฌ๋ฆฐ์ƒท `clip` ์œผ๋กœ ๋‚˜๋ˆ  ์ฐ์œผ๋ฏ€๋กœ OS ๋ณ„ ๋ธŒ๋ผ์šฐ์ € ๊ฒฝ๋กœ๋‚˜ `sips` ๊ฐ™์€ ์ด๋ฏธ์ง€ ๋„๊ตฌ๊ฐ€ ํ•„์š” ์—†๋‹ค (์˜ˆ์ „์—๋Š” macOS ์•ฑ ๊ฒฝ๋กœ์™€ `sips` ์— ๊ธฐ๋Œ€ Linux ์—์„œ PNG ๋ฅผ ๋ชป ๋งŒ๋“ค์—ˆ๋‹ค).
115
+ - **JS ๋กœ SVG ๋…ธ๋“œ๋ฅผ DOM ์—์„œ ์˜ฎ๊ธฐ์ง€(appendChild) ๋ง ๊ฒƒ.** hover z-order ๋ฅผ ์˜ฌ๋ฆฌ๋ ค๋‹ค :hover ์™€ ํด๋ฆญ์ด ์ฃฝ์—ˆ๋‹ค. ์ธํ„ฐ๋ž™์…˜์„ ๋ฐ”๊พธ๋ฉด ๋ฐ˜๋“œ์‹œ `interact_test.py` ๋กœ ์‹ค์ธก.
116
+ - ํ•œ ํŽ˜์ด์ง€์— svg ์—ฌ๋Ÿฌ ์žฅ์ด๋ฉด ๋งˆ์ปค id ๊ฐ€ ๊ฒน์นœ๋‹ค โ†’ `svg()` ๊ฐ€ ์Šฌ๋Ÿฌ๊ทธ ์ ‘๋‘๋ฅผ ๋ถ™์ธ๋‹ค. ์ง์ ‘ `<marker>` ๋ฅผ ์“ฐ์ง€ ๋ง ๊ฒƒ. ์•„์ด์ฝ˜๋„ ์ค‘์ฒฉ `<svg>` ๋กœ ๋„ฃ์ง€ ์•Š๋Š”๋‹ค (`check.py` ยท `render.py` ๊ฐ€ ๋ฐ”๊นฅ svg ๋ฅผ ์ž˜๋ผ ๋ณธ๋‹ค).
117
+ - ๋ผ๋ฒจ์„ ๋‘ ๋…ธ๋“œ ์‚ฌ์ด ์ข์€ ํ‹ˆ(<40px)์— ๋„ฃ์ง€ ๋ง ๊ฒƒ โ€” ์ง€์šฐ๊ฑฐ๋‚˜ ๋…ธ๋“œ๋ฅผ ๋ฒŒ๋ฆฐ๋‹ค.
118
+ - ์„ธ๋กœ ํ†ต๋กœ์— ๋ผ๋ฒจ์„ ๋‘˜ ๋•Œ `lside` ์˜ side ๋ฅผ ๋…ธ๋“œ๊ฐ€ ์—†๋Š” ์ชฝ์œผ๋กœ. ๊ธฐ๋ณธ ์˜ค๋ฅธ์ชฝ์ด ๋…ธ๋“œ์™€ ๊ฒน์น˜๋Š” ์ผ์ด ์žฆ์•˜๋‹ค.
119
+ - ์Šค์œ”๋ ˆ์ธ ๋ฃจํ”„(๋’ค๋กœ ๊ฐ€๋Š” accent ์„ )๋Š” ๋ ˆ์ธ ๊ฒฝ๊ณ„์˜ ๋นˆ ๋ (๋…ธ๋“œ ์‚ฌ์ด 24~28px)์— ๋†“๊ณ , ๋ผ๋ฒจ์€ ์งง๊ฒŒ(์กฐ๊ฑด ํ•˜๋‚˜) ๋…ธ๋“œ๊ฐ€ ์—†๋Š” ๊ตฌ๊ฐ„์—.
120
+ - ์›๋ณธ์˜ ์ถ•์•ฝ ํ˜ธ์นญ์„ ์ œ๋ชฉ์— ์“ฐ์ง€ ๋ง ๊ฒƒ โ€” ์ „์ฒด id.
121
+ - ์„ธ๋ฆฌํ”„ ์ œ๋ชฉ ยท ๋ผํ‹ด/ํ•œ๊ธ€ ์„ธ๋ฆฌํ”„ ํ˜ผ์šฉ ยท 9px ํ•œ๊ธ€์€ ์“ฐ์ง€ ์•Š๋Š”๋‹ค. design-rules ยง6.
122
+ - ํƒœ๊ทธ + ๋ชจ๋…ธ ๋ณด์กฐ์ค„ 3๊ฐœ๋ฅผ ๋†’์ด 72 ๋…ธ๋“œ์— ๋„ฃ์—ˆ๋”๋‹ˆ ์…‹์งธ ์ค„์ด ์ž˜๋ ธ๋Š”๋ฐ `check.py` ๋Š” ํ†ต๊ณผํ–ˆ๋‹ค. ์ง€๊ธˆ์€ `node()` ๊ฐ€ `overflow-v` WARN ์„ ๋‚ธ๋‹ค โ€” ๋ณด์กฐ์ค„ 3๊ฐœ๋ฉด ๋†’์ด 80 ์ด์ƒ.
123
+ - ๋„“์€ ๊ทธ๋ฆผ์€ `render.py --fragment` ์บก์ฒ˜์— ์•ž๋ถ€๋ถ„๋งŒ ์ฐํžŒ๋‹ค. ์ „์ฒด ๋ฐฐ์น˜๋Š” `--svg N` ์œผ๋กœ ๋ณด๊ณ , ์Šคํฌ๋กค ๋™์ž‘์€ `interact_test.py` ๋กœ ์žฐ๋‹ค.
124
+ - ์„ค๋ช…์„ ํ•œ ๋ฌธ๋‹จ์— ๋ชฐ์•„ ์“ฐ๋ฉด "์ค„๋ฐ”๊ฟˆ ์—†์ด ์ญˆ๋ฃจ๋ฃฉ์ด๋ผ ์ฝ๊ธฐ ํž˜๋“ค๋‹ค", ์‹๋ณ„์ž๋ฅผ ํ•œ๊ธ€ ์‚ฌ์ด์— ๊ทธ๋ƒฅ ๋‘๋ฉด "agent ์ด๋ฆ„ ยท ํ‹ฐ์ผ“ ์ด๋ฆ„์„ ๋ถ„๋ฆฌํ•ด ๋‹ฌ๋ผ" ๋Š” ์ง€์ ์„ ๋ฐ›์•˜๋‹ค โ€” ๋ฌธ๋‹จ ยท ๋ชฉ๋ก HTML ๊ณผ `codeify` ๋ฅผ ์ฒ˜์Œ๋ถ€ํ„ฐ ์“ด๋‹ค.
125
+ - `codeify` ์˜ ๊ธฐ๋ณธ ํŒจํ„ด์€ ํ•œ ๋‹จ์–ด kebab(read-only, sub-agent)์„ ๊ฐ์‹ธ์ง€ ์•Š๋Š”๋‹ค. ์ด๋ฆ„์œผ๋กœ ์“ฐ์ด๋Š” ์งง์€ ๋‚ฑ๋ง๋งŒ `names` ๋กœ ๋„˜๊ธด๋‹ค โ€” ์˜๋‹จ์–ด๊นŒ์ง€ ๋‹ค ์นฉ์ด ๋˜๋ฉด ์˜คํžˆ๋ ค ์ฝ๊ธฐ ์–ด๋ ต๋‹ค.