marp-deck-workflow
4
总安装量
3
周安装量
#49540
全站排名
安装命令
npx skills add https://github.com/raffaelecamanzo/skills --skill marp-deck-workflow
Agent 安装分布
opencode
3
antigravity
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
Skill 文档
Marp Deck Workflow Orchestrator
Purpose
Single entry point that executes the full deck pipeline in order:
- Plan the deck
- Design visuals + generate Mermaid diagrams
- Generate the final MARP deck
- Render PDF and run visual QA (auto-fix loop via deck-gen if flaws found)
This orchestrator must be deterministic and stop on mismatches instead of guessing.
Inputs (mandatory)
definition/deck-definition.mdreferences/deck-template.md
Outputs (generated/updated)
planning/deck-plan.mdplanning/deck-visual-design.mddiagrams/*.mmd(as needed)assets/*.png(generated from Mermaid)slides/deck.mdslides/deck-notes.mdoutput/<slugified-title>_<date>.pdf(fromtask pdf)themes/deck-theme.css(only if unavoidable and explicitly required)
Workflow
Phase 0 â Preconditions
- Verify
definition/deck-definition.mdexists - Verify
references/deck-template.mdexists - If missing: stop and report exact missing paths
Style preferences (required for consistent output):
- Check
definition/deck-definition.mdfor an explicit style choice:- Cover variant:
cover-1..cover-6 - Section variant:
section-1..section-5
- Cover variant:
- If missing, ask the user to choose (or accept defaults), then update
definition/deck-definition.mdto record:Style preferences: cover=cover-<n>, section=section-<n>
Phase 1 â Deck planning (planner behavior)
Goal: produce planning/deck-plan.md as a planning artifact only.
Rules:
- Extract deck title, sections, key messages, constraints
- Create 1â3 intro slides if needed
- For each section: section divider + 2â5 slides
- Ensure every key message appears at least once
- Do not generate diagrams or Mermaid
## Image(if present) must be descriptive only
Output:
- Write
planning/deck-plan.md
Hard gate:
- If any section has no slides planned: stop
Phase 2 â Visual design + Mermaid generation (designer behavior)
Goal: produce planning/deck-visual-design.md and diagram assets.
Rules:
- Slide order must match
planning/deck-plan.mdexactly - For each slide: Layout + Content placement (+ Visual design if planned)
- When Visual design is diagrammatic:
- Create
diagrams/<diagramname>.mmd(minimal and readable) - Render with
task mermaid-file FILE=diagrams/<diagramname>.mmd(ortask mermaidto rebuild all) - Run
task mermaid-check-file FILE=diagrams/<diagramname>.mmdand adjust the.mmdif the output is too flat/tall - Reference as
assets/<diagramname>.pnginsideplanning/deck-visual-design.md - Choose slide class first, then design the diagram to fit (
visual-splitby default; addimage-wide/image-tallbased on validated aspect ratio)
- Create
Hard gates:
- If slide count/order mismatches plan: stop
- If a planned diagram cannot be expressed minimally: stop and report
Outputs:
planning/deck-visual-design.mddiagrams/*.mmdassets/*.png(from Mermaid)
Phase 3 â Deck generation (generator behavior)
Goal: generate slides/deck.md and slides/deck-notes.md deterministically.
Rules:
- Authority order:
references/deck-template.mdplanning/deck-visual-design.mdplanning/deck-plan.mddefinition/deck-definition.md
- Keep frontpage and closing structure unchanged (frontpage cover variant may be applied)
- Insert user slides between them
- Layout mapping must comply with template
- Visual placement rules:
- If image is inside HTML layout containers: use
<img src="../assets/..."> - If image is standalone (no HTML wrapper): Markdown
allowed
- If image is inside HTML layout containers: use
- Do not invent new slides or content
Outputs:
slides/deck.mdslides/deck-notes.mdthemes/deck-theme.cssonly if strictly required and justified
Hard gates:
- If any referenced asset is missing: stop
- If no template mapping exists for a layout: stop
Phase 4 â Visual QA (checker behavior)
Goal: detect rendering and layout flaws in the rendered PDF and fix them.
Steps:
- Run
task pdfto produce the PDF. - Invoke
marp-deck-checkervia Skill tool. - The checker reads the PDF page-by-page and evaluates each slide against 12 flaw categories.
Output:
- PASS: inline message only, no file written â pipeline complete.
- FLAWS FOUND: checker invokes
marp-deck-genwith a targeted fix prompt (layout/structure fixes only; content shortened only as a last resort for unresolvable overflow).
Feedback loop:
- If
marp-deck-genwas invoked: re-runtask pdf, then re-invokemarp-deck-checkerto confirm fixes. - Repeat until PASS.
Hard gate:
- Do not claim pipeline completion until the checker reports PASS.
Non-goals
- No background execution
- No partial guessing when artifacts disagree
- No diagram generation unless visual design calls for it
- No aesthetic changes not justified by template rules
This orchestrator is the single entry point for the deck pipeline.