From 5cb86d8e51cb8fe2b8cbdbb5a2cb222e4d971f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Thu, 29 Jan 2026 22:01:42 -0600 Subject: [PATCH] feat(baoyu-slide-deck): add backup rules for source, prompt, and slide image files --- skills/baoyu-slide-deck/SKILL.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/skills/baoyu-slide-deck/SKILL.md b/skills/baoyu-slide-deck/SKILL.md index d47b3df..a83809c 100644 --- a/skills/baoyu-slide-deck/SKILL.md +++ b/skills/baoyu-slide-deck/SKILL.md @@ -226,6 +226,7 @@ Schema: `references/config/preferences-schema.md` **1.2 Analyze Content** 1. Save source content (if pasted, save as `source.md`) + - **Backup rule**: If `source.md` exists, rename to `source-backup-YYYYMMDD-HHMMSS.md` 2. Follow `references/analysis-framework.md` for content analysis 3. Analyze content signals for style recommendations 4. Detect source language @@ -483,6 +484,7 @@ options: - Add slide-specific content - If `Layout:` specified, include layout guidance from `references/layouts.md` 3. Save to `prompts/` directory + - **Backup rule**: If prompt file exists, rename to `prompts/NN-slide-{slug}-backup-YYYYMMDD-HHMMSS.md` **After generation**: - If `--prompts-only`, stop here and output prompt summary @@ -539,7 +541,9 @@ options: **Standard flow**: 1. Select available image generation skill 2. Generate session ID: `slides-{topic-slug}-{timestamp}` -3. Generate each slide sequentially with same session ID +3. For each slide: + - **Backup rule**: If image file exists, rename to `NN-slide-{slug}-backup-YYYYMMDD-HHMMSS.png` + - Generate image sequentially with same session ID 4. Report progress: "Generated X/N" (in user's language) 5. Auto-retry once on failure before reporting error