agentleFS
funenc-labfunenc-lab/slidemax/skills/slidemax_workflow/SKILL.md

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.

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
  1. Very specific:

    Use it when the task depends on the repository-specific execution order, role protocol, command entry points, project layout, or …

    line 12
  2. Very specific:

    Run or explain the Strategist -> Image_Generator -> Executor -> Delivery -> Validate process.

    line 19
  3. Distinctive:

    Read in this order before executing or modifying a workflow task:

    line 85
  4. Distinctive:

    Never skip Stage 0 preflight.

    line 113
  5. Distinctive:

    Never enter a role stage before reading that role's file.

    line 114
  6. Distinctive:

    If the source is PDF or URL, convert it immediately before doing strategy work.

    line 115
  7. Distinctive:

    Create the project folder before writing workflow outputs.

    line 116
  8. Distinctive:

    If templates are used, copy template files into the project before Strategist starts.

    line 117
  9. Distinctive:

    Keep all generated or downloaded image assets on project-local paths.

    line 118
  10. Very specific:

    When stock images are used, normalize them into images/stock/ and register provenance before Executor references them.

    line 119
  11. Very specific:

    Prefer image_generate for AI image generation instead of ad-hoc provider commands.

    line 120
  12. Distinctive:

    Use provider smoke tests before claiming a live image provider is ready.

    line 121
  13. Very specific:

    Use the standard delivery path total_md_split -> finalize_svg -> svg_to_pptx -s final -> project_manager validate unless you are …

    line 122
  14. Very specific:

    Put reusable logic in slidemax/.

    line 125
  15. Very specific:

    Do not create duplicate workflow sources outside skills/slidemax_workflow/.

    line 126
  16. Distinctive:

    Use for native PDF conversion.

    line 133
  17. Distinctive:

    Use for normal web pages.

    line 136
  18. Distinctive:

    Prefer for WeChat or high-protection sites.

    line 138
  19. Distinctive:

    Use for screenshots, image-only pages, and image documents when the source must be transcribed into Markdown and no command-based OCR path …

    line 140
  20. Distinctive:

    Use before any project-local output is created.

    line 145
  21. Distinctive:

    Use before claiming project completeness.

    line 147
  22. Distinctive:

    Use to inspect an existing project quickly.

    line 149
  23. Distinctive:

    Use to inspect workflow stage progression and detect blocking stage gaps.

    line 151
  24. Distinctive:

    Use for preflight checks or machine-readable readiness reports.

    line 153
  25. Distinctive:

    Prefer this over provider-specific ad-hoc flows.

    line 159
  26. Distinctive:

    Use before relying on a live provider configuration.

    line 161
  27. Distinctive:

    Use when downloading a commercial stock image into a project.

    line 163
  28. Distinctive:

    Use when the stock asset already exists locally and needs provenance tracking.

    line 165
  29. Very specific:

    Prefer -s final for finalized assets.

    line 173
  30. Distinctive:

    Use for multi-project validation.

    line 178
  31. Distinctive:

    Use for SVG quality diagnostics.

    line 180
  32. Distinctive:

    Use when a command error needs repository-specific interpretation.

    line 182
  33. Distinctive:

    Use this section when a workflow run feels incomplete or unreliable.

    line 186
  34. Distinctive:

    Stop the strategy phase.

    line 191
  35. Very specific:

    Run smoke_test_image_provider with the same provider, model, and output settings.

    line 205
  36. Distinctive:

    Verify credentials and base URL.

    line 206
  37. Distinctive:

    Use quality and validation tools before changing unrelated workflow code.

    line 215
  38. Very specific:

    Treat skills/slidemax_workflow/AGENTS.md as authoritative.

    line 220
  39. Very specific:

    Treat workflows/generate-ppt.md as a redirect only.

    line 221
  40. Distinctive:

    Update this skill so future agents enter the same source of truth.

    line 222
  41. Distinctive:

    Read the matching role file.

    line 229
  42. Very specific:

    Run the canonical command from scripts/slidemax.py.

    line 230
  43. Very specific:

    Keep shared logic changes in slidemax/.

    line 231

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 -> Validate process.
  • 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 edits

