Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

docs(image): formalize Offline Manual Mode as C's third implementation

hugohe3e76c10888669
diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.md
index 055aa55b..fb663976 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -295,6 +295,10 @@ python3 ${SKILL_DIR}/scripts/svg_quality_checker.py <project_path>
🚧 **GATE**: Step 6 complete; all SVGs generated to `svg_output/`; speaker notes `notes/total.md` generated.
+🚧 **Image readiness GATE** (when Step 5 left ai rows in `Needs-Manual`): every expected file must exist at `project/images/<filename>` before running 7.1.
+
+> If files are missing: PAUSE, list the missing filenames, point the user to `images/image_prompts.md` (each `### Image N:` block is paste-ready for ChatGPT / Gemini / Midjourney) and the required placement `project/images/<filename>`. Resume Step 7.1 only after all expected files are in place. `finalize_svg.py` and `svg_to_pptx.py` do not detect missing files at this layer — proceeding with gaps produces a deck with broken image references.
+
> ⚠️ Run the three sub-steps **one at a time** — each must complete successfully before the next.
> ❌ **NEVER** combine them into a single code block or shell invocation.
diff --git a/skills/ppt-master/references/image-base.md b/skills/ppt-master/references/image-base.md
index a52336e4..ee4104c4 100644
--- a/skills/ppt-master/references/image-base.md
+++ b/skills/ppt-master/references/image-base.md
@@ -64,6 +64,8 @@ After all rows reach terminal status:
- `image_prompts.md` exists when ≥1 ai row processed
- `image_sources.json` exists when ≥1 web row processed; every entry has `license_tier ∈ {no-attribution, attribution-required}`
+> `Needs-Manual` is a legitimate terminal state for ai rows — Step 7 entry waits for the user to place the file. See [`image-generator.md`](./image-generator.md) §3.2 Offline Manual Mode.
+
---
## 6. Failure Handling
@@ -73,7 +75,9 @@ After all rows reach terminal status:
1. Try once
2. On recoverable failure (network, no candidates, license rejection, rate limit), retry once with broadened parameters
3. On second failure, set `Status: Needs-Manual`, log the reason in conversation, continue
-4. After the phase completes, summarize all `Needs-Manual` rows for the user
+4. After the phase completes, summarize all `Needs-Manual` rows for the user — list filenames, where prompts live (`images/image_prompts.md` for ai rows), and where to place generated files (`project/images/<filename>`)
+
+`Needs-Manual` is also the entry status for **Offline Manual Mode** (no `IMAGE_BACKEND` configured, no host-native image tool in use). Affected ai rows are marked `Needs-Manual` from the start without a failed attempt — see [`image-generator.md`](./image-generator.md) §3.2.
Path-specific retry policies (provider chain, backend chain) live in the path's own reference.
diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.md
index 1646452b..79e849bd 100644
--- a/skills/ppt-master/references/image-generator.md
+++ b/skills/ppt-master/references/image-generator.md
@@ -191,18 +191,32 @@ For each image with `Acquire Via: ai` and `Status: Pending`:
5. **Generate optimized prompt** → Use the §1.1 standard output format
6. **Save prompt document** → **Must** write to `project/images/image_prompts.md`
+> `image_prompts.md` is human-readable; each `### Image N:` block is paste-ready for ChatGPT / Gemini / Midjourney. See §3.2 Offline Manual Mode for the handoff.
+
### 3.2 Image Generation Phase
> Prerequisite: §3.1 must be complete; `images/image_prompts.md` must exist.
#### Path Selection (Deterministic)
-| Trigger | Path | Mechanism |
-|---------|------|-----------|
-| **Default** — no explicit override from the user | **Path A**: `image_gen.py` CLI | Uses `.env` `IMAGE_BACKEND` configuration |
-| **User explicitly names the host's native image tool** (e.g. "use Codex's built-in image generation", "use Antigravity's image tool") | **Path B**: Host-native tool | Agent invokes the host's own image generation capability and saves outputs to `project/images/` |
+C (AI-generated) supports three implementation modes sharing one `image_prompts.md` source:
+
+| Trigger | Mode | Mechanism |
+|---|---|---|
+| **Default** — `IMAGE_BACKEND` configured | **Path A**: `image_gen.py` CLI | Agent runs the script; outputs land at `project/images/<filename>` |
+| **User explicitly names the host's native image tool** (e.g. "use Codex's built-in image generation") | **Path B**: Host-native tool | Agent invokes the host's image capability; outputs land at `project/images/<filename>` |
+| **Path A unavailable AND Path B not in use** (no `IMAGE_BACKEND`, no host-native instruction) | **Offline Manual Mode** | Agent writes prompts to `image_prompts.md`; user generates externally and places files at `project/images/<filename>` |
+
+**Selection logic** (automatic, no user prompting):
+
+1. User explicitly named Path B → use Path B
+2. Otherwise check `IMAGE_BACKEND` (env or `.env`)
+ - configured → use Path A; on twice-failure, fall through to Offline Manual Mode
+ - not configured → skip Path A, fall through to Offline Manual Mode
-Agent must NOT silently switch paths based on perceived host capability. Path B is triggered only by an explicit user instruction for this project or this generation batch. In the absence of such instruction, Path A is the unconditional default.
+**Hard rule**: Step 5 is execution, not re-decision. Never present an interactive choice between paths here — image strategy was locked in Strategist Step 4 h item.
+
+> All three modes share one output contract: file at `project/images/<filename>`. Step 6 SVG references are mode-agnostic.
#### Path A — `image_gen.py` CLI (Default)
@@ -260,19 +274,42 @@ Triggered only when the user explicitly asks the skill to use the host's built-i
- Outputs **must** land at `project/images/<filename-from-resource-list>` with dimensions matching the Image Resource List
- Executor downstream is path-agnostic — no spec change required between Path A and Path B
-#### AI-specific Failure Handling (extends image-base.md §5)
+#### Offline Manual Mode (C's third implementation mode)
+
+**Trigger**: Path A unavailable (no `IMAGE_BACKEND`, or twice-failed) AND Path B not in use.
+
+**Workflow** (no user prompting; system enters this mode automatically):
+
+1. Verify `images/image_prompts.md` was generated in §3.1
+2. Set `Status: Needs-Manual` on every affected ai row per [`image-base.md`](./image-base.md) §6
+3. Continue to Step 6 — SVG references `images/<filename>` optimistically; Step 7 entry verifies presence
+4. Print one consolidated handoff to the user:
+ - Filenames awaiting manual generation
+ - Pointer to `images/image_prompts.md`: each `### Image N:` block is a paste-ready prompt for ChatGPT / Gemini / Midjourney
+ - Target placement: `project/images/<filename>` matching the resource list exactly
+ - Resume command: re-run Step 7 once all expected files exist
+
+**User-initiated**: When Strategist Step 4 captured "user wants manual generation" up front, Path A is skipped from the start; the workflow above runs as a planned mode.
+
+> The pipeline tolerates `Needs-Manual` rows end-to-end. The user can leave the project, generate offline at their own pace, then resume Step 7.
+
+#### AI-specific Failure Handling (extends image-base.md §6)
+
+If Path A's backend fails twice in a row:
+
+1. Mark the row `Needs-Manual` after one retry — do not silently switch backends
+2. Report to user: filename, prompt used, error message
+3. Fall through to **Offline Manual Mode** above
-If a single backend fails twice in a row:
+> If the alternate platform watermarks outputs (e.g. Gemini web), the repository includes `scripts/gemini_watermark_remover.py`.
-1. Per the shared rule, mark the row `Needs-Manual` after one retry — do **not** silently switch backends
-2. Report the failure to the user: filename, prompt used, error message
-3. Suggest the user manually generate the image elsewhere and place it at `project/images/<filename>`. If the alternate platform watermarks outputs (e.g. Gemini web), the repository includes `scripts/gemini_watermark_remover.py`
+#### Guardrails (All Modes)
-#### Guardrails (Both Paths)
+**Hard rule**:
-- Agent must NOT claim an image is generated without producing an actual file at the expected path
-- Agent must NOT mark an image as `Needs-Manual` without a real generation attempt having failed
-- Status transitions are evidence-driven: `Pending` -> `Generated` (file exists at expected path) or `Pending` -> `Needs-Manual` (generation attempted and failed after one retry)
+- Do not claim an image is generated without an actual file at the expected path
+- `Needs-Manual` is set after a failed attempt OR on entering Offline Manual Mode — not as a way to skip work that automation could have done
+- Status transitions are evidence-driven: `Pending` → `Generated` (file exists) or `Pending` → `Needs-Manual` (no automation, or attempt failed once)
---
diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.md
index 50401b05..06490593 100644
--- a/skills/ppt-master/references/strategist.md
+++ b/skills/ppt-master/references/strategist.md
@@ -188,6 +188,16 @@ Baseline choice follows **content density**, not style. Common: `18px` (dense) /
| **D** | Web-sourced | Real-world reference imagery, editorial support, stock-style needs (no API key required for default providers) |
| **E** | Placeholders | Images to be added later |
+**When recommending C** — surface its three implementation modes so the user knows "no API key" is a supported state:
+
+| Mode | Trigger | Mechanism |
+|---|---|---|
+| **Path A** | `IMAGE_BACKEND` configured (default) | `image_gen.py` runs in Step 5 |
+| **Path B** | User explicitly names host's image tool (Codex / Antigravity) | Host-native generation |
+| **Offline Manual** | Path A unavailable AND Path B not in use | Prompts written to `images/image_prompts.md`; user generates externally and places files in `project/images/` |
+
+Selection is automatic in Step 5 (A → B → Manual). Detailed contract: [`image-generator.md`](./image-generator.md) §3.2.
+
Selections may be mixed at the row level — e.g. a deck can use C for hero illustrations while sourcing D for supporting team photos.
**When selection includes B**, you must run `python3 scripts/analyze_images.py <project_path>/images` before outputting the spec, and integrate scan results into the image resource list.