slidemax-workflow
Skill0 starsChanged 9 months agoMITView on GitHub
Use when generating PPT, XHS, story, or related canvas outputs with this repository, or when maintaining workflow-facing assets under skills/slidemax_workflow that depend on the repository-specific stage order, role handoffs, command surface, and project structure rules.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/slidemax_workflow/AGENTS.mdAGENTS.md
- skills/slidemax_workflow/references/AGENTS.mdAGENTS.md
- skills/slidemax_workflow/roles/AGENTS.mdAGENTS.md
- skills/slidemax_workflow/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
43 rules. About 0 are common, 30 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈30
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use it when the task depends on the repository-specific execution order, role protocol, command entry points, project layout, or …
- Very specific: line 19
Run or explain the Strategist -> Image_Generator -> Executor -> Delivery -> Validate process.
- Distinctive: line 85
Read in this order before executing or modifying a workflow task:
- Distinctive: line 113
Never skip Stage 0 preflight.
- Distinctive: line 114
Never enter a role stage before reading that role's file.
- Distinctive: line 115
If the source is PDF or URL, convert it immediately before doing strategy work.
- Distinctive: line 116
Create the project folder before writing workflow outputs.
- Distinctive: line 117
If templates are used, copy template files into the project before Strategist starts.
- Distinctive: line 118
Keep all generated or downloaded image assets on project-local paths.
- Very specific: line 119
When stock images are used, normalize them into images/stock/ and register provenance before Executor references them.
- Very specific: line 120
Prefer image_generate for AI image generation instead of ad-hoc provider commands.
- Distinctive: line 121
Use provider smoke tests before claiming a live image provider is ready.
- Very specific: line 122
Use the standard delivery path total_md_split -> finalize_svg -> svg_to_pptx -s final -> project_manager validate unless you are …
- Very specific: line 125
Put reusable logic in slidemax/.
- Very specific: line 126
Do not create duplicate workflow sources outside skills/slidemax_workflow/.
- Distinctive: line 133
Use for native PDF conversion.
- Distinctive: line 136
Use for normal web pages.
- Distinctive: line 138
Prefer for WeChat or high-protection sites.
- Distinctive: line 140
Use for screenshots, image-only pages, and image documents when the source must be transcribed into Markdown and no command-based OCR path …
- Distinctive: line 145
Use before any project-local output is created.
- Distinctive: line 147
Use before claiming project completeness.
- Distinctive: line 149
Use to inspect an existing project quickly.
- Distinctive: line 151
Use to inspect workflow stage progression and detect blocking stage gaps.
- Distinctive: line 153
Use for preflight checks or machine-readable readiness reports.
- Distinctive: line 159
Prefer this over provider-specific ad-hoc flows.
- Distinctive: line 161
Use before relying on a live provider configuration.
- Distinctive: line 163
Use when downloading a commercial stock image into a project.
- Distinctive: line 165
Use when the stock asset already exists locally and needs provenance tracking.
- Very specific: line 173
Prefer -s final for finalized assets.
- Distinctive: line 178
Use for multi-project validation.
- Distinctive: line 180
Use for SVG quality diagnostics.
- Distinctive: line 182
Use when a command error needs repository-specific interpretation.
- Distinctive: line 186
Use this section when a workflow run feels incomplete or unreliable.
- Distinctive: line 191
Stop the strategy phase.
- Very specific: line 205
Run smoke_test_image_provider with the same provider, model, and output settings.
- Distinctive: line 206
Verify credentials and base URL.
- Distinctive: line 215
Use quality and validation tools before changing unrelated workflow code.
- Very specific: line 220
Treat skills/slidemax_workflow/AGENTS.md as authoritative.
- Very specific: line 221
Treat workflows/generate-ppt.md as a redirect only.
- Distinctive: line 222
Update this skill so future agents enter the same source of truth.
- Distinctive: line 229
Read the matching role file.
- Very specific: line 230
Run the canonical command from scripts/slidemax.py.
- Very specific: line 231
Keep shared logic changes in slidemax/.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SlideMax Workflow
Overview
This skill is the canonical entry point for the SlideMax workflow in this repository.
Use it when the task depends on the repository-specific execution order, role protocol, command entry points, project layout, or workflow-facing assets under skills/slidemax_workflow/.
This skill is not a full replacement for the workflow rules. It tells you how to enter the workflow correctly, which files to read next, which commands are authoritative, and which checks prevent avoidable failures.
When to Use
- Generate PPT, XHS, story, or related outputs from Markdown, PDF, URL, or mixed source material.
- Run or explain the
Strategist -> Image_Generator -> Executor -> Delivery -> Validateprocess. - Modify workflow-facing roles, commands, docs, examples, templates, or shared workflow services under
skills/slidemax_workflow/. - Audit workflow completeness, tool reliability, repository boundaries, or role handoff quality.
- Debug why a PPT task failed, stalled, skipped a stage, or exported incorrectly.
When Not to Use
- The task is unrelated to the SlideMax workflow.
- The task is only a generic Python, frontend, infrastructure, or shell issue with no repository-specific workflow context.
- A narrower skill can solve the task without using this repository's workflow rules, role model, or command surface.
Quick Activation Flow
Need to work on a PPT task in this repository?
|
+-- Is the task source material? -------------------------------+
| |
| +-- PDF -> run `scripts/slidemax.py pdf_to_md` first |
| +-- URL -> run `scripts/slidemax.py web_to_md` first |
| +-- Screenshot/image document -> use OCR skill first |
| | `.agent/skills/ocr_image_to_markdown/SKILL.md` |
| +-- Markdown/text -> continue |
| |
+-- Is there already a project folder? ------------------------+
| |
| +-- No -> run `scripts/slidemax.py project_manager init` |
| +-- Yes -> inspect project structure |
| |
+-- Is a template required? -----------------------------------+
| |
| +-- Yes -> copy template files into `templates/` and |
| | image assets into `images/` before Strategist |
| +-- No -> continue |
| |
+-- Read `AGENTS.md` -> enter stage execution order -----------+
|
+-- Stage 0: mandatory preflight
+-- Stage 1-3: source prep, project init, template decision
+-- Stage 4: Strategist
+-- Stage 5: Image_Generator if AI or stock images are needed
+-- Stage 6: Executor
+-- Stage 7: standard delivery path
| `total_md_split` -> `finalize_svg` -> `svg_to_pptx -s final` -> `project_manager validate`
+-- Stage 8: optional visual optimization after first draft
re-run Stage 7 after any optimizer editsCore Concepts
skills/slidemax_workflow/is the only workflow source of truth.AGENTS.mdis the canonical workflow handbook.workflows/stages/stores the detailed stage playbooks referenced byAGENTS.md.workflows/generate-ppt.mdis a redirect entry, not a second workflow definition.roles/guides/stores dense role reference material referenced by the role entry files.scripts/slidemax.pyis the canonical CLI surface.scripts/stores the canonical CLI surface and standalone fallback scripts.references/docs/command_reference*.mdstores command documentation.slidemax/contains reusable Python services and the shared command registry.web_to_md_cjsremains the standalone Node fallback for protected sites and WeChat pages underscripts/web_to_md.cjs.workspace/stores runtime projects and generated artifacts, not canonical workflow assets.references/docs/stores topic-specific references, command documentation, and redirect entries only.references/should stay documentation-focused and should not become a second workflow handbook.
Mandatory Read Order
Read in this order before executing or modifying a workflow task:
skills/slidemax_workflow/AGENTS.mdskills/slidemax_workflow/workflows/generate-ppt.mdonly to confirm the redirect behavior- The relevant stage playbook in
skills/slidemax_workflow/workflows/stages/when stage detail is needed - The required role file in
skills/slidemax_workflow/roles/ - The matching role guide in
skills/slidemax_workflow/roles/guides/when the role file points to one - The relevant command documentation in
skills/slidemax_workflow/references/docs/command_reference.mdwhen running or changing tooling - The shared service implementation in
skills/slidemax_workflow/slidemax/when the task is not command-only
Stage Execution Map
| Stage | Trigger | Mandatory Read | Primary Output | Canonical Commands |
| Stage 0 | Any PPT workflow task | AGENTS.md | Preflight confirmation | None |
| Stage 1 | Source is PDF, URL, or image-based document | AGENTS.md | Markdown source | pdf_to_md, web_to_md, web_to_md_cjs, OCR skill |
| Stage 2 | New project required | AGENTS.md | Project folder | project_manager init |
| Stage 3 | Template-based workflow | AGENTS.md | Template files in project | Copy assets before Strategist |
| Stage 4 | Every PPT project | roles/Strategist.md | Project design brief (design_specification.md) | analyze_images when user images exist |
| Stage 5 | AI or stock images needed | roles/Image_Generator.md | images/, images/stock/, images/image_prompts.md | image_generate, download_stock_image, register_stock_image, smoke_test_image_provider |
| Stage 6 | Slide production | Matching Executor role | svg_output/, notes/total.md | Role-driven generation |
| Stage 7 | SVG output exists | AGENTS.md, references/docs/command_reference.md | Split notes, svg_final/, .pptx, validation result | total_md_split, finalize_svg, svg_to_pptx, project_manager validate |
| Stage 8 | User requests polish after a first draft | roles/Optimizer_CRAP.md | Improved SVG/PPTX | Re-run Stage 7 after optimizer edits |
Reliability Rules
These rules exist to reduce failure rates during PPT generation and workflow maintenance.
- Never skip Stage 0 preflight.
- Never enter a role stage before reading that role's file.
- If the source is PDF or URL, convert it immediately before doing strategy work.
- Create the project folder before writing workflow outputs.
- If templates are used, copy template files into the project before Strategist starts.
- Keep all generated or downloaded image assets on project-local paths.
- When stock images are used, normalize them into
images/stock/and register provenance before Executor references them. - Prefer
image_generatefor AI image generation instead of ad-hoc provider commands. - Use provider smoke tests before claiming a live image provider is ready.
- Use the standard delivery path
total_md_split -> finalize_svg -> svg_to_pptx -s final -> project_manager validateunless you are intentionally debugging a narrower step. svg_to_pptxcan auto-splitnotes/total.mdwhen per-slide notes are missing, but explicittotal_md_splitremains the preferred delivery path for earlier note validation.- Export from
svg_final/, not directly fromsvg_output/, unless you are intentionally debugging pre-finalized SVG. - Put reusable logic in
slidemax/; keep all Python entrypoints inscripts/. - Do not create duplicate workflow sources outside
skills/slidemax_workflow/.
Tool Reliability Map
Source Ingestion
scripts/slidemax.py pdf_to_md- Use for native PDF conversion.
- Best when speed, privacy, and local execution matter.
scripts/slidemax.py web_to_md- Use for normal web pages.
scripts/slidemax.py web_to_md_cjs- Prefer for WeChat or high-protection sites.
- OCR skill:
.agent/skills/ocr_image_to_markdown/SKILL.md- Use for screenshots, image-only pages, and image documents when the source must be transcribed into Markdown and no command-based OCR path is available.
Project Lifecycle
scripts/slidemax.py project_manager init- Use before any project-local output is created.
scripts/slidemax.py project_manager validate- Use before claiming project completeness.
scripts/slidemax.py project_manager info- Use to inspect an existing project quickly.
scripts/slidemax.py project_manager audit- Use to inspect workflow stage progression and detect blocking stage gaps.
scripts/slidemax.py project_manager doctor- Use for preflight checks or machine-readable readiness reports.
Image Acquisition
scripts/slidemax.py image_generate- Canonical AI image generation entry point.
- Prefer this over provider-specific ad-hoc flows.
scripts/slidemax.py smoke_test_image_provider- Use before relying on a live provider configuration.
scripts/slidemax.py download_stock_image- Use when downloading a commercial stock image into a project.
scripts/slidemax.py register_stock_image- Use when the stock asset already exists locally and needs provenance tracking.
Finalize and Export
scripts/slidemax.py finalize_svg- Canonical post-processing entry point.
scripts/slidemax.py svg_to_pptx- Canonical export command.
- Prefer
-s finalfor finalized assets.
Quality and Diagnostics
scripts/slidemax.py batch_validate- Use for multi-project validation.
scripts/slidemax.py svg_quality_checker- Use for SVG quality diagnostics.
scripts/slidemax.py error_helper- Use when a command error needs repository-specific interpretation.
Failure Recovery Guide
Use this section when a workflow run feels incomplete or unreliable.
Symptom: Strategy started before source conversion
Fix:
- Stop the strategy phase.
- Convert PDF or URL into Markdown first.
- Resume from Stage 1.
Symptom: Executor starts but images are not ready
Fix:
- Pause slide production.
- Complete Stage 5 first.
- Confirm assets exist under
images/orimages/stock/.
Symptom: Provider works inconsistently or fails live
Fix:
- Run
smoke_test_image_providerwith the same provider, model, and output settings. - Verify credentials and base URL.
- Record any provider-specific constraints before treating the setup as stable.
Symptom: Exported PPTX looks wrong
Fix:
- Confirm export was run from finalized assets.
- Re-run
finalize_svg. - Re-export with
svg_to_pptx -s final. - Use quality and validation tools before changing unrelated workflow code.
Symptom: Workflow docs disagree
Fix:
- Treat
skills/slidemax_workflow/AGENTS.mdas authoritative. - Treat
workflows/generate-ppt.mdas a redirect only. - Update this skill so future agents enter the same source of truth.
Practical Operating Pattern
- Enter through this skill.
- Read
AGENTS.md. - Identify the current stage.
- Read the matching role file.
- Run the canonical command from
scripts/slidemax.py. - Keep shared logic changes in
slidemax/. - Validate outputs before declaring the workflow step complete.
Examples
Input: Generate a PPT from a PDF source.
Output: Read AGENTS.md, convert the PDF with scripts/slidemax.py pdf_to_md, initialize the project with scripts/slidemax.py project_manager init, then follow Strategist, Image_Generator if required, Executor, scripts/slidemax.py total_md_split, scripts/slidemax.py finalize_svg, scripts/slidemax.py svg_to_pptx -s final, and scripts/slidemax.py project_manager validate.
Input: Generate a PPT from screenshots or image-only source pages.
Output: Read AGENTS.md, use the OCR skill at .agent/skills/ocr_image_to_markdown/SKILL.md to transcribe the images into Markdown first, then continue with project initialization and the normal PPT workflow.
Input: Improve image-provider reliability for PPT generation.
Output: Update slidemax/image_generation.py, keep the unified registry thin, validate the provider with scripts/slidemax.py smoke_test_image_provider, and synchronize the related docs and examples.
Input: Audit workflow duplication.
Output: Keep skills/slidemax_workflow/ as the only workflow source of truth, reduce duplicate entry docs, and ensure this skill points future agents to the correct file order.
Integration
brainstorming- Use before broad workflow redesign, capability expansion, or major documentation restructuring.writing-skills- Use when editing this skill or validating whether the skill teaches the right workflow behavior.software-engineering- Use when reviewing repository architecture, module boundaries, or command-to-service layering.verification-before-completion- Use before claiming the workflow, docs, or tooling updates are complete.
References
skills/slidemax_workflow/AGENTS.md- Canonical workflow rules.skills/slidemax_workflow/workflows/generate-ppt.md- Redirect entry.skills/slidemax_workflow/references/docs/command_reference.md- Command reference.skills/slidemax_workflow/references/docs/image_prompt_guidance.md- Compact guide for draftingimages/image_prompts.md..agent/skills/ocr_image_to_markdown/SKILL.md- OCR fallback for screenshots and image-based source material.skills/slidemax_workflow/roles/AGENTS.md- Role map.skills/slidemax_workflow/references/docs/image_generation_setup.md- Image setup and credentials.skills/slidemax_workflow/references/docs/image_stock_sources.md- Stock image provenance workflow.skills/slidemax_workflow/references/docs/ark_video_generation.md- ARK image-to-video flow.
Skill Metadata
- Created: 2026-03-07
- Last Updated: 2026-03-12
- Version: 1.3.1
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

