slides-grab 1.2.6 → 1.3.1

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 (33) hide show
  1. package/README-ko.md +258 -0
  2. package/README.md +16 -12
  3. package/bin/ppt-agent.js +195 -1
  4. package/package.json +11 -6
  5. package/runtimes/claude-code/agents/design-critic-agent.md +23 -0
  6. package/runtimes/codex/agents/slides-grab-design-critic.md +22 -0
  7. package/scripts/design-gate.js +241 -0
  8. package/scripts/editor-server.js +1 -0
  9. package/scripts/html2png.js +246 -0
  10. package/scripts/install-runtime.js +216 -0
  11. package/skills/slides-grab/SKILL.md +14 -12
  12. package/skills/slides-grab/references/presentation-workflow-reference.md +1 -1
  13. package/skills/slides-grab-card-news/SKILL.md +1 -1
  14. package/skills/slides-grab-design/SKILL.md +15 -7
  15. package/skills/slides-grab-design/references/design-gate.md +349 -0
  16. package/skills/slides-grab-design/references/design-rules.md +3 -3
  17. package/skills/slides-grab-design/references/design-system-full.md +4 -4
  18. package/skills/slides-grab-export/SKILL.md +5 -4
  19. package/skills/slides-grab-export/references/pptx-skill-reference.md +7 -42
  20. package/skills/slides-grab-plan/SKILL.md +20 -7
  21. package/skills/slides-grab-plan/references/design-md-to-slides-conversion.md +135 -0
  22. package/skills/slides-grab-plan/references/plan-workflow-reference.md +14 -14
  23. package/src/design-diversity-data.js +6932 -0
  24. package/src/design-gate-report.js +244 -0
  25. package/src/design-gate-state.js +294 -0
  26. package/src/design-import.js +164 -0
  27. package/src/design-md-parser.js +415 -0
  28. package/src/design-styles.js +86 -4
  29. package/src/editor/codex-edit.js +61 -2
  30. package/src/editor/editor.html +1 -1
  31. package/src/editor/js/model-registry.js +1 -1
  32. package/templates/design-styles/README.md +2 -1
  33. package/templates/design-styles/preview.html +1088 -6
