From 7386b3033f22c8dde373efe80996e500452571c7 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 13 Apr 2026 17:07:23 -0700 Subject: [PATCH] Force variant diversity and mandatory reference loading in live mode Two failure modes observed: 1. Claude generates N near-identical variants (small shade/size tweaks) instead of meaningfully different design directions 2. When a sub-command like /bolder is chosen in the picker, Claude skips loading reference/bolder.md and generates generic variants Fixes: - "Load reference file" is now a MANDATORY Step 2a, separate and non-negotiable, called out as a critical failure to skip - Added Step 2b "Plan 3+ distinctly different directions" with 7 structural axes variants must differ on (hierarchy, layout topology, typography system, color strategy, density, tone, decomposition) - Added action-specific diversity rules (bolder = different dimensions, animate = different motion vocabulary, colorize = different hues, etc.) - Freeform prompt guidance: honor the prompt direction but explore meaningfully different interpretations, not three near-copies Co-Authored-By: Claude Opus 4.6 (1M context) --- .agents/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .claude/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .cursor/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .gemini/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .github/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .kiro/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .opencode/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .pi/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .rovodev/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .trae-cn/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- .trae/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- source/skills/impeccable/reference/live.md | 41 ++++++++++++++++--- 12 files changed, 420 insertions(+), 72 deletions(-) diff --git a/.agents/skills/impeccable/reference/live.md b/.agents/skills/impeccable/reference/live.md index 3f4ad029f..6d69bdd13 100644 --- a/.agents/skills/impeccable/reference/live.md +++ b/.agents/skills/impeccable/reference/live.md @@ -105,17 +105,46 @@ The command outputs JSON with the file path and the insert line: If `wrap` fails, fall back to manual grep + edit. -### Step 2: Generate all variants and write them in a SINGLE edit +### Step 2a: MANDATORY — Load the action's reference file -1. **Load the design command's reference file.** If `event.action` is "bolder", load `reference/bolder.md`. If "impeccable" (the default), use the main design principles from this skill without loading a sub-command reference. +**This step is non-negotiable.** Before generating anything, you MUST load the reference file for `event.action`: -2. **Generate ALL variants at once.** For each variant, create a complete HTML replacement of the original element. Consider the element's context (computed styles, parent structure, CSS custom properties from `event.element`). +- `event.action` is "impeccable" (default, no sub-command chosen): use the main design principles from `SKILL.md` (already loaded). Do NOT load a sub-command reference. +- `event.action` is any other value (e.g. "bolder", "quieter", "distill", "polish", "typeset", "colorize", "layout", "adapt", "animate", "delight", "overdrive"): use Read to load `reference/.md` right now. Do not proceed until it's in context. -3. **Diversify across variants.** Each variant should take a distinctly different approach. For "bolder", one might focus on type weight, another on color saturation, another on spatial scale, another on structural change. Do NOT generate N variations on the same idea. +Skipping this step is a critical failure. The sub-commands exist precisely because the generic "impeccable" prompt produces generic variants. Each action encodes a specific design discipline — ignoring the reference file means ignoring what the user asked for. -4. **If a freeform prompt was provided** (`event.freeformPrompt`), use it as additional guidance for all variants. +### Step 2b: Plan 3+ distinctly different directions BEFORE writing any code -5. **Write CSS + HTML together in a SINGLE edit** at the insert line reported by `wrap`. Colocate any scoped CSS inside the variant wrapper as a `