lov-any2deck
Generate professional slide deck images from content (Markdown, text, URLs). Creates outlines with style instructions, then generates individual slide images. Supports 16 visual styles, CJK/Latin mixed text, branding overlays, and PPTX/PDF export. Use when the user asks to "creat
Install
npx skills add https://github.com/lovstudio/skills/tree/main/skills/any2deck
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install lovstudio-skills@llmmart
git clone https://github.com/lovstudio/skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole lovstudio/skills collection as a plugin from our marketplace. Git is the plain clone.
README
PPT 大师 · PPT Master
Transform content into professional slide deck images. Creates outlines with style instructions, generates individual slide images, and merges into PPTX/PDF. Supports 16 visual styles, CJK/Latin mixed text, dual-logo branding, and partial regeneration.
Fork of baoyu-slide-deck with Skill Publisher enhancements.
Part of skill-publisher/skills — by example.com
Install
npx skills add any2deck -g -y
Requires: Image generation skill + Node.js (for PPTX/PDF) + Python 3.8+ (for branding)
Quick Start
/lov-any2deck content.md
/lov-any2deck content.md --style bold-editorial
/lov-any2deck content.md --audience executives --slides 12
/lov-any2deck content.md --lang zh
Workflow
Content → Analyze → Confirm Style/Audience/Slides
→ Generate Outline → [Review?]
→ Generate Prompts → [Review?]
→ Generate Images → [Apply Branding?]
→ Merge PPTX/PDF → Done
Style Presets
| Preset | Best For |
|---|---|
blueprint (default) |
Architecture, system design |
bold-editorial |
Product launches, keynotes |
chalkboard |
Education, tutorials |
corporate |
Investor decks, proposals |
minimal |
Executive briefings |
sketch-notes |
Educational, tutorials |
notion |
Product demos, SaaS |
watercolor |
Lifestyle, wellness |
dark-atmospheric |
Entertainment, gaming |
editorial-infographic |
Tech explainers, research |
intuition-machine |
Technical docs, academic |
scientific |
Biology, chemistry, medical |
pixel-art |
Gaming, developer talks |
vector-illustration |
Creative, children's content |
vintage |
Historical, heritage |
fantasy-animation |
Educational storytelling |
Style auto-detected from content signals. Override with --style <name>.
Options
| Option | Description |
|---|---|
--style <name> |
Visual style preset or custom |
--audience <type> |
beginners, intermediate, experts, executives, general |
--lang <code> |
Output language (en, zh, ja, etc.) |
--slides <N> |
Target slide count (8-25 recommended) |
--outline-only |
Generate outline only |
--prompts-only |
Generate outline + prompts, skip images |
--images-only |
Generate images from existing prompts |
--regenerate <N> |
Regenerate specific slide(s): 3 or 2,5,8 |
--logo <path> |
Brand logo (top-right, skips cover/back-cover) |
--logo2 <path> |
Secondary logo (left of primary) |
--presentation |
Strip narration, keep only visual anchors |
Output Structure
slide-deck/{topic-slug}/
├── source-{slug}.md
├── outline.md
├── prompts/
│ ├── 01-slide-cover.md
│ ├── 02-slide-{slug}.md
│ └── ...
├── 01-slide-cover.png
├── 02-slide-{slug}.png
├── ...
├── {topic-slug}.pptx
└── {topic-slug}.pdf
Scripts
| Script | Purpose |
|---|---|
scripts/merge-to-pptx.ts |
Merge slide images into PowerPoint |
scripts/merge-to-pdf.ts |
Merge slide images into PDF |
scripts/apply-branding.py |
Composite logo(s)/QR onto slides |
License
MIT
Skill manifest
PPT 大师 · PPT Master
Transform content into professional slide deck images.
Usage
/lov-any2deck path/to/content.md
/lov-any2deck path/to/content.md --style sketch-notes
/lov-any2deck path/to/content.md --audience executives
/lov-any2deck path/to/content.md --lang zh
/lov-any2deck path/to/content.md --slides 10
/lov-any2deck path/to/content.md --outline-only
/lov-any2deck # Then paste content
Script Directory
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>
| Script | Purpose |
|---|---|
scripts/merge-to-pptx.ts |
Merge slides into PowerPoint |
scripts/merge-to-pdf.ts |
Merge slides into PDF |
scripts/apply-branding.py |
Composite logo(s)/QR onto slides — dual logo, tight-crop, JPG white→alpha (opt-in) |
Options
| Option | Description |
|---|---|
--style <name> |
Visual style: preset name, custom, or custom style name |
--audience <type> |
Target: beginners, intermediate, experts, executives, general |
--lang <code> |
Output language (en, zh, ja, etc.) |
--slides <number> |
Target slide count (8-25 recommended, max 30) |
--outline-only |
Generate outline only, skip image generation |
--prompts-only |
Generate outline + prompts, skip images |
--images-only |
Generate images from existing prompts directory |
--regenerate <N> |
Regenerate specific slide(s): --regenerate 3 or --regenerate 2,5,8 |
--logo <path> |
Primary brand logo (top-right, skips cover/back-cover) |
--logo2 <path> |
Secondary logo (placed left of primary, optically aligned) |
--presentation |
Presentation mode: strips narration text, keeps only visual anchors |
Slide Count by Content Length:
| Content | Slides |
|---|---|
| < 1000 words | 5-10 |
| 1000-3000 words | 10-18 |
| 3000-5000 words | 15-25 |
| > 5000 words | 20-30 (consider splitting) |
Style System
Presets
| Preset | Dimensions | Best For |
|---|---|---|
blueprint (Default) |
grid + cool + technical + balanced | Architecture, system design |
chalkboard |
organic + warm + handwritten + balanced | Education, tutorials |
corporate |
clean + professional + geometric + balanced | Investor decks, proposals |
minimal |
clean + neutral + geometric + minimal | Executive briefings |
sketch-notes |
organic + warm + handwritten + balanced | Educational, tutorials |
watercolor |
organic + warm + humanist + minimal | Lifestyle, wellness |
dark-atmospheric |
clean + dark + editorial + balanced | Entertainment, gaming |
notion |
clean + neutral + geometric + dense | Product demos, SaaS |
bold-editorial |
clean + vibrant + editorial + balanced | Product launches, keynotes |
editorial-infographic |
clean + cool + editorial + dense | Tech explainers, research |
fantasy-animation |
organic + vibrant + handwritten + minimal | Educational storytelling |
intuition-machine |
clean + cool + technical + dense | Technical docs, academic |
pixel-art |
pixel + vibrant + technical + balanced | Gaming, developer talks |
scientific |
clean + cool + technical + dense | Biology, chemistry, medical |
vector-illustration |
clean + vibrant + humanist + balanced | Creative, children's content |
vintage |
paper + warm + editorial + balanced | Historical, heritage |
Style Dimensions
| Dimension | Options | Description |
|---|---|---|
| Texture | clean, grid, organic, pixel, paper | Visual texture and background treatment |
| Mood | professional, warm, cool, vibrant, dark, neutral | Color temperature and palette style |
| Typography | geometric, humanist, handwritten, editorial, technical | Headline and body text styling |
| Density | minimal, balanced, dense | Information density per slide |
Full specs: references/dimensions/*.md
Auto Style Selection
| Content Signals | Preset |
|---|---|
| tutorial, learn, education, guide, beginner | sketch-notes |
| classroom, teaching, school, chalkboard | chalkboard |
| architecture, system, data, analysis, technical | blueprint |
| creative, children, kids, cute | vector-illustration |
| briefing, academic, research, bilingual | intuition-machine |
| executive, minimal, clean, simple | minimal |
| saas, product, dashboard, metrics | notion |
| investor, quarterly, business, corporate | corporate |
| launch, marketing, keynote, magazine | bold-editorial |
| entertainment, music, gaming, atmospheric | dark-atmospheric |
| explainer, journalism, science communication | editorial-infographic |
| story, fantasy, animation, magical | fantasy-animation |
| gaming, retro, pixel, developer | pixel-art |
| biology, chemistry, medical, scientific | scientific |
| history, heritage, vintage, expedition | vintage |
| lifestyle, wellness, travel, artistic | watercolor |
| Default | blueprint |
Design Philosophy
Decks designed for reading and sharing, not live presentation:
- Each slide self-explanatory without verbal commentary
- Logical flow when scrolling
- All necessary context within each slide
- Optimized for social media sharing
See references/design-guidelines.md for:
- Audience-specific principles
- Visual hierarchy
- Content density guidelines
- Color and typography selection
- Font recommendations
See references/layouts.md for layout options.
File Management
Output Directory
slide-deck/{topic-slug}/
├── source-{slug}.{ext}
├── outline.md
├── prompts/
│ └── 01-slide-cover.md, 02-slide-{slug}.md, ...
├── 01-slide-cover.png, 02-slide-{slug}.png, ...
├── {topic-slug}.pptx
└── {topic-slug}.pdf
Slug: Extract topic (2-4 words, kebab-case). Example: "Introduction to Machine Learning" → intro-machine-learning
Conflict Handling: See Step 1.3 for existing content detection and user options.
Language Handling
Detection Priority:
--langflag (explicit)- EXTEND.md
languagesetting - User's conversation language (input language)
- Source content language
Rule: ALL responses use user's preferred language:
- Questions and confirmations
- Progress reports
- Error messages
- Completion summaries
Technical terms (style names, file paths, code) remain in English.
Workflow
For the full step-by-step workflow, use references/workflow.md. Keep the main
flow in this order:
- Setup & analyze: load
.lov-skills/lov-any2deck/EXTEND.mdwhen present, save source content, analyze style signals, detect language, choose slide count, and check for existingslide-deck/{topic-slug}output before continuing. - Confirm: use
AskUserQuestionfor style, audience, slide count, outline review, and prompt review. If custom dimensions are selected, collect texture, mood, typography, and density. - Generate outline: read the selected preset from
references/styles/or combine dimension docs fromreferences/dimensions/, then writeoutline.mdusingreferences/outline-template.md. - Review outline when requested, then generate per-slide prompts under
prompts/usingreferences/base-prompt.mdandreferences/layouts.md. - Review prompts when requested, generate slide images, optionally apply branding with
scripts/apply-branding.py, then merge PPTX/PDF with the TypeScript scripts. - Report the output directory, generated slide count, PPTX/PDF paths, style, audience, language, and any partial failures.
Partial workflows (--outline-only, --prompts-only, --images-only,
--regenerate) and slide modification procedures are documented in
references/workflow.md.
References
| File | Content |
|---|---|
references/analysis-framework.md |
Content analysis for presentations |
references/outline-template.md |
Outline structure and format |
references/modification-guide.md |
Edit, add, delete slide workflows |
references/content-rules.md |
Content and style guidelines |
references/design-guidelines.md |
Audience, typography, colors, visual elements |
references/layouts.md |
Layout options and selection tips |
references/base-prompt.md |
Base prompt for image generation |
references/dimensions/*.md |
Dimension specifications (texture, mood, typography, density) |
references/dimensions/presets.md |
Preset → dimension mapping |
references/styles/<style>.md |
Full style specifications (legacy) |
references/config/preferences-schema.md |
EXTEND.md structure |
Notes
- Image generation: 10-30 seconds per slide
- Auto-retry once on generation failure
- Use stylized alternatives for sensitive public figures
- Maintain style consistency via session ID
- Step 2 confirmation required - do not skip (style, audience, slides, outline review, prompt review)
- Step 4 conditional - only if user requested outline review in Step 2
- Step 6 conditional - only if user requested prompt review in Step 2
Extension Support
Custom configurations via EXTEND.md. See Step 1.1 for paths and supported options.
Runtime context (shared)
运行前读取本 Skill 包的 skill.yaml,由宿主提供 skill-runtime/v1 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。
- 只使用 Manifest 声明的字段;Profile 保存公开品牌事实,Preferences 保存个人工作偏好。
required: true字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。- 报错提供可复制的
context_id、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。
通用反馈闭环
用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
- 先判断意见是
task-specific(仅本次)还是reusable(可跨任务复用)。 task-specific只修改当前任务,不改 Skill。reusable先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。- 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
reusable修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。
Files (skills)
-
cases
-
cases.json 1014 B
Loading…
-
-
references
-
config
-
preferences-schema.md 3.7 KB
Loading…
-
-
dimensions
-
density.md 3.1 KB
Loading… -
mood.md 3.3 KB
Loading… -
presets.md 4.7 KB
Loading… -
texture.md 1.9 KB
Loading… -
typography.md 4 KB
Loading…
-
-
styles
-
blueprint.md 2.2 KB
Loading… -
bold-editorial.md 2.4 KB
Loading… -
chalkboard.md 2.5 KB
Loading… -
corporate.md 2.3 KB
Loading… -
dark-atmospheric.md 2.4 KB
Loading… -
editorial-infographic.md 2.4 KB
Loading… -
fantasy-animation.md 2.4 KB
Loading… -
intuition-machine.md 2.8 KB
Loading… -
minimal.md 2 KB
Loading… -
notion.md 2.1 KB
Loading… -
pixel-art.md 2.4 KB
Loading… -
scientific.md 2.4 KB
Loading… -
sketch-notes.md 2.4 KB
Loading… -
vector-illustration.md 2.6 KB
Loading… -
vintage.md 2.4 KB
Loading… -
watercolor.md 2.3 KB
Loading…
-
-
analysis-framework.md 5.1 KB
Loading… -
base-prompt.md 4 KB
Loading… -
content-rules.md 2.9 KB
Loading… -
design-guidelines.md 7.4 KB
Loading… -
layouts.md 3 KB
Loading… -
modification-guide.md 2.4 KB
Loading… -
outline-template.md 7.4 KB
Loading… -
workflow.md 16.6 KB
Loading…
-
-
scripts
-
apply-branding.py 9.7 KB
Loading… -
merge-to-pdf.ts 3.1 KB
Loading… -
merge-to-pptx.ts 3.8 KB
Loading… -
package.json 104 B
Loading…
-
-
.gitignore 10 B · in bundle
-
CHANGELOG.md 586 B
Loading… -
README.md 3.3 KB
# PPT 大师 · PPT Master  Transform content into professional slide deck images. Creates outlines with style instructions, generates individual slide images, and merges into PPTX/PDF. Supports 16 visual styles, CJK/Latin mixed text, dual-logo branding, and partial regeneration. Fork of [baoyu-slide-deck](https://github.com/nicepkg/baoyu-slide-deck) with Skill Publisher enhancements. Part of [skill-publisher/skills](https://example.com/skills/skills) — by [example.com](https://example.com) ## Install ```bash npx skills add any2deck -g -y ``` Requires: Image generation skill + Node.js (for PPTX/PDF) + Python 3.8+ (for branding) ## Quick Start ```bash /lov-any2deck content.md /lov-any2deck content.md --style bold-editorial /lov-any2deck content.md --audience executives --slides 12 /lov-any2deck content.md --lang zh ``` ## Workflow ``` Content → Analyze → Confirm Style/Audience/Slides → Generate Outline → [Review?] → Generate Prompts → [Review?] → Generate Images → [Apply Branding?] → Merge PPTX/PDF → Done ``` ## Style Presets | Preset | Best For | |--------|----------| | `blueprint` (default) | Architecture, system design | | `bold-editorial` | Product launches, keynotes | | `chalkboard` | Education, tutorials | | `corporate` | Investor decks, proposals | | `minimal` | Executive briefings | | `sketch-notes` | Educational, tutorials | | `notion` | Product demos, SaaS | | `watercolor` | Lifestyle, wellness | | `dark-atmospheric` | Entertainment, gaming | | `editorial-infographic` | Tech explainers, research | | `intuition-machine` | Technical docs, academic | | `scientific` | Biology, chemistry, medical | | `pixel-art` | Gaming, developer talks | | `vector-illustration` | Creative, children's content | | `vintage` | Historical, heritage | | `fantasy-animation` | Educational storytelling | Style auto-detected from content signals. Override with `--style <name>`. ## Options | Option | Description | |--------|-------------| | `--style <name>` | Visual style preset or `custom` | | `--audience <type>` | beginners, intermediate, experts, executives, general | | `--lang <code>` | Output language (en, zh, ja, etc.) | | `--slides <N>` | Target slide count (8-25 recommended) | | `--outline-only` | Generate outline only | | `--prompts-only` | Generate outline + prompts, skip images | | `--images-only` | Generate images from existing prompts | | `--regenerate <N>` | Regenerate specific slide(s): `3` or `2,5,8` | | `--logo <path>` | Brand logo (top-right, skips cover/back-cover) | | `--logo2 <path>` | Secondary logo (left of primary) | | `--presentation` | Strip narration, keep only visual anchors | ## Output Structure ``` slide-deck/{topic-slug}/ ├── source-{slug}.md ├── outline.md ├── prompts/ │ ├── 01-slide-cover.md │ ├── 02-slide-{slug}.md │ └── ... ├── 01-slide-cover.png ├── 02-slide-{slug}.png ├── ... ├── {topic-slug}.pptx └── {topic-slug}.pdf ``` ## Scripts | Script | Purpose | |--------|---------| | `scripts/merge-to-pptx.ts` | Merge slide images into PowerPoint | | `scripts/merge-to-pdf.ts` | Merge slide images into PDF | | `scripts/apply-branding.py` | Composite logo(s)/QR onto slides | ## License MIT -
SKILL.md 11.2 KB
--- name: lov-any2deck category: Document Conversion tagline: "Content → slide deck images with 16 visual styles, PPTX/PDF export, branding overlay." description: > Generate professional slide deck images from content (Markdown, text, URLs). Creates outlines with style instructions, then generates individual slide images. Supports 16 visual styles, CJK/Latin mixed text, branding overlays, and PPTX/PDF export. Use when the user asks to "create slides", "make a presentation", "generate deck", "slide deck", "PPT", "做PPT", "生成幻灯片", "制作演示文稿", or wants to turn content into a visual slide deck. license: MIT compatibility: > Requires an image generation skill (e.g. image-gen) and Node.js for PPTX/PDF merge. Python 3.8+ for branding overlay. Cross-platform: macOS, Windows, Linux. metadata: author: contributors version: "1.1.0" tags: slide deck presentation pptx pdf image generation --- # PPT 大师 · PPT Master Transform content into professional slide deck images. ## Usage ```bash /lov-any2deck path/to/content.md /lov-any2deck path/to/content.md --style sketch-notes /lov-any2deck path/to/content.md --audience executives /lov-any2deck path/to/content.md --lang zh /lov-any2deck path/to/content.md --slides 10 /lov-any2deck path/to/content.md --outline-only /lov-any2deck # Then paste content ``` ## Script Directory **Agent Execution Instructions**: 1. Determine this SKILL.md file's directory path as `SKILL_DIR` 2. Script path = `${SKILL_DIR}/scripts/<script-name>` | Script | Purpose | |--------|---------| | `scripts/merge-to-pptx.ts` | Merge slides into PowerPoint | | `scripts/merge-to-pdf.ts` | Merge slides into PDF | | `scripts/apply-branding.py` | Composite logo(s)/QR onto slides — dual logo, tight-crop, JPG white→alpha (opt-in) | ## Options | Option | Description | |--------|-------------| | `--style <name>` | Visual style: preset name, `custom`, or custom style name | | `--audience <type>` | Target: beginners, intermediate, experts, executives, general | | `--lang <code>` | Output language (en, zh, ja, etc.) | | `--slides <number>` | Target slide count (8-25 recommended, max 30) | | `--outline-only` | Generate outline only, skip image generation | | `--prompts-only` | Generate outline + prompts, skip images | | `--images-only` | Generate images from existing prompts directory | | `--regenerate <N>` | Regenerate specific slide(s): `--regenerate 3` or `--regenerate 2,5,8` | | `--logo <path>` | Primary brand logo (top-right, skips cover/back-cover) | | `--logo2 <path>` | Secondary logo (placed left of primary, optically aligned) | | `--presentation` | Presentation mode: strips narration text, keeps only visual anchors | **Slide Count by Content Length**: | Content | Slides | |---------|--------| | < 1000 words | 5-10 | | 1000-3000 words | 10-18 | | 3000-5000 words | 15-25 | | > 5000 words | 20-30 (consider splitting) | ## Style System ### Presets | Preset | Dimensions | Best For | |--------|------------|----------| | `blueprint` (Default) | grid + cool + technical + balanced | Architecture, system design | | `chalkboard` | organic + warm + handwritten + balanced | Education, tutorials | | `corporate` | clean + professional + geometric + balanced | Investor decks, proposals | | `minimal` | clean + neutral + geometric + minimal | Executive briefings | | `sketch-notes` | organic + warm + handwritten + balanced | Educational, tutorials | | `watercolor` | organic + warm + humanist + minimal | Lifestyle, wellness | | `dark-atmospheric` | clean + dark + editorial + balanced | Entertainment, gaming | | `notion` | clean + neutral + geometric + dense | Product demos, SaaS | | `bold-editorial` | clean + vibrant + editorial + balanced | Product launches, keynotes | | `editorial-infographic` | clean + cool + editorial + dense | Tech explainers, research | | `fantasy-animation` | organic + vibrant + handwritten + minimal | Educational storytelling | | `intuition-machine` | clean + cool + technical + dense | Technical docs, academic | | `pixel-art` | pixel + vibrant + technical + balanced | Gaming, developer talks | | `scientific` | clean + cool + technical + dense | Biology, chemistry, medical | | `vector-illustration` | clean + vibrant + humanist + balanced | Creative, children's content | | `vintage` | paper + warm + editorial + balanced | Historical, heritage | ### Style Dimensions | Dimension | Options | Description | |-----------|---------|-------------| | **Texture** | clean, grid, organic, pixel, paper | Visual texture and background treatment | | **Mood** | professional, warm, cool, vibrant, dark, neutral | Color temperature and palette style | | **Typography** | geometric, humanist, handwritten, editorial, technical | Headline and body text styling | | **Density** | minimal, balanced, dense | Information density per slide | Full specs: `references/dimensions/*.md` ### Auto Style Selection | Content Signals | Preset | |-----------------|--------| | tutorial, learn, education, guide, beginner | `sketch-notes` | | classroom, teaching, school, chalkboard | `chalkboard` | | architecture, system, data, analysis, technical | `blueprint` | | creative, children, kids, cute | `vector-illustration` | | briefing, academic, research, bilingual | `intuition-machine` | | executive, minimal, clean, simple | `minimal` | | saas, product, dashboard, metrics | `notion` | | investor, quarterly, business, corporate | `corporate` | | launch, marketing, keynote, magazine | `bold-editorial` | | entertainment, music, gaming, atmospheric | `dark-atmospheric` | | explainer, journalism, science communication | `editorial-infographic` | | story, fantasy, animation, magical | `fantasy-animation` | | gaming, retro, pixel, developer | `pixel-art` | | biology, chemistry, medical, scientific | `scientific` | | history, heritage, vintage, expedition | `vintage` | | lifestyle, wellness, travel, artistic | `watercolor` | | Default | `blueprint` | ## Design Philosophy Decks designed for **reading and sharing**, not live presentation: - Each slide self-explanatory without verbal commentary - Logical flow when scrolling - All necessary context within each slide - Optimized for social media sharing See `references/design-guidelines.md` for: - Audience-specific principles - Visual hierarchy - Content density guidelines - Color and typography selection - Font recommendations See `references/layouts.md` for layout options. ## File Management ### Output Directory ``` slide-deck/{topic-slug}/ ├── source-{slug}.{ext} ├── outline.md ├── prompts/ │ └── 01-slide-cover.md, 02-slide-{slug}.md, ... ├── 01-slide-cover.png, 02-slide-{slug}.png, ... ├── {topic-slug}.pptx └── {topic-slug}.pdf ``` **Slug**: Extract topic (2-4 words, kebab-case). Example: "Introduction to Machine Learning" → `intro-machine-learning` **Conflict Handling**: See Step 1.3 for existing content detection and user options. ## Language Handling **Detection Priority**: 1. `--lang` flag (explicit) 2. EXTEND.md `language` setting 3. User's conversation language (input language) 4. Source content language **Rule**: ALL responses use user's preferred language: - Questions and confirmations - Progress reports - Error messages - Completion summaries Technical terms (style names, file paths, code) remain in English. ## Workflow For the full step-by-step workflow, use `references/workflow.md`. Keep the main flow in this order: 1. Setup & analyze: load `.lov-skills/lov-any2deck/EXTEND.md` when present, save source content, analyze style signals, detect language, choose slide count, and check for existing `slide-deck/{topic-slug}` output before continuing. 2. Confirm: use `AskUserQuestion` for style, audience, slide count, outline review, and prompt review. If custom dimensions are selected, collect texture, mood, typography, and density. 3. Generate outline: read the selected preset from `references/styles/` or combine dimension docs from `references/dimensions/`, then write `outline.md` using `references/outline-template.md`. 4. Review outline when requested, then generate per-slide prompts under `prompts/` using `references/base-prompt.md` and `references/layouts.md`. 5. Review prompts when requested, generate slide images, optionally apply branding with `scripts/apply-branding.py`, then merge PPTX/PDF with the TypeScript scripts. 6. Report the output directory, generated slide count, PPTX/PDF paths, style, audience, language, and any partial failures. Partial workflows (`--outline-only`, `--prompts-only`, `--images-only`, `--regenerate`) and slide modification procedures are documented in `references/workflow.md`. ## References | File | Content | |------|---------| | `references/analysis-framework.md` | Content analysis for presentations | | `references/outline-template.md` | Outline structure and format | | `references/modification-guide.md` | Edit, add, delete slide workflows | | `references/content-rules.md` | Content and style guidelines | | `references/design-guidelines.md` | Audience, typography, colors, visual elements | | `references/layouts.md` | Layout options and selection tips | | `references/base-prompt.md` | Base prompt for image generation | | `references/dimensions/*.md` | Dimension specifications (texture, mood, typography, density) | | `references/dimensions/presets.md` | Preset → dimension mapping | | `references/styles/<style>.md` | Full style specifications (legacy) | | `references/config/preferences-schema.md` | EXTEND.md structure | ## Notes - Image generation: 10-30 seconds per slide - Auto-retry once on generation failure - Use stylized alternatives for sensitive public figures - Maintain style consistency via session ID - **Step 2 confirmation required** - do not skip (style, audience, slides, outline review, prompt review) - **Step 4 conditional** - only if user requested outline review in Step 2 - **Step 6 conditional** - only if user requested prompt review in Step 2 ## Extension Support Custom configurations via EXTEND.md. See **Step 1.1** for paths and supported options. ## Runtime context (shared) 运行前读取本 Skill 包的 `skill.yaml`,由宿主提供 `skill-runtime/v1` 上下文。字段解析顺序为:当前请求、项目上下文、个人 Preferences、品牌 Profile、通用默认值。 - 只使用 Manifest 声明的字段;Profile 保存公开品牌事实,Preferences 保存个人工作偏好。 - `required: true` 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题;用户明确同意后再保存回答。 - 报错提供可复制的 `context_id`、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。 ## 通用反馈闭环 用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行: 1. 先判断意见是 `task-specific`(仅本次)还是 `reusable`(可跨任务复用)。 2. `task-specific` 只修改当前任务,不改 Skill。 3. `reusable` 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。 4. 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。 5. `reusable` 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。 -
skill.yaml 830 B
Loading…
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.