package/README-ko.md ADDED
@@ -0,0 +1,258 @@
1
+ # slides-grab 한국어 README
2
+
3
+ <p align="center">AI가 만든 HTML 슬라이드에서 원하는 영역을 직접 선택하고, 그 영역을 다시 AI에게 편집시킬 수 있는 에이전트 우선 발표 자료 프레임워크입니다.</p>
4
+
5
+ <p align="center">
6
+ <a href="README.md">English README</a> | <strong>한국어</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://github.com/vkehfdl1/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
11
+ <img src="docs/assets/demo.gif" alt="slides-grab 데모" width="720">
12
+ </a>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <strong>👉 slides-grab으로 무엇을 만들 수 있는지 확인하세요:</strong>
17
+ <a href="https://vkehfdl1.github.io/slides-grab/"><strong>라이브 쇼케이스 갤러리</strong></a><br>
18
+ slides-grab으로 만든 실제 발표 자료를 열고 슬라이드를 넘겨볼 수 있습니다.
19
+ </p>
20
+
21
+ ---
22
+
23
+ ## 빠른 시작
24
+
25
+ slides-grab은 슬라이드를 HTML과 CSS로 작성하고, 브라우저 기반 편집기에서 영역을 드래그해 수정 요청을 보낸 뒤 PDF 또는 실험적/불안정한 PPTX·Figma용 PPTX로 내보내는 도구입니다.
26
+
27
+ AI 코딩 에이전트에 아래 안내 중 하나를 붙여넣어 설치를 시작할 수 있습니다.
28
+
29
+ **Claude Code:**
30
+
31
+ ```text
32
+ Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/claude.md and follow every step.
33
+ ```
34
+
35
+ **Codex:**
36
+
37
+ ```text
38
+ Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/codex.md and follow every step.
39
+ ```
40
+
41
+ 저장소를 직접 개발하거나 수정하려면 다음을 실행합니다.
42
+
43
+ ```bash
44
+ git clone https://github.com/vkehfdl1/slides-grab.git && cd slides-grab
45
+ npm ci && npx playwright install chromium
46
+ ```
47
+
48
+ > Node.js **20 이상**이 필요합니다.
49
+
50
+ ### 설치: 저장소를 클론하지 않는 방법
51
+
52
+ CLI와 공유 에이전트 스킬만 사용하려면 npm 패키지를 설치하면 됩니다.
53
+
54
+ ```bash
55
+ npm install slides-grab
56
+ npx playwright install chromium
57
+ npx slides-grab install-skills --target all --scope user
58
+ ```
59
+
60
+ 이 방법은 일반적인 사용에 충분합니다. slides-grab 자체를 수정하거나 기여하려는 경우에만 저장소를 클론하세요.
61
+
62
+ 이 명령은 같은 공유 Agent Skills와 얇은 런타임 adapter를 Codex 런타임과 Claude Code 런타임 위치에 모두 설치합니다. 패키지된 워크플로우는 번들된 `SKILL.md`, `references/`, `slides-grab` CLI만 사용합니다. `slides-grab pdf`, `slides-grab convert`, `slides-grab figma` export는 현재 슬라이드 파일에 대한 최신 `slides-grab design-gate` `proceed` 기록이 없으면 차단됩니다.
63
+
64
+ ## 왜 slides-grab인가요?
65
+
66
+ 많은 AI 도구가 슬라이드 HTML을 생성하지만, 사용자가 화면에서 **수정하고 싶은 부분을 직접 가리키고** 그 자리에서 반복 편집할 수 있게 해 주는 도구는 드뭅니다. slides-grab은 다음 흐름을 제공합니다.
67
+
68
+ - **Plan** — 에이전트가 주제나 파일을 바탕으로 슬라이드 아웃라인을 만듭니다.
69
+ - **Design** — 에이전트가 각 슬라이드를 독립적인 HTML 파일로 작성합니다.
70
+ - **Edit** — 브라우저 편집기에서 bbox 영역 선택, 직접 텍스트 편집, 에이전트 기반 재작성을 수행합니다.
71
+ - **Export** — 한 명령으로 PDF를 만들고, 실험적/불안정한 PPTX 또는 Figma 가져오기용 PPTX도 생성할 수 있습니다.
72
+
73
+ ## CLI 명령어
74
+
75
+ 워크플로 명령은 `--slides-dir <path>`를 지원하며 기본값은 `slides`입니다.
76
+
77
+ 새 클론에서는 `--help`, `list-templates`, `list-styles`, `preview-styles` 같은 탐색 명령은 덱 없이도 동작합니다. `edit`, `build-viewer`, `validate`, `png`, `design-gate`는 `slide-*.html` 파일이 들어 있는 슬라이드 작업공간이 필요하고, `convert`, `pdf`, `figma`는 추가로 최신 `Proceed` design gate가 필요합니다.
78
+
79
+ ```bash
80
+ slides-grab edit # 시각적 슬라이드 편집기 실행
81
+ slides-grab build-viewer # 단일 viewer.html 생성
82
+ slides-grab validate # Playwright 기반 슬라이드 HTML 검증
83
+ slides-grab convert # 실험적/불안정한 PPTX로 내보내기
84
+ slides-grab convert --resolution 2160p # 고해상도 래스터 PPTX 내보내기
85
+ slides-grab figma # Figma Slides 가져오기용 실험적/불안정한 PPTX 생성
86
+ slides-grab pdf # 캡처 모드 PDF 내보내기(기본값)
87
+ slides-grab pdf --resolution 2160p # 고해상도 이미지 기반 PDF 내보내기
88
+ slides-grab pdf --mode print # 검색/선택 가능한 텍스트 PDF 내보내기
89
+ slides-grab png # 슬라이드별 PNG 렌더링(기본 2160p)
90
+ slides-grab png --slide-mode card-news # 인스타그램용 정사각형 PNG 렌더링
91
+ slides-grab image --prompt "..." # 로컬 슬라이드 이미지 생성
92
+ slides-grab fetch-video --url <youtube-url> --slides-dir decks/my-deck # yt-dlp로 동영상 에셋 다운로드
93
+ slides-grab tldraw # .tldr 다이어그램을 슬라이드 크기의 로컬 SVG로 렌더링
94
+ slides-grab list-templates # 사용 가능한 슬라이드 템플릿 표시
95
+ slides-grab list-styles # 번들된 95개 디자인 스타일 표시
96
+ slides-grab preview-styles # 95개 스타일 미리보기 갤러리를 브라우저에서 열기
97
+ ```
98
+
99
+ ## 디자인 스타일 모음
100
+
101
+ slides-grab은 [corazzon/pptx-design-styles](https://github.com/corazzon/pptx-design-styles)에서 파생된 30개 스타일, slides-grab 고유 스타일 5개, [epoko77-ai/design-diversity](https://github.com/epoko77-ai/design-diversity)에서 파생된 PPT 팩 60개를 포함해 총 95개 디자인 스타일을 제공합니다. 에이전트에게 특정 스타일을 요청하거나 완전히 커스텀 디자인을 요청할 수 있습니다.
102
+
103
+ ```bash
104
+ slides-grab list-styles
105
+ slides-grab preview-styles
106
+ ```
107
+
108
+ ## 에셋 규칙
109
+
110
+ 슬라이드에서 사용하는 로컬 이미지와 동영상은 `<slides-dir>/assets/`에 저장하고 각 `slide-XX.html`에서는 `./assets/<file>` 형식으로 참조하세요.
111
+
112
+ - 권장 이미지: `<img src="./assets/example.png" alt="...">`
113
+ - 권장 동영상: `<video src="./assets/demo.mp4" poster="./assets/demo-poster.png"></video>`
114
+ - 허용: 완전한 자체 포함 슬라이드를 위한 `data:` URL
115
+ - 저장된 슬라이드에서 금지: 원격 `http(s)://` 이미지 URL
116
+ - 지원하지 않음: `/Users/...` 또는 `C:\...` 같은 절대 파일 경로
117
+ - 저장된 슬라이드에서 지원하지 않음: 원격 동영상 URL. 먼저 `<slides-dir>/assets/`로 다운로드하세요.
118
+
119
+ 내보내기 전에 다음 명령으로 누락된 로컬 에셋과 권장하지 않는 경로 형식을 확인하세요.
120
+
121
+ ```bash
122
+ slides-grab validate --slides-dir <path>
123
+ ```
124
+
125
+ ## 이미지 생성
126
+
127
+ `slides-grab image`는 프롬프트로 슬라이드용 이미지를 생성하고 결과를 `<slides-dir>/assets/`에 저장한 뒤 HTML에서 사용할 `./assets/<file>` 참조를 출력합니다.
128
+
129
+ ```bash
130
+ codex login
131
+ slides-grab image --slides-dir decks/my-deck --prompt "Editorial hero image of a robotics warehouse at dawn"
132
+ ```
133
+
134
+ 기본 이미지 생성 공급자는 로컬 Codex ChatGPT 로그인(`~/.codex/auth.json`)을 재사용할 수 있습니다. 선택적으로 `--provider codex`에는 `OPENAI_API_KEY`, `--provider nano-banana`에는 `GOOGLE_API_KEY` 또는 `GEMINI_API_KEY`가 필요할 수 있습니다.
135
+
136
+ > 경고: 일부 이미지 생성 경로는 지원되지 않는 비공개 백엔드 또는 계정 권한에 의존할 수 있으므로, 실패하면 웹 검색과 로컬 다운로드 방식으로 대체하세요.
137
+
138
+ 내보내기 전에는 항상 `slides-grab validate --slides-dir <path>`를 실행해 누락된 로컬 에셋과 권장하지 않는 경로 형식을 먼저 확인하세요.
139
+
140
+ `slides-grab pdf`는 이제 기본적으로 `--mode capture`를 사용합니다. 이 모드는 렌더링된 각 슬라이드를 PDF 안에 래스터 이미지로 캡처해 시각적 충실도를 높입니다. 브라우저 텍스트를 검색하거나 선택할 수 있는 PDF가 더 중요하다면 `--mode print`를 사용하세요.
141
+
142
+ 슬라이드에 `<video>`가 포함되어 있으면 PDF 내보내기는 라이브 자동 재생 프레임 대신 동영상의 poster/썸네일 정지 이미지를 사용합니다. 안정적인 출력이 필요하면 `poster="./assets/<file>"`를 지정하는 방식을 권장합니다.
143
+
144
+ `slides-grab pdf`와 `slides-grab convert`는 더 선명한 결과물을 위해 기본적으로 `2160p` / `4k` 래스터 출력을 사용합니다. 더 작거나 빠른 산출물이 필요하면 `--resolution <preset>`으로 `720p`, `1080p`, `1440p`, `2160p`, `4k` 중 하나를 지정할 수 있습니다.
145
+
146
+ ### 웹 동영상을 덱 에셋으로 다운로드
147
+
148
+ 원본 동영상이 YouTube 또는 `yt-dlp`가 지원하는 다른 페이지에 있다면 먼저 덱의 assets 폴더로 다운로드하세요.
149
+
150
+ ```bash
151
+ slides-grab fetch-video \
152
+ --url https://www.youtube.com/watch?v=EXAMPLE \
153
+ --slides-dir decks/my-deck \
154
+ --output-name hero-video
155
+ ```
156
+
157
+ 이 명령은 저장된 파일 경로와 슬라이드 HTML에 붙여 넣을 `./assets/<file>` 참조를 출력합니다. `PATH`에서 동작하는 `yt-dlp` 바이너리가 필요합니다.
158
+
159
+ ## 여러 덱 작업 흐름
160
+
161
+ 먼저 `decks/my-deck/`에 덱을 만들거나 생성한 뒤 다음처럼 작업할 수 있습니다.
162
+
163
+ ```bash
164
+ slides-grab edit --slides-dir decks/my-deck
165
+ slides-grab validate --slides-dir decks/my-deck
166
+ slides-grab pdf --slides-dir decks/my-deck --output decks/my-deck.pdf
167
+ slides-grab pdf --slides-dir decks/my-deck --mode print --output decks/my-deck-searchable.pdf
168
+ slides-grab png --slides-dir decks/my-deck --output-dir decks/my-deck/out-png
169
+ slides-grab convert --slides-dir decks/my-deck --output decks/my-deck.pptx
170
+ slides-grab figma --slides-dir decks/my-deck --output decks/my-deck-figma.pptx
171
+ ```
172
+
173
+ > **주의:** `slides-grab convert`와 `slides-grab figma`는 현재 **실험적/불안정한** 기능입니다. 출력은 최선의 결과이며 PowerPoint 또는 Figma에서 수동 정리가 필요할 수 있습니다.
174
+
175
+ ## 카드뉴스 작업 흐름
176
+
177
+ 인스타그램식 카드뉴스는 720pt × 720pt 정사각형 프레임을 사용합니다. 모든 단계에서 `--mode card-news` 또는 `--slide-mode card-news`를 맞춰 사용하고, 최종 배포물은 `slides-grab png`를 우선 권장합니다.
178
+
179
+ ```bash
180
+ slides-grab edit --slides-dir decks/my-cards --mode card-news
181
+ slides-grab validate --slides-dir decks/my-cards --mode card-news
182
+ slides-grab png --slides-dir decks/my-cards --slide-mode card-news --resolution 2160p
183
+ slides-grab pdf --slides-dir decks/my-cards --slide-mode card-news --output decks/my-cards.pdf
184
+ slides-grab convert --slides-dir decks/my-cards --mode card-news --output decks/my-cards.pptx
185
+ ```
186
+
187
+ ## Tldraw 다이어그램 에셋
188
+
189
+ 정확한 슬라이드 영역에 맞고 내보내기에 안전한 로컬 SVG 다이어그램을 새로 만들고 싶다면 `slides-grab tldraw`를 사용하세요. 이 명령은 현재 형식의 `.tldr` 파일과 store-snapshot JSON을 지원합니다. 오래된 pre-records `.tldr` 파일은 먼저 최신 `tldraw` 빌드에서 다시 열고 저장해야 합니다.
190
+
191
+ ```bash
192
+ slides-grab tldraw \
193
+ --input decks/my-deck/assets/system.tldr \
194
+ --output decks/my-deck/assets/system.svg \
195
+ --width 640 \
196
+ --height 320 \
197
+ --padding 16
198
+ ```
199
+
200
+ 생성된 SVG는 일반 로컬 이미지처럼 슬라이드 HTML에서 참조하세요.
201
+
202
+ ```html
203
+ <img src="./assets/system.svg" alt="System architecture diagram">
204
+ ```
205
+
206
+ 내장 `diagram-tldraw` 템플릿은 이 작업 흐름을 시작하기 위한 간단한 출발점입니다.
207
+
208
+ ## Figma 작업 흐름
209
+
210
+ ```bash
211
+ slides-grab figma --slides-dir decks/my-deck --output decks/my-deck-figma.pptx
212
+ ```
213
+
214
+ 이 명령은 HTML→PPTX 파이프라인을 재사용해 Figma Slides의 `Import`로 수동 가져오기 할 수 있는 `.pptx` 덱을 만듭니다. Figma에 직접 업로드하지 않습니다. Figma 내보내기 경로는 **실험적/불안정**하며 최선의 결과만 기대해야 합니다.
215
+
216
+ ## 설치 가이드
217
+
218
+ 자세한 에이전트별 설치 안내는 아래 문서를 참고하세요.
219
+
220
+ - [Claude 상세 가이드](docs/installation/claude.md)
221
+ - [Codex 상세 가이드](docs/installation/codex.md)
222
+
223
+ ## npm 패키지
224
+
225
+ 독립 실행형 CLI와 스킬 사용을 위해 npm 패키지로도 사용할 수 있습니다.
226
+
227
+ ```bash
228
+ npm install slides-grab
229
+ ```
230
+
231
+ Vercel Agent Skills로 공유 에이전트 스킬을 설치하려면 다음을 실행하세요.
232
+
233
+ ```bash
234
+ npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy --full-depth
235
+ ```
236
+
237
+ 이 npm 설치 경로는 일반적인 사용에 충분합니다. slides-grab 자체를 수정하거나 기여하려는 경우에만 저장소를 클론하세요.
238
+
239
+ ## 프로젝트 구조
240
+
241
+ ```text
242
+ bin/ CLI 진입점
243
+ src/editor/ 시각 편집기(HTML + JS 클라이언트 모듈)
244
+ scripts/ 빌드, 검증, 변환, 편집기 서버 스크립트
245
+ templates/ 슬라이드 HTML 템플릿(cover, content, chart 등)
246
+ src/ 디자인 스타일 데이터, 스타일 설정, 경로 해석
247
+ skills/ 공유 가능한 에이전트 스킬과 참고 문서
248
+ docs/ 설치 및 사용 가이드
249
+ showcase/ GitHub Pages로 배포되는 정적 갤러리
250
+ ```
251
+
252
+ ## 라이선스
253
+
254
+ [MIT](LICENSE)
255
+
256
+ ## 감사의 말
257
+
258
+ 이 프로젝트는 Builder Josh의 [ppt_team_agent](https://github.com/uxjoseph/ppt_team_agent)를 바탕으로 만들어졌습니다. 감사드립니다!
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <h1 align="center">slides-grab</h1>
2
2
 
3
+ <p align="center"><a href="README-ko.md">한국어 README</a> | <a href="README.md">English</a></p>
4
+
3
5
  <p align="center">Select context for agents directly from AI-generated HTML slides</p>
4
6
 
5
7
  <p align="center">
@@ -17,14 +19,14 @@ The editor is pure javascript file. You can easily add up new features like addi
17
19
  </p>
18
20
 
19
21
  <p align="center">
20
- <a href="https://github.com/vkehfdl1/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
22
+ <a href="https://github.com/NomaDamas/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
21
23
  <img src="docs/assets/demo.gif" alt="slides-grab demo" width="720">
22
24
  </a>
23
25
  </p>
24
26
 
25
27
  <p align="center">
26
28
  <strong>👉 See what slides-grab can do:</strong>
27
- <a href="https://vkehfdl1.github.io/slides-grab/"><strong>Live Showcase Gallery</strong></a><br>
29
+ <a href="https://nomadamas.github.io/slides-grab/"><strong>Live Showcase Gallery</strong></a><br>
28
30
  Real presentations built with slides-grab — open any deck and flip through the slides.
29
31
  </p>
30
32
 
@@ -39,19 +41,19 @@ Paste one of these into your coding agent:
39
41
  **Claude Code:**
40
42
 
41
43
  ```
42
- Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/claude.md and follow every step.
44
+ Read https://raw.githubusercontent.com/NomaDamas/slides-grab/main/docs/installation/claude.md and follow every step.
43
45
  ```
44
46
 
45
47
  **Codex:**
46
48
 
47
49
  ```
48
- Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/codex.md and follow every step.
50
+ Read https://raw.githubusercontent.com/NomaDamas/slides-grab/main/docs/installation/codex.md and follow every step.
49
51
  ```
50
52
 
51
53
  Or use the repo directly if you want to develop on slides-grab itself:
52
54
 
53
55
  ```bash
54
- git clone https://github.com/vkehfdl1/slides-grab.git && cd slides-grab
56
+ git clone https://github.com/NomaDamas/slides-grab.git && cd slides-grab
55
57
  npm ci && npx playwright install chromium
56
58
  ```
57
59
 
@@ -62,9 +64,11 @@ npm ci && npx playwright install chromium
62
64
  ```bash
63
65
  npm install slides-grab
64
66
  npx playwright install chromium
65
- npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy
67
+ npx slides-grab install-skills --target all --scope user
66
68
  ```
67
69
 
70
+ This installs the same shared Agent Skills plus lightweight runtime adapters into Codex and Claude Code locations. The packaged workflow relies on bundled `SKILL.md` files, bundled `references/`, and the `slides-grab` CLI. Exports through `slides-grab pdf`, `slides-grab convert`, and `slides-grab figma` are blocked until `slides-grab design-gate` records a fresh `proceed` receipt for the current slide files.
71
+
68
72
  ## Why This Project?
69
73
 
70
74
  There are many AI tools that generate slide HTML. Almost none let you **visually point at what you want changed** and iterate in-place. slides-grab fills that gap:
@@ -78,7 +82,7 @@ There are many AI tools that generate slide HTML. Almost none let you **visually
78
82
 
79
83
  Workflow commands support `--slides-dir <path>` (default: `slides`).
80
84
 
81
- On a fresh clone, the discovery commands (`--help`, `list-templates`, `list-styles`, and `preview-styles`) work without a deck. `edit`, `build-viewer`, `validate`, `convert`, and `pdf` require an existing slides workspace containing `slide-*.html`.
85
+ On a fresh clone, the discovery commands (`--help`, `list-templates`, `list-styles`, and `preview-styles`) work without a deck. `edit`, `build-viewer`, `validate`, `png`, and `design-gate` require an existing slides workspace containing `slide-*.html`; `convert`, `pdf`, and `figma` additionally require a fresh `Proceed` design gate.
82
86
 
83
87
  ```bash
84
88
  slides-grab edit # Launch visual slide editor
@@ -96,13 +100,13 @@ slides-grab image --prompt "..." # Generate a local slide image with god-tibo
96
100
  slides-grab fetch-video --url <youtube-url> --slides-dir decks/my-deck # Download a local video asset with yt-dlp
97
101
  slides-grab tldraw # Render a .tldr diagram into a slide-sized local SVG asset
98
102
  slides-grab list-templates # Show available slide templates
99
- slides-grab list-styles # Show 35 bundled design styles (browse, preview, select)
100
- slides-grab preview-styles # Open the 35-style visual gallery in browser
103
+ slides-grab list-styles # Show 95 bundled design styles (browse, preview, select)
104
+ slides-grab preview-styles # Open the 95-style visual gallery in browser
101
105
  ```
102
106
 
103
107
  ## Design Style Collections
104
108
 
105
- slides-grab bundles 35 design styles: 30 derived from [corazzon/pptx-design-styles](https://github.com/corazzon/pptx-design-styles) plus 5 slides-grab originals. Agents can also create fully custom designs beyond the bundled collection.
109
+ slides-grab bundles 95 design styles: 30 derived from [corazzon/pptx-design-styles](https://github.com/corazzon/pptx-design-styles), 5 slides-grab originals, and 60 PPT packs derived from [epoko77-ai/design-diversity](https://github.com/epoko77-ai/design-diversity). Agents can also create fully custom designs beyond the bundled collection.
106
110
 
107
111
  ```bash
108
112
  slides-grab list-styles # Browse the catalog
@@ -235,7 +239,7 @@ npm install slides-grab
235
239
  Install shared agent skills with Vercel Agent Skills:
236
240
 
237
241
  ```bash
238
- npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy
242
+ npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy --full-depth
239
243
  ```
240
244
 
241
245
  This npm-install path is enough for normal usage. Clone the repo only when you want to modify or contribute to `slides-grab` itself.
@@ -250,7 +254,7 @@ templates/ Slide HTML templates (cover, content, chart, ...)
250
254
  src/ Design styles data, style config, path resolution
251
255
  skills/ Shared Vercel-installable agent skills + references
252
256
  docs/ Installation & usage guides
253
- showcase/ Static gallery deployed to GitHub Pages (https://vkehfdl1.github.io/slides-grab/)
257
+ showcase/ Static gallery deployed to GitHub Pages (https://nomadamas.github.io/slides-grab/)
254
258
  ```
255
259
 
256
260
  ## License
package/bin/ppt-agent.js CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  getFigmaImportCaveats,
10
10
  getFigmaManualImportInstructions,
11
11
  } from '../src/figma.js';
12
+ import { assertDesignGateReady } from '../src/design-gate-state.js';
12
13
 
13
14
  const __dirname = dirname(fileURLToPath(import.meta.url));
14
15
  const packageRoot = resolve(__dirname, '..');
@@ -64,6 +65,17 @@ async function runCommand(relativePath, args = []) {
64
65
  }
65
66
  }
66
67
 
68
+ async function ensureDesignGateForExport(slidesDir, label) {
69
+ try {
70
+ await assertDesignGateReady(resolve(process.cwd(), slidesDir), { label });
71
+ } catch (error) {
72
+ console.error(`[slides-grab] ${error.message}`);
73
+ process.exitCode = 1;
74
+ return false;
75
+ }
76
+ return true;
77
+ }
78
+
67
79
  function collectRepeatedOption(value, previous = []) {
68
80
  return [...previous, value];
69
81
  }
@@ -109,6 +121,66 @@ program
109
121
  await runCommand('scripts/validate-slides.js', args);
110
122
  });
