From b179166d28f9a7f66c3bdbb96fa51ae773e2c7c1 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:17 -0600 Subject: [PATCH] feat(baoyu-cover-image): add backup rules for source and prompt files --- skills/baoyu-cover-image/SKILL.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skills/baoyu-cover-image/SKILL.md b/skills/baoyu-cover-image/SKILL.md index 1cb06d9..58d0ee6 100644 --- a/skills/baoyu-cover-image/SKILL.md +++ b/skills/baoyu-cover-image/SKILL.md @@ -209,6 +209,7 @@ Schema: [references/config/preferences-schema.md](references/config/preferences- ### Step 1: Analyze Content 1. **Save source content** (if pasted, save to `source.md` in target directory; if file path, use as-is) + - **Backup rule**: If `source.md` exists, rename to `source-backup-YYYYMMDD-HHMMSS.md` 2. **Content analysis**: Extract topic, core message, tone, keywords; identify visual metaphors; detect content type 3. **Language detection**: Detect source language, note user's input language, compare with EXTEND.md preference 4. **Determine output directory** per File Structure rules. If no `default_output_dir` preference + file path input, include in Step 2 Q4 @@ -226,6 +227,8 @@ Validate all 5 dimensions + aspect ratio. Full confirmation flow: [references/wo ### Step 3: Create Prompt +**Backup rule**: If `prompts/cover.md` exists, rename to `prompts/cover-backup-YYYYMMDD-HHMMSS.md` + Save to `prompts/cover.md`. Full template: [references/workflow/prompt-template.md](references/workflow/prompt-template.md) ### Step 4: Generate Image