@thanhnguyxn/pixelcraft 0.1.0 → 0.2.0
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/.agents/plugins/marketplace.json +1 -1
- package/.antigravity-plugin/plugin.json +32 -0
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +15 -4
- package/.codex-plugin/plugin.json +45 -0
- package/.cursor-plugin/marketplace.json +17 -0
- package/.cursor-plugin/plugin.json +27 -0
- package/.devin-plugin/plugin.json +21 -0
- package/.github/plugin/marketplace.json +34 -0
- package/CHANGELOG.md +159 -0
- package/GEMINI.md +1 -0
- package/README.md +185 -328
- package/SECURITY.md +28 -0
- package/assets/pixelcraft-logo-128.png +0 -0
- package/assets/pixelcraft-logo-256.png +0 -0
- package/bin/pixelcraft.mjs +431 -23
- package/docs/ARCHITECTURE.md +40 -37
- package/docs/DESIGN-RATIONALE.md +51 -3
- package/docs/INSTALL.md +221 -0
- package/evals/README.md +16 -6
- package/evals/fixtures/3d-web-engineering.json +69 -0
- package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
- package/evals/fixtures/ai-ui-libraries.json +53 -0
- package/evals/fixtures/audio-visual-accessibility.json +69 -0
- package/evals/fixtures/auth-and-checkout-ui.json +53 -0
- package/evals/fixtures/brandkit-identity-governance.json +48 -0
- package/evals/fixtures/build-and-architecture.json +53 -0
- package/evals/fixtures/canvas-and-node-editors.json +53 -0
- package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
- package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
- package/evals/fixtures/component-systems.json +53 -0
- package/evals/fixtures/component-testing.json +53 -0
- package/evals/fixtures/constrained-voice-and-tv.json +43 -0
- package/evals/fixtures/creative-code-rendering.json +69 -0
- package/evals/fixtures/creative-reference-evidence.json +67 -0
- package/evals/fixtures/data-app-python-marimo.json +49 -0
- package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
- package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
- package/evals/fixtures/desktop-native-workspace.json +48 -0
- package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
- package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
- package/evals/fixtures/document-rust-typst-invoice.json +49 -0
- package/evals/fixtures/document-typst-and-print-css.json +43 -0
- package/evals/fixtures/email-mjml-dark-mode.json +49 -0
- package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
- package/evals/fixtures/enterprise-data-ui.json +53 -0
- package/evals/fixtures/extended-tui-toolkits.json +53 -0
- package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
- package/evals/fixtures/file-upload-media-ui.json +53 -0
- package/evals/fixtures/forms-validation.json +53 -0
- package/evals/fixtures/game-go-ebitengine.json +49 -0
- package/evals/fixtures/game-godot-gdscript.json +49 -0
- package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
- package/evals/fixtures/i18n-engineering.json +53 -0
- package/evals/fixtures/local-first-sync.json +53 -0
- package/evals/fixtures/lynxjs.json +53 -0
- package/evals/fixtures/maizzle-email.json +53 -0
- package/evals/fixtures/maps-geospatial.json +53 -0
- package/evals/fixtures/media-og-and-video-export.json +43 -0
- package/evals/fixtures/media-players.json +53 -0
- package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
- package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
- package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
- package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
- package/evals/fixtures/mobile-jetpack-compose.json +49 -0
- package/evals/fixtures/mobile-swiftui-ios.json +49 -0
- package/evals/fixtures/motion-engineering.json +69 -0
- package/evals/fixtures/pdfjs-and-pptx.json +53 -0
- package/evals/fixtures/plan-discovery-interview.json +31 -0
- package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
- package/evals/fixtures/reactive-data-apps.json +53 -0
- package/evals/fixtures/review-evidence-audit.json +43 -0
- package/evals/fixtures/rich-text-and-code-editors.json +53 -0
- package/evals/fixtures/scrollytelling-resilience.json +70 -0
- package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
- package/evals/fixtures/state-architecture.json +53 -0
- package/evals/fixtures/styling-ecosystem.json +53 -0
- package/evals/fixtures/token-tooling.json +53 -0
- package/evals/fixtures/tui-go-bubbletea.json +49 -0
- package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
- package/evals/fixtures/tui-rust-ratatui.json +49 -0
- package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
- package/evals/fixtures/web-3d-engines.json +53 -0
- package/evals/fixtures/web-php-laravel-filament.json +49 -0
- package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
- package/evals/pixelcraft-accessibility.md +17 -0
- package/evals/pixelcraft-craft.md +16 -0
- package/evals/pixelcraft-dataviz.md +3 -3
- package/evals/pixelcraft-direction.md +17 -0
- package/evals/pixelcraft-game-ui.md +3 -3
- package/evals/pixelcraft-mobile.md +3 -3
- package/evals/pixelcraft-patterns.md +16 -0
- package/evals/pixelcraft-plan.md +65 -3
- package/evals/pixelcraft-review.md +3 -3
- package/evals/pixelcraft-visual-qa.md +11 -5
- package/evals/pixelcraft-web.md +21 -3
- package/evals/pixelcraft.md +4 -4
- package/gemini-extension.json +3 -2
- package/install.ps1 +57 -11
- package/install.sh +82 -7
- package/package.json +32 -4
- package/plugin.json +6 -1
- package/scripts/build-adapters.mjs +11 -13
- package/scripts/run-evals.mjs +397 -0
- package/scripts/sync-docs.mjs +381 -0
- package/scripts/test-build-adapters.mjs +14 -1
- package/scripts/test-cross-platform-qa.mjs +359 -0
- package/scripts/test-distribution.mjs +86 -7
- package/scripts/test-export-tokens.mjs +259 -3
- package/scripts/test-finish-gate.mjs +133 -10
- package/scripts/test-installers.mjs +155 -6
- package/scripts/test-shoot.mjs +23 -1
- package/scripts/test-slop-scan.mjs +390 -3
- package/scripts/test-style-inventory.mjs +23 -0
- package/scripts/test-sync-docs.mjs +140 -0
- package/scripts/test-validate-skills.mjs +82 -4
- package/scripts/validate-skills.mjs +149 -3
- package/skills/pixelcraft/SKILL.md +67 -47
- package/skills/pixelcraft/references/design-brief.md +2 -2
- package/skills/pixelcraft/references/floor.md +36 -19
- package/skills/pixelcraft/references/report-template.md +25 -11
- package/skills/pixelcraft/references/stack-detection.md +138 -67
- package/skills/pixelcraft/references/surface-acceptance.md +33 -21
- package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
- package/skills/pixelcraft-accessibility/SKILL.md +34 -13
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
- package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
- package/skills/pixelcraft-accessibility/references/verification.md +15 -10
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
- package/skills/pixelcraft-brandkit/SKILL.md +42 -30
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
- package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
- package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
- package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
- package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
- package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
- package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
- package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
- package/skills/pixelcraft-chat-ui/references/conversation-design.md +12 -6
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
- package/skills/pixelcraft-constrained/SKILL.md +21 -20
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
- package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
- package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
- package/skills/pixelcraft-craft/SKILL.md +29 -15
- package/skills/pixelcraft-craft/references/color.md +62 -6
- package/skills/pixelcraft-craft/references/layout.md +32 -0
- package/skills/pixelcraft-craft/references/motion.md +99 -12
- package/skills/pixelcraft-craft/references/typography.md +48 -9
- package/skills/pixelcraft-data-apps/SKILL.md +50 -31
- package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
- package/skills/pixelcraft-data-apps/references/dash.md +87 -31
- package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
- package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
- package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
- package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
- package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
- package/skills/pixelcraft-data-apps/references/panel.md +69 -23
- package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
- package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
- package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
- package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
- package/skills/pixelcraft-dataviz/SKILL.md +21 -24
- package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
- package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
- package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
- package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
- package/skills/pixelcraft-desktop/SKILL.md +61 -39
- package/skills/pixelcraft-desktop/references/appkit.md +60 -26
- package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
- package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
- package/skills/pixelcraft-desktop/references/electron.md +68 -26
- package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
- package/skills/pixelcraft-desktop/references/gtk.md +74 -31
- package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
- package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
- package/skills/pixelcraft-desktop/references/tauri.md +80 -24
- package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
- package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
- package/skills/pixelcraft-desktop/references/working-context.md +82 -3
- package/skills/pixelcraft-direction/SKILL.md +48 -82
- package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
- package/skills/pixelcraft-direction/references/direction-card.md +11 -1
- package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
- package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
- package/skills/pixelcraft-direction/references/movements.md +3 -0
- package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
- package/skills/pixelcraft-document/SKILL.md +27 -23
- package/skills/pixelcraft-document/references/archetypes.md +27 -4
- package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
- package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
- package/skills/pixelcraft-document/references/print-css.md +96 -43
- package/skills/pixelcraft-document/references/slides.md +123 -27
- package/skills/pixelcraft-email/SKILL.md +42 -20
- package/skills/pixelcraft-email/references/client-quirks.md +101 -33
- package/skills/pixelcraft-email/references/html-tables.md +83 -22
- package/skills/pixelcraft-email/references/maizzle.md +54 -0
- package/skills/pixelcraft-email/references/mjml.md +13 -11
- package/skills/pixelcraft-email/references/react-email.md +76 -34
- package/skills/pixelcraft-extensions/SKILL.md +32 -27
- package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
- package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
- package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
- package/skills/pixelcraft-extensions/references/raycast.md +90 -11
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
- package/skills/pixelcraft-game-ui/SKILL.md +45 -26
- package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
- package/skills/pixelcraft-game-ui/references/godot.md +100 -27
- package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
- package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
- package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
- package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
- package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
- package/skills/pixelcraft-handoff/SKILL.md +14 -13
- package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
- package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
- package/skills/pixelcraft-media/SKILL.md +20 -23
- package/skills/pixelcraft-media/references/banners-video.md +83 -65
- package/skills/pixelcraft-media/references/og-generation.md +110 -63
- package/skills/pixelcraft-media/references/social-cards.md +57 -58
- package/skills/pixelcraft-mobile/SKILL.md +53 -36
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
- package/skills/pixelcraft-mobile/references/flet.md +53 -26
- package/skills/pixelcraft-mobile/references/flutter.md +76 -32
- package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
- package/skills/pixelcraft-mobile/references/kivy.md +54 -31
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
- package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
- package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
- package/skills/pixelcraft-mobile/references/react-native-expo.md +66 -31
- package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
- package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
- package/skills/pixelcraft-mobile/references/uikit.md +57 -23
- package/skills/pixelcraft-patterns/SKILL.md +30 -13
- package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
- package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
- package/skills/pixelcraft-patterns/references/auth-onboarding.md +32 -13
- package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
- package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
- package/skills/pixelcraft-patterns/references/commerce.md +35 -16
- package/skills/pixelcraft-patterns/references/communication.md +34 -15
- package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
- package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
- package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
- package/skills/pixelcraft-patterns/references/marketing.md +31 -19
- package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
- package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
- package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
- package/skills/pixelcraft-patterns/references/pattern-selection.md +8 -2
- package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
- package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
- package/skills/pixelcraft-patterns/references/settings.md +40 -12
- package/skills/pixelcraft-plan/SKILL.md +54 -18
- package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
- package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
- package/skills/pixelcraft-plan/references/plan-template.md +44 -9
- package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
- package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
- package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
- package/skills/pixelcraft-review/SKILL.md +41 -19
- package/skills/pixelcraft-review/references/audit-report.md +20 -1
- package/skills/pixelcraft-review/references/heuristics.md +63 -18
- package/skills/pixelcraft-review/references/personas.md +41 -14
- package/skills/pixelcraft-review/references/polish.md +66 -26
- package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
- package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
- package/skills/pixelcraft-spatial/SKILL.md +16 -17
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
- package/skills/pixelcraft-spatial/references/platforms.md +123 -53
- package/skills/pixelcraft-tokens/SKILL.md +18 -14
- package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
- package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
- package/skills/pixelcraft-tokens/references/format.md +39 -9
- package/skills/pixelcraft-tokens/references/governance.md +1 -1
- package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
- package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
- package/skills/pixelcraft-tui/SKILL.md +41 -25
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
- package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
- package/skills/pixelcraft-tui/references/ink.md +77 -28
- package/skills/pixelcraft-tui/references/ratatui.md +70 -30
- package/skills/pixelcraft-tui/references/rich.md +53 -33
- package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
- package/skills/pixelcraft-tui/references/textual.md +75 -34
- package/skills/pixelcraft-ux/SKILL.md +22 -12
- package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
- package/skills/pixelcraft-ux/references/forms.md +57 -3
- package/skills/pixelcraft-ux/references/i18n.md +50 -12
- package/skills/pixelcraft-ux/references/laws.md +35 -14
- package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
- package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
- package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
- package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
- package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
- package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
- package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
- package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
- package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
- package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +50 -11
- package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
- package/skills/pixelcraft-web/SKILL.md +105 -49
- package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
- package/skills/pixelcraft-web/references/angular.md +63 -16
- package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
- package/skills/pixelcraft-web/references/astro.md +64 -13
- package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
- package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
- package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
- package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
- package/skills/pixelcraft-web/references/clojurescript.md +52 -17
- package/skills/pixelcraft-web/references/component-systems.md +102 -0
- package/skills/pixelcraft-web/references/component-testing.md +170 -0
- package/skills/pixelcraft-web/references/creative-effects.md +59 -0
- package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
- package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
- package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
- package/skills/pixelcraft-web/references/forms-validation.md +123 -0
- package/skills/pixelcraft-web/references/fsharp-fable.md +3 -2
- package/skills/pixelcraft-web/references/gsap.md +102 -0
- package/skills/pixelcraft-web/references/html-css.md +144 -12
- package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
- package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
- package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
- package/skills/pixelcraft-web/references/java-web.md +27 -18
- package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
- package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
- package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
- package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
- package/skills/pixelcraft-web/references/media-players.md +104 -0
- package/skills/pixelcraft-web/references/motion-react.md +96 -0
- package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
- package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
- package/skills/pixelcraft-web/references/pwa.md +6 -1
- package/skills/pixelcraft-web/references/qwik.md +51 -11
- package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
- package/skills/pixelcraft-web/references/react-next.md +112 -13
- package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
- package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
- package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
- package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
- package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
- package/skills/pixelcraft-web/references/server-rendered.md +106 -63
- package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
- package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
- package/skills/pixelcraft-web/references/solid.md +67 -16
- package/skills/pixelcraft-web/references/state-architecture.md +107 -0
- package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
- package/skills/pixelcraft-web/references/svelte.md +61 -11
- package/skills/pixelcraft-web/references/tailwind.md +40 -14
- package/skills/pixelcraft-web/references/video-media.md +69 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
- package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Greenfield stack selection
|
|
2
2
|
|
|
3
|
-
Never
|
|
3
|
+
Never pick a stack by habit—and **never avoid React, Vue, or Angular artificially** just to look minimal or "anti-default." Generate candidates from the requirement shape, ecosystem dependencies, and the team's actual language/operations constraints. Do not over-correct toward lightweight stacks (such as Svelte, Astro, Solid, or plain HTML/htmx) when the product genuinely depends on deep specialized ecosystems (rich-text/code/node editors, whiteboards, AI-native UI libraries, enterprise data grids, or broad team hiring/longevity) where React (Next.js, TanStack Start, React Router v7), Vue/Nuxt, or Angular is the stronger engineering fit.
|
|
4
4
|
|
|
5
5
|
## Required intake
|
|
6
6
|
|
|
@@ -26,17 +26,73 @@ Use hard gates before weights: unsupported target platform, missing legal/access
|
|
|
26
26
|
|
|
27
27
|
| Use case | Candidates to compare | Notes |
|
|
28
28
|
|---|---|---|
|
|
29
|
-
| Web application | TypeScript React/Vue/Svelte/Solid/Qwik; Rust Leptos/Yew; Kotlin Kobweb/Compose Web; Elm; ClojureScript Reagent/re-frame; F# Fable; Scala Laminar; Java Vaadin; server-rendered Rails/Laravel/Django/Phoenix/Blazor/Go templ |
|
|
29
|
+
| Web application | TypeScript React (Next.js, TanStack Start, React Router v7) / Vue (Nuxt 4) / Angular (Signals) / Svelte (SvelteKit) / Solid / Qwik; htmx/Alpine; Lit (Web Components); Rust Leptos/Yew; Kotlin Kobweb/Compose Web; Elm; ClojureScript Reagent/re-frame; F# Fable; Scala Laminar; Java Vaadin; server-rendered Rails/Laravel/Django/Phoenix/Blazor/Go templ | Match framework weight to ecosystem needs: pick React/Vue/Angular when rich component/editor/AI/grid ecosystems or multi-team hiring dominate; pick htmx/Alpine, Lit, SvelteKit, Solid, or server-rendered when compact runtime, standard Web Components, or low ceremony dominate; WASM/canvas approaches need accessibility/bundle scrutiny |
|
|
30
30
|
| Content site | Astro, plain HTML/CSS, static generators, server-rendered CMS/framework, lightweight islands | Justify any SPA-like choice; rendering performance/reader mode matter |
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
31
|
+
| AI-native / Agentic UI | Vercel AI SDK (`@ai-sdk/*`), assistant-ui, CopilotKit / AG-UI, Chainlit, MCP Apps | Evaluate streaming transport, tool-call/approval state lifecycles, generative UI sandboxing, provenance/citations, and fallback when models fail or stream slowly |
|
|
32
|
+
| Mobile | SwiftUI/UIKit, Kotlin Compose, Flutter, React Native/Expo, LynxJS, Kotlin Multiplatform, NativeScript, Skip, Ionic/Capacitor, .NET MAUI, Uno | Platform fidelity vs shared code; store/accessibility/input behavior decide |
|
|
33
|
+
| Cross-platform app | Flutter, React Native, LynxJS, Kotlin Multiplatform/Compose Multiplatform, .NET MAUI, Uno, Tauri v2/Electron for desktop-centric use | “Write once” does not erase platform conventions |
|
|
34
|
+
| Desktop | SwiftUI macOS, AppKit, Tauri v2, Electron, Electrobun, Flutter Desktop, Compose Multiplatform Desktop, Qt C++/PySide/QML, WinUI/WPF, GTK, Avalonia, Uno, JavaFX/Swing, Rust egui/Slint/iced/Dioxus/GPUI, Go Fyne/Wails/Gio | Native integration, memory/startup, accessibility, signing, menus/windowing matter |
|
|
35
|
+
| Internal tool/data app | marimo, Solara, Mesop, Taipy, Streamlit, Gradio, Reflex, NiceGUI, Dash, Panel, Shiny for Python/R, Jupyter widgets/anywidget, Genie (Julia), Observable Framework, Evidence, CRUD server-rendered frameworks | Choose speed/clarity/reproducibility, but inspect session/concurrency/security/freshness limits |
|
|
36
|
+
| CLI/TUI | Textual/Rich/prompt_toolkit (Python), Ink (Node), Bubble Tea/Lip Gloss (Go), Ratatui (Rust), Spectre.Console/Terminal.Gui (.NET), language-native CLI libraries | Character grid, keyboard behavior, terminal capability fallback, snapshot tests |
|
|
37
|
+
| Documents & Slides | Typst, WeasyPrint, Paged.js, Playwright PDF, Gotenberg, PDF.js, PptxGenJS, Slidev, Marp | Separate print pagination, PDF/UA tagging, font embedding, and deterministic raster output from browser layout habits |
|
|
38
|
+
| Media / Video | Satori, Takumi, Remotion, Motion Canvas, FFmpeg | Match deterministic frame/image generation, font loading, safe zones, and headless render throughput |
|
|
39
|
+
| Chat / Bot / Mini-Apps | Slack Block Kit, Discord Components/Modals, Telegram Mini Apps/Bot API, WhatsApp Flows, Adaptive Cards (Teams), LINE LIFF | Host payload/schema caps, interaction ack deadlines, and privacy/fallback rules govern UI design |
|
|
40
|
+
| Extensions / Plugins | WXT / Plasmo (browser MV3), VS Code Webviews/TreeViews, JetBrains Platform, Raycast, Obsidian, Figma Plugins, Shopify UI Extensions / Atlassian Forge | Host CSP, theme tokens, Shadow DOM isolation, and marketplace review rules are hard gates |
|
|
41
|
+
| Spatial / XR | visionOS (SwiftUI/RealityKit), Android XR (Compose XR), Horizon OS / Quest, WebXR, Unity XRI | Embodied comfort, depth/ergonomics, gaze/hand/controller input, and privacy boundaries come first |
|
|
36
42
|
| Game UI | Unity, Godot, Unreal, Bevy (Rust), MonoGame (C#), LÖVE2D (Lua), custom engine | Engine/gameplay architecture comes first; UI accessibility/certification constraints follow |
|
|
37
|
-
| Email | HTML tables, MJML, React Email | Client fragmentation dominates framework preference; plaintext parity mandatory |
|
|
43
|
+
| Email | HTML tables, MJML, React Email, Maizzle | Client fragmentation dominates framework preference; plaintext parity mandatory |
|
|
38
44
|
| Embedded/kiosk | Qt/QML, Slint, LVGL/custom native, webview/Tauri/Electron only when resources permit, Flutter embedded where supported | Hardware/input/power/update/security constraints are hard gates |
|
|
39
45
|
|
|
46
|
+
## Lazy-Default Rejection Table
|
|
47
|
+
|
|
48
|
+
Never accept a low-craft or mismatched default merely because it is fast to scaffold. Reject these lazy defaults unless the user explicitly requires them (record an explicit waiver if kept):
|
|
49
|
+
|
|
50
|
+
| Surface | Lazy default to reject | Upgrade / craft-bar replacements | When the default is acceptable (requires explicit reason) |
|
|
51
|
+
|---|---|---|---|
|
|
52
|
+
| **Python desktop** | Tkinter / `ttk` for greenfield desktop products | PySide6 / Qt Quick (QML), Flet, NiceGUI (native mode), Tauri v2 + Python sidecar, or Textual (when terminal-native fits better) | Zero-dependency internal stdlib utility where installing any wheel is prohibited |
|
|
53
|
+
| **Desktop** | Unjustified Electron / heavy WebView wrapper | Tauri v2, SwiftUI / AppKit (macOS), WinUI 3 (Windows), GTK4 / libadwaita (Linux), Avalonia, Slint, or GPUI | Complex Chromium-dependent runtime (e.g., rich extension host, existing web studio) where memory/bundle cost is explicitly budgeted |
|
|
54
|
+
| **Data apps** | Streamlit for multi-user apps, reactive DAG notebooks, or production BI | marimo (reactive DAG), Shiny (Python/R), Panel, Dash, Reflex, NiceGUI, Observable Framework, or Evidence | Throwaway single-analyst script explicitly scoped as a disposable prototype |
|
|
55
|
+
| **CLI / TUI** | Bare `print()` loops, raw ANSI escape spaghetti, or unbuffered `input()` prompts | Ratatui (Rust), Bubble Tea v2 + Lip Gloss v2 (Go), Textual / Rich (Python), Ink (Node), `@clack/prompts` / `prompt_toolkit` | Non-interactive script piping plain line-oriented stdout/JSON (`NO_COLOR`, machine consumption) |
|
|
56
|
+
| **Mobile** | Lazy WebView / Cordova / Kivy wrapper for native consumer apps | SwiftUI (iOS), Jetpack Compose (Android), Flutter, or React Native (New Architecture / Expo) | Thin enterprise intranet wrapper explicitly constrained to an existing web portal |
|
|
57
|
+
| **Document / PDF** | `window.print()` or raster HTML screenshots masquerading as publication PDFs | Typst, WeasyPrint, Quarto, or React-PDF (plus Paged.js / Gotenberg where web-to-print CSS is required) | Ephemeral ad-hoc browser print stylesheet where print pagination/PDF-UA is out of scope |
|
|
58
|
+
| **Email** | Raw Flexbox / CSS Grid HTML (breaks Outlook Word engine & Gmail) | MJML, React Email, or Maizzle (compiling to hybrid table layouts + plaintext parity) | Never for production multi-client transactional/marketing email |
|
|
59
|
+
| **Web UI** | Hand-rolling fragile DIY modals, rich/code editors, charts, large tables, search facets, toasts, drawers, or carousels | Purpose-built accessible libraries below (via the active surface skill) | Trivial single-purpose micro-interaction with full native semantics (`<dialog>`, `<details>`, native `<input>`) |
|
|
60
|
+
|
|
61
|
+
## Sub-Stack Capability → Purpose-Built Library Gate
|
|
62
|
+
|
|
63
|
+
Before entering **Phase 3 (Specify)** or **Phase 4 (Build)**, map every complex UI capability in scope to a vetted, accessible, purpose-built library (or native platform primitive). **Hand-rolling these from scratch is a defect** unless a hard constraint forbids dependencies (record the constraint explicitly):
|
|
64
|
+
|
|
65
|
+
| Capability in scope | Web / JS purpose-built picks (match framework) | Non-web / native equivalents | Never hand-roll |
|
|
66
|
+
|---|---|---|---|
|
|
67
|
+
| **Rich text editor** | TipTap / ProseMirror, Lexical, Plate, BlockNote | AppKit/UIKit `TextKit 2`, Qt `QTextEdit`, Flutter Quill | `contenteditable` div + `execCommand` |
|
|
68
|
+
| **Code editor** | CodeMirror 6, Monaco Editor, Shiki (read-only highlight) | Qt `QPlainTextEdit` + syntax lexer, Zed GPUI / Textual `TextArea` | `<textarea>` overlaid on a regex-colored `<pre>` |
|
|
69
|
+
| **Node graph / canvas flow** | React Flow (`@xyflow/react`), Svelte Flow (`@xyflow/svelte`), Rete.js, Cytoscape.js | Qt Graphics View, egui/Slint custom scene graph | Raw SVG `<line>` dragging with manual zoom math |
|
|
70
|
+
| **Map / geospatial** | MapLibre GL JS, Leaflet, Deck.gl, PMTiles | MapKit (Apple), Google Maps Compose, MapLibre Native | Static image with hardcoded pixel pins |
|
|
71
|
+
| **>500-row / dense table** | TanStack Table + TanStack Virtual, AG Grid, Glide Data Grid | Qt `QTableView` + model, `NSTableView`/`LazyVStack`, Ratatui/Textual `DataTable` | Unvirtualized `<table>` mapping thousands of DOM nodes |
|
|
72
|
+
| **Command palette (`Cmd+K`)** | `cmdk`, KBar, Ninja Keys, Base UI / Ariakit combobox | macOS Spotlight-style `NSPanel`, Raycast API, Textual `CommandPalette` | Custom `keydown` window listener + un-trapped `<div>` |
|
|
73
|
+
| **Drawer / bottom sheet** | Vaul, Radix / Base UI / Ark UI / Headless UI Dialog, native `<dialog>` | SwiftUI `.sheet`, Compose `ModalBottomSheet`, Flutter `showModalBottomSheet` | `position: fixed` div with no focus trap, inert backdrop, or Escape/swipe close |
|
|
74
|
+
| **Toast / status queue** | Sonner, Radix Toast, Ariakit / Ark UI Toast | Android `Snackbar`, Flutter `SnackBar`, desktop native notification API | Stacked `setTimeout` divs missing `aria-live` & pause-on-hover/focus |
|
|
75
|
+
| **Carousel / media strip** | Embla Carousel, Swiper, native CSS Scroll Snap + real controls | SwiftUI `TabView`/scrollTargetBehavior, Compose `HorizontalPager`, Flutter `PageView` | Manual `translateX` slider breaking touch/trackpad/keyboard |
|
|
76
|
+
| **Search & faceting UI** | InstantSearch / Meilisearch / Orama / MiniSearch + URL-synced filter state | Platform search controllers (`UISearchController`, Compose `SearchBar`) | Client-side `.includes()` filter losing state on refresh |
|
|
77
|
+
| **Drag-and-drop** | `@dnd-kit`, Pragmatic Drag and Drop (Atlassian), SortableJS (with WCAG 2.5.7 button/keyboard move) | SwiftUI `.draggable`/transferable, Compose drag modifiers, Qt Drag & Drop | Mouse-only `mousedown`/`mousemove` with no keyboard/single-pointer move |
|
|
78
|
+
| **Date / calendar picker** | React Aria DatePicker, DayPicker, FullCalendar, Schedule-X, native `<input type="date">` (when simple) | SwiftUI `DatePicker`, Compose Material 3 `DatePicker`, Qt `QCalendarWidget` | Hand-rolled month math ignoring timezones, DST, locales, and arrow-key nav |
|
|
79
|
+
| **Media player (audio/video)** | Vidstack, Media Chrome, Plyr, Wavesurfer.js (audio waveform) | AVPlayerViewController, ExoPlayer/Media3, Flutter `video_player` | Uncaptioned `<video>` with custom non-keyboard buttons |
|
|
80
|
+
| **PDF view / generation** | PDF.js (view), Typst / WeasyPrint / React-PDF / Quarto / Gotenberg (generate) | PDFKit (Apple), Android `PdfRenderer`, Qt PDF | `window.print()` screenshots or unsearchable canvas-only dumps |
|
|
81
|
+
| **Charts / dataviz** | ECharts, Vega-Lite, Observable Plot, Visx, Recharts, Highcharts, uPlot, Plotly | Swift Charts, Vico (Compose), fl_chart, PyQtGraph, Matplotlib/Altair | Hand-coded inline SVG `<path>` charts with no axes, tooltips, or accessible table fallback |
|
|
82
|
+
| **Complex forms & validation** | React Hook Form / TanStack Form / Conform / Superforms + Zod / Valibot / ArkType | SwiftUI Form + typed validation, Flutter Form / Reactive Forms, Pydantic | Ad-hoc `useState` per field losing values on error and skipping `aria-invalid`/`aria-describedby` |
|
|
83
|
+
|
|
84
|
+
## Creative rendering
|
|
85
|
+
|
|
86
|
+
For expressive browser work, compare the lightest sufficient option before introducing a renderer: CSS-native View Transitions, Scroll-Driven Animations, Anchor Positioning, and Popover API; DOM/CSS/SVG; Rive or Lottie for authored vector/state-machine motion; Canvas 2D; Motion for React or GSAP; `<model-viewer>` for lightweight embedded 3D; PixiJS/WebGL; Three.js/R3F, Threlte (Svelte), TresJS (Vue), Babylon.js, PlayCanvas, or Spline; and WebGPU as an optional capability path with fallback. Use `pixelcraft-web` for compatibility, asset, lifecycle, accessibility, and performance gates.
|
|
87
|
+
|
|
88
|
+
## Creative Direction → Plan Feedback Loop
|
|
89
|
+
|
|
90
|
+
Planning runs first, but **stack selection is not a cage against a superior approved concept**. If `pixelcraft-direction` proposes a winning direction that genuinely requires a different runtime, renderer, or capability library—for example, interactive state-machine motion (Rive), shader/WebGPU canvas, publication-grade pagination (Typst/WeasyPrint), or a native desktop shell (Tauri v2 / SwiftUI / PySide6)—reopen `.pixelcraft/plan.md` cleanly before Build:
|
|
91
|
+
|
|
92
|
+
1. Record the triggering creative direction and why the earlier stack cannot execute it honestly.
|
|
93
|
+
2. Verify versions, licensing, bundle/performance cost, and accessibility/fallback gates for the added runtime or library.
|
|
94
|
+
3. Update the stack decision and Sub-Stack Capability table in `.pixelcraft/plan.md`, preserving prior decisions and why they changed.
|
|
95
|
+
|
|
40
96
|
## Decision quality bar
|
|
41
97
|
|
|
42
|
-
A valid recommendation explains why this stack fits the user and team, not why it is popular. It names tradeoffs, verification plan, migration/reversal cost, and what would make the runner-up win.
|
|
98
|
+
A valid recommendation explains why this stack fits the user and team, not why it is popular. It names tradeoffs, rejected lazy defaults, purpose-built sub-stack libraries, verification plan, migration/reversal cost, and what would make the runner-up win.
|
|
@@ -18,47 +18,69 @@ For a substantial review, first critique the brief and captures without detector
|
|
|
18
18
|
|
|
19
19
|
- Read [references/heuristics.md](references/heuristics.md) when translating Nielsen's 10 heuristics into concrete checks.
|
|
20
20
|
- Read [references/personas.md](references/personas.md) for structured persona walkthroughs. Treat personas as hypothesis generators.
|
|
21
|
-
- Read [references/polish.md](references/polish.md) for
|
|
21
|
+
- Read [references/polish.md](references/polish.md) for the **Comprehensive Studio-Grade Polish & Delivery Gate**: 5-second hierarchy, Invisible Craft (`B1–B6`), non-happy-path/`404`/`500`/`IME`/`+50–100%` short-label resilience, and stack-neutral engineering & license handoff.
|
|
22
22
|
- Read [references/critique-protocol.md](references/critique-protocol.md) before structured critique/design decision review.
|
|
23
23
|
- Read [references/audit-report.md](references/audit-report.md) before writing an audit report.
|
|
24
|
-
- Run `node scripts/slop-scan.mjs --help` for deterministic fingerprint scanning. The scanner is evidence input, not a judge of good design.
|
|
24
|
+
- Run `node scripts/slop-scan.mjs --help` for deterministic fingerprint scanning (use `--fail-on P0|P1|P2|P3` to fail review/CI gates on severity threshold, and `--waivers FILE` only for approved brand rules). The scanner is evidence input, not a judge of good design.
|
|
25
|
+
- Run `node scripts/check-acceptance.mjs --help` to initialize (`--init <platform> --out .pixelcraft/acceptance.json`) and verify (`node scripts/check-acceptance.mjs .pixelcraft/acceptance.json [--json]`) the Baseline `A1–A8` + 12-row Surface Matrix + platform thresholds/checklist/deliverables manifest, enforcing **Evidence Rule #0.3** (`static`/`model-judgment` rejected on visual/perf/interactive-a11y rows) and computing the 3-tier Studio verdict (`FAIL` exit `1`, `PENDING_RENDERED_ENV` exit `2`, `PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO` exit `0`).
|
|
25
26
|
|
|
26
27
|
## Modes
|
|
27
28
|
|
|
28
29
|
| Mode | Use | Output |
|
|
29
30
|
|---|---|---|
|
|
30
|
-
| audit | verify floor/state/a11y/copy/
|
|
31
|
-
| critique | evaluate direction, hierarchy, distinctiveness, coherence | strengths, risks, alternatives, decision recommendation |
|
|
32
|
-
| polish |
|
|
31
|
+
| audit | verify floor/state/a11y/copy/engineering/handoff against criteria | severity-ranked findings + Studio-Grade Gate + 3-tier verdict + unverified scope |
|
|
32
|
+
| critique | evaluate direction, 5-second hierarchy, distinctiveness, coherence | strengths, risks, alternatives, decision recommendation |
|
|
33
|
+
| polish | harden an accepted implementation to the Studio-Grade bar (`references/polish.md`) without changing direction | concrete fixes across `B1–B6` micro-craft, states, `IME`/i18n, and release hygiene |
|
|
33
34
|
|
|
34
|
-
Do not silently redesign during polish. Do not treat an audit as complete when only static code was inspected.
|
|
35
|
+
Do not silently redesign during polish. Do not treat an audit as complete when only static code was inspected (**Evidence Rule #0.3**).
|
|
36
|
+
|
|
37
|
+
## Adversarial Defect-Hunt Iron Law & Rationalization Table
|
|
38
|
+
|
|
39
|
+
**IRON LAW:** Assume defects exist until proven otherwise. Actively hunt unfinished stubs (`// TODO`, ellipsis truncation), dead controls (no-op callbacks, unbound commands, placeholder links), unwired mobile navigation, unguarded `IME` `Enter` submits, missing `404`/`500`/offline/error recovery, lazy DIY substitutes (hand-rolled modals/editors/charts/tables/toasts/drawers/carousels), lazy platform defaults (Tkinter/raw-Flexbox email/`window.print()` PDFs), client-exposed secrets, unverified font/media licenses, and unapproved 3-item hardcoded mock arrays masquerading as live data.
|
|
40
|
+
|
|
41
|
+
| Reviewer rationalization | Reality & required action |
|
|
42
|
+
|---|---|
|
|
43
|
+
| "`slop-scan.mjs` returned 0 findings, so the UI is clean." | Zero static hits proves only absence of scanned regexes. Inspect rendered captures, interactive flows, `B1–B6` micro-craft, keyboard focus, and architectural DIY slop (`references/heuristics.md`, `references/polish.md`). |
|
|
44
|
+
| "Code looks right, so I'll mark visual/perf/a11y rows `pass` with `static` or `model-judgment`." | **Forbidden (`Rule #0.3`).** `static` and `model-judgment` never count as `pass` for visual appearance, measured performance, or interactive/assistive accessibility—supply `rendered` evidence or mark `not-checked`/`waived` honestly. |
|
|
45
|
+
| "The desktop layout looks polished, so mobile is probably fine." | Unwired hamburger toggles, clipped drawers, sticky-chrome focus occlusion (`2.4.11`), and hidden primary actions hide in narrow viewports. Explicitly exercise `320px` reflow and mobile navigation. |
|
|
46
|
+
| "Those 3 sample cards and `+24.5%` stats are fine for a demo." | Unapproved mock arrays and invented KPI deltas violate Truthfulness (`P0`) unless explicitly requested by the user and visibly labeled as fixture/demo data. |
|
|
47
|
+
| "The custom click-only modal works when I click it." | Non-semantic modals break focus trap, `inert` backdrop, `Escape` dismissal, and focus restoration. Flag as Architectural / DIY Slop (`P1`). |
|
|
48
|
+
| "There's a `// TODO` on the secondary action, I'll skip mentioning it." | Dead controls and omitted branches on in-scope UI are delivery defects (`P0`/`P1`). Report every unfinished interactive path with `file:line`. |
|
|
49
|
+
| "I fixed the findings, no need to re-run `slop-scan` / `check-*` / `check-acceptance` / compiler." | **Forbidden.** Fixes frequently introduce new specificity, contrast, focus, or syntax regressions. Always re-run all affected scans and `check-acceptance.mjs` until clean. |
|
|
35
50
|
|
|
36
51
|
## Severity taxonomy
|
|
37
52
|
|
|
38
53
|
| Severity | Meaning | Examples |
|
|
39
54
|
|---|---|---|
|
|
40
|
-
| P0 | floor violation/blocker/deception | inaccessible primary task, invented proof, data loss,
|
|
41
|
-
| P1 | major UX failure | missing error recovery, broken back state,
|
|
42
|
-
| P2 | quality defect affecting comprehension/efficiency/trust | weak hierarchy,
|
|
43
|
-
| P3 | polish/craft refinement | optical
|
|
55
|
+
| P0 | floor violation/blocker/deception | inaccessible primary task, sticky-chrome focus trap/total occlusion, invented proof, leaked client secret, unlicensed commercial font/asset, data loss, unapproved fake live data, `Rule #0.3` static-as-rendered falsification |
|
|
56
|
+
| P1 | major UX failure / architectural slop | missing error/`404`/`500`/offline recovery, premature `IME` `Enter` submit, broken back state, unwired mobile nav, dead primary control, DIY broken modal/editor/table, failing strict language/dependency-audit checks |
|
|
57
|
+
| P2 | quality defect affecting comprehension/efficiency/trust | weak 5-second hierarchy, `>2` unjustified font families, `>75ch` prose wall, muddy `#000000` dark-mode shadows (`B4`), jittering proportional digits (`B6`), clipped `+50–100%` short labels, `Unicode NFC` fallback ransom-note glyphs |
|
|
58
|
+
| P3 | polish/craft refinement | `+1–2` unit optical icon centroid nudge (`B2`), concentric radius tweak, asymmetric exit timing (`B3`), warm-tooltip chain (`B1`), microcopy tightening |
|
|
44
59
|
|
|
45
60
|
Every finding requires: severity, evidence (`file:line`, screenshot region/device state, tool output), confidence (`high/medium/low`), user impact, concrete fix, and evidence label (`rendered/static/model-judgment/not-checked/waived`). No unlabeled certainty.
|
|
46
61
|
|
|
47
62
|
## Protocol
|
|
48
63
|
|
|
49
|
-
1. Establish scope, mode, direction card/project system, commit/build state, target platforms, locales,
|
|
50
|
-
2. Gather deterministic evidence first: run
|
|
51
|
-
3. Walk primary flows using personas as hypotheses;
|
|
52
|
-
|
|
53
|
-
4. Apply heuristics and floor checks. Separate actual violation from risk/opportunity; use the structured critique protocol when the output informs a design decision.
|
|
64
|
+
1. Establish scope, mode, direction card/project system, commit/build state, target platforms, regulatory/store regime, locales, user tasks, and `.pixelcraft/acceptance.json` (initializing with `node scripts/check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json` if absent).
|
|
65
|
+
2. Gather deterministic evidence first: run `node scripts/slop-scan.mjs <target> --fail-on p2`, applicable surface CLIs (`check-contrast.mjs`, `check-email.mjs`, `check-tui.mjs`, `check-pdf.mjs`), strict active-language compiler/type/linter/dependency-audit checks, and tests; inspect files; capture rendered/device states via `pixelcraft-visual-qa` where possible.
|
|
66
|
+
3. Walk primary and non-happy-path flows (`loading`, `empty`, `error`, `offline`, `404`/`500`, `permission-denied`, `IME` composition `Enter`, `+50–100%` short-label expansion) using personas as hypotheses; confirm suspected stubs, dead controls, or DIY widgets through the affected interaction.
|
|
67
|
+
4. Walk **100% of applicable checklist rows** across `polish.md` (**Studio Invisible Craft `B1–B6`**, **5-Second Hierarchy**, **Non-Happy-Path & Input Completeness**, **Commercial Handoff Hygiene**), the active platform skill's `Pre-submit checklist`, and `references/heuristics.md`.
|
|
54
68
|
5. Compare against slop fingerprints and `.pixelcraft/history.json`; identify repetition or absence of subject commitment.
|
|
55
|
-
6.
|
|
56
|
-
7. Report verified positives only when material; prioritize actionable findings and unverified scope.
|
|
69
|
+
6. Update `.pixelcraft/acceptance.json` with honest evidence labels (**`Rule #0.3`:** `rendered` required on visual/perf/interactive-a11y rows) and rank findings by user impact. When polishing or verifying an implementation, run **`Scan → Fix → Rescan`** until `slop-scan.mjs --fail-on p2`, applicable `check-*` CLIs, compiler/tests, and `node scripts/check-acceptance.mjs .pixelcraft/acceptance.json` have **`0` `fail` and `0` `pending` rows**, then report using `references/audit-report.md`.
|
|
57
70
|
|
|
58
71
|
## Distinctiveness check
|
|
59
72
|
|
|
60
73
|
Ask whether removing the subject would leave a generic interface. Compare composition/type/color/material/motion/imagery/copy fingerprints with history. A repetition is not automatically wrong inside one coherent product; repetition across unrelated surfaces or absence of any subject-derived commitment is a finding.
|
|
61
74
|
|
|
62
|
-
##
|
|
75
|
+
## Scan-until-clean & review termination
|
|
76
|
+
|
|
77
|
+
When verifying or polishing an implementation, **do not stop after a single pass while deterministic scan (`P0–P2`), compiler/test, stub, state, floor-checklist, or `.pixelcraft/acceptance.json` (`fail`/`pending`) defects remain**: fix every confirmed defect and re-run `slop-scan.mjs --fail-on p2`, applicable `check-*` scripts, active-language checks, and `node scripts/check-acceptance.mjs .pixelcraft/acceptance.json` until `0` `fail`/`pending` rows remain. Stop only once deterministic gates pass and remaining observations become purely speculative taste, require unavailable user/business facts, or depend on unavailable external hardware (`PENDING_RENDERED_ENV`, never reported as `pass`).
|
|
78
|
+
|
|
79
|
+
## Pre-submit checklist
|
|
63
80
|
|
|
64
|
-
|
|
81
|
+
- [ ] Adversarial defect hunt completed for stubs (`// TODO`, ellipsis), dead controls/links, unwired mobile nav, unguarded `IME` `Enter` handlers, client secrets, unapproved mock data, and lazy DIY substitutes.
|
|
82
|
+
- [ ] **`Scan → Fix → Rescan` loop completed:** `node scripts/slop-scan.mjs --fail-on p2`, applicable `check-*` CLIs, strict active-language compiler/type/analyzer/dependency-audit/test suites, and `node scripts/check-acceptance.mjs .pixelcraft/acceptance.json` re-executed after every edit until `0` `fail` and `0` `pending` rows remain.
|
|
83
|
+
- [ ] **Evidence Rule #0.3 enforced:** zero visual, performance-budget, or interactive/assistive accessibility rows marked `pass` with `static` or `model-judgment` evidence.
|
|
84
|
+
- [ ] Studio-Grade Polish & Delivery Gate (`references/polish.md`) and active platform `Pre-submit checklist` walked row-by-row across 5-second hierarchy, Invisible Craft (`B1–B6`), non-happy-path + `+50–100%` short-label/`NFC` resilience, and `<10m` setup / staging separation / license / 30–90d warranty handoff.
|
|
85
|
+
- [ ] Every finding includes severity (`P0`–`P3`), exact `file:line` or capture evidence, confidence, user impact, concrete fix, and evidence label, plus the **3-Tier Final Verdict** (`FAIL` / `PENDING_RENDERED_ENV` / `PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO`).
|
|
86
|
+
- [ ] Distinctiveness and `.pixelcraft/history.json` repetition checked; unchecked external devices or regulatory regimes are explicitly listed as `not-checked` with no false "ready to ship" claim.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
## Summary
|
|
12
12
|
|
|
13
13
|
- P0: n · P1: n · P2: n · P3: n
|
|
14
|
+
- Acceptance manifest (`check-acceptance.mjs`): `FAIL` (exit `1`) | `PENDING_RENDERED_ENV` (exit `2`) | `PASS_STUDIO_10K_20K` (exit `0`) | `EXCEEDS_STUDIO` (exit `0`)
|
|
14
15
|
- Highest-risk unknown: <scope not checked>
|
|
15
16
|
- Overall recommendation: <block/fix-before-release/fix-normal/polish>
|
|
16
17
|
|
|
@@ -30,9 +31,19 @@
|
|
|
30
31
|
- Slop scan: <score/findings; note zero ≠ good design>.
|
|
31
32
|
- Subject-derived commitment: <present/weak/absent + evidence>.
|
|
32
33
|
|
|
34
|
+
## Studio-grade delivery & acceptance gate (`polish.md` + `check-acceptance.mjs`)
|
|
35
|
+
|
|
36
|
+
| Pillar | Status (`pass`/`fail`/`not-checked`/`waived`) | Evidence & scope | Label |
|
|
37
|
+
|---|---|---|---|
|
|
38
|
+
| 1. Art direction & 5-second hierarchy (`≤2` fonts+`1` mono, `45–75ch`, 1–2 CTAs) | | | |
|
|
39
|
+
| 2. Invisible craft (`B1` timing, `B2` optical/concentric, `B3` origin/exit, `B4` dark `L`/edge, `B5` hit-slop/Safe Triangle/capture, `B6` `tnum`/`U+2212`) | | | |
|
|
40
|
+
| 3. States, latency (`<=100ms`/`>1s`/`>10s`), a11y (`2.4.11`/`EAA`), `IME` `Enter` guard & `+50–100%` short-label / `NFC` i18n | | | |
|
|
41
|
+
| 4. Stack-neutral engineering (`<10m` setup, strict checks, dep audit, staging split, zero secrets) & license/30–90d warranty handoff | | | |
|
|
42
|
+
| 5. `.pixelcraft/acceptance.json` (`A1–A8` + 12-row Surface Matrix + platform thresholds & deliverables) | | | |
|
|
43
|
+
|
|
33
44
|
## Not checked / waived
|
|
34
45
|
|
|
35
|
-
- `<label>` <scope> — reason
|
|
46
|
+
- `<label>` <scope> — concrete reason, explicit client sign-off (if `waived`), consequence, and next command.
|
|
36
47
|
|
|
37
48
|
## Recommended order
|
|
38
49
|
|
|
@@ -43,6 +54,14 @@
|
|
|
43
54
|
|
|
44
55
|
Do not bury a blocker in prose. Do not convert absence of automated findings into conformance language.
|
|
45
56
|
|
|
57
|
+
## Evidence Rule #0.3 & 3-tier Studio verdict rubric
|
|
58
|
+
|
|
59
|
+
- **Golden Evidence Rule (`Rule #0.3`):** **`static` or `model-judgment` NEVER counts as `pass` / accepted for visual appearance, measured performance budgets, or interactive/assistive accessibility requirements.** Those rows require `rendered` evidence—or must be recorded honestly as `not-checked` (with concrete reason) or `waived` (with explicit user authorization, scope, and consequence).
|
|
60
|
+
- **3-Tier Final Grading (`check-acceptance.mjs`):**
|
|
61
|
+
- **`FAIL` (`exit 1` — Not Accepted):** any Baseline `A1–A8`, 12-row Surface Matrix, or platform threshold/checklist/deliverable item is `fail` or `pending`, or relies on `static`/`model-judgment` where `rendered` evidence is required (`Rule #0.3`). **Do not approve or claim completion.**
|
|
62
|
+
- **`PASS_STUDIO_10K_20K` (`exit 0` — Studio $10k–$20k Bar)** *(or `PENDING_RENDERED_ENV` `exit 2` when physical hardware/store runtime is genuinely unavailable)*: all applicable rows pass on target environments (`rendered` where required) and any `not-checked`/`waived` row carries concrete justification or explicit user sign-off.
|
|
63
|
+
- **`EXCEEDS_STUDIO` (`exit 0` — Exceeds Bar):** meets `PASS_STUDIO_10K_20K` plus real-user usability testing, live A/B experimentation, deep multi-locale native review, or high-scale systems integration.
|
|
64
|
+
|
|
46
65
|
## Confidence calibration
|
|
47
66
|
|
|
48
67
|
Use `high` only when the evidence directly demonstrates the defect or requirement in the stated scope. Use `medium` when the inference is strong but depends on runtime/user/context not fully inspected. Use `low` for hypotheses that should guide testing, not implementation churn. Every high-confidence critique should identify observable evidence; if it cannot, downgrade it.
|
|
@@ -1,18 +1,63 @@
|
|
|
1
|
-
# Nielsen heuristics as concrete checks
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
|
8
|
-
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
# Nielsen and AI/agentic heuristics as concrete checks
|
|
2
|
+
|
|
3
|
+
Translate every heuristic into an observable defect tied to a severity (`P0`–`P3`), evidence (`file:line` or rendered state), and concrete fix. Never average away a `P0` with a numeric score.
|
|
4
|
+
|
|
5
|
+
## Severity mapping (P0–P3)
|
|
6
|
+
|
|
7
|
+
| Severity | Heuristic failure bar | Example |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **P0** | Task blocker, accessibility/floor breach, data loss, silent destructive action, fabricated claim/citation | Primary submit button unreachable by keyboard; agent deletes records without approval or undo; invented metric/citation |
|
|
10
|
+
| **P1** | Major workflow breakdown, missing recovery, misleading system state, wrong platform idiom | Error wipes entered form values; streaming AI response cannot be stopped; mobile back gesture loses unsaved sheet draft |
|
|
11
|
+
| **P2** | Comprehensibility, efficiency, or trust defect | Inconsistent action labels (`Archive` vs `Remove`); opaque tool-call spinner for > 10s; raw HTTP 500 error string |
|
|
12
|
+
| **P3** | Polish / craft friction with intact task flow | Minor optical misalignment, redundant microcopy, slightly sluggish non-blocking hover transition |
|
|
13
|
+
|
|
14
|
+
## Core Nielsen heuristics
|
|
15
|
+
|
|
16
|
+
| Heuristic | Concrete checks | Default severity when broken |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| Visibility of system status | Immediate input acknowledgment (`≤ 100ms`); truthful progress; sync/save/upload state; stale/offline badge | P1–P2 (P0 if silent data loss) |
|
|
19
|
+
| Match system & real world | Domain vocabulary, locale units/dates, logical ordering; zero raw DB/API jargon | P2 |
|
|
20
|
+
| User control & freedom | Undo/cancel/Escape/back; reversible defaults; no trapped modal; interruption/draft recovery | P0–P1 |
|
|
21
|
+
| Consistency & standards | Identical action names/icons/positions; native platform back, menu, focus, and shortcut idioms | P1–P2 |
|
|
22
|
+
| Error prevention | Forgiving input parsing, proportionate destructive friction, smart defaults, idempotent submit | P1–P2 |
|
|
23
|
+
| Recognition over recall | Persistent visible labels, active filters, recent context, visible key legends (no hidden-command lock-in) | P2 |
|
|
24
|
+
| Flexibility & efficiency | Keyboard shortcuts, bulk actions, saved views/filters that accelerate experts without cluttering novice flows | P2–P3 |
|
|
25
|
+
| Aesthetic & minimalist signal | Every region serves the task; zero decorative chrome, card-in-card clutter, or competing focal points | P2–P3 |
|
|
26
|
+
| Recognize, diagnose, recover | Plain-language cause + what was preserved + concrete recovery action; never blame user | P1 |
|
|
27
|
+
| Help & documentation | Contextual, searchable, consistent placement (WCAG 3.2.6); never a bandage for broken interaction | P2–P3 |
|
|
28
|
+
|
|
29
|
+
## AI, streaming, and agentic heuristics
|
|
30
|
+
|
|
31
|
+
Audit every LLM, copilot, or autonomous workflow against these five criteria:
|
|
32
|
+
|
|
33
|
+
| Heuristic | Concrete check | Failure signal |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| **Trust calibration** | Clearly distinguish deterministic facts, tool outputs, and probabilistic model generations; surface uncertainty honestly | Presenting unverified model guesses with authoritative badge styling or fake confidence percentages |
|
|
36
|
+
| **Cancellation & interruption** | Visible, keyboard-reachable Stop/Abort control stays active throughout streaming and multi-step tool runs | Disabled input or runaway agent loop with no way to halt generation or side effects |
|
|
37
|
+
| **Partial output safety** | Stopping or network drop preserves already-streamed tokens cleanly, renders unclosed markdown/code blocks safely, and supports retry/edit | Partial answer disappears on abort or broken code fence corrupts the surrounding page layout |
|
|
38
|
+
| **Provenance & grounding** | Every citation, file reference, or data claim links to an inspectable real source or explicitly marks `unverified` / `no source` | Dead/hallucinated URLs, unlinked footnote numbers, or hidden tool queries |
|
|
39
|
+
| **Side-effect approval & undo** | External writes, sends, deletes, or spending require explicit human-in-the-loop preview/approval OR verifiable one-click undo | Agent silently mutates state or fires external requests behind a single ambiguous “Continue” click |
|
|
40
|
+
|
|
41
|
+
## Architectural / DIY Slop audit checks
|
|
42
|
+
|
|
43
|
+
Actively inspect the codebase and rendered flows for structural laziness—even when visual screenshots appear tidy:
|
|
44
|
+
|
|
45
|
+
| Defect category | Concrete evidence to hunt | Default severity | Concrete fix |
|
|
46
|
+
|---|---|---|---|
|
|
47
|
+
| **Stubs & omitted implementation** | `// TODO`, `// FIXME`, `// ... rest`, unimplemented branches in active components/routes | **P0–P1** | Implement the in-scope behavior completely or surface an explicit blocker before delivery |
|
|
48
|
+
| **Dead handlers & fake links** | `onClick={() => {}}`, `onSubmit={() => {}}`, `console.log`-only buttons, `href="#"` / `javascript:void(0)` nav links | **P0–P1** | Wire real state/navigation transitions or remove unbacked affordances |
|
|
49
|
+
| **Unwired mobile navigation** | Hamburger/menu toggle without open/close state, missing focus trap/Escape, or silently dropped desktop routes | **P1** | Wire complete accessible drawer/sheet navigation preserving task parity across breakpoints |
|
|
50
|
+
| **Unapproved mock data as live truth** | Hardcoded 3-item arrays, fake `+24.5%` KPI deltas, invented testimonials/logos presented without user request or demo labeling | **P0** | Bind real data source, render truthful empty/loading states, or visibly label user-requested fixtures |
|
|
51
|
+
| **Lazy DIY complex widgets** | Hand-rolled `<div>` modals/drawers, `contenteditable` rich text, `<textarea>`-over-`<pre>` code editors, inline SVG fake charts, unvirtualized >500-row tables, custom mouse-only DnD, `setTimeout` toast divs without `aria-live`, hand-rolled calendar math | **P1** | Replace with the vetted purpose-built library or native platform primitive mapped in `.pixelcraft/plan.md` |
|
|
52
|
+
| **Lazy platform defaults** | Unwaived Tkinter for greenfield Python desktop, unjustified Electron shell, raw Flexbox HTML email, `window.print()` publication PDF, bare `print()` TUI | **P1–P2** | Upgrade to the appropriate surface craft stack or record an explicit user waiver with trade-offs |
|
|
53
|
+
| **Untouched starter / arbitrary-value sprawl** | Unmodified `shadcn/ui` default zinc `:root` tokens on greenfield/redesign work; scattered Tailwind `bg-[#...]`, `p-[13px]` literals | **P2** | Author semantic DTCG/CSS tokens from the committed direction card and replace scattered literals |
|
|
54
|
+
|
|
55
|
+
## Multi-surface defect pairs (vague vs. actionable)
|
|
56
|
+
|
|
57
|
+
| Surface | Reject (vague taste prose) | Require (concrete evidence-backed finding) |
|
|
58
|
+
|---|---|---|
|
|
59
|
+
| **Web** | “The modal UX feels clunky.” | `P1` (`rendered`, `src/BillingModal.tsx:84`): Pressing `Esc` closes the upgrade dialog without warning, discarding 6 entered billing fields, and drops focus to `document.body`. Fix: guard dirty state and return focus to `#upgrade-btn`. |
|
|
60
|
+
| **Mobile** | “Buttons are hard to tap.” | `P1` (`rendered`, `ios/FilterBar.swift:42`): Filter chips measure `28×28 pt` with `2 pt` spacing below the 44 pt iOS touch baseline, causing mis-taps on narrow screens. Fix: expand hit area to `44×44 pt` with `8 pt` gap. |
|
|
61
|
+
| **Desktop** | “Keyboard support needs polish.” | `P1` (`rendered`, `src/main/menu.ts:51`): Settings window omits native `Cmd+,` / `Ctrl+,` shortcut and traps Tab inside custom tab strip; `Escape` does not dismiss unsaved popover. Fix: wire native menu accelerator and roving focus. |
|
|
62
|
+
| **TUI** | “Terminal colors are confusing.” | `P1` (`static`/`rendered`, `tui/status.py:118`): Error and success rows differ only by red/green ANSI foreground, becoming indistinguishable under `NO_COLOR=1` and monochrome terminals. Fix: prefix status column with `[OK]` / `[ERR]` tokens. |
|
|
63
|
+
| **Data app** | “Dashboard loading is jarring.” | `P2` (`rendered`, `app/overview.py:92`): Changing the date filter reruns the full page script, resetting table sort and scrolling back to top without pending state. Fix: scope reactive fragment/state persistence and show inline updating status. |
|
|
@@ -1,26 +1,53 @@
|
|
|
1
1
|
# Persona walkthrough protocol
|
|
2
2
|
|
|
3
|
-
Personas are hypothesis generators, not simulated users and not evidence of actual human behavior.
|
|
3
|
+
Personas are hypothesis generators, not simulated users and not evidence of actual human behavior. Never claim a persona walkthrough proves user satisfaction; use it to expose concrete interaction, input, and recovery gaps, then verify each hypothesis against code or rendered captures.
|
|
4
4
|
|
|
5
5
|
## Walkthrough cast
|
|
6
6
|
|
|
7
7
|
| Persona lens | Force through the walkthrough |
|
|
8
8
|
|---|---|
|
|
9
|
-
| confused novice |
|
|
10
|
-
| impatient expert | keyboard/bulk/shortcut path; repeats
|
|
11
|
-
| screen-reader user | semantic name/order/state/status;
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
9
|
+
| confused novice | zero domain knowledge; relies on visible labels/help; trips over jargon or hidden controls |
|
|
10
|
+
| impatient expert | keyboard/bulk/shortcut path; repeats frequent tasks; exposes latency and modal friction |
|
|
11
|
+
| screen-reader user | semantic name/role/order/state/status; catches visual-only grouping and silent dynamic updates |
|
|
12
|
+
| Voice Control user | speaks visible labels verbatim (WCAG 2.5.3 Label in Name); tests duplicate labels and icon-only controls |
|
|
13
|
+
| Switch Access / single-input user | linear step-scanning count, logical focus grouping, zero hover-only or drag-only barriers |
|
|
14
|
+
| magnified / 200–400% zoom user | 320 CSS px-equivalent reflow, no horizontal scrolling, sticky headers/bars never occluding focus or forms |
|
|
15
|
+
| one-hand mobile user | bottom thumb reach, virtual keyboard occlusion, target spacing, mid-task interruption |
|
|
16
|
+
| low-bandwidth / offline user | slow-3G latency, offline draft preservation, stale-cache labeling, idempotent retry without duplicates |
|
|
17
|
+
| non-Latin / RTL / IME user | text expansion, RTL mirroring, bidi isolation, locale formats, CJK/Vietnamese/Arabic IME composition |
|
|
18
|
+
| stressed / rushed user | low working memory, interruptions, error recovery, accidental destructive-action risk |
|
|
19
|
+
|
|
20
|
+
## Concrete modality stress checks
|
|
21
|
+
|
|
22
|
+
Run the applicable checks instead of generic roleplay:
|
|
23
|
+
|
|
24
|
+
- **Voice Control:** inspect computed accessible names against visible labels (`Label in Name`, WCAG 2.5.3). Reject icon-only controls lacking clear spoken names or pages with five identical `"Edit"` buttons lacking disambiguating context.
|
|
25
|
+
- **Switch Access:** count Tab/scan stops from page entry to the primary action; verify skip links, landmark grouping, single-pointer alternatives to dragging (`2.5.7`), and zero hover-only triggers.
|
|
26
|
+
- **200–400% zoom & 320 px reflow:** zoom desktop viewport to 200% and 400% (or render at `320 px` logical width). Verify zero horizontal scrollbars for prose/forms, zero clipped buttons, and sticky headers/banners not swallowing active fields (`2.4.11`).
|
|
27
|
+
- **Non-Latin IME composition:** test entering Japanese/Chinese/Korean/Vietnamese text where `Enter` confirms an IME candidate (`compositionstart` / `compositionend` / `isComposing`). Confirm `Enter` during composition does **not** prematurely submit the form, close a combobox, or strip combining marks/diacritics.
|
|
28
|
+
- **Low-bandwidth / offline:** throttle network to slow 3G and toggle offline mid-form or mid-navigation. Confirm pending state appears within `100 ms`, user input survives disconnect, cached data is marked stale, and retrying does not double-submit.
|
|
29
|
+
|
|
30
|
+
## Walkthrough record schema
|
|
31
|
+
|
|
32
|
+
Log each walkthrough concisely so hypotheses stay auditable and clearly separated from confirmed defects:
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
### Walkthrough: <Task name> — Lens: <Persona lens>
|
|
36
|
+
- Entry point & preconditions: <route/screen, auth state, viewport/device, locale, network>
|
|
37
|
+
- Success criterion: <observable end state>
|
|
38
|
+
|
|
39
|
+
| Step | User goal | Perceived affordance | Friction / ambiguity | Evidence (`rendered` / `static` / `model-judgment` / `not-checked`) | Promoted finding? |
|
|
40
|
+
|---|---|---|---|---|---|
|
|
41
|
+
| 1 | Submit Japanese search query | Search field + Enter | `keydown` submits while `e.isComposing === true` (`SearchBar.tsx:48`) | `static` (needs live IME test) | Yes → P1 |
|
|
42
|
+
| 2 | Confirm delete | Modal button says "Yes" | Consequence unclear if user skipped body | `rendered` (screenshot `modal.png`) | Yes → P2 |
|
|
43
|
+
```
|
|
17
44
|
|
|
18
45
|
## Protocol
|
|
19
46
|
|
|
20
|
-
1. Pick 2–4
|
|
21
|
-
2.
|
|
22
|
-
3.
|
|
23
|
-
4.
|
|
24
|
-
5.
|
|
47
|
+
1. Pick 2–4 lenses matched to the highest-risk surface constraints; do not perform theatrical personas unrelated to risk.
|
|
48
|
+
2. State exact task, entry point, context, constraints, and success criterion before stepping through.
|
|
49
|
+
3. Walk without author knowledge: record what is perceived, what is ambiguous, what happens on error/cancel, and what breaks on reverse navigation.
|
|
50
|
+
4. Promote a walkthrough hypothesis to a ranked finding only when grounded in code (`static`) or live inspection (`rendered`).
|
|
51
|
+
5. Explicitly record what stayed `not-checked` because a real assistive technology, IME, or hardware device was unavailable.
|
|
25
52
|
|
|
26
53
|
Do not use personas to launder taste (“the expert would find this ugly”). Use them to expose missing cues, memory burden, unsafe assumptions, and recovery failures.
|
|
@@ -1,38 +1,78 @@
|
|
|
1
|
-
# Polish
|
|
1
|
+
# Comprehensive Studio-Grade Polish & Delivery Gate
|
|
2
2
|
|
|
3
|
-
Polish refines an accepted direction; do not use it to restart visual exploration.
|
|
3
|
+
Polish refines and hardens an accepted direction into a release-ready product; do not use it to restart visual exploration or silently override an approved design. Every finding from this gate requires severity (`P0`–`P3`), observable location (`file:line` or capture crop), concrete fix, and an honest evidence label (`rendered`, `static`, `model-judgment`, `not-checked`, or `waived`).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
---
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- equalize outer content edges and intentional asymmetry; remove accidental 1–2px drift where units allow;
|
|
9
|
-
- verify spacing rhythm at empty/compact/long-content states;
|
|
10
|
-
- test narrow/wide/text-scaled/RTL/window-resize/safe-area/keyboard occlusion.
|
|
7
|
+
## 1. Art Direction & 5-Second Hierarchy
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
| Check | Pass bar | Typical defect & severity |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| **5-second hierarchy & 1–2 primary CTAs** | Within 5 seconds (and under a squint/blur test), a first-time user identifies what the surface is, why it matters, and the **1–2 primary CTAs** without competing equal-weight buttons | `P1`/`P2`: 4+ equal-prominence CTAs, buried primary action, or hierarchy dependent on color alone |
|
|
12
|
+
| **Bespoke subject commitment (no SaaS clone)** | Removing brand names and copy still leaves a domain-specific layout, material, index, or signature moment—never an untouched starter template, bento cliché, or purple-glow AI clone | `P2`: interchangeable boilerplate chrome across unrelated domains |
|
|
13
|
+
| **Intentional type palette (`≤ 2` families + `1` mono)** | At most **2 active font families + 1 monospace** (`display` + `body/UI` + optional `code/data` mono) unless explicitly justified by the brief; unused weights/styles purged | `P2`/`P3`: 4+ competing font families or synthetic bold/oblique |
|
|
14
|
+
| **Prose reading measure (`45–75ch`)** | Continuous Latin prose columns stay within **`45–75ch`** (`60–70ch` target; equivalent CJK/RTL density) rather than stretching edge-to-edge across wide desktop viewports | `P2`: `110ch+` wall-to-wall paragraphs harming comprehension |
|
|
15
|
+
| **Unified icon & media language** | One consistent icon stroke weight, cap/join style, corner radius, and optical scale (`1cap`); real or purpose-built domain media—zero cheesy stock photos, `lorem ipsum`, or invented testimonials/KPIs | `P0` for fake proof/`lorem ipsum` in production UI; `P2`/`P3` for mixed icon sets |
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
- loading/success/error/empty/offline/permission/concurrency states;
|
|
16
|
-
- target size/hit area/focus visibility/keyboard and controller path;
|
|
17
|
-
- scroll restoration/back/escape/deep-link behavior.
|
|
17
|
+
---
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## 2. Studio Invisible Craft (`B1–B6`)
|
|
20
20
|
|
|
21
|
-
-
|
|
22
|
-
- scan truncation, capitalization, punctuation, plural/gender, mixed bidi, long compounds, numeric/date/locale formats;
|
|
23
|
-
- remove filler, blame, fake enthusiasm, and repeated vague links.
|
|
21
|
+
Verify the micro-physical details that separate studio software from fragile prototypes (see `pixelcraft-craft` references for full platform idioms):
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
| Law | Concrete inspection check | Pass evidence | Severity if broken |
|
|
24
|
+
|---|---|---|---|
|
|
25
|
+
| **`B1` Frequency-calibrated motion & warm tooltips** | High-frequency actions (`50–100+×/day`: command palettes, menus, tab/row switches) finish in **`0–100ms`** (`0ms` on key-repeat); drawers/modals **`150–220ms`**; expressive onboarding/first-reveal **`300–500ms`** (non-blocking). Once one tooltip opens, sibling tooltips open with **`0ms` delay and `0ms` fade**. | Interaction trace / stylesheet / spring config inspection | `P2` (sluggish daily flow) / `P3` |
|
|
26
|
+
| **`B2` Optical alignment & concentric radii** | Asymmetric glyphs (play triangles `▶`, chevrons, arrows, send icons) offset **`+1–2` units (`px`/`pt`/`dp`) toward visual mass** inside circular/square bounds. Nested rounded containers obey **`R_outer = R_inner + padding`** (clamped to `0` when `padding >= R_outer`). Single-line buttons/pills balance top vs bottom text-box padding optically against cap-height/baseline metrics. | High-zoom rendered crop + computed radius/padding check | `P3` (or `P2` when visibly pinched/crooked on primary chrome) |
|
|
27
|
+
| **`B3` Origin-aware scaling & asymmetric open/close** | Popovers, menus, and contextual sheets scale subtly (**`0.95 → 1.0`**, never `0 → 1` ballooning from screen center) anchored to the trigger origin. Exit runs **faster than enter (`~100–130ms` close vs `~160–200ms` open)**. Gesture springs preserve release velocity without rubbery bounce (`ζ ≥ 0.85`). | Video/frame capture or transition definition | `P2` / `P3` |
|
|
28
|
+
| **`B4` Dark-surface luminance & `1px` specular edges** | Dark mode never inverts light colors mechanically or drops `#000000` shadows onto dark cards. Higher z-layers step up **`+5% to +8%` OKLCH lightness** (`#000000` reserved for OLED wearable/battery or explicit high-contrast modes), separate stacked surfaces with a **`1px` subtle top/inner specular highlight** (`rgba(255,255,255,0.07–0.12)`), desaturate/lift semantic accents to prevent halation (`WCAG AA` + `APCA |Lc|`), and pair translucent blur with **`160–180%` saturation / OS vibrancy** plus a solid opaque fallback under Reduced Transparency. | Dark-mode + reduced-transparency rendered captures & contrast check | `P1` (contrast/halation failure) / `P2` (muddy flat layers) |
|
|
29
|
+
| **`B5` Hit-slop, Safe Triangle & pointer capture** | Compact `24–28` unit icon controls expand invisible hit-slop by **`+6–10` units per side**. Hover submenus/megamenus implement a **Safe Triangle diagonal cursor corridor** (or `120–180ms` directional grace timer) with keyboard parity. Drag sliders, scrubbers, and splitters lock **pointer/gesture capture** until release + `Escape` cancel + fine-stepping keys. | Pointer/touch hit-box & diagonal menu traversal test | `P1` (target floor `<24` units or collapsing menu blocking task) / `P2` |
|
|
30
|
+
| **`B6` Tabular numerals & true minus (`U+2212`)** | Every live counter, timer, price, KPI delta, progress %, scrubber, and table numeric column locks **tabular figures** (`tnum`) and uses true minus **`−` (`U+2212`)** rather than ASCII `-` (`U+002D`) for negative display values. | Rendered column alignment & live-tick jitter check | `P2` (jittering timer/misaligned financial table) / `P3` |
|
|
26
31
|
|
|
27
|
-
|
|
28
|
-
- radius/elevation/border/shadow vary semantically rather than uniformly;
|
|
29
|
-
- image crop/provenance/alt treatment correct; icon optical sizes consistent;
|
|
30
|
-
- dark/light/high-contrast themes preserve semantic meaning and state visibility.
|
|
32
|
+
---
|
|
31
33
|
|
|
32
|
-
##
|
|
34
|
+
## 3. Non-Happy-Path, Accessibility & Input Completeness
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
36
|
+
| Surface boundary | Required studio-grade behavior | Severity if missing |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| **`loading` & skeleton stability** | Immediate acknowledgment (`≤ 100ms`), geometry-matched skeleton or progress (`> 1s` progress indicator, `> 10s` cancellable action) with zero layout shift and zero fake data | `P1` / `P2` |
|
|
39
|
+
| **`empty` (first-use & no-results)** | First-use explains value + direct creation/import CTA; search/filter `no-results` shows active query + one-click clear/broaden action | `P1` / `P2` |
|
|
40
|
+
| **`error` & input preservation** | Specific cause + preserved user input + actionable recovery step; never wipes typed forms or shows vague `"Something went wrong"` | `P1` |
|
|
41
|
+
| **`offline` & degraded network** | Explicit stale/offline indicator, draft preservation, idempotent retry, and double-submit protection | `P1` |
|
|
42
|
+
| **`404` / `500` / fatal recovery boundary** | Branded/idiomatic not-found and unhandled-error recovery screens with working navigation back to safe state and preserved draft where possible | `P1` |
|
|
43
|
+
| **`permission-denied` & auth expiry** | Plain-language explanation of missing role/OS permission + recovery path; session expiry preserves unsaved work across re-authentication | `P1` |
|
|
44
|
+
| **Sticky-chrome focus unobscured (`WCAG 2.4.11`/`2.4.12`)** | Sequential forward/reverse `Tab` and controller focus never hide behind sticky headers, toolbars, banners, or virtual keyboards | `P0` / `P1` |
|
|
45
|
+
| **IME composition `Enter` / `Escape` guard** | Active composition in Telex/VNI, Kana→Kanji, Hangul, or Pinyin **never** prematurely submits search, chat, forms, or inline edits (`Enter`/`Escape` commits or cancels candidates only) | `P1` |
|
|
46
|
+
| **Short-label expansion (`+50–100%`) & `Unicode NFC` glyphs** | Short buttons/tabs/badges survive **`+50–100%`** growth (`+30–40%` for prose) without fixed-width clipping; `Unicode NFC` normalization and stacked diacritics (`ư, ơ, ệ, ử, ẫ`) render with zero mid-word system-font fallback | `P1` / `P2` |
|
|
47
|
+
| **Reduced motion, reduced transparency & `EAA` readiness** | Non-vestibular motion path, opaque fallback for glass surfaces, `200%` text zoom, `320px` reflow, single-pointer drag alternative (`2.5.7`), and EU `EAA` / `EN 301 549` Accessibility Statement readiness when in B2C EU scope | `P0` / `P1` |
|
|
37
48
|
|
|
38
|
-
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 4. Stack-Neutral Engineering & Commercial Handoff
|
|
52
|
+
|
|
53
|
+
Never sign off a build as studio-ready on visual appearance alone:
|
|
54
|
+
|
|
55
|
+
- [ ] **Zero dead controls or stubs (`P0`/`P1`):** zero `// TODO` / `FIXME` placeholders in requested flows, zero ellipsis-truncated source blocks, zero no-op callbacks/commands/links, zero unwired mobile drawers/menus, and zero unapproved hardcoded mock arrays posing as live data.
|
|
56
|
+
- [ ] **Clean strict static checks & dependency audit (`P1`):** compiler, typechecker, analyzer, linter, and ecosystem dependency vulnerability audit pass cleanly (`0` errors, `0` unaddressed critical/high advisories) without blanket suppressions.
|
|
57
|
+
- [ ] **Reproducible `< 10m` setup & isolated staging (`P1`):** pinned lockfile/toolchain manifest, configuration template, single-command bootstrap + verification path, and staging environment strictly isolated from production credentials/data.
|
|
58
|
+
- [ ] **Stack-native component / screen state previews (`P2`):** isolated state catalog where supported by the target stack, covering non-happy-path states (`loading`, `empty`, `error`, `offline`, `permission-denied`).
|
|
59
|
+
- [ ] **Zero client-exposed secrets (`P0`):** no private keys, service-role tokens, signing credentials, or internal endpoints leaked in client source, bundles, binaries, or logs.
|
|
60
|
+
- [ ] **Commercial license manifest, owner transfer & 30–90d warranty (`P0`/`P1`):** commercial embedding/redistribution licenses verified for all shipped fonts, icons, imagery, 3D, and audio; root billing/admin ownership boundary clean for domains, store accounts, analytics/error DSNs, CMS, and signing keys; target regulatory/store regime checked; and **30–90 day defect-warranty / severity-triage handoff note** documented for commercial deliveries.
|
|
61
|
+
- [ ] **Golden Evidence Rule (`Rule #0.3`) (`P0`):** every verification row carries `rendered`, `static`, `model-judgment`, `not-checked`, or `waived` with exact runtime/viewport/tool scope, and **`static` or `model-judgment` NEVER counts as `pass` / accepted for visual appearance, measured performance budgets, or interactive/assistive accessibility requirements** (supply `rendered` evidence, or record `not-checked` with concrete reason or `waived` with explicit user sign-off, scope, and consequence).
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 5. Mandatory `Scan → Fix → Rescan` Exit Gate & 3-Tier Final Grading
|
|
66
|
+
|
|
67
|
+
Never treat this document as passive reading. Before reporting completion:
|
|
68
|
+
|
|
69
|
+
1. **Walk Sections 1–4 plus the active platform skill's `Pre-submit checklist` row-by-row** against the actual implementation and rendered captures.
|
|
70
|
+
2. **Execute every applicable deterministic scan, build gate, and acceptance manifest check:**
|
|
71
|
+
- `node <pixelcraft-review>/scripts/slop-scan.mjs <target> --fail-on p2`
|
|
72
|
+
- `node <pixelcraft-visual-qa>/scripts/check-contrast.mjs <tokens-or-css>` (plus `check-email.mjs`, `check-tui.mjs`, `check-pdf.mjs` where surface matches)
|
|
73
|
+
- Active-language strict compiler, typechecker, linter, dependency vulnerability audit, and automated test suite
|
|
74
|
+
- `node <pixelcraft-review>/scripts/check-acceptance.mjs .pixelcraft/acceptance.json`
|
|
75
|
+
3. **Loop until passing (`0` `fail` / `0` `pending`):** If any scan returns `P0`–`P2` findings, any build/test check exits non-zero, or any checklist / `.pixelcraft/acceptance.json` row is `fail`, `pending`, or violates `Rule #0.3`, **repair the root cause and re-run the exact scans and `check-acceptance.mjs` from scratch** until passing:
|
|
76
|
+
- **`FAIL` (`exit 1` — Not Accepted):** any `fail`/`pending` row or `Rule #0.3` `static`/`model-judgment` violation remains. **Keep fixing and re-verifying; never claim completion.**
|
|
77
|
+
- **`PASS_STUDIO_10K_20K` (`exit 0` — Studio $10k–$20k Bar)** *(or `PENDING_RENDERED_ENV` `exit 2` strictly when external physical hardware/store runtime is unavailable here)*: all Baseline `A1–A8` + 12-row Surface Matrix + platform thresholds/deliverables pass on target environments (`rendered` where required) with honest `not-checked` reasons or user-signed `waived` scope/consequence.
|
|
78
|
+
- **`EXCEEDS_STUDIO` (`exit 0` — Exceeds Bar):** meets `PASS_STUDIO_10K_20K` plus real-user usability research, A/B experimentation, deep multi-locale validation, or high-scale systems integration.
|