111
123
 
124
+ program
125
+ .command('design-gate')
126
+ .description('Record the required visual QA gate evidence before export')
127
+ .option('--slides-dir <path>', 'Slide directory', 'slides')
128
+ .option('--slide-mode <mode>', 'Slide mode: presentation or card-news', 'presentation')
129
+ .option('--resolution <preset>', 'PNG evidence resolution preset: 720p, 1080p, 1440p, 2160p, or 4k', '2160p')
130
+ .requiredOption('--verdict <verdict>', 'Gate verdict: proceed, revise, or rethink')
131
+ .requiredOption('--pass-a-report <path>', 'Pass A review report file')
132
+ .requiredOption('--pass-b-report <path>', 'Pass B review report file')
133
+ .option('--output-dir <path>', 'PNG evidence directory (default: <slides-dir>/.slides-grab/gate-preview)')
134
+ .action(async (options = {}) => {
135
+ const args = [
136
+ '--slides-dir',
137
+ options.slidesDir,
138
+ '--slide-mode',
139
+ options.slideMode,
140
+ '--resolution',
141
+ options.resolution,
142
+ '--verdict',
143
+ options.verdict,
144
+ '--pass-a-report',
145
+ options.passAReport,
146
+ '--pass-b-report',
147
+ options.passBReport,
148
+ ];
149
+ if (options.outputDir) {
150
+ args.push('--output-dir', String(options.outputDir));
151
+ }
152
+ await runCommand('scripts/design-gate.js', args);
153
+ });
154
+
155
+ function registerInstallSkillsCommand(commandName) {
156
+ program
157
+ .command(commandName)
158
+ .description('Install slides-grab skills and lightweight runtime adapters for Codex and Claude Code')
159
+ .option('--target <target>', 'Runtime target: all, codex, or claude-code', 'all')
160
+ .option('--runtime <target>', 'Alias for --target')
161
+ .option('--scope <scope>', 'Install scope: project or user', 'project')
162
+ .option('--project-dir <path>', 'Project directory for project scope')
163
+ .option('--target-root <path>', 'Root directory for user-style installs')
164
+ .option('--dry-run', 'Print planned writes without copying')
165
+ .option('--json', 'Print JSON result')
166
+ .action(async (options = {}) => {
167
+ const args = [
168
+ '--target',
169
+ String(options.runtime || options.target),
170
+ '--scope',
171
+ String(options.scope),
172
+ ];
173
+ if (options.projectDir) args.push('--project-dir', String(options.projectDir));
174
+ if (options.targetRoot) args.push('--target-root', String(options.targetRoot));
175
+ if (options.dryRun) args.push('--dry-run');
176
+ if (options.json) args.push('--json');
177
+ await runCommand('scripts/install-runtime.js', args);
178
+ });
179
+ }
180
+
181
+ registerInstallSkillsCommand('install-skills');
182
+ registerInstallSkillsCommand('install-runtime');
183
+
112
184
  program
