vc-extras 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -71
- package/agent-install.mjs +159 -0
- package/agents/tester.md +23 -23
- package/install-extras.mjs +41 -109
- package/install-menu.mjs +22 -43
- package/install-skills.mjs +112 -112
- package/package.json +72 -28
- package/plugin-registry.mjs +73 -0
- package/plugins/config-ui/index.ts +159 -159
- package/plugins/config-ui/lib/arguments.mjs +24 -24
- package/plugins/config-ui/lib/documents.mjs +67 -67
- package/plugins/config-ui/lib/frontmatter.mjs +91 -91
- package/plugins/config-ui/lib/open.mjs +16 -16
- package/plugins/config-ui/lib/ownership.mjs +99 -99
- package/plugins/config-ui/lib/page.mjs +11 -11
- package/plugins/config-ui/lib/patch.mjs +35 -35
- package/plugins/config-ui/lib/paths.mjs +14 -14
- package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
- package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
- package/plugins/config-ui/lib/redaction.mjs +8 -8
- package/plugins/config-ui/lib/registry.mjs +282 -282
- package/plugins/config-ui/lib/secrets.mjs +44 -44
- package/plugins/config-ui/lib/server.mjs +250 -250
- package/plugins/config-ui/lib/sources.mjs +96 -96
- package/plugins/config-ui/lib/state.mjs +156 -156
- package/plugins/config-ui/lib/themes.mjs +113 -113
- package/plugins/config-ui/lib/writer.mjs +690 -690
- package/plugins/config-ui/project-local-owner.ts +106 -106
- package/plugins/config-ui/vc-extras.plugin.json +13 -0
- package/plugins/config-ui/web/app.mjs +997 -997
- package/plugins/config-ui/web/index.html +342 -342
- package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
- package/plugins/pi-btw/vc-extras.plugin.json +12 -0
- package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
- package/plugins/pi-fff/vc-extras.plugin.json +12 -0
- package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
- package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
- package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
- package/plugins/vc-ask/claude-hook.mjs +37 -0
- package/plugins/vc-ask/codex-native.mjs +28 -0
- package/plugins/vc-ask/host-channel.mjs +75 -0
- package/plugins/vc-ask/index.ts +57 -0
- package/plugins/vc-ask/native-questions.mjs +33 -0
- package/plugins/vc-ask/package.json +10 -0
- package/plugins/vc-ask/payload.ts +170 -0
- package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
- package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
- package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
- package/plugins/vc-ask/questionnaire/config.ts +180 -0
- package/plugins/vc-ask/questionnaire/events.ts +154 -0
- package/plugins/vc-ask/questionnaire/execute.ts +688 -0
- package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
- package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
- package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
- package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
- package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
- package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
- package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
- package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
- package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
- package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
- package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
- package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
- package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
- package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
- package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
- package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
- package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
- package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
- package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
- package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
- package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
- package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
- package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
- package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
- package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
- package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
- package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
- package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
- package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
- package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
- package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
- package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
- package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
- package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
- package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
- package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
- package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
- package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
- package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
- package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
- package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
- package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
- package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
- package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
- package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
- package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
- package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
- package/plugins/vc-ask/user-input-events.ts +34 -0
- package/plugins/vc-ask/vc-extras.plugin.json +18 -0
- package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
- package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
- package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
- package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
- package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
- package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
- package/plugins/vc-footer/agents/codex/native.mjs +19 -0
- package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
- package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
- package/plugins/vc-footer/agents/pi/index.js +84 -0
- package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
- package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
- package/plugins/vc-footer/core/data.mjs +218 -0
- package/plugins/vc-footer/core/render.mjs +291 -0
- package/plugins/vc-footer/core/types.d.ts +29 -0
- package/plugins/vc-footer/package.json +22 -0
- package/plugins/vc-footer/vc-extras.plugin.json +32 -0
- package/skills/animate/LICENSE +21 -21
- package/skills/animate/RECIPES.md +324 -324
- package/skills/animate/SKILL.md +208 -208
- package/skills/animate/UPSTREAM.md +19 -19
- package/skills/animation-performance/LICENSE +21 -21
- package/skills/animation-performance/SKILL.md +223 -223
- package/skills/animation-performance/UPSTREAM.md +19 -19
- package/skills/answer-me-with-html/SKILL.md +174 -174
- package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
- package/skills/apple-design/LICENSE +21 -21
- package/skills/apple-design/SKILL.md +291 -291
- package/skills/apple-design/UPSTREAM.md +19 -19
- package/skills/bad-smell/SKILL.md +44 -44
- package/skills/commit/SKILL.md +90 -90
- package/skills/emil-design-eng/LICENSE +21 -21
- package/skills/emil-design-eng/SKILL.md +677 -677
- package/skills/emil-design-eng/UPSTREAM.md +19 -19
- package/skills/find-the-truth/SKILL.md +38 -38
- package/skills/find-the-truth/references/trace-method.md +48 -48
- package/skills/find-the-truth/references/truth-method.md +39 -39
- package/skills/gestures/LICENSE +21 -21
- package/skills/gestures/SKILL.md +107 -107
- package/skills/gestures/UPSTREAM.md +19 -19
- package/skills/humanizer-zh/LICENSE +21 -21
- package/skills/humanizer-zh/SKILL.md +409 -409
- package/skills/humanizer-zh/UPSTREAM.md +7 -7
- package/skills/impeccable/LICENSE +191 -191
- package/skills/impeccable/NOTICE.md +11 -11
- package/skills/impeccable/SKILL.md +89 -89
- package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
- package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
- package/skills/impeccable/reference/adapt.md +318 -318
- package/skills/impeccable/reference/adapt.native.md +58 -58
- package/skills/impeccable/reference/android.md +46 -46
- package/skills/impeccable/reference/animate.md +89 -89
- package/skills/impeccable/reference/audit.md +139 -139
- package/skills/impeccable/reference/audit.native.md +139 -139
- package/skills/impeccable/reference/bolder.md +33 -33
- package/skills/impeccable/reference/clarify.md +94 -94
- package/skills/impeccable/reference/colorize.md +86 -86
- package/skills/impeccable/reference/component-review.md +63 -63
- package/skills/impeccable/reference/craft-floor.md +44 -44
- package/skills/impeccable/reference/craft.md +5 -5
- package/skills/impeccable/reference/critique.md +819 -819
- package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
- package/skills/impeccable/reference/degraded/documenter.md +23 -23
- package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
- package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
- package/skills/impeccable/reference/delight.md +70 -70
- package/skills/impeccable/reference/distill.md +111 -111
- package/skills/impeccable/reference/doctor.md +54 -54
- package/skills/impeccable/reference/document.md +416 -416
- package/skills/impeccable/reference/extract.md +69 -69
- package/skills/impeccable/reference/generate.md +101 -101
- package/skills/impeccable/reference/harden.md +362 -362
- package/skills/impeccable/reference/hooks.md +114 -114
- package/skills/impeccable/reference/init.md +131 -131
- package/skills/impeccable/reference/ios.md +51 -51
- package/skills/impeccable/reference/layout.md +84 -84
- package/skills/impeccable/reference/live-setup.md +104 -104
- package/skills/impeccable/reference/live.md +327 -327
- package/skills/impeccable/reference/mode-operate.md +21 -21
- package/skills/impeccable/reference/mode-persuade.md +19 -19
- package/skills/impeccable/reference/mode-read.md +21 -21
- package/skills/impeccable/reference/new-work.md +152 -152
- package/skills/impeccable/reference/onboard.md +234 -234
- package/skills/impeccable/reference/operate.md +61 -61
- package/skills/impeccable/reference/optimize.md +257 -257
- package/skills/impeccable/reference/overdrive.md +127 -127
- package/skills/impeccable/reference/polish.md +105 -105
- package/skills/impeccable/reference/quieter.md +99 -99
- package/skills/impeccable/reference/region-map.md +26 -26
- package/skills/impeccable/reference/routing.md +24 -24
- package/skills/impeccable/reference/shape.md +59 -59
- package/skills/impeccable/reference/typeset.md +90 -90
- package/skills/impeccable/reference/visualize.md +47 -47
- package/skills/impeccable/scripts/VERSION +1 -1
- package/skills/impeccable/scripts/command-metadata.json +98 -98
- package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
- package/skills/impeccable/scripts/engine-checksums.txt +9 -9
- package/skills/impeccable/scripts/impeccable +249 -249
- package/skills/impeccable/scripts/impeccable.cmd +278 -278
- package/skills/impeccable/scripts/live-browser-dom.js +320 -320
- package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
- package/skills/impeccable/scripts/live-browser-session.js +183 -183
- package/skills/impeccable/scripts/live-browser.js +13862 -13862
- package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
- package/skills/improve-animations/AUDIT.md +115 -115
- package/skills/improve-animations/LICENSE +21 -21
- package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
- package/skills/improve-animations/SKILL.md +110 -110
- package/skills/improve-animations/UPSTREAM.md +19 -19
- package/skills/pick-ui-library/LICENSE +21 -21
- package/skills/pick-ui-library/SKILL.md +85 -85
- package/skills/pick-ui-library/UPSTREAM.md +19 -19
- package/skills/review-animations/LICENSE +21 -21
- package/skills/review-animations/SKILL.md +120 -120
- package/skills/review-animations/STANDARDS.md +187 -187
- package/skills/review-animations/UPSTREAM.md +19 -19
- package/skills/test/SKILL.md +29 -29
- package/skills/test/references/test-method.md +60 -60
- package/skills/write-doc/SKILL.md +115 -115
- package/skills/write-doc/examples/result-report.md +53 -53
- package/skills/write-doc/examples/task-summary.md +45 -45
- package/skills/write-doc/references/terminology.md +147 -147
- package/specs/ask-host-protocol-v1.md +58 -0
- package/specs/design-demo.md +1102 -1102
- package/specs/frontend-immersive.md +28 -28
- package/specs/plugin-install-v2.md +123 -0
- package/specs/plugin-install.md +38 -0
- package/specs/web-modes/explore.md +31 -31
- package/specs/web-modes/risk.md +15 -15
- package/specs/web-modes/verify.md +16 -16
- package/vc-extras.mjs +46 -62
- package/plugins/essrj/context.ts +0 -47
- package/plugins/essrj/data.ts +0 -190
- package/plugins/essrj/index.ts +0 -139
- package/plugins/essrj/package.json +0 -12
- package/plugins/essrj/project-local-owner.ts +0 -106
- package/plugins/essrj/render.ts +0 -217
- package/plugins/essrj/types.ts +0 -40
- package/plugins.json +0 -38
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
Start your response with:
|
|
2
|
-
|
|
3
|
-
```
|
|
4
|
-
──────────── ⚡ OVERDRIVE ─────────────
|
|
5
|
-
》》》 Entering overdrive mode...
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
Push an interface past conventional limits. This isn't just about visual effects. It's about using the full power of the browser to make any part of an interface feel extraordinary: a table that handles a million rows, a dialog that morphs from its trigger, a form that validates in real-time with streaming feedback, a page transition that feels cinematic.
|
|
9
|
-
|
|
10
|
-
Context decides what "extraordinary" means. A particle system on a creative portfolio is impressive. The same particle system on a settings page is embarrassing. But a settings page with instant optimistic saves and animated state transitions? That's extraordinary too. Understand the project's personality and goals before deciding what's appropriate.
|
|
11
|
-
|
|
12
|
-
### Propose Before Building
|
|
13
|
-
|
|
14
|
-
This command has the highest potential to misfire. Do NOT jump straight into implementation. You MUST:
|
|
15
|
-
|
|
16
|
-
1. **Think through 2-3 different directions**: consider different techniques, levels of ambition, and aesthetic approaches. For each direction, briefly describe what the result would look and feel like.
|
|
17
|
-
2. **Get the user's pick before writing any code.** Ask the user directly to clarify what you cannot infer. Carry each direction's description and its trade-offs (browser support, performance cost, complexity) inside the option itself, so the user is choosing between things they can read. A structured question blocks the message it rides in until the user answers, so directions written alongside the question stay invisible while the user is being asked to choose between them.
|
|
18
|
-
3. Only proceed with the direction the user confirms.
|
|
19
|
-
|
|
20
|
-
Skipping this step risks building something embarrassing that needs to be thrown away.
|
|
21
|
-
|
|
22
|
-
### Verify in the Browser
|
|
23
|
-
|
|
24
|
-
Ambitious effects rarely work on the first try, so verify them in the browser rather than from code: an effect that technically runs can still stutter, ease wrong, or land on the wrong frame. Aim the checks at timing, easing, and smoothness, batch the fixes between looks, and keep refining until the effect is extraordinary.
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Assess What "Extraordinary" Means Here
|
|
29
|
-
|
|
30
|
-
The right kind of technical ambition depends entirely on what you're working with. Before choosing a technique, ask: **what would make a user of THIS specific interface say "wow, that's nice"?**
|
|
31
|
-
|
|
32
|
-
### For visual/marketing surfaces
|
|
33
|
-
Pages, hero sections, landing pages, portfolios: the "wow" is often sensory: a scroll-driven reveal, a shader background, a cinematic page transition, generative art that responds to the cursor.
|
|
34
|
-
|
|
35
|
-
### For functional UI
|
|
36
|
-
Tables, forms, dialogs, navigation: the "wow" is in how it FEELS: a dialog that morphs from the button that triggered it via View Transitions, a data table that renders 100k rows at 60fps via virtual scrolling, a form with streaming validation that feels instant, drag-and-drop with spring physics.
|
|
37
|
-
|
|
38
|
-
### For performance-critical UI
|
|
39
|
-
The "wow" is invisible but felt: a search that filters 50k items without a flicker, a complex form that never blocks the main thread, an image editor that processes in near-real-time. The interface just never hesitates.
|
|
40
|
-
|
|
41
|
-
### For data-heavy interfaces
|
|
42
|
-
Charts and dashboards: the "wow" is in fluidity: GPU-accelerated rendering via Canvas/WebGL for massive datasets, animated transitions between data states, force-directed graph layouts that settle naturally.
|
|
43
|
-
|
|
44
|
-
**The common thread**: something about the implementation goes beyond what users expect from a web interface. The technique serves the experience, not the other way around.
|
|
45
|
-
|
|
46
|
-
## The Toolkit
|
|
47
|
-
|
|
48
|
-
Organized by what you're trying to achieve, not by technology name.
|
|
49
|
-
|
|
50
|
-
### Make transitions feel cinematic
|
|
51
|
-
- **View Transitions API** (same-document: all browsers; cross-document: no Firefox): shared element morphing between states. A list item expanding into a detail page. A button morphing into a dialog. This is the closest thing to native FLIP animations.
|
|
52
|
-
- **`@starting-style`** (all browsers): animate elements from `display: none` to visible with CSS only, including entry keyframes
|
|
53
|
-
- **Spring physics**: natural motion with mass, tension, and damping instead of cubic-bezier. Libraries: motion (formerly Framer Motion), GSAP, or roll your own spring solver.
|
|
54
|
-
|
|
55
|
-
### Tie animation to scroll position
|
|
56
|
-
- **Scroll-driven animations** (`animation-timeline: scroll()`): CSS-only, no JS. Parallax, progress bars, reveal sequences all driven by scroll position. (Chrome/Edge/Safari; Firefox: flag only; always provide a static fallback)
|
|
57
|
-
|
|
58
|
-
### Render beyond CSS
|
|
59
|
-
- **WebGL** (all browsers): shader effects, post-processing, particle systems. Libraries: Three.js, OGL (lightweight), regl. Use for effects CSS can't express.
|
|
60
|
-
- **WebGPU** (Chrome/Edge; Safari 26+; Firefox on Windows/macOS; flag only on Firefox Linux/Android): next-gen GPU compute, more powerful than WebGL. Always fall back to WebGL2.
|
|
61
|
-
- **Canvas 2D / OffscreenCanvas**: custom rendering, pixel manipulation, or moving heavy rendering off the main thread entirely via Web Workers + OffscreenCanvas.
|
|
62
|
-
- **SVG filter chains**: displacement maps, turbulence, morphology for organic distortion effects. CSS-animatable.
|
|
63
|
-
|
|
64
|
-
### Make data feel alive
|
|
65
|
-
- **Virtual scrolling**: render only visible rows for tables/lists with tens of thousands of items. No library required for simple cases; TanStack Virtual for complex ones.
|
|
66
|
-
- **GPU-accelerated charts**: Canvas or WebGL-rendered data visualization for datasets too large for SVG/DOM. Libraries: deck.gl, regl-based custom renderers.
|
|
67
|
-
- **Animated data transitions**: morph between chart states rather than replacing. D3's `transition()` or View Transitions for DOM-based charts.
|
|
68
|
-
|
|
69
|
-
### Animate complex properties
|
|
70
|
-
- **`@property`** (all browsers): register custom CSS properties with types, enabling animation of gradients, colors, and complex values that CSS can't normally interpolate.
|
|
71
|
-
- **Web Animations API** (all browsers): JavaScript-driven animations with the performance of CSS. Composable, cancellable, reversible. The foundation for complex choreography.
|
|
72
|
-
|
|
73
|
-
### Push performance boundaries
|
|
74
|
-
- **Web Workers**: move computation off the main thread. Heavy data processing, image manipulation, search indexing: anything that would cause jank.
|
|
75
|
-
- **OffscreenCanvas**: render in a Worker thread. The main thread stays free while complex visuals render in the background.
|
|
76
|
-
- **WASM**: near-native performance for computation-heavy features. Image processing, physics simulations, codecs.
|
|
77
|
-
|
|
78
|
-
### Interact with the device
|
|
79
|
-
- **Web Audio API**: spatial audio, audio-reactive visualizations, sonic feedback. Requires user gesture to start.
|
|
80
|
-
- **Device APIs**: orientation, ambient light, geolocation. Use sparingly and always with user permission.
|
|
81
|
-
|
|
82
|
-
**NOTE**: This command is about enhancing how an interface FEELS, not changing what a product DOES. Adding real-time collaboration, offline support, or new backend capabilities are product decisions, not UI enhancements. Focus on making existing features feel extraordinary.
|
|
83
|
-
|
|
84
|
-
## Implement with Discipline
|
|
85
|
-
|
|
86
|
-
### Progressive enhancement is non-negotiable
|
|
87
|
-
|
|
88
|
-
Every technique must degrade gracefully. The experience without the enhancement must still be good.
|
|
89
|
-
|
|
90
|
-
```css
|
|
91
|
-
@supports (animation-timeline: scroll()) {
|
|
92
|
-
.hero { animation-timeline: scroll(); }
|
|
93
|
-
}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
```javascript
|
|
97
|
-
if ('gpu' in navigator) { /* WebGPU */ }
|
|
98
|
-
else if (canvas.getContext('webgl2')) { /* WebGL2 fallback */ }
|
|
99
|
-
/* CSS-only fallback must still look good */
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Performance rules
|
|
103
|
-
|
|
104
|
-
- Target 60fps. If dropping below 50, simplify.
|
|
105
|
-
- Lazy-initialize heavy resources (WebGL contexts, WASM modules) only when near viewport.
|
|
106
|
-
- Pause off-screen rendering. Kill what you can't see.
|
|
107
|
-
- Test on real mid-range devices, not just your development machine.
|
|
108
|
-
|
|
109
|
-
### Polish is the difference
|
|
110
|
-
|
|
111
|
-
The gap between "cool" and "extraordinary" is in the last 20% of refinement: the easing curve on a spring animation, the timing offset in a staggered reveal, the subtle secondary motion that makes a transition feel physical. Don't ship the first version that works; ship the version that feels inevitable.
|
|
112
|
-
|
|
113
|
-
**NEVER**:
|
|
114
|
-
- Ship effects that cause jank on mid-range devices
|
|
115
|
-
- Use bleeding-edge APIs without a functional fallback
|
|
116
|
-
- Add sound without explicit user opt-in
|
|
117
|
-
- Use technical ambition to mask weak design fundamentals; fix those first with other commands
|
|
118
|
-
- Layer multiple competing extraordinary moments. Focus creates impact, excess creates noise
|
|
119
|
-
|
|
120
|
-
## Verify the Result
|
|
121
|
-
|
|
122
|
-
- **The wow test**: Show it to someone who hasn't seen it. Do they react?
|
|
123
|
-
- **The removal test**: Take it away. Does the experience feel diminished, or does nobody notice?
|
|
124
|
-
- **The device test**: Run it on a phone, a tablet, a Chromebook. Still smooth?
|
|
125
|
-
- **The context test**: Does this make sense for THIS brand and audience?
|
|
126
|
-
|
|
127
|
-
"Technically extraordinary" isn't about using the newest API. It's about making an interface do something users didn't think a website could do.
|
|
1
|
+
Start your response with:
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
──────────── ⚡ OVERDRIVE ─────────────
|
|
5
|
+
》》》 Entering overdrive mode...
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Push an interface past conventional limits. This isn't just about visual effects. It's about using the full power of the browser to make any part of an interface feel extraordinary: a table that handles a million rows, a dialog that morphs from its trigger, a form that validates in real-time with streaming feedback, a page transition that feels cinematic.
|
|
9
|
+
|
|
10
|
+
Context decides what "extraordinary" means. A particle system on a creative portfolio is impressive. The same particle system on a settings page is embarrassing. But a settings page with instant optimistic saves and animated state transitions? That's extraordinary too. Understand the project's personality and goals before deciding what's appropriate.
|
|
11
|
+
|
|
12
|
+
### Propose Before Building
|
|
13
|
+
|
|
14
|
+
This command has the highest potential to misfire. Do NOT jump straight into implementation. You MUST:
|
|
15
|
+
|
|
16
|
+
1. **Think through 2-3 different directions**: consider different techniques, levels of ambition, and aesthetic approaches. For each direction, briefly describe what the result would look and feel like.
|
|
17
|
+
2. **Get the user's pick before writing any code.** Ask the user directly to clarify what you cannot infer. Carry each direction's description and its trade-offs (browser support, performance cost, complexity) inside the option itself, so the user is choosing between things they can read. A structured question blocks the message it rides in until the user answers, so directions written alongside the question stay invisible while the user is being asked to choose between them.
|
|
18
|
+
3. Only proceed with the direction the user confirms.
|
|
19
|
+
|
|
20
|
+
Skipping this step risks building something embarrassing that needs to be thrown away.
|
|
21
|
+
|
|
22
|
+
### Verify in the Browser
|
|
23
|
+
|
|
24
|
+
Ambitious effects rarely work on the first try, so verify them in the browser rather than from code: an effect that technically runs can still stutter, ease wrong, or land on the wrong frame. Aim the checks at timing, easing, and smoothness, batch the fixes between looks, and keep refining until the effect is extraordinary.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Assess What "Extraordinary" Means Here
|
|
29
|
+
|
|
30
|
+
The right kind of technical ambition depends entirely on what you're working with. Before choosing a technique, ask: **what would make a user of THIS specific interface say "wow, that's nice"?**
|
|
31
|
+
|
|
32
|
+
### For visual/marketing surfaces
|
|
33
|
+
Pages, hero sections, landing pages, portfolios: the "wow" is often sensory: a scroll-driven reveal, a shader background, a cinematic page transition, generative art that responds to the cursor.
|
|
34
|
+
|
|
35
|
+
### For functional UI
|
|
36
|
+
Tables, forms, dialogs, navigation: the "wow" is in how it FEELS: a dialog that morphs from the button that triggered it via View Transitions, a data table that renders 100k rows at 60fps via virtual scrolling, a form with streaming validation that feels instant, drag-and-drop with spring physics.
|
|
37
|
+
|
|
38
|
+
### For performance-critical UI
|
|
39
|
+
The "wow" is invisible but felt: a search that filters 50k items without a flicker, a complex form that never blocks the main thread, an image editor that processes in near-real-time. The interface just never hesitates.
|
|
40
|
+
|
|
41
|
+
### For data-heavy interfaces
|
|
42
|
+
Charts and dashboards: the "wow" is in fluidity: GPU-accelerated rendering via Canvas/WebGL for massive datasets, animated transitions between data states, force-directed graph layouts that settle naturally.
|
|
43
|
+
|
|
44
|
+
**The common thread**: something about the implementation goes beyond what users expect from a web interface. The technique serves the experience, not the other way around.
|
|
45
|
+
|
|
46
|
+
## The Toolkit
|
|
47
|
+
|
|
48
|
+
Organized by what you're trying to achieve, not by technology name.
|
|
49
|
+
|
|
50
|
+
### Make transitions feel cinematic
|
|
51
|
+
- **View Transitions API** (same-document: all browsers; cross-document: no Firefox): shared element morphing between states. A list item expanding into a detail page. A button morphing into a dialog. This is the closest thing to native FLIP animations.
|
|
52
|
+
- **`@starting-style`** (all browsers): animate elements from `display: none` to visible with CSS only, including entry keyframes
|
|
53
|
+
- **Spring physics**: natural motion with mass, tension, and damping instead of cubic-bezier. Libraries: motion (formerly Framer Motion), GSAP, or roll your own spring solver.
|
|
54
|
+
|
|
55
|
+
### Tie animation to scroll position
|
|
56
|
+
- **Scroll-driven animations** (`animation-timeline: scroll()`): CSS-only, no JS. Parallax, progress bars, reveal sequences all driven by scroll position. (Chrome/Edge/Safari; Firefox: flag only; always provide a static fallback)
|
|
57
|
+
|
|
58
|
+
### Render beyond CSS
|
|
59
|
+
- **WebGL** (all browsers): shader effects, post-processing, particle systems. Libraries: Three.js, OGL (lightweight), regl. Use for effects CSS can't express.
|
|
60
|
+
- **WebGPU** (Chrome/Edge; Safari 26+; Firefox on Windows/macOS; flag only on Firefox Linux/Android): next-gen GPU compute, more powerful than WebGL. Always fall back to WebGL2.
|
|
61
|
+
- **Canvas 2D / OffscreenCanvas**: custom rendering, pixel manipulation, or moving heavy rendering off the main thread entirely via Web Workers + OffscreenCanvas.
|
|
62
|
+
- **SVG filter chains**: displacement maps, turbulence, morphology for organic distortion effects. CSS-animatable.
|
|
63
|
+
|
|
64
|
+
### Make data feel alive
|
|
65
|
+
- **Virtual scrolling**: render only visible rows for tables/lists with tens of thousands of items. No library required for simple cases; TanStack Virtual for complex ones.
|
|
66
|
+
- **GPU-accelerated charts**: Canvas or WebGL-rendered data visualization for datasets too large for SVG/DOM. Libraries: deck.gl, regl-based custom renderers.
|
|
67
|
+
- **Animated data transitions**: morph between chart states rather than replacing. D3's `transition()` or View Transitions for DOM-based charts.
|
|
68
|
+
|
|
69
|
+
### Animate complex properties
|
|
70
|
+
- **`@property`** (all browsers): register custom CSS properties with types, enabling animation of gradients, colors, and complex values that CSS can't normally interpolate.
|
|
71
|
+
- **Web Animations API** (all browsers): JavaScript-driven animations with the performance of CSS. Composable, cancellable, reversible. The foundation for complex choreography.
|
|
72
|
+
|
|
73
|
+
### Push performance boundaries
|
|
74
|
+
- **Web Workers**: move computation off the main thread. Heavy data processing, image manipulation, search indexing: anything that would cause jank.
|
|
75
|
+
- **OffscreenCanvas**: render in a Worker thread. The main thread stays free while complex visuals render in the background.
|
|
76
|
+
- **WASM**: near-native performance for computation-heavy features. Image processing, physics simulations, codecs.
|
|
77
|
+
|
|
78
|
+
### Interact with the device
|
|
79
|
+
- **Web Audio API**: spatial audio, audio-reactive visualizations, sonic feedback. Requires user gesture to start.
|
|
80
|
+
- **Device APIs**: orientation, ambient light, geolocation. Use sparingly and always with user permission.
|
|
81
|
+
|
|
82
|
+
**NOTE**: This command is about enhancing how an interface FEELS, not changing what a product DOES. Adding real-time collaboration, offline support, or new backend capabilities are product decisions, not UI enhancements. Focus on making existing features feel extraordinary.
|
|
83
|
+
|
|
84
|
+
## Implement with Discipline
|
|
85
|
+
|
|
86
|
+
### Progressive enhancement is non-negotiable
|
|
87
|
+
|
|
88
|
+
Every technique must degrade gracefully. The experience without the enhancement must still be good.
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
@supports (animation-timeline: scroll()) {
|
|
92
|
+
.hero { animation-timeline: scroll(); }
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```javascript
|
|
97
|
+
if ('gpu' in navigator) { /* WebGPU */ }
|
|
98
|
+
else if (canvas.getContext('webgl2')) { /* WebGL2 fallback */ }
|
|
99
|
+
/* CSS-only fallback must still look good */
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Performance rules
|
|
103
|
+
|
|
104
|
+
- Target 60fps. If dropping below 50, simplify.
|
|
105
|
+
- Lazy-initialize heavy resources (WebGL contexts, WASM modules) only when near viewport.
|
|
106
|
+
- Pause off-screen rendering. Kill what you can't see.
|
|
107
|
+
- Test on real mid-range devices, not just your development machine.
|
|
108
|
+
|
|
109
|
+
### Polish is the difference
|
|
110
|
+
|
|
111
|
+
The gap between "cool" and "extraordinary" is in the last 20% of refinement: the easing curve on a spring animation, the timing offset in a staggered reveal, the subtle secondary motion that makes a transition feel physical. Don't ship the first version that works; ship the version that feels inevitable.
|
|
112
|
+
|
|
113
|
+
**NEVER**:
|
|
114
|
+
- Ship effects that cause jank on mid-range devices
|
|
115
|
+
- Use bleeding-edge APIs without a functional fallback
|
|
116
|
+
- Add sound without explicit user opt-in
|
|
117
|
+
- Use technical ambition to mask weak design fundamentals; fix those first with other commands
|
|
118
|
+
- Layer multiple competing extraordinary moments. Focus creates impact, excess creates noise
|
|
119
|
+
|
|
120
|
+
## Verify the Result
|
|
121
|
+
|
|
122
|
+
- **The wow test**: Show it to someone who hasn't seen it. Do they react?
|
|
123
|
+
- **The removal test**: Take it away. Does the experience feel diminished, or does nobody notice?
|
|
124
|
+
- **The device test**: Run it on a phone, a tablet, a Chromebook. Still smooth?
|
|
125
|
+
- **The context test**: Does this make sense for THIS brand and audience?
|
|
126
|
+
|
|
127
|
+
"Technically extraordinary" isn't about using the newest API. It's about making an interface do something users didn't think a website could do.
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
> **Additional context needed**: quality bar and shipping constraints.
|
|
2
|
-
|
|
3
|
-
Polish is refinement, never concealed redesign. Preserve the incumbent visual world, content, behavior, and everything outside scope. If the concept itself is wrong, say so and recommend redesign or `bolder` instead of smuggling in a replacement.
|
|
4
|
-
|
|
5
|
-
A detector result is defect evidence, not proof of quality. Inspect the rendered experience and real interaction path.
|
|
6
|
-
|
|
7
|
-
## 1. Establish the system
|
|
8
|
-
|
|
9
|
-
Read DESIGN.md and representative tokens, shared components, patterns, and neighboring flows. If no formal system exists, use coherent project conventions.
|
|
10
|
-
|
|
11
|
-
Classify each drift before fixing it:
|
|
12
|
-
|
|
13
|
-
- **missing token:** the system needs a reusable value;
|
|
14
|
-
- **one-off implementation:** an existing shared component or pattern should replace it;
|
|
15
|
-
- **conceptual mismatch:** the flow, information architecture, or hierarchy differs from comparable product areas;
|
|
16
|
-
- **local defect:** the implementation is simply incomplete or inconsistent.
|
|
17
|
-
|
|
18
|
-
Fix the cause at the narrowest correct level. Ask when a binding system principle cannot be inferred.
|
|
19
|
-
|
|
20
|
-
## 2. Gather the evidence
|
|
21
|
-
|
|
22
|
-
Use the feature yourself at the surface's representative sizes: desktop and mobile on the web; on a native platform (`ios` / `android` / `adaptive`), the shipped device classes on the simulator, emulator, or hardware, captured per the platform reference's Verifying the build section. Determine:
|
|
23
|
-
|
|
24
|
-
- whether the path is functionally complete;
|
|
25
|
-
- the intended quality bar and time available;
|
|
26
|
-
- known constraints or deliberately unfinished work;
|
|
27
|
-
- the states, content lengths, roles, and input methods users will actually encounter.
|
|
28
|
-
|
|
29
|
-
If a prior critique exists, use it as one input:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
.pi/skills/impeccable/scripts/impeccable critique-storage latest "<resolved target>" --json
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Exit 0 returns JSON with the latest snapshot's `body` and an exact `snapshot_file` identity. Retain `snapshot_file` until the end of the pass. For a local file target, the helper compares the file's exact current content fingerprint with the fingerprint captured by critique. Unchanged staged, unstaged, or untracked content remains current; any byte change, deletion, or replacement with a non-file closes the backlog it identified while preserving its trend history and exits 2. A URL target has no local fingerprint and remains current until explicitly closed. When current, incorporate relevant P0/P1 findings from `body` and name the snapshot read. Exit 2 means none exists or the target changed. Perform an independent pass either way.
|
|
36
|
-
|
|
37
|
-
## 3. Triage
|
|
38
|
-
|
|
39
|
-
Separate functional defects from cosmetic ones and fix in this order:
|
|
40
|
-
|
|
41
|
-
1. broken or blocked tasks, data loss, misleading state, and inaccessible paths;
|
|
42
|
-
2. missing loading, empty, error, success, disabled, and permission states;
|
|
43
|
-
3. flow, hierarchy, responsive, and design-system drift;
|
|
44
|
-
4. visual and motion inconsistencies;
|
|
45
|
-
5. code and asset cleanup.
|
|
46
|
-
|
|
47
|
-
Do not perfect one corner while leaving the rest below the same quality bar.
|
|
48
|
-
|
|
49
|
-
## 4. Polish the whole path
|
|
50
|
-
|
|
51
|
-
### Flow and hierarchy
|
|
52
|
-
|
|
53
|
-
- Match neighboring mental models, terminology, disclosure, routing, save behavior, and optimistic or pessimistic patterns.
|
|
54
|
-
- Make the primary task and current state obvious without flattening every element to equal weight.
|
|
55
|
-
- Ensure arrival, transition, empty, and recovery paths connect instead of behaving as isolated screens.
|
|
56
|
-
|
|
57
|
-
### Layout and type
|
|
58
|
-
|
|
59
|
-
- Align to the project's grid and spacing scale; fix optical as well as mathematical alignment.
|
|
60
|
-
- Group related content tightly and separate distinct groups generously.
|
|
61
|
-
- Keep same-role typography consistent; test measure, wrapping, localization expansion, zoom, and font loading.
|
|
62
|
-
- Verify every supported viewport rather than correcting only the current screenshot.
|
|
63
|
-
|
|
64
|
-
### Color, imagery, and icons
|
|
65
|
-
|
|
66
|
-
- Use semantic tokens and stable color meanings across themes.
|
|
67
|
-
- Verify text, control, and focus contrast in every state.
|
|
68
|
-
- Keep icon families, stroke/weight, sizing, and optical alignment coherent.
|
|
69
|
-
- Prevent image layout shift; use correct aspect ratios, responsive sources, and useful alt text.
|
|
70
|
-
|
|
71
|
-
### Interaction and state
|
|
72
|
-
|
|
73
|
-
- Every control needs appropriate default, hover, focus, active, disabled, loading, error, and success behavior.
|
|
74
|
-
- Preserve visible keyboard focus, logical tab order, labels, and platform-appropriate touch targets.
|
|
75
|
-
- Keep motion coherent, interruptible, and performant. Do not add animation merely to make polish visible.
|
|
76
|
-
- Validate long, missing, localized, offline, slow, and permission-limited content where the product can encounter it.
|
|
77
|
-
|
|
78
|
-
### Content and code
|
|
79
|
-
|
|
80
|
-
- Keep terminology, capitalization, punctuation, and factual copy consistent. Ask before changing claims.
|
|
81
|
-
- Remove debug output, dead code, unused imports, obsolete styles, and polish-created duplication.
|
|
82
|
-
- Replace custom implementations with shared components where the system owns the pattern.
|
|
83
|
-
- Promote genuinely reusable values to tokens; do not create a system abstraction for one local exception.
|
|
84
|
-
|
|
85
|
-
## 5. Verify and finish
|
|
86
|
-
|
|
87
|
-
Walk the complete path again with mouse, keyboard, and touch where applicable. Check:
|
|
88
|
-
|
|
89
|
-
- mobile, intermediate, and wide layouts on the web; phone and tablet size classes in both supported orientations on native;
|
|
90
|
-
- loading, empty, error, success, disabled, long-content, and missing-content states;
|
|
91
|
-
- zoom, contrast, focus, semantics, and screen-reader names;
|
|
92
|
-
- console errors, layout shift, interaction latency, and image loading everywhere; supported browsers on the web; supported OS versions, runtime warnings, and dropped frames on native;
|
|
93
|
-
- agreement with DESIGN.md, neighboring features, and the user's scope.
|
|
94
|
-
|
|
95
|
-
Follow the quality guidance supplied by `impeccable context` and hooks, then run any other relevant QA commands. Context requests a manual scan only when no automatic detector is active; never add another detector pass. Fix real defects and document only narrow intentional exceptions. A clean scan does not replace visual judgment.
|
|
96
|
-
|
|
97
|
-
Finish with a source diff: remove accidental churn, orphaned code, redundant values, and temporary artifacts. Ship only when the feature is functionally complete and consistently finished across the path.
|
|
98
|
-
|
|
99
|
-
When this pass clears every Priority Issue it took from a snapshot, close that snapshot:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
.pi/skills/impeccable/scripts/impeccable critique-storage close "<resolved target>" "<snapshot_file returned by latest>"
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
This closes only the snapshot this pass actually processed; if a newer critique landed meanwhile, its backlog stays live. Do not close when no snapshot was read, when `snapshot_file` was not retained, or when Priority Issues remain.
|
|
1
|
+
> **Additional context needed**: quality bar and shipping constraints.
|
|
2
|
+
|
|
3
|
+
Polish is refinement, never concealed redesign. Preserve the incumbent visual world, content, behavior, and everything outside scope. If the concept itself is wrong, say so and recommend redesign or `bolder` instead of smuggling in a replacement.
|
|
4
|
+
|
|
5
|
+
A detector result is defect evidence, not proof of quality. Inspect the rendered experience and real interaction path.
|
|
6
|
+
|
|
7
|
+
## 1. Establish the system
|
|
8
|
+
|
|
9
|
+
Read DESIGN.md and representative tokens, shared components, patterns, and neighboring flows. If no formal system exists, use coherent project conventions.
|
|
10
|
+
|
|
11
|
+
Classify each drift before fixing it:
|
|
12
|
+
|
|
13
|
+
- **missing token:** the system needs a reusable value;
|
|
14
|
+
- **one-off implementation:** an existing shared component or pattern should replace it;
|
|
15
|
+
- **conceptual mismatch:** the flow, information architecture, or hierarchy differs from comparable product areas;
|
|
16
|
+
- **local defect:** the implementation is simply incomplete or inconsistent.
|
|
17
|
+
|
|
18
|
+
Fix the cause at the narrowest correct level. Ask when a binding system principle cannot be inferred.
|
|
19
|
+
|
|
20
|
+
## 2. Gather the evidence
|
|
21
|
+
|
|
22
|
+
Use the feature yourself at the surface's representative sizes: desktop and mobile on the web; on a native platform (`ios` / `android` / `adaptive`), the shipped device classes on the simulator, emulator, or hardware, captured per the platform reference's Verifying the build section. Determine:
|
|
23
|
+
|
|
24
|
+
- whether the path is functionally complete;
|
|
25
|
+
- the intended quality bar and time available;
|
|
26
|
+
- known constraints or deliberately unfinished work;
|
|
27
|
+
- the states, content lengths, roles, and input methods users will actually encounter.
|
|
28
|
+
|
|
29
|
+
If a prior critique exists, use it as one input:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
.pi/skills/impeccable/scripts/impeccable critique-storage latest "<resolved target>" --json
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Exit 0 returns JSON with the latest snapshot's `body` and an exact `snapshot_file` identity. Retain `snapshot_file` until the end of the pass. For a local file target, the helper compares the file's exact current content fingerprint with the fingerprint captured by critique. Unchanged staged, unstaged, or untracked content remains current; any byte change, deletion, or replacement with a non-file closes the backlog it identified while preserving its trend history and exits 2. A URL target has no local fingerprint and remains current until explicitly closed. When current, incorporate relevant P0/P1 findings from `body` and name the snapshot read. Exit 2 means none exists or the target changed. Perform an independent pass either way.
|
|
36
|
+
|
|
37
|
+
## 3. Triage
|
|
38
|
+
|
|
39
|
+
Separate functional defects from cosmetic ones and fix in this order:
|
|
40
|
+
|
|
41
|
+
1. broken or blocked tasks, data loss, misleading state, and inaccessible paths;
|
|
42
|
+
2. missing loading, empty, error, success, disabled, and permission states;
|
|
43
|
+
3. flow, hierarchy, responsive, and design-system drift;
|
|
44
|
+
4. visual and motion inconsistencies;
|
|
45
|
+
5. code and asset cleanup.
|
|
46
|
+
|
|
47
|
+
Do not perfect one corner while leaving the rest below the same quality bar.
|
|
48
|
+
|
|
49
|
+
## 4. Polish the whole path
|
|
50
|
+
|
|
51
|
+
### Flow and hierarchy
|
|
52
|
+
|
|
53
|
+
- Match neighboring mental models, terminology, disclosure, routing, save behavior, and optimistic or pessimistic patterns.
|
|
54
|
+
- Make the primary task and current state obvious without flattening every element to equal weight.
|
|
55
|
+
- Ensure arrival, transition, empty, and recovery paths connect instead of behaving as isolated screens.
|
|
56
|
+
|
|
57
|
+
### Layout and type
|
|
58
|
+
|
|
59
|
+
- Align to the project's grid and spacing scale; fix optical as well as mathematical alignment.
|
|
60
|
+
- Group related content tightly and separate distinct groups generously.
|
|
61
|
+
- Keep same-role typography consistent; test measure, wrapping, localization expansion, zoom, and font loading.
|
|
62
|
+
- Verify every supported viewport rather than correcting only the current screenshot.
|
|
63
|
+
|
|
64
|
+
### Color, imagery, and icons
|
|
65
|
+
|
|
66
|
+
- Use semantic tokens and stable color meanings across themes.
|
|
67
|
+
- Verify text, control, and focus contrast in every state.
|
|
68
|
+
- Keep icon families, stroke/weight, sizing, and optical alignment coherent.
|
|
69
|
+
- Prevent image layout shift; use correct aspect ratios, responsive sources, and useful alt text.
|
|
70
|
+
|
|
71
|
+
### Interaction and state
|
|
72
|
+
|
|
73
|
+
- Every control needs appropriate default, hover, focus, active, disabled, loading, error, and success behavior.
|
|
74
|
+
- Preserve visible keyboard focus, logical tab order, labels, and platform-appropriate touch targets.
|
|
75
|
+
- Keep motion coherent, interruptible, and performant. Do not add animation merely to make polish visible.
|
|
76
|
+
- Validate long, missing, localized, offline, slow, and permission-limited content where the product can encounter it.
|
|
77
|
+
|
|
78
|
+
### Content and code
|
|
79
|
+
|
|
80
|
+
- Keep terminology, capitalization, punctuation, and factual copy consistent. Ask before changing claims.
|
|
81
|
+
- Remove debug output, dead code, unused imports, obsolete styles, and polish-created duplication.
|
|
82
|
+
- Replace custom implementations with shared components where the system owns the pattern.
|
|
83
|
+
- Promote genuinely reusable values to tokens; do not create a system abstraction for one local exception.
|
|
84
|
+
|
|
85
|
+
## 5. Verify and finish
|
|
86
|
+
|
|
87
|
+
Walk the complete path again with mouse, keyboard, and touch where applicable. Check:
|
|
88
|
+
|
|
89
|
+
- mobile, intermediate, and wide layouts on the web; phone and tablet size classes in both supported orientations on native;
|
|
90
|
+
- loading, empty, error, success, disabled, long-content, and missing-content states;
|
|
91
|
+
- zoom, contrast, focus, semantics, and screen-reader names;
|
|
92
|
+
- console errors, layout shift, interaction latency, and image loading everywhere; supported browsers on the web; supported OS versions, runtime warnings, and dropped frames on native;
|
|
93
|
+
- agreement with DESIGN.md, neighboring features, and the user's scope.
|
|
94
|
+
|
|
95
|
+
Follow the quality guidance supplied by `impeccable context` and hooks, then run any other relevant QA commands. Context requests a manual scan only when no automatic detector is active; never add another detector pass. Fix real defects and document only narrow intentional exceptions. A clean scan does not replace visual judgment.
|
|
96
|
+
|
|
97
|
+
Finish with a source diff: remove accidental churn, orphaned code, redundant values, and temporary artifacts. Ship only when the feature is functionally complete and consistently finished across the path.
|
|
98
|
+
|
|
99
|
+
When this pass clears every Priority Issue it took from a snapshot, close that snapshot:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
.pi/skills/impeccable/scripts/impeccable critique-storage close "<resolved target>" "<snapshot_file returned by latest>"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
This closes only the snapshot this pass actually processed; if a newer critique landed meanwhile, its backlog stays live. Do not close when no snapshot was read, when `snapshot_file` was not retained, or when Priority Issues remain.
|