# AGENTS.md This file serves as the project entry point for general AI agents. Before executing PPT generation tasks, **you MUST first read `skills/ppt-master/SKILL.md`** for the complete workflow and rules. ## Project Overview PPT Master is an AI-driven presentation generation system. Through multi-role collaboration (Strategist → Image_Generator → Executor), it converts source documents (PDF/DOCX/URL/Markdown) into natively editable PPTX with real PowerPoint shapes (DrawingML). **Core Pipeline**: `Source Document → Create Project → Template Option → Strategist Eight Confirmations → [Image_Generator] → Executor → Post-processing → Export PPTX` **Execution Requirements**: - Before starting a PPT task, read `skills/ppt-master/SKILL.md` first - To create a template independently, read `skills/ppt-master/workflows/create-template.md` - Role-specific rules and technical constraints are in `skills/ppt-master/references/` - ⚠️ **Strict serial execution**: Every Step in the pipeline MUST be executed sequentially — bundling, batching, or parallelizing Steps is FORBIDDEN - ⚠️ **SVG generation must stay in the main agent**: During Executor Step 6, SVG pages MUST be generated by the current main agent with full project context. Delegating SVG generation to sub-agents is FORBIDDEN - ⚠️ **SVG generation rhythm**: In Executor Step 6, first lock the global design context, then generate SVGs sequentially page by page in one continuous pass. Generating pages in grouped batches (for example, 5 pages at a time) is FORBIDDEN ## Compatibility Boundary - This repository is a workflow/skill package, not a conventional app or service scaffold - Do NOT assume repository-local conventions such as `.worktrees/`, `tests/`, or mandatory branch setup unless the user explicitly requests them - If a generic coding skill conflicts with this repository's instructions, prioritize `skills/ppt-master/SKILL.md` and this file for work inside this repository ## Common Commands ```bash # Source content conversion python3 skills/ppt-master/scripts/pdf_to_md.py python3 skills/ppt-master/scripts/doc_to_md.py # Requires: pandoc (DOCX/EPUB/HTML/LaTeX/RST/etc.) python3 skills/ppt-master/scripts/web_to_md.py node skills/ppt-master/scripts/web_to_md.cjs # Project management python3 skills/ppt-master/scripts/project_manager.py init --format ppt169 python3 skills/ppt-master/scripts/project_manager.py import-sources --move python3 skills/ppt-master/scripts/project_manager.py validate # Image tools python3 skills/ppt-master/scripts/analyze_images.py /images python3 skills/ppt-master/scripts/image_gen.py "prompt" --aspect_ratio 16:9 --image_size 1K -o /images # SVG quality check python3 skills/ppt-master/scripts/svg_quality_checker.py # Post-processing pipeline (MUST run sequentially, one at a time — NEVER batch) python3 skills/ppt-master/scripts/total_md_split.py # ✅ Confirm no errors before running the next command python3 skills/ppt-master/scripts/finalize_svg.py # ✅ Confirm no errors before running the next command python3 skills/ppt-master/scripts/svg_to_pptx.py -s final # Default: generates native shapes (.pptx) + SVG reference (_svg.pptx) # Use --only native or --only legacy to generate just one version ``` ## Core Directories - `skills/ppt-master/SKILL.md` — Main entry point and complete workflow - `skills/ppt-master/workflows/create-template.md` — Standalone template workflow - `skills/ppt-master/references/` — Role definitions and technical specifications - `skills/ppt-master/scripts/` — Tool scripts - `skills/ppt-master/scripts/docs/` — Topic-focused script docs (`conversion`, `project`, `svg-pipeline`, `image`, `troubleshooting`) - `skills/ppt-master/templates/` — Layout templates, chart templates, icon library - `examples/` — Example projects - `projects/` — User project workspace ## SVG Technical Constraints **Banned features**: `clipPath` | `mask` | `