reimagine-it-variations Skill
>- 从一个 HTML 源文件生成多个不同设计方向,并生成对比表并排展示每个方向。当用户说 /reimagine-it variations、“给我几个方案”、“给我三种版本”、“哪个方向最好”,或想在选定前比较设计方向时使用。CLI:npx reimagine-it variations -i page.html -n 4 -o review/。reimagine-it 内容驱动设计套件的一部分。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
/reimagine-it variations
Parent: ../SKILL.md — the full Content-Derived Design engine. This sub-skill handles only multi-direction exploration.
Generates 2–8 distinct directions from one source plus an index.html
contrast sheet that lays them out side by side with per-direction quality,
fidelity, and voice. One seed reproduces the whole set.
Usage
npx reimagine-it variations -i page.html -n 4 -o review/
npx reimagine-it variations -i page.html -n 4 --seed 42 -o review/ # reproducible
npx reimagine-it variations -i page.html -n 4 --ref house.lock.json # on-brand
Output per run:
| File | What it is |
|------|-----------|
| variation-1-.html … | One standalone page per direction |
| index.html | Contrast sheet: all directions side by side |
| variations.json | Ranked report: token, seed, voice, fit, quality, fidelity |
Procedure
- Run with
-n 3unless the user asked for a different count. - Read
variations.jsonback to the user: rank, token, quality, fidelity. - Name the structural difference between the top two — not just the colors.
- Print the seed and tell the user how to reproduce the set.
- Once a direction is chosen, generate it standalone with
npx reimagine-it -i page.html -t --seed .
Must not
- Present variations as options when fidelity is below 80% for any of them
- Describe two variations as different if they share a silhouette
- Lose the seed — the set is only reviewable if it is reproducible
- Skip the contrast sheet; side-by-side comparison is the point
Part of reimagine-it — MIT.