Core Concepts

  • skills/slidemax_workflow/ is the only workflow source of truth.
  • AGENTS.md is the canonical workflow handbook.
  • workflows/stages/ stores the detailed stage playbooks referenced by AGENTS.md.
  • workflows/generate-ppt.md is a redirect entry, not a second workflow definition.
  • roles/guides/ stores dense role reference material referenced by the role entry files.
  • scripts/slidemax.py is the canonical CLI surface.
  • scripts/ stores the canonical CLI surface and standalone fallback scripts.
  • references/docs/command_reference*.md stores command documentation.
  • slidemax/ contains reusable Python services and the shared command registry.
  • web_to_md_cjs remains the standalone Node fallback for protected sites and WeChat pages under scripts/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:

  1. skills/slidemax_workflow/AGENTS.md
  2. skills/slidemax_workflow/workflows/generate-ppt.md only to confirm the redirect behavior
  3. The relevant stage playbook in skills/slidemax_workflow/workflows/stages/ when stage detail is needed
  4. The required role file in skills/slidemax_workflow/roles/
  5. The matching role guide in skills/slidemax_workflow/roles/guides/ when the role file points to one
  6. The relevant command documentation in skills/slidemax_workflow/references/docs/command_reference.md when running or changing tooling
  7. The shared service implementation in skills/slidemax_workflow/slidemax/ when the task is not command-only

Stage Execution Map

StageTriggerMandatory ReadPrimary OutputCanonical Commands
Stage 0Any PPT workflow taskAGENTS.mdPreflight confirmationNone
Stage 1Source is PDF, URL, or image-based documentAGENTS.mdMarkdown sourcepdf_to_md, web_to_md, web_to_md_cjs, OCR skill
Stage 2New project requiredAGENTS.mdProject folderproject_manager init
Stage 3Template-based workflowAGENTS.mdTemplate files in projectCopy assets before Strategist
Stage 4Every PPT projectroles/Strategist.mdProject design brief (design_specification.md)analyze_images when user images exist
Stage 5AI or stock images neededroles/Image_Generator.mdimages/, images/stock/, images/image_prompts.mdimage_generate, download_stock_image, register_stock_image, smoke_test_image_provider
Stage 6Slide productionMatching Executor rolesvg_output/, notes/total.mdRole-driven generation
Stage 7SVG output existsAGENTS.md, references/docs/command_reference.mdSplit notes, svg_final/, .pptx, validation resulttotal_md_split, finalize_svg, svg_to_pptx, project_manager validate
Stage 8User requests polish after a first draftroles/Optimizer_CRAP.mdImproved SVG/PPTXRe-run Stage 7 after optimizer edits

Reliability Rules

These rules exist to reduce failure rates during PPT generation and workflow maintenance.

  1. Never skip Stage 0 preflight.
  2. Never enter a role stage before reading that role's file.
  3. If the source is PDF or URL, convert it immediately before doing strategy work.
  4. Create the project folder before writing workflow outputs.
  5. If templates are used, copy template files into the project before Strategist starts.
  6. Keep all generated or downloaded image assets on project-local paths.
  7. When stock images are used, normalize them into images/stock/ and register provenance before Executor references them.
  8. Prefer image_generate for AI image generation instead of ad-hoc provider commands.
  9. Use provider smoke tests before claiming a live image provider is ready.
  10. Use the standard delivery path total_md_split -> finalize_svg -> svg_to_pptx -s final -> project_manager validate unless you are intentionally debugging a narrower step.
  11. svg_to_pptx can auto-split notes/total.md when per-slide notes are missing, but explicit total_md_split remains the preferred delivery path for earlier note validation.
  12. Export from svg_final/, not directly from svg_output/, unless you are intentionally debugging pre-finalized SVG.
  13. Put reusable logic in slidemax/; keep all Python entrypoints in scripts/.
  14. 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 final for 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/ or images/stock/.

Symptom: Provider works inconsistently or fails live

Fix:

  • Run smoke_test_image_provider with 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.md as authoritative.
  • Treat workflows/generate-ppt.md as a redirect only.
  • Update this skill so future agents enter the same source of truth.

Practical Operating Pattern

  1. Enter through this skill.
  2. Read AGENTS.md.
  3. Identify the current stage.
  4. Read the matching role file.
  5. Run the canonical command from scripts/slidemax.py.
  6. Keep shared logic changes in slidemax/.
  7. 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 drafting images/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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.