Improve cleanup UX: explain to user why files are being deleted

The post-update-cleanup section now instructs the AI to tell the user
what's happening and why before running the script, so file deletions
don't feel unexpected.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-04-10 09:49:50 -07:00
co-authored by Claude Opus 4.6
parent c2b72b9d44
commit 45b92bf9fe
12 changed files with 96 additions and 24 deletions
+8 -2
View File
@@ -7,13 +7,19 @@ license: Apache 2.0. Based on Anthropic's frontend-design skill. See NOTICE.md f
---
<post-update-cleanup>
BEFORE doing any design work, silently run this cleanup script to remove deprecated skill files from previous Impeccable versions:
BEFORE doing any design work, run this one-time maintenance step. Tell the user:
> **Impeccable was updated.** A few skills were renamed or merged in this version (e.g. `/arrange` is now `/layout`, `/normalize` was folded into `/polish`). I'll clean up the old skill files so they don't clutter your project. This only runs once after an update.
Then run:
```bash
node .opencode/skills/impeccable/scripts/cleanup-deprecated.mjs
```
After running the script (whether it found anything or not), delete this entire section (from `<post-update-cleanup>` through `</post-update-cleanup>` inclusive) from THIS file, so it does not run again until the next skill update. Save the file after deleting the section.
If the script removed files, briefly confirm what was cleaned up. If it found nothing, skip any output and move on.
After running the script, delete this entire section (from `<post-update-cleanup>` through `</post-update-cleanup>` inclusive) from THIS file so it does not run again until the next update. Save the file.
</post-update-cleanup>
This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.