113
185
  .command('convert')
114
186
  .description('Convert slide HTML files to experimental / unstable PPTX')
@@ -117,6 +189,7 @@ program
117
189
  .option('--mode <mode>', 'Slide mode: presentation or card-news', 'presentation')
118
190
  .option('--resolution <preset>', 'Raster size preset: 720p, 1080p, 1440p, 2160p, or 4k (default: 2160p)')
119
191
  .action(async (options = {}) => {
192
+ if (!(await ensureDesignGateForExport(options.slidesDir, 'PPTX export'))) return;
120
193
  const args = ['--slides-dir', options.slidesDir, '--mode', options.mode];
121
194
  if (options.output) {
122
195
  args.push('--output', String(options.output));
@@ -136,6 +209,7 @@ program
136
209
  .option('--slide-mode <mode>', 'Slide mode: presentation or card-news', 'presentation')
137
210
  .option('--resolution <preset>', 'Capture raster size preset: 720p, 1080p, 1440p, 2160p, or 4k (default: 2160p in capture mode)')
138
211
  .action(async (options = {}) => {
212
+ if (!(await ensureDesignGateForExport(options.slidesDir, 'PDF export'))) return;
139
213
  const args = ['--slides-dir', options.slidesDir];
140
214
  if (options.output) {
141
215
  args.push('--output', String(options.output));
@@ -196,6 +270,7 @@ program
196
270
  .option('--mode <mode>', 'Slide mode: presentation or card-news', 'presentation')
197
271
  .addHelpText('after', figmaHelpText)
198
272
  .action(async (options = {}) => {
273
+ if (!(await ensureDesignGateForExport(options.slidesDir, 'Figma export'))) return;
199
274
  const args = ['--slides-dir', options.slidesDir, '--mode', options.mode];
200
275
  if (options.output) {
201
276
  args.push('--output', String(options.output));
@@ -320,7 +395,7 @@ program
320
395
 
321
396
  program
322
397
  .command('preview-styles')
323
- .description('Print the path to the bundled 35-style visual preview gallery')
398
+ .description('Print the path to the bundled 95-style visual preview gallery')
324
399
  .action(async () => {
325
400
  try {
326
401
  const { getPreviewHtmlPath } = await import('../src/design-styles.js');
@@ -331,6 +406,125 @@ program
331
406
  }
332
407
  });
333
408
 
409
+ program
410
+ .command('import-design')
411
+ .description('Fetch a remote DESIGN.md (https only) and save it locally as a custom slide design source')
412
+ .argument('<url>', 'HTTPS URL to a DESIGN.md / markdown design system file')
413
+ .option('--output <path>', 'Output path for the saved file', 'DESIGN.md')
414
+ .option('--max-bytes <number>', 'Maximum allowed response size in bytes', '262144')
415
+ .option('--timeout-ms <number>', 'Fetch timeout in milliseconds', '15000')
416
+ .action(async (url, options = {}) => {
417
+ try {
418
+ const { fetchDesignMarkdown, formatImportedDesignMarkdown, saveImportedDesign } =
419
+ await import('../src/design-import.js');
420
+ const maxBytes = Number(options.maxBytes) || 262144;
421
+ const timeoutMs = Number(options.timeoutMs) || 15000;
422
+ const result = await fetchDesignMarkdown(url, { maxBytes, timeoutMs });
423
+ const markdown = formatImportedDesignMarkdown({
424
+ url: result.url,
425
+ content: result.text,
426
+ fetchedAt: result.fetchedAt,
427
+ });
428
+ const savedPath = saveImportedDesign({ outputPath: options.output, markdown });
429
+ console.log(`Saved ${result.bytes} bytes to ${savedPath}`);
430
+ console.log(
431
+ 'Saved web-flavored design source. Next convert it to DESIGN.slides.md, then set ' +
432
+ '"style: ./DESIGN.slides.md" in your slide-outline.md.',
433
+ );
434
+ } catch (error) {
435
+ reportCliError(error);
436
+ }
437
+ });
438
+
439
+ program
440
+ .command('show-design')
441
+ .description('Parse a local design markdown file (DESIGN.slides.md preferred, falls back to DESIGN.md) or a bundled style id and print the slides-grab design summary the agent will use')
442
+ .argument('<ref>', 'Path to DESIGN.slides.md / DESIGN.md / a directory containing one, or a bundled style id (e.g. glassmorphism)')
443
+ .action(async (ref) => {
444
+ try {
445
+ const { loadDesignStyleRef, detectLocalDesignMarkdown } = await import('../src/design-styles.js');
446
+ const { renderDesignStyleForPrompt } = await import('../src/design-md-parser.js');
447
+ const { existsSync, statSync } = await import('node:fs');
448
+ const { dirname, resolve } = await import('node:path');
449
+
450
+ let effectiveRef = ref;
451
+ let detection = null;
452
+ let explicitWebShadowed = false;
453
+ const absoluteRef = resolve(ref);
454
+ if (existsSync(absoluteRef) && statSync(absoluteRef).isDirectory()) {
455
+ detection = detectLocalDesignMarkdown({ baseDir: absoluteRef });
456
+ if (!detection.path) {
457
+ console.error(`No DESIGN.slides.md or DESIGN.md found in directory "${ref}".`);
458
+ process.exitCode = 1;
459
+ return;
460
+ }
461
+ effectiveRef = detection.path;
462
+ } else if (existsSync(absoluteRef) && statSync(absoluteRef).isFile() && absoluteRef.endsWith('/DESIGN.md')) {
463
+ const siblingDetection = detectLocalDesignMarkdown({ baseDir: dirname(absoluteRef) });
464
+ if (siblingDetection.kind === 'slides') {
465
+ detection = siblingDetection;
466
+ explicitWebShadowed = true;
467
+ effectiveRef = siblingDetection.path;
468
+ }
469
+ }
470
+
471
+ const style = loadDesignStyleRef(effectiveRef);
472
+ if (!style) {
473
+ console.error(`No design style or design markdown file found at "${ref}".`);
474
+ process.exitCode = 1;
475
+ return;
476
+ }
477
+ const isCustom = style?.source?.type === 'design-md';
478
+ if (isCustom) {
479
+ if (detection) {
480
+ const activeName = detection.kind === 'slides' ? 'DESIGN.slides.md' : 'DESIGN.md';
481
+ const otherPresent = detection.kind === 'slides' && detection.webPath;
482
+ console.log(`# Active file: ${activeName} (${detection.path})`);
483
+ if (otherPresent) {
484
+ const explicitPrefix = explicitWebShadowed ? ' explicit DESIGN.md reference was redirected;' : '';
485
+ console.log(`# Note:${explicitPrefix} DESIGN.md is also present at ${detection.webPath} but is shadowed by DESIGN.slides.md.`);
486
+ } else if (detection.kind === 'web') {
487
+ console.log('# Note: only the web-flavored DESIGN.md was found. Consider converting it to DESIGN.slides.md before generating slides (see skills/slides-grab-plan/references/design-md-to-slides-conversion.md).');
488
+ }
489
+ console.log('');
490
+ }
491
+ console.log(renderDesignStyleForPrompt(style));
492
+ } else {
493
+ console.log(`# Bundled style: ${style.title} (${style.id})`);
494
+ console.log(`Mood: ${style.mood}`);
495
+ console.log(`Best for: ${style.bestFor}`);
496
+ if (style.source?.repo) console.log(`Source: ${style.source.repo}`);
497
+ if (style.source?.url) console.log(`Source URL: ${style.source.url}`);
498
+ if (Array.isArray(style.background)) {
499
+ console.log('\n## Background');
500
+ for (const b of style.background) console.log(`- ${b}`);
501
+ }
502
+ if (Array.isArray(style.colors)) {
503
+ console.log('\n## Colors');
504
+ for (const c of style.colors) console.log(`- ${c.role}: ${c.label} (${c.hex})`);
505
+ }
506
+ if (Array.isArray(style.fonts)) {
507
+ console.log('\n## Typography');
508
+ for (const f of style.fonts) console.log(`- ${f}`);
509
+ }
510
+ if (Array.isArray(style.layout)) {
511
+ console.log('\n## Layout');
512
+ for (const l of style.layout) console.log(`- ${l}`);
513
+ }
514
+ if (Array.isArray(style.signature)) {
515
+ console.log('\n## Signature');
516
+ for (const s of style.signature) console.log(`- ${s}`);
517
+ }
518
+ if (Array.isArray(style.avoid)) {
519
+ console.log('\n## Avoid');
520
+ for (const a of style.avoid) console.log(`- ${a}`);
521
+ }
522
+ }
523
+ } catch (error) {
524
+ reportCliError(error);
525
+ }
526
+ });
527
+
334
528
  program
335
529
  .command('show-template')
336
530
  .description('Print the contents of a template file')
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "slides-grab",
3
- "version": "1.2.6",
3
+ "version": "1.3.1",
4
4
  "description": "Agent-first presentation framework — plan, design, and visually edit HTML slides with Claude Code or Codex, then export to PDF or experimental/unstable PPTX/Figma formats",
5
5
  "license": "MIT",
6
6
  "author": "vkehfdl1",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/vkehfdl1/slides-grab.git"
9
+ "url": "git+https://github.com/NomaDamas/slides-grab.git"
10
10
  },
11
- "homepage": "https://github.com/vkehfdl1/slides-grab#readme",
11
+ "homepage": "https://github.com/NomaDamas/slides-grab#readme",
12
12
  "bugs": {
13
- "url": "https://github.com/vkehfdl1/slides-grab/issues"
13
+ "url": "https://github.com/NomaDamas/slides-grab/issues"
14
14
  },
15
15
  "keywords": [
16
16
  "presentation",
@@ -39,15 +39,20 @@
39
39
  "scripts/generate-image.js",
40
40
  "src/god-tibo-imagen.js",
41
41
  "scripts/figma-export.js",
42
+ "scripts/design-gate.js",
42
43
  "scripts/html2pdf.js",
44
+ "scripts/html2png.js",
43
45
  "scripts/html2pptx.js",
46
+ "scripts/install-runtime.js",
44
47
  "scripts/render-tldraw.js",
45
48
  "scripts/validate-slides.js",
49
+ "runtimes/",
46
50
  "skills/",
47
51
  "src/",
48
52
  "templates/",
49
53
  "LICENSE",
50
- "README.md"
54
+ "README.md",
55
+ "README-ko.md"
51
56
  ],
52
57
  "scripts": {
53
58
  "html2pptx": "node scripts/html2pptx.js",
@@ -55,7 +60,7 @@
55
60
  "build:showcase": "node showcase/scripts/build-manifest.js",
56
61
  "validate": "node scripts/validate-slides.js",
57
62
  "convert": "node convert.cjs",
58
- "test": "node --test --test-concurrency=1 tests/design/design-styles.test.js tests/editor/editor-codex-edit.test.js tests/editor/edit-subprocess-abort.test.js tests/editor/editor-server.test.js tests/editor/editor-server-orphan-prevention.test.js tests/editor/editor-model-dispatch.test.js tests/god-tibo/god-tibo.test.js tests/nano-banana/nano-banana.test.js tests/pdf/html2pdf.test.js tests/pdf/html2pdf.e2e.test.js tests/figma/figma-export.test.js tests/image-contract/image-contract.test.js tests/tldraw/render-tldraw.test.js tests/validation/validate-slides.test.js tests/viewer/build-viewer.test.js tests/skills/installable-skills.test.js tests/video/download-video.test.js",
63
+ "test": "node --test --test-concurrency=1 tests/docs/readme-ko.test.js tests/design/design-styles.test.js tests/design/design-md-parser.test.js tests/design-gate/design-gate.test.js tests/runtime/install-runtime.test.js tests/editor/editor-codex-edit.test.js tests/editor/edit-subprocess-abort.test.js tests/editor/editor-server.test.js tests/editor/editor-server-orphan-prevention.test.js tests/editor/editor-model-dispatch.test.js tests/god-tibo/god-tibo.test.js tests/nano-banana/nano-banana.test.js tests/pdf/html2pdf.test.js tests/pdf/html2pdf.e2e.test.js tests/figma/figma-export.test.js tests/image-contract/image-contract.test.js tests/tldraw/render-tldraw.test.js tests/validation/validate-slides.test.js tests/viewer/build-viewer.test.js tests/skills/installable-skills.test.js tests/video/download-video.test.js",
59
64
  "test:e2e": "node --test tests/editor/editor-ui.e2e.test.js tests/editor/editor-concurrency.e2e.test.js"
60
65
  },
61
66
  "dependencies": {