$npx -y skills add trabian/fluxwing-skills --skill fluxwing-enhancerEnhance uxscii components from sketch to production fidelity. Use when working with .uxm files marked as "fidelity: sketch" or when user wants to add detail and polish to components.
| 1 | # Fluxwing Enhancer |
| 2 | |
| 3 | Progressively enhance uxscii components from sketch to production quality. |
| 4 | |
| 5 | ## Data Location Rules |
| 6 | |
| 7 | **READ from:** |
| 8 | - `./fluxwing/components/` - User components to enhance |
| 9 | - `{SKILL_ROOT}/../fluxwing-component-creator/templates/state-additions/` - State templates |
| 10 | - `{SKILL_ROOT}/docs/` - Enhancement documentation |
| 11 | |
| 12 | **LOAD for copy-on-update logic:** |
| 13 | - `{SKILL_ROOT}/../shared/docs/copy-versioning.md` - Versioning pattern for fidelity enhancements |
| 14 | |
| 15 | **WRITE to:** |
| 16 | - `./fluxwing/components/` - New versioned components (copy-on-update: {id}-v{N+1}) |
| 17 | - `./fluxwing/screens/` - Updated screen .rendered.md (if applicable) |
| 18 | |
| 19 | **IMPORTANT**: Enhancer creates NEW versions instead of overwriting originals. Each fidelity enhancement creates a new `-v{N}` copy. |
| 20 | |
| 21 | ## Fidelity Levels |
| 22 | |
| 23 | ### sketch (Fast Scaffold Output) |
| 24 | - Basic .uxm with minimal metadata |
| 25 | - May lack .md file or have simple .md |
| 26 | - Single "default" state |
| 27 | - Creation time: ~10 seconds |
| 28 | |
| 29 | **Characteristics:** |
| 30 | - Minimal description |
| 31 | - Generic tags |
| 32 | - No examples |
| 33 | - Basic props only |
| 34 | |
| 35 | ### basic (First Enhancement) |
| 36 | - Enriched metadata (better description, tags) |
| 37 | - Simple .md with clean ASCII |
| 38 | - Default state only |
| 39 | - Enhancement time: ~30 seconds |
| 40 | |
| 41 | **Improvements over sketch:** |
| 42 | - Detailed description |
| 43 | - Specific tags |
| 44 | - Clean ASCII art |
| 45 | - Documented variables |
| 46 | |
| 47 | ### detailed (Second Enhancement) |
| 48 | - Rich metadata with usage examples |
| 49 | - Polished .md with careful ASCII art |
| 50 | - 2-3 interaction states (hover, focus) |
| 51 | - Enhancement time: ~90 seconds |
| 52 | |
| 53 | **Improvements over basic:** |
| 54 | - Usage examples in metadata |
| 55 | - Hover + focus states |
| 56 | - Polished ASCII |
| 57 | - Props.examples array |
| 58 | |
| 59 | ### production (Final Polish) |
| 60 | - Complete metadata with accessibility details |
| 61 | - Publication-quality ASCII |
| 62 | - All relevant states (hover, focus, disabled, active, error) |
| 63 | - Full documentation |
| 64 | - Enhancement time: ~180 seconds |
| 65 | |
| 66 | **Improvements over detailed:** |
| 67 | - All applicable states |
| 68 | - Complete accessibility metadata |
| 69 | - Keyboard shortcuts |
| 70 | - Publication-quality ASCII |
| 71 | - Edge case documentation |
| 72 | |
| 73 | ## Your Task |
| 74 | |
| 75 | Help users enhance components from current fidelity to target fidelity. |
| 76 | |
| 77 | ### Workflow |
| 78 | |
| 79 | #### Step 1: Inventory Components |
| 80 | |
| 81 | Check what components exist and their current fidelity: |
| 82 | |
| 83 | ```bash |
| 84 | ls ./fluxwing/components/*.uxm |
| 85 | ``` |
| 86 | |
| 87 | For each component, read fidelity level: |
| 88 | ```bash |
| 89 | python3 -c "import json; print(json.load(open('./fluxwing/components/button.uxm'))['metadata'].get('fidelity', 'detailed'))" |
| 90 | ``` |
| 91 | |
| 92 | List components by fidelity: |
| 93 | - sketch: [component-ids] |
| 94 | - basic: [component-ids] |
| 95 | - detailed: [component-ids] |
| 96 | - production: [component-ids] |
| 97 | |
| 98 | #### Step 2: Determine Target Fidelity |
| 99 | |
| 100 | Ask user or use defaults: |
| 101 | |
| 102 | **User specifies:** |
| 103 | - "Enhance to basic" |
| 104 | - "Upgrade to detailed" |
| 105 | - "Make production-ready" |
| 106 | |
| 107 | **Auto-select (if not specified):** |
| 108 | - sketch → detailed (most common, best balance) |
| 109 | - basic → detailed |
| 110 | - detailed → production |
| 111 | |
| 112 | #### Step 3: Spawn Enhancement Agents |
| 113 | |
| 114 | **If enhancing multiple components (3+):** |
| 115 | - Spawn agents in parallel (one per component) |
| 116 | - Each agent enhances independently |
| 117 | - Wait for all to complete |
| 118 | |
| 119 | **If enhancing single component:** |
| 120 | - Spawn single agent |
| 121 | - Focus on quality |
| 122 | |
| 123 | **Enhancement Agent Prompt:** |
| 124 | |
| 125 | ```typescript |
| 126 | Task({ |
| 127 | subagent_type: "general-purpose", |
| 128 | model: "sonnet", // Quality matters for enhancement |
| 129 | description: "Enhance ${componentId} to ${targetFidelity} (copy)", |
| 130 | prompt: `Enhance uxscii component from ${currentFidelity} to ${targetFidelity} using copy-on-update pattern. |
| 131 | |
| 132 | Component: ${componentId} |
| 133 | Current fidelity: ${currentFidelity} |
| 134 | Target fidelity: ${targetFidelity} |
| 135 | |
| 136 | COPY-ON-UPDATE MODE: |
| 137 | - Read existing component |
| 138 | - Find highest version (check ${componentId}-v2, -v3, etc.) |
| 139 | - Create NEW versioned copy: ${componentId}-v{N+1} |
| 140 | - DO NOT overwrite original |
| 141 | - Preserve metadata.created, update metadata.modified |
| 142 | |
| 143 | Your task: |
| 144 | 1. Read ./fluxwing/components/${componentId}.uxm |
| 145 | 2. Read ./fluxwing/components/${componentId}.md (if exists) |
| 146 | 3. Load copy-versioning docs: {SKILL_ROOT}/../shared/docs/copy-versioning.md |
| 147 | 4. Find highest version of ${componentId} (original is v1) |
| 148 | 5. Calculate next version number: v{N+1} |
| 149 | 6. Load enhancement patterns: {SKILL_ROOT}/docs/enhancement-patterns.md |
| 150 | 7. Load state templates: {SKILL_ROOT}/../fluxwing-component-creator/templates/state-additions/ |
| 151 | |
| 152 | 8. Create versioned copy with enhancements: |
| 153 | |
| 154 | **Update version metadata:** |
| 155 | - id: "${componentId}-v{N+1}" (add -v{N+1} suffix) |
| 156 | - version: Increment minor (e.g., 1.0.0 → 1.1.0) |
| 157 | - metadata.created: PRESERVE from source |
| 158 | - metadata.modified: SET to current timestamp |
| 159 | - metadata.fidelity: UPDATE to "${targetFidelity}" |
| 160 | |
| 161 | ${targetFidelity === 'basic' ? ` |
| 162 | For "basic" fidelity: |
| 163 | - Improve metadata.description (1 |