From 89159bf86ead65cb04bfeedc904b64700dda1a72 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:00:37 -0600 Subject: [PATCH] feat(baoyu-article-illustrator): add backup rules for source, prompt, and image files --- skills/baoyu-article-illustrator/SKILL.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skills/baoyu-article-illustrator/SKILL.md b/skills/baoyu-article-illustrator/SKILL.md index fd74bbe..47fa9ad 100644 --- a/skills/baoyu-article-illustrator/SKILL.md +++ b/skills/baoyu-article-illustrator/SKILL.md @@ -78,6 +78,8 @@ Progress: | File path | Ask user (1.2) | → 1.2 | | Pasted content | `illustrations/{topic-slug}/` | → 1.4 | +**Backup rule for pasted content**: If `source.md` exists in target directory, rename to `source-backup-YYYYMMDD-HHMMSS.md` before saving. + **1.2 Determine Output Directory** (file path input only) Check `default_output_dir` in preferences: @@ -236,6 +238,7 @@ image_count: 4 **5.1 Create Prompts** Follow [references/prompt-construction.md](references/prompt-construction.md). Save to `prompts/illustration-{slug}.md`. +- **Backup rule**: If prompt file exists, rename to `prompts/illustration-{slug}-backup-YYYYMMDD-HHMMSS.md` **5.2 Select Generation Skill** @@ -247,7 +250,9 @@ Add: `Include a subtle watermark "[content]" at [position].` **5.4 Generate** -1. Generate sequentially +1. For each illustration: + - **Backup rule**: If image file exists, rename to `NN-{type}-{slug}-backup-YYYYMMDD-HHMMSS.png` + - Generate image 2. After each: "Generated X/N" 3. On failure: retry once, then log and continue