@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
|
---
|
|
2
2
|
name: pixelcraft-plan
|
|
3
|
-
description:
|
|
3
|
+
description: Plans greenfield and brownfield UI work, runs Socratic Grill-Me discovery interviews for ambiguous or greenfield briefs, selects platforms and technology stacks while rejecting lazy defaults, maps complex capabilities to purpose-built libraries, checks dependency freshness and lockfile reproducibility, records architecture decisions (ADR), and produces the .pixelcraft/plan.md consumed by later Pixelcraft skills. Use when starting a product or feature, brainstorming or shaping an ambiguous idea, choosing a stack, mapping an existing brownfield codebase, verifying library versions, or resolving material scope and architecture decisions.
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
version: 0.1.0
|
|
@@ -8,7 +8,17 @@ metadata:
|
|
|
8
8
|
|
|
9
9
|
# Pixelcraft plan
|
|
10
10
|
|
|
11
|
-
This skill runs **first**, before `pixelcraft-direction`, UX specification, platform implementation, review, or brand generation. Its job is evidence before taste:
|
|
11
|
+
This skill runs **first**, before `pixelcraft-direction`, UX specification, platform implementation, review, or brand generation. Its job is evidence before taste: inspect the codebase that exists, grill unresolved product/IA/visual/stack branches one question at a time, and choose the stack and libraries that should exist.
|
|
12
|
+
|
|
13
|
+
## Adaptive discovery modes
|
|
14
|
+
|
|
15
|
+
Always inspect the repository, manifests, tokens, and supplied artifacts **first** (never ask the user facts readable from the repo), then choose the matching mode:
|
|
16
|
+
|
|
17
|
+
| Mode | Trigger | Required behavior |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| **Grill-Me / Deep Shaping** | Greenfield product, vague/ambiguous brief, major redesign, or user asks to brainstorm / grill / compare options | Read [references/grill-me-protocol.md](references/grill-me-protocol.md). Walk unresolved decision branches **one principal question per turn** with 1-sentence stakes + 2–4 concrete options leading with **(Recommended)** + trade-offs. Stop once actionable. |
|
|
20
|
+
| **Fast Confirm** | Clear feature or scoped surface with 1–2 undecided design, IA, or stack/library choices | Read [references/discovery-interview.md](references/discovery-interview.md). Summarize observed evidence, propose concrete recommended defaults + trade-offs in one focused turn, and confirm before coding. |
|
|
21
|
+
| **Direct Execution** | Narrow bug fix, copy tweak, visual polish, behavior-preserving refactor, or already-approved design spec | Skip discovery interviewing. Record a concise scoped `.pixelcraft/plan.md`, use reversible defaults for trivia, and proceed directly. |
|
|
12
22
|
|
|
13
23
|
## Brownfield/greenfield decision
|
|
14
24
|
|
|
@@ -24,44 +34,70 @@ Record the task route separately: new project, extend existing product, edit/fix
|
|
|
24
34
|
|
|
25
35
|
## Brownfield workflow
|
|
26
36
|
|
|
27
|
-
1. **Scope the read.** Enumerate repository roots, packages/apps, generated/vendor directories, and ownership boundaries. Do not skim only `package.json`.
|
|
37
|
+
1. **Scope the read (Codebase-First Gate).** Enumerate repository roots, packages/apps, generated/vendor directories, and ownership boundaries. Do not skim only `package.json`.
|
|
28
38
|
2. **Inventory systematically.** Use [references/repo-discovery.md](references/repo-discovery.md): languages/frameworks, entry points, routing/screens, design tokens/theme/components, styling approach, state management, i18n, tests/visual tooling, CI, packaging, runtime constraints, accessibility evidence, and legal/privacy constraints.
|
|
29
|
-
3. **Distinguish fact from inference.** Cite key files in the repo map. Classify material facts as user-provided, repo-observed, artifact-observed, analytics
|
|
39
|
+
3. **Distinguish fact from inference.** Cite key files in the repo map. Classify material facts as user-provided, repo-observed, artifact-observed, research/analytics, assumption, or unknown. Mark unread/generated/ignored areas explicitly.
|
|
30
40
|
4. **Intake design inputs.** Use [references/design-input.md](references/design-input.md) for Figma, screenshots, mockups, existing UI, prototypes, and reference imagery: classify specification versus inspiration, record provenance/version/breakpoints/constraints, assess completeness, and decide whether `pixelcraft-handoff` is needed.
|
|
31
41
|
5. **Map existing authority.** Decide whether tokens/components/conventions are authoritative, partial, inconsistent, or absent. Existing project decisions outrank Pixelcraft taste.
|
|
32
|
-
6. **
|
|
33
|
-
7. **
|
|
42
|
+
6. **Resolve material open decisions.** After inspecting the repo and artifacts, enter **Grill-Me / Deep Shaping** ([references/grill-me-protocol.md](references/grill-me-protocol.md)) or **Fast Confirm** ([references/discovery-interview.md](references/discovery-interview.md)) if outcome, anti-goals, IA, visual ambition, or architecture remains unresolved. Ask only what the repo and docs cannot answer.
|
|
43
|
+
7. **Apply the Capability Library Gate & check versions.** Map any complex UI capability (editor, chart, >500-row table, command palette, drawer, toast, carousel, search, DnD, calendar, map, node graph, PDF, media player, complex form) to a vetted library using [references/stack-selection.md](references/stack-selection.md). Verify version-sensitive APIs via [references/stack-freshness.md](references/stack-freshness.md).
|
|
44
|
+
8. **Write `.pixelcraft/plan.md` & initialize `.pixelcraft/acceptance.json`** using [references/plan-template.md](references/plan-template.md) and `node <pixelcraft-review>/scripts/check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`. Lock concrete numeric/device thresholds upfront alongside discovery mode/outcome, anti-goals, platform skill/reference routing, capability libraries, and the **Mandatory Completion Gate & Scan-Until-Clean Contract (Definition of Done)** binding the exact scanners, build/test commands, checklists, and `check-acceptance.mjs` verification that must pass before stopping.
|
|
34
45
|
|
|
35
46
|
Before modifying an existing surface, read the affected entry point, implementation, shared conventions/tokens, state or data flow, resolved dependencies and relevant tests or fixtures. Record inspected paths or symbols and what each establishes. Capture the current task outcome or failure where tools allow; otherwise record which baseline is `not-checked`. For a redesign or rebuild, map what must be preserved, what may change, and the regression check for each material contract. An implementation replacement is not authorization to remove existing behavior.
|
|
36
47
|
|
|
37
48
|
## Greenfield workflow
|
|
38
49
|
|
|
39
|
-
1. **
|
|
40
|
-
2. **
|
|
41
|
-
3. **
|
|
42
|
-
4. **
|
|
43
|
-
5. **
|
|
50
|
+
1. **Inspect supplied context and run adaptive discovery.** Review the brief, conversation, and artifacts. Unless the brief is fully specified or the user explicitly asks you to decide and build directly, run **Grill-Me / Deep Shaping** ([references/grill-me-protocol.md](references/grill-me-protocol.md)) one principal question per turn—covering **Business KPIs & 1–2 Primary CTAs**, Anti-Goals/Hate-List, **5-Second Hierarchy & Content/CMS Ownership**, Visual Ambition, Stack Craft Bar, and **Target Regulatory/Store Regime** + Critical States.
|
|
51
|
+
2. **Intake technical & commercial constraints before candidates:** target platforms/input modalities, audience/locales (`IME`/RTL), team languages and operational experience, content/CMS authoring model, offline/network model, performance/hardware constraints, **regulatory & store regimes** (App Store, Google Play, Chrome `MV3`, EU `EAA` / `EN 301 549`, Steam Deck/Console `TRC`, Commercial Print `PDF/X-4`, Bulk Email `RFC 8058`), existing backend/protocol, maintenance horizon, budget/timeline, hard exclusions, and supplied design inputs ([references/design-input.md](references/design-input.md)).
|
|
52
|
+
3. **Reject lazy defaults and generate candidates across languages.** Use [references/stack-selection.md](references/stack-selection.md). Reject Tkinter for greenfield Python desktop, unjustified Electron wrappers, Streamlit for multi-user/DAG BI, bare `print()` TUIs, WebView consumer mobile apps, `window.print()` PDFs, raw-Flexbox email, and DIY web widgets unless explicitly waived.
|
|
53
|
+
4. **Build a weighted matrix & resolve sub-stack libraries.** Reject candidates that fail hard constraints regardless of total score. Complete the **Sub-Stack Capability → Purpose-Built Library Gate** so no fragile DIY editors, charts, tables, drawers, toasts, carousels, or search widgets slip into Build.
|
|
54
|
+
5. **Verify and recommend one stack plus runner-up.** Apply [references/stack-freshness.md](references/stack-freshness.md) before finalizing versions and APIs. Record why the runner-up lost. Any web choice must be justified against native/TUI/server-rendered alternatives; TypeScript/React is never an unexamined default, nor artificially avoided when its ecosystem is the best fit.
|
|
55
|
+
6. **Write `.pixelcraft/plan.md` & initialize `.pixelcraft/acceptance.json`** (`check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`) before visual direction begins—locking concrete numeric/device thresholds and the **Mandatory Completion Gate & Scan-Until-Clean Contract**—and keep the **Creative Direction → Plan Feedback Loop** open: if `pixelcraft-direction` wins approval for a concept needing Rive, WebGPU, Typst, Tauri, or a native runtime, update `.pixelcraft/plan.md` cleanly before Build.
|
|
44
56
|
|
|
45
57
|
## Required plan contents
|
|
46
58
|
|
|
47
|
-
The plan must state: chosen stack; platform skill and framework reference by name; surfaces/screens; mode per surface; UX flows/state matrices to design; existing design-system authority; design-input classification/provenance/completeness and
|
|
59
|
+
The plan must state: **business KPIs & 1–2 primary CTAs**; **5-second hierarchy goal**; **content/CMS ownership**; **target regulatory/store regime**; chosen stack and rejected lazy defaults; platform skill and framework reference by name; Sub-Stack Capability → Purpose-Built Library mappings; surfaces/screens; mode per surface; UX flows/state matrices to design; existing design-system authority; design-input classification/provenance/completeness and handoff decision; i18n/accessibility/legal constraints; risks/unknowns; **agreed numeric/device budgets + initialized `.pixelcraft/acceptance.json` + the Mandatory Completion Gate & Scan-Until-Clean Contract (exact scanner commands `slop-scan --fail-on p2` / `check-*`, compiler/linter/dependency-audit/test commands, rendered QA / `finish-gate.mjs`, mandatory checklists `floor.md` + platform `Pre-submit` + `polish.md`, and `check-acceptance.mjs .pixelcraft/acceptance.json` blocking completion until `0` `fail`/`pending` rows with `Rule #0.3` honored)**; evidence classification for material facts; and open questions. Record the adaptive discovery mode (`Grill-Me` / `Fast Confirm` / `Direct Execution`), anti-goals/hate-list, user-selected decisions, accepted recommendations, assumptions, and approval gate status.
|
|
48
60
|
|
|
49
61
|
For adaptable surfaces, fill out the device class matrix in the plan before building. Name supported sizes and inputs, what changes in navigation, density and task controls, what stays equivalent, and how each applicable class or transition will be checked. Include height and aspect ratio, not just width.
|
|
50
62
|
|
|
63
|
+
## Iron Laws & Rationalization Table
|
|
64
|
+
|
|
65
|
+
- **IRON LAW 1:** Never ask the user facts readable from the repo, manifests, lockfiles, or supplied artifacts.
|
|
66
|
+
- **IRON LAW 2:** Never dump a multi-question questionnaire wall; walk unresolved branches **one principal question per turn** with **(Recommended)** options and trade-offs.
|
|
67
|
+
- **IRON LAW 3:** Never silently invent product scope, accept lazy defaults (Tkinter, unjustified Electron, raw Flexbox email, DIY modals/charts/editors), bypass design approval on undecided greenfield/redesign work, or write a plan without `.pixelcraft/acceptance.json` and a binding **Scan-Until-Clean Completion Gate**.
|
|
68
|
+
|
|
69
|
+
| Agent rationalization | Reality & required action |
|
|
70
|
+
|---|---|
|
|
71
|
+
| "The brief is short, so I'll just pick defaults and start coding fast." | Short greenfield briefs hide the highest-cost unknowns. Enter **Grill-Me / Deep Shaping** (one question at a time) unless the user explicitly told you to decide and build directly. |
|
|
72
|
+
| "I'll ask all 8 questions at once to save turns." | Question walls overwhelm users and ask downstream questions invalidated by upstream answers. Ask the single highest-leverage unresolved branch per turn. |
|
|
73
|
+
| "Tkinter / Streamlit / raw `<div>` modal / hand-coded SVG chart is quicker and avoids dependencies." | Lazy defaults and DIY substitutes fail accessibility, edge cases, and visual craft. Enforce the Lazy-Default Rejection and Sub-Stack Capability tables. |
|
|
74
|
+
| "Planning locked the stack, so I can't adopt the stronger creative concept." | Use the **Creative Direction → Plan Feedback Loop**: update `.pixelcraft/plan.md` cleanly when the approved direction warrants a better runtime or renderer. |
|
|
75
|
+
| "I remember the latest API for this library." | Training memory drifts. Verify current versions/APIs via docs/registry tools or mark `assumption` / `not-checked` explicitly. |
|
|
76
|
+
| "Verification details can wait until after I finish coding." | Unplanned verification gets skipped. Initialize `.pixelcraft/acceptance.json` and lock exact numeric thresholds, scan, build/test, and checklist exit gates into `.pixelcraft/plan.md` up front. |
|
|
77
|
+
|
|
51
78
|
## Hard rules
|
|
52
79
|
|
|
53
80
|
- Do not select a stack before inventorying hard constraints.
|
|
54
|
-
- Do not rely on training-data memory for version-sensitive APIs, config syntax, or
|
|
55
|
-
- Keep brownfield runtime and dependencies unless an upgrade is in scope. For
|
|
56
|
-
- Do not treat familiarity, hype, or example availability as evidence of fit.
|
|
57
|
-
- Do not hide uncertainty behind precise scores; annotate confidence.
|
|
81
|
+
- Do not rely on training-data memory for version-sensitive APIs, config syntax, or package versions; verify via available docs/registry tools or mark `assumption` / `not-checked`.
|
|
82
|
+
- Keep brownfield runtime and dependencies unless an upgrade is in scope. For new apps, commit a reproducible lockfile; never resolve floating `@latest` on every CI build.
|
|
58
83
|
- Do not overwrite an existing `.pixelcraft/plan.md` without preserving prior decisions and recording why they changed.
|
|
59
|
-
- Do not write implementation before
|
|
84
|
+
- Do not write implementation before `.pixelcraft/plan.md` and `.pixelcraft/acceptance.json` exist (with concrete numeric/device thresholds and the **Mandatory Completion Gate** populated) unless the user explicitly waives planning.
|
|
85
|
+
|
|
86
|
+
## Pre-submit checklist
|
|
87
|
+
|
|
88
|
+
- [ ] Codebase-first inspection completed and cited (zero questions asked about repo-observable facts).
|
|
89
|
+
- [ ] Correct adaptive mode chosen (`Grill-Me / Deep Shaping`, `Fast Confirm`, or `Direct Execution`) with **business KPIs & 1–2 primary CTAs**, **5-second hierarchy goal**, **content/CMS ownership**, **regulatory/store regime**, and anti-goals recorded before visual styling.
|
|
90
|
+
- [ ] Stack selected against hard constraints with lazy defaults explicitly rejected (or waived by user) and version sources cited or labeled `not-checked`.
|
|
91
|
+
- [ ] Every complex UI capability in scope mapped in the **Sub-Stack Capability → Purpose-Built Library Gate** (no DIY modals, editors, charts, large tables, search, toasts, drawers, or carousels).
|
|
92
|
+
- [ ] `.pixelcraft/acceptance.json` initialized (`check-acceptance.mjs --init <platform>`), concrete numeric/device thresholds agreed, and **Mandatory Completion Gate & Scan-Until-Clean Contract** (exact `slop-scan --fail-on p2`, `check-*`, compiler/audit/test, rendered QA, checklists, and `check-acceptance.mjs` verification) documented in `.pixelcraft/plan.md`.
|
|
93
|
+
- [ ] Approval boundary clear before handing off to `pixelcraft-direction` / `pixelcraft-ux` (no premature implementation on undecided scope).
|
|
60
94
|
|
|
61
95
|
## Reference routing
|
|
62
96
|
|
|
97
|
+
- Read [references/grill-me-protocol.md](references/grill-me-protocol.md) for the Socratic one-question-per-turn decision tree on greenfield, ambiguous, redesign, or brainstorm requests.
|
|
98
|
+
- Read [references/discovery-interview.md](references/discovery-interview.md) for adaptive discovery mode selection, Fast Confirm framing, decision memory, and approval boundaries.
|
|
63
99
|
- Read [references/repo-discovery.md](references/repo-discovery.md) for brownfield inventory order and ecosystem signal files.
|
|
64
100
|
- Read [references/design-input.md](references/design-input.md) when the task includes Figma, screenshots, mockups, prototypes, existing UI, or visual references.
|
|
65
|
-
- Read [references/stack-selection.md](references/stack-selection.md) for
|
|
101
|
+
- Read [references/stack-selection.md](references/stack-selection.md) for weighted stack selection, the Lazy-Default Rejection Table, the Sub-Stack Capability Library Gate, and the Direction → Plan feedback loop.
|
|
66
102
|
- Read [references/stack-freshness.md](references/stack-freshness.md) when choosing or upgrading versions, or setting up dependency maintenance for a generated app.
|
|
67
103
|
- Read [references/plan-template.md](references/plan-template.md) before writing `.pixelcraft/plan.md`.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Project discovery and decision interview
|
|
2
|
+
|
|
3
|
+
Discovery is how `pixelcraft-plan` turns an under-specified brief into an actionable plan without guessing silently. Choose the lightest mode that actually resolves uncertainty: **Grill-Me / Deep Shaping** for open-ended or ambiguous scope, **Fast Confirm** for clear features with 1–2 open choices, and **Direct Execution** for narrow fixes or approved designs.
|
|
4
|
+
|
|
5
|
+
## Choose the right mode
|
|
6
|
+
|
|
7
|
+
Planning is always required. **Do not jump straight to code on a greenfield product, vague brief, or undecided redesign**—silently filling major product, IA, visual, and stack blanks with model assumptions produces generic output that has to be rewritten.
|
|
8
|
+
|
|
9
|
+
| Situation | Mode | What to do |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Greenfield product, vague or ambiguous brief, major redesign, or user asks to brainstorm / grill / compare options | **Grill-Me / Deep Shaping** | Inspect the repo/brief first, then run [grill-me-protocol.md](grill-me-protocol.md): walk unresolved branches one principal question per turn with **(Recommended)** options until actionable. |
|
|
12
|
+
| Clear feature or scoped surface with 1–2 undecided design, IA, or stack/library choices | **Fast Confirm** | Inspect code and artifacts, propose concrete options with a recommendation and trade-offs in one focused turn, and confirm before coding. |
|
|
13
|
+
| An existing repository is involved | **Brownfield first** | Always run the codebase-first inspection gate (code, design system, runtime, data contracts, docs) *before* deciding between Grill-Me, Fast Confirm, or Direct Execution. |
|
|
14
|
+
| Narrow bug fix, copy change, visual tweak, behavior-preserving refactor, or already-approved design spec | **Direct Execution** | Skip product discovery; write a compact scoped plan, use safe reversible defaults for minor details, and build directly. |
|
|
15
|
+
|
|
16
|
+
Actively enter **Grill-Me / Deep Shaping** whenever the brief leaves any of these materially undecided: primary user/job, anti-goals/taboos, core workflow/IA shape, visual ambition, platform/stack or sub-stack capability libraries, data/auth model, or acceptance criteria. An explicit request to brainstorm or shape an idea always triggers Grill-Me.
|
|
17
|
+
|
|
18
|
+
Reserve **Direct Execution** for genuinely complete briefs, approved designs, or narrow edits. If the user explicitly says "you decide and build directly," honor that override, record conservative defaults and risks in `.pixelcraft/plan.md`, and proceed.
|
|
19
|
+
|
|
20
|
+
## Principles
|
|
21
|
+
|
|
22
|
+
1. **Read before asking (Codebase-First Gate).** Inspect the request, conversation context, repository, existing plan/brief, design artifacts, manifests and lockfiles, API contracts, analytics or product docs, and relevant tests. Check current official documentation or registries for facts that can change. Never ask the user for something already readable in the environment.
|
|
23
|
+
2. **Separate facts from decisions.** Facts are the agent's responsibility to find. User-owned preferences, anti-goals/hate-lists, priorities, budgets, business constraints, and approval decisions belong to the user. Label observations, research, assumptions, and unknowns separately.
|
|
24
|
+
3. **Ask about outcomes and anti-goals before trivia.** Establish what users must accomplish and what competitor tropes or UX patterns the user rejects before debating component details. Do not make a non-technical user choose technologies without explaining the product consequence.
|
|
25
|
+
4. **Recommend, do not dump options.** For every material choice, explain why it matters in one sentence, offer 2–4 concrete options, lead with **(Recommended)** and evidence-backed trade-offs, and allow free-form answers, "you decide", or "skip". Never fabricate a recommendation when evidence is insufficient.
|
|
26
|
+
5. **One principal question per turn.** Follow [grill-me-protocol.md](grill-me-protocol.md): never dump a 10-question questionnaire wall. Wait for upstream answers before asking dependent downstream questions.
|
|
27
|
+
6. **The user owns the decision.** A recommendation is not approval. Preserve explicit user decisions over model preference, and pause for design sign-off before coding on undecided greenfield or redesign scope.
|
|
28
|
+
7. **Stop when the plan is actionable.** Resolve material branches, record remaining assumptions and risks, then move to `pixelcraft-direction` and the Design Approval `<HARD-GATE>`.
|
|
29
|
+
|
|
30
|
+
## Build the decision map
|
|
31
|
+
|
|
32
|
+
Start with the outcome and work outward. Include only dimensions relevant to this project:
|
|
33
|
+
|
|
34
|
+
| Decision area | Questions the agent may need to resolve |
|
|
35
|
+
|---|---|
|
|
36
|
+
| Problem, KPIs & primary CTAs | What problem exists? Which measurable business/task KPI signals success, and which **1–2 primary CTAs** outrank secondary actions? |
|
|
37
|
+
| Users and context | Primary user or role, expertise, frequency, device, environment, language/IME scripts, accessibility needs, and network conditions |
|
|
38
|
+
| Scope | Core jobs, MVP boundary, must-have versus later, non-goals, roles/permissions, and cost of missing a capability |
|
|
39
|
+
| Experience & 5-second hierarchy | What must a user understand and see where to act within **5 seconds**? Main flows, navigation, visual ambition, states, recovery, and approved designs |
|
|
40
|
+
| Content & CMS ownership | Who writes, localizes, and maintains copy, pricing, legal text, and media post-launch (static source, Git Markdown/MDX, headless/integrated CMS, translation catalog)? |
|
|
41
|
+
| Platform & distribution regime | Web, mobile, desktop, data app, TUI, email, document, game, spatial, or constrained hardware; store/host gates (App Store, Google Play, `MV3`, Steam Deck/Console `TRC`, `PDF/X-4`, `RFC 8058`) |
|
|
42
|
+
| Data and integrations | Existing API/backend, ownership, persistence, import/export, authentication, permissions, realtime/offline behavior, third-party services |
|
|
43
|
+
| Technical approach | Existing stack constraints, candidate languages/frameworks, rendering model, deployment, testing, operations, maintainability, and team capability |
|
|
44
|
+
| Regulatory, quality & constraints | EU `EAA` / `EN 301 549`, `ADA Title II`, privacy/data residency, performance, security, licensing/IP ownership, budget, timeline, and maintenance horizon |
|
|
45
|
+
| Validation | Acceptance criteria, critical states, measurement source, tests, and evidence needed to call the work complete |
|
|
46
|
+
|
|
47
|
+
Do not ask every row as a checklist. A landing page with no backend does not need a database interview; a brownfield feature does not need a fresh framework comparison when the existing stack is authoritative.
|
|
48
|
+
|
|
49
|
+
## Interview loop
|
|
50
|
+
|
|
51
|
+
1. **Summarize what is already known.** Briefly replay the goal and evidence found. Mention important unknowns without pretending they are facts.
|
|
52
|
+
2. **Find the highest-impact unresolved decision.** Map dependencies between decisions. Ask only a question whose answer is not already known and can change the plan.
|
|
53
|
+
3. **Frame the choice.** Explain why the decision matters, then provide concrete choices in user language. For example, distinguish “show information and collect interest” from “support account-based workflows and saved data” before comparing web architecture.
|
|
54
|
+
4. **Give a recommendation.** State the suggested choice and reason. Note important trade-offs and confidence. A simple “yes” may accept the recommendation; the user can choose another option or answer freely.
|
|
55
|
+
5. **Wait and update the map.** Treat the user's answer as authoritative, update dependent decisions, and ask the next highest-impact question. Do not ask downstream questions whose premises are not yet settled.
|
|
56
|
+
6. **Research technical branches.** When a choice depends on current framework support, compatibility, pricing, hosting, APIs, or version-specific behavior, verify against current primary sources and registries. Return a short comparison, not an unbounded technology catalogue.
|
|
57
|
+
7. **Close the interview.** When all material branches are resolved or explicitly recorded as assumptions, summarize decisions, recommendation, trade-offs, non-goals, risks, and validation criteria. Do not continue asking low-value questions.
|
|
58
|
+
|
|
59
|
+
Use this response shape for each material choice:
|
|
60
|
+
|
|
61
|
+
> **Decision — [plain-language topic]**
|
|
62
|
+
>
|
|
63
|
+
> Why it matters: [one sentence tied to the user's outcome]
|
|
64
|
+
>
|
|
65
|
+
> A. **[Recommended option]** — [what it means and why it fits]
|
|
66
|
+
> B. [Alternative] — [main trade-off]
|
|
67
|
+
> C. [Alternative] — [main trade-off]
|
|
68
|
+
> D. Other / not sure — [free-form answer or request for comparison]
|
|
69
|
+
>
|
|
70
|
+
> Recommendation: [A], because [evidence and consequence]. Reply with a letter, correct the recommendation, or tell me to decide.
|
|
71
|
+
|
|
72
|
+
Do not force this exact formatting for a trivial question. Keep the prompt concise and conversational.
|
|
73
|
+
|
|
74
|
+
## Technology and stack decisions
|
|
75
|
+
|
|
76
|
+
Treat stack choice as a consequence of product requirements, not the opening question.
|
|
77
|
+
|
|
78
|
+
- In brownfield work, keep the existing stack unless a separate runtime/platform is required or the user authorizes a migration. First inspect locked versions, shared components, backend contracts, deployment, team conventions, and neighboring tests.
|
|
79
|
+
- In greenfield work, establish platform, user jobs, content/data needs, interaction/rendering requirements, offline/network needs, team capability, distribution, hosting, accessibility/legal duties, performance, budget, and maintenance expectations before narrowing candidates.
|
|
80
|
+
- Compare a small credible shortlist (normally 2–4) against actual constraints. Use hard gates before weighted scoring. Explain developer-experience and operational trade-offs in terms the user can evaluate.
|
|
81
|
+
- Prefer the least complex sufficient architecture. A visually rich interface does not automatically need a 3D renderer; an interactive app does not automatically need a large SPA; a static/content experience may not need a backend.
|
|
82
|
+
- Verify current versions and APIs with official docs and registries before committing to a version-sensitive choice. If unavailable, state the version assumption and what remains unchecked.
|
|
83
|
+
- Record the winner, runner-up where meaningful, why alternatives lost, confidence, reversal conditions, and whether the user explicitly selected or accepted the recommendation.
|
|
84
|
+
|
|
85
|
+
## Documents and decision memory
|
|
86
|
+
|
|
87
|
+
Use the existing Pixelcraft artifacts as the source of truth:
|
|
88
|
+
|
|
89
|
+
- `.pixelcraft/brief.md` records product outcome, audience, constraints, material, boundaries, and validation.
|
|
90
|
+
- `.pixelcraft/plan.md` records project mode, repository/system evidence, platform/stack, implementation routing, verification, risks, and discovery outcome.
|
|
91
|
+
|
|
92
|
+
Do not create parallel specification files when these artifacts are sufficient. Preserve prior decisions when updating a plan.
|
|
93
|
+
|
|
94
|
+
Create an ADR only when a decision is difficult to reverse, surprising without context, and based on a genuine trade-off. Create or update a glossary only when the project has recurring domain-specific or overloaded terms that will materially help future work; follow existing repository conventions and do not create one by default. Never write documents merely to imitate a process.
|
|
95
|
+
|
|
96
|
+
## Completion and approval boundary
|
|
97
|
+
|
|
98
|
+
Discovery is complete when:
|
|
99
|
+
|
|
100
|
+
- the primary user outcome, task, and anti-goals/hate-list are clear enough to define success;
|
|
101
|
+
- project scope and non-goals are bounded;
|
|
102
|
+
- the platform, stack (rejecting lazy defaults), and Sub-Stack Capability libraries are selected, constrained by the repository, or explicitly deferred;
|
|
103
|
+
- important data, integration, privacy, security, accessibility, localization, and operational constraints are known or recorded as risks;
|
|
104
|
+
- major flows and critical states are understood well enough to plan;
|
|
105
|
+
- acceptance criteria and verification evidence are actionable; and
|
|
106
|
+
- each remaining material unknown has an owner, consequence, and next check.
|
|
107
|
+
|
|
108
|
+
Present the resulting brief/plan in a concise summary. **For undecided greenfield products, multi-screen features, or major redesigns, require explicit design sign-off** (combining the plan summary with `pixelcraft-direction`'s 2–3 contrasting directions + ASCII structural skeletons + stack/library choices) before writing implementation code. Preserve the **Direct Execution** path without extra ceremony for narrow bug fixes, copy tweaks, visual polish, behavior-preserving refactors, or implementations of an already-approved design.
|
|
109
|
+
|
|
110
|
+
If the user explicitly asks to skip questions or says "you decide and build directly," stop interviewing, record conservative reversible defaults and rejected lazy defaults in `.pixelcraft/plan.md`, surface only material risks, and proceed.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Grill-Me Socratic Decision-Tree Protocol
|
|
2
|
+
|
|
3
|
+
Use this protocol inside `pixelcraft-plan` whenever the user enters **Grill-Me / Deep Shaping**: greenfield products, vague or under-specified briefs, major redesigns, or explicit requests to brainstorm, grill, or compare options. The goal is to resolve every high-leverage product, IA, visual-ambition, and stack decision *before* writing code—without dumping a questionnaire wall or asking facts already present in the codebase.
|
|
4
|
+
|
|
5
|
+
## Step 1: Codebase-First Inspection Gate
|
|
6
|
+
|
|
7
|
+
Before asking the user **any** question:
|
|
8
|
+
|
|
9
|
+
1. Inspect the workspace, git history, manifests, lockfiles, existing routes/screens, tokens/theme files, component primitives, docs, and supplied design artifacts.
|
|
10
|
+
2. Cite the observed files and established constraints in a 3–5 line context replay at the top of your first turn.
|
|
11
|
+
3. **Never ask the user facts readable from the repo** (installed framework, package manager, existing palette tokens, database schema, current routes, or test runner). Reserve user turns exclusively for intent, priorities, anti-goals, taste boundaries, and trade-off approvals.
|
|
12
|
+
|
|
13
|
+
If the repo is empty, state that explicitly ("Workspace is greenfield; no existing manifests or tokens found") and move directly to the first unresolved branch.
|
|
14
|
+
|
|
15
|
+
## Step 2: Walk the Decision Tree — One Principal Question Per Turn
|
|
16
|
+
|
|
17
|
+
Walk only the **unresolved** branches below, in dependency order. Skip any branch already settled by the prompt, supplied artifacts, or repository evidence.
|
|
18
|
+
|
|
19
|
+
**Strict pacing rule:** ask **one principal question per turn**. Never dump a 5-to-10-question numbered list in a single message. Downstream branches wait until upstream branches are resolved because the answer to an earlier branch often collapses later branches.
|
|
20
|
+
|
|
21
|
+
| Order | Branch | What to resolve | Skip when |
|
|
22
|
+
|---|---|---|---|
|
|
23
|
+
| 1 | **Problem, KPIs & 1–2 Primary CTAs** | Who uses this, what business KPI or task outcome proves success, which **1–2 primary CTAs** dominate the flow, and what is strictly in/out of MVP scope? | Brief already states actor, measurable KPI/outcome, primary CTAs, and MVP boundary. |
|
|
24
|
+
| 2 | **Anti-Goals & Hate-List** | Which competitor tropes, visual clichés, or UX patterns does the user **hate** or explicitly refuse (e.g., cluttered SaaS cards, modal traps, generic dark-neon AI styling, bloated wizards)? | User already supplied explicit taboos or an approved locked design. |
|
|
25
|
+
| 3 | **Core Workflow, 5-Second Hierarchy & Content/CMS Ownership** | What must a user grasp and see where to act within **5 seconds**, what is the primary IA/workspace shape, and **who owns/updates copy & media** (static repo files, Git Markdown, headless/integrated CMS, localization pipeline)? | Existing app IA, content/CMS pipeline, or approved wireframes fix these. |
|
|
26
|
+
| 4 | **Visual World, Ambition Tier & Signature Moment** | Which ambition tier fits the stakes—**Pragmatic High-Craft**, **Editorial / Domain-Object Signature**, or **Bold Experimental**—and what real subject material or single signature moment anchors it? | Approved brand/design spec locks visual direction. |
|
|
27
|
+
| 5 | **Stack & Library Craft Bar** | Confirm target platform(s), runtime stack (rejecting lazy defaults), and purpose-built libraries for complex sub-stack capabilities (editors, charts, tables, drawers, search, maps, PDF) instead of DIY hand-rolls. | Brownfield stack and approved libraries already cover every capability. |
|
|
28
|
+
| 6 | **Regulatory/Store Regime, Critical States & Acceptance** | Confirm target **regulatory/distribution regime** (App Store, Google Play, Chrome `MV3`, EU `EAA` / `EN 301 549`, Steam Deck/Console `TRC`, Commercial Print `PDF/X-4`, Bulk Email `RFC 8058`), non-happy-path states, and acceptance proof. | Brief + repo configs already specify distribution regime, states, and acceptance checks. |
|
|
29
|
+
|
|
30
|
+
## Step 3: Per-Decision Frame & Option Contract
|
|
31
|
+
|
|
32
|
+
For every unresolved branch you ask:
|
|
33
|
+
|
|
34
|
+
1. **Why it matters (1 sentence):** tie the choice directly to a concrete product, UX, or architecture consequence.
|
|
35
|
+
2. **2–4 concrete options, leading with `(Recommended)`:** label the strongest evidence-backed choice first with **(Recommended)**, and state the concrete trade-off for each alternative (never vague adjectives like "clean" or "modern").
|
|
36
|
+
3. **Flexible exit on every turn:** explicitly allow a short letter/name reply, a free-form answer, **"you decide"**, or **"skip"** (which records a reversible assumption and moves to the next unresolved branch).
|
|
37
|
+
|
|
38
|
+
Compact turn shape:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
**Observed context:** [1–2 lines citing repo/brief facts already established — omit after turn 1 unless new facts were inspected]
|
|
42
|
+
|
|
43
|
+
**Decision [N/6] — [Branch topic]**
|
|
44
|
+
Why it matters: [one concrete sentence tied to user outcome or architecture].
|
|
45
|
+
|
|
46
|
+
1. **(Recommended) [Option A]** — [concrete shape + why it fits observed constraints; key trade-off].
|
|
47
|
+
2. **[Option B]** — [concrete alternative + main trade-off].
|
|
48
|
+
3. **[Option C]** — [concrete alternative + main trade-off].
|
|
49
|
+
|
|
50
|
+
Reply with a number, combine parts, give a custom answer, or say "you decide" / "skip".
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Step 4: Exit Condition & Handoff
|
|
54
|
+
|
|
55
|
+
Stop grilling immediately once all 6 branches are either **resolved by the user**, **constrained by observed repo/artifact facts**, or **recorded as explicit reversible assumptions** (typically 2–5 turns total—never drag out trivia).
|
|
56
|
+
|
|
57
|
+
Before writing any implementation code:
|
|
58
|
+
|
|
59
|
+
1. Write or update `.pixelcraft/plan.md` (using `references/plan-template.md`), recording:
|
|
60
|
+
- mode (`Grill-Me / Deep Shaping`), observed repo files, resolved decisions, anti-goals/hate-list, chosen stack + rejected lazy defaults, and the **Sub-Stack Capability → Purpose-Built Library** table;
|
|
61
|
+
- every remaining assumption with its consequence and reversal cost.
|
|
62
|
+
2. Hand off cleanly to `pixelcraft-direction` (creative brainstorming) to pitch 2–3 contrasting directions with ASCII structural skeletons and real-copy lead drafts, then pause at the **Design Approval `<HARD-GATE>`** before entering Build—unless the user explicitly says to decide and build directly.
|
|
63
|
+
3. Keep the **Creative Direction → Plan Feedback Loop** open: if the user picks a direction in `pixelcraft-direction` that calls for a richer runtime or renderer (e.g., Rive, WebGPU, Typst, Tauri, or native desktop/mobile), update `.pixelcraft/plan.md` before coding rather than forcing the concept onto a mismatched stack.
|
|
@@ -16,21 +16,43 @@
|
|
|
16
16
|
- Requirement sources:
|
|
17
17
|
- Design brief path/status:
|
|
18
18
|
|
|
19
|
-
| Fact/requirement | Class (`user-provided` / `repo-observed` / `artifact-observed` / `analytics
|
|
19
|
+
| Fact/requirement | Class (`user-provided` / `repo-observed` / `artifact-observed` / `research/analytics` / `assumption` / `unknown`) | Evidence scope/path | Consequence if wrong |
|
|
20
20
|
|---|---|---|---|
|
|
21
21
|
| | | | |
|
|
22
22
|
|
|
23
|
+
## Discovery status
|
|
24
|
+
- Adaptive discovery mode: Grill-Me / Deep Shaping | Fast Confirm | Direct Execution
|
|
25
|
+
- Trigger or reason deep discovery was unnecessary:
|
|
26
|
+
- Business KPIs & 1–2 primary CTAs:
|
|
27
|
+
- 5-second hierarchy goal (what first-time viewers grasp & where they act):
|
|
28
|
+
- Content & CMS ownership (source of truth, post-launch editor workflow, localization ownership):
|
|
29
|
+
- Target regulatory & store regime (App Store, Google Play, Chrome `MV3`, EU `EAA` / `EN 301 549`, Steam Deck/Console `TRC`, Print `PDF/X-4`, Bulk Email `RFC 8058`, or N/A):
|
|
30
|
+
- Anti-goals & hate-list (rejected competitor tropes / visual or UX patterns):
|
|
31
|
+
- Material decisions resolved (user-selected / recommendation accepted / repository-constrained):
|
|
32
|
+
- Assumptions and their consequences:
|
|
33
|
+
- Unresolved decisions, owner, and next check:
|
|
34
|
+
- Approval boundary/status (including Design Approval `<HARD-GATE>` status):
|
|
35
|
+
|
|
23
36
|
## Stack decision
|
|
24
37
|
- Chosen stack:
|
|
25
38
|
- Platform skill: `pixelcraft-…`
|
|
26
39
|
- Framework reference: `references/…` inside that skill
|
|
27
40
|
- Runner-up:
|
|
28
41
|
- Why runner-up lost:
|
|
42
|
+
- Rejected lazy default(s) & rationale (see `references/stack-selection.md`):
|
|
29
43
|
- Hard constraints/gates:
|
|
30
44
|
- Reversal conditions:
|
|
31
45
|
- Confidence:
|
|
32
46
|
- Runtime, package manager, and lockfile:
|
|
33
47
|
- Update ownership and opt-in dependency automation:
|
|
48
|
+
- Creative Direction → Plan feedback loop updates (if a winning direction upgraded the renderer/runtime):
|
|
49
|
+
|
|
50
|
+
### Sub-Stack Capability → Purpose-Built Library Gate
|
|
51
|
+
List every complex UI capability in scope (rich text, code editor, node graph, map, >500-row table, command palette, drawer/sheet, toast, carousel, search UI, drag-and-drop, date/calendar picker, media player, PDF, charts, complex forms). Do not hand-roll DIY substitutes.
|
|
52
|
+
|
|
53
|
+
| Capability in scope | Chosen library / native primitive | Rejected lazy default / DIY substitute | A11y / license / version note |
|
|
54
|
+
|---|---|---|---|
|
|
55
|
+
| | | | |
|
|
34
56
|
|
|
35
57
|
| Package/runtime + resolved version | Version-sensitive API or compatibility question | Version source and matching API docs (date) | Compatibility / verification command + outcome | Evidence (`static` / `not-checked`) |
|
|
36
58
|
|---|---|---|---|---|
|
|
@@ -54,9 +76,10 @@
|
|
|
54
76
|
- Existing design system/tokens/theme:
|
|
55
77
|
- Component library/styling approach:
|
|
56
78
|
- State management/data ownership:
|
|
57
|
-
-
|
|
79
|
+
- Content/CMS & asset licensing pipeline:
|
|
80
|
+
- i18n/localization (`IME` & `Unicode NFC` scope):
|
|
58
81
|
- CI/test/visual tooling:
|
|
59
|
-
- Packaging/
|
|
82
|
+
- Packaging/store/regulatory constraints:
|
|
60
83
|
|
|
61
84
|
## Surfaces and modes
|
|
62
85
|
| Surface/screen | Mode | Input modality | Notes |
|
|
@@ -65,8 +88,8 @@
|
|
|
65
88
|
## UX work required
|
|
66
89
|
- Flows to design:
|
|
67
90
|
- State matrices required:
|
|
68
|
-
- Accessibility/legal floor specifics:
|
|
69
|
-
- Localization scope:
|
|
91
|
+
- Accessibility/legal floor specifics (including sticky-chrome focus & `EAA` statement if applicable):
|
|
92
|
+
- Localization scope (`+30–40%` prose / `+50–100%` short-label expansion, `IME`, RTL):
|
|
70
93
|
|
|
71
94
|
## Adaptive UI by device or window class
|
|
72
95
|
| Class, sample size/aspect, input | Navigation, density, controls and reach | Task/data/state to preserve | Runtime, acceptance check, evidence/status |
|
|
@@ -80,10 +103,22 @@ For responsive web, consider small and large phone portrait, phone landscape, ta
|
|
|
80
103
|
- Partial/inconsistent/missing areas:
|
|
81
104
|
- Token export/handoff needs:
|
|
82
105
|
|
|
83
|
-
##
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
-
|
|
106
|
+
## Mandatory completion gate & scan-until-clean contract (Definition of Done `<HARD-GATE>`)
|
|
107
|
+
Implementation MUST NOT stop or claim completion until every applicable row below is executed, repaired, and re-verified clean (`exit 0` on all deterministic scans and build checks, `0` `fail`/`pending` rows in `.pixelcraft/acceptance.json`, and **Rule #0.3** satisfied):
|
|
108
|
+
|
|
109
|
+
- Acceptance manifest initialized: `node <path>/check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`
|
|
110
|
+
- Agreed numeric & device thresholds (startup/LCP/INP/CLS/frame-rate, payload/install size, target viewports/devices/clients):
|
|
111
|
+
- Available verification runtimes here: rendered / static / device / browser / simulator / snapshot / CI
|
|
112
|
+
- Genuinely unavailable here (`not-checked` + exact missing binary/device reason):
|
|
113
|
+
|
|
114
|
+
| Gate | Exact command or checklist to execute | Required pass condition before stopping | Final status (`exit 0` / `PASS` / `not-checked`) |
|
|
115
|
+
|---|---|---|---|
|
|
116
|
+
| Slop & floor static scan | `node <path>/slop-scan.mjs <target> --fail-on p2` | `exit 0` (`0` `P0`/`P1`/`P2` findings; `scan → fix → rescan` until clean) | |
|
|
117
|
+
| Surface / token scanners | `<check-contrast.mjs / check-email.mjs / check-tui.mjs / check-pdf.mjs / export-tokens.mjs>` | `exit 0` across all applicable modes/targets (`scan → fix → rescan` until clean) | |
|
|
118
|
+
| Active-language compiler, linter, dep audit & tests | `<strict compiler / typecheck / analyzer / linter / dep-audit / test command>` | `exit 0` with zero newly introduced errors, unpatched advisories, or blanket suppressions | |
|
|
119
|
+
| Mandatory checklists walked item-by-item | `pixelcraft` `floor.md` (`A1–A8`) + `pixelcraft-<platform>` `Pre-submit checklist` + `pixelcraft-review` `polish.md` (`B1–B6`) | 100% of applicable items verified in code/render (fix & re-check any failing row) | |
|
|
120
|
+
| Rendered task QA & finish gate | `<shoot.mjs / simulator / CLI capture + finish-gate.mjs evidence.json>` | `PASS` (up to 3 rendered repair rounds before escalating blocked visual conflict as `OPEN`) | |
|
|
121
|
+
| Studio acceptance manifest (`Rule #0.3`) | `node <path>/check-acceptance.mjs .pixelcraft/acceptance.json` | `0` `fail`/`pending` rows; `rendered` on visual/perf/interactive-a11y; verdict `PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO` (or `PENDING_RENDERED_ENV` exit `2` if external hardware absent) | |
|
|
87
122
|
|
|
88
123
|
## Existing behavior and replacement boundaries
|
|
89
124
|
| Contract (entry point, flow, content, data, accessibility/localization, etc.) | Inspected source and current evidence | Preserve or authorized change | Baseline and regression check |
|
|
@@ -21,21 +21,28 @@ Read broadly before narrowing. Exclude generated/vendor/build output only after
|
|
|
21
21
|
|
|
22
22
|
## High-signal files by ecosystem
|
|
23
23
|
|
|
24
|
-
| Ecosystem | Signals |
|
|
24
|
+
| Ecosystem / Surface | Signals |
|
|
25
25
|
|---|---|
|
|
26
|
-
| TS/JS web
|
|
27
|
-
| Rust web/GUI/TUI/game | `Cargo.toml`, `Leptos.toml`, `Trunk.toml`, `Dioxus.toml`; deps `leptos`, `yew`, `egui`, `slint`, `iced`, `dioxus`, `ratatui`, `bevy` |
|
|
26
|
+
| TS/JS web, AI & data | `package.json`, `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock`, `deno.json`, `next.config.*`, `vite.config.*`, `react-router.config.*`, `nuxt.config.*`, `svelte.config.*`, `angular.json`, `astro.config.*`, `lynx.config.*`, `tailwind.config.*`, CSS-first Tailwind v4 (`@import "tailwindcss"` / `@theme` in CSS), `components.json`, `terrazzo.config.*`, `style-dictionary.config.*`, AI UI SDKs (`@ai-sdk/*`, `@assistant-ui/*`, `@copilotkit/*`), router directories, `observablehq.config.*`, `evidence.config.yaml`, `theme.yaml`, `pages/`, `sources/` |
|
|
27
|
+
| Rust web/GUI/TUI/game | `Cargo.toml`, `Cargo.lock`, `Leptos.toml`, `Trunk.toml`, `Dioxus.toml`; deps `leptos`, `yew`, `egui`, `slint`, `iced`, `dioxus`, `gpui`, `ratatui`, `bevy` |
|
|
28
28
|
| Kotlin | `build.gradle(.kts)`, `settings.gradle*`, Compose/Android/KMP plugins, Kobweb deps/config |
|
|
29
|
-
| Swift/Apple | `Package.swift`, `*.xcodeproj`, Xcode workspace, asset catalogs, entitlements, Info.plist |
|
|
30
|
-
| Dart/Flutter | `pubspec.yaml`, `analysis_options.yaml`, platform folders, golden tests |
|
|
31
|
-
| .NET | `*.csproj`, `*.fsproj`, `*.sln`, `App.xaml`, MAUI/WinUI/WPF/Avalonia/Uno/Blazor references |
|
|
29
|
+
| Swift/Apple | `Package.swift`, `*.xcodeproj`, Xcode workspace, asset catalogs, entitlements, `Info.plist` |
|
|
30
|
+
| Dart/Flutter | `pubspec.yaml`, `pubspec.lock`, `analysis_options.yaml`, platform folders, golden tests |
|
|
31
|
+
| .NET | `*.csproj`, `*.fsproj`, `*.sln`, `packages.lock.json`, `App.xaml`, MAUI/WinUI/WPF/Avalonia/Uno/Blazor/Spectre.Console/Terminal.Gui references |
|
|
32
32
|
| Java/JVM | `pom.xml`, `build.gradle*`, JavaFX/Vaadin/Spring dependencies, FXML, templates |
|
|
33
|
-
| Python | `pyproject.toml`, `requirements*.txt`,
|
|
34
|
-
| Go | `go.mod`, templ files, Bubble Tea/Lip Gloss/Fyne/Wails/Gio deps |
|
|
33
|
+
| Python | `pyproject.toml`, `uv.lock`, `requirements*.txt`, `marimo`, `solara`, `mesop`, `taipy`, `chainlit`, `anywidget`, `prompt_toolkit`, `streamlit`, `gradio`, `reflex`, `nicegui`, `dash`, `panel`, `shiny`, `textual`, `rich`, notebooks |
|
|
34
|
+
| Go | `go.mod`, `go.sum`, templ files, Bubble Tea/Lip Gloss/Fyne/Wails/Gio deps |
|
|
35
35
|
| PHP/Ruby/Elixir | `composer.json`/Laravel, `Gemfile`/Rails, `mix.exs`/Phoenix templates/components |
|
|
36
36
|
| Scala/Clojure/Elm | `build.sbt`, `deps.edn`, `shadow-cljs.edn`, `elm.json` |
|
|
37
37
|
| R/Julia/Lua/Zig/C++ | `DESCRIPTION`, `app.R`, `Project.toml`, `main.lua`+`conf.lua`, `build.zig`, `CMakeLists.txt` |
|
|
38
|
-
| Email
|
|
38
|
+
| Email | `maizzle.config.*`, `*.mjml`, `@react-email/*` templates, plain-text/multipart renderers |
|
|
39
|
+
| Game | Unity `ProjectSettings`, Godot `project.godot`, Unreal `*.uproject`, Bevy `Cargo.toml`, MonoGame `*.csproj`, LÖVE2D `conf.lua` |
|
|
40
|
+
| Document / print / slides | `*.typ` (Typst), `@page` print CSS, WeasyPrint/Paged.js/Playwright PDF scripts, Gotenberg config, `slides.md` (Slidev/Marp), `pptxgenjs` / `pdfjs-dist` deps |
|
|
41
|
+
| Media / social / video | Satori / `@vercel/og` / Takumi OG route handlers, `remotion.config.*`, Motion Canvas `vite.config.*` + `src/scenes/`, FFmpeg render pipelines, SVG banner templates |
|
|
42
|
+
| Chat / bot / mini-apps | Slack Bolt / Block Kit JSON, Discord.js / Interaction builders, Telegram Mini App / `grammy` / `python-telegram-bot`, WhatsApp Flows JSON, Microsoft Teams Adaptive Cards, LINE LIFF |
|
|
43
|
+
| Extensions / plugins | `manifest.json` (MV3), `wxt.config.*`, `plasmo` config, VS Code `contributes.views` / `webview` in `package.json`, JetBrains `plugin.xml`, Raycast `package.json` (`@raycast/api`), Obsidian `manifest.json`, Figma `manifest.json`, Shopify `shopify.extension.toml`, Atlassian Forge `manifest.yml` |
|
|
44
|
+
| Spatial / XR | visionOS `RealityKit` / `ImmersiveSpace` scenes, Android XR Compose `Subspace`, Horizon OS / OpenXR manifests, WebXR (`navigator.xr`), Unity XR Interaction Toolkit (`com.unity.xr.interaction.toolkit`) |
|
|
45
|
+
| Constrained / TV / hardware | tvOS/Android TV leanback manifests, watchOS/Wear OS targets, LVGL `lv_conf.h`, Slint embedded targets, e-ink refresh drivers, kiosk shell/systemd configs, Alexa/Google/SSML voice schemas |
|
|
39
46
|
|
|
40
47
|
## Repo map output
|
|
41
48
|
|
|
@@ -6,15 +6,28 @@
|
|
|
6
6
|
- **Greenfield:** Choose a supported stable release or LTS that fits deployment, dependency peers and the brief. Treat registry `latest` as a lookup, not a compatibility or support guarantee. For npm, check `npm view <package> dist-tags --json` and `npm view <package>@<version> engines peerDependencies --json`, then confirm the API and config in the provider's versioned official docs and release notes. Use the corresponding official registry for other ecosystems.
|
|
7
7
|
- **Evidence:** Record package/runtime and resolved versions, source URL or command, date, why compatible, and verification command in `.pixelcraft/plan.md`. If a source is unavailable, use repository evidence where available and label any unverified choice `assumption` / `not-checked`; do not guess the latest release.
|
|
8
8
|
- **Context7 is optional.** If available and allowed, resolve the exact library and request docs for the target version and API. Cross-check gaps, stale indexes and new releases against official docs and registry. Do not send secrets or proprietary source in lookup queries. Do not require installation, credentials, or network access to use Pixelcraft.
|
|
9
|
-
- **Reproducibility:** Resolve dependencies at intentional setup or upgrade time; commit lockfiles and declare the supported runtime/package-manager version. Use frozen
|
|
9
|
+
- **Reproducibility:** Resolve dependencies at intentional setup or upgrade time; commit lockfiles and declare the supported runtime/package-manager version. Use frozen installs in CI/deploy; never invoke floating `@latest` in automation. Semver ranges in manifests are acceptable when the lockfile controls the build. Keep tool and test versions reproducible and review lockfile changes.
|
|
10
10
|
|
|
11
11
|
Before choosing or changing dependencies or implementing a version-sensitive API, establish the exact package/runtime version from the project or registry, then check the API in official docs for that version. A release tag alone is not API evidence. If a documentation MCP is available, query the exact library/API/version and verify mismatches against its official sources; if the MCP is unavailable or rate-limited, go directly to official docs and the registry. If no verified source is available, record the assumption and the affected API as `not-checked`; prefer an established project API or defer an incompatible/irreversible change. Do not call an assumed selection current. Reuse matching evidence from the task plan while the version, API and compatibility constraints are unchanged.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Registry lookups and frozen installs by ecosystem
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
| Ecosystem | Registry version lookup | Frozen / locked CI install |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| JS/TS (npm / pnpm / yarn / bun) | `npm view <pkg> dist-tags --json` and `npm view <pkg>@<ver> engines peerDependencies --json` | `npm ci`, `pnpm install --frozen-lockfile`, `yarn install --immutable`, `bun install --frozen-lockfile` |
|
|
18
|
+
| Python (pip / uv) | `pip index versions <pkg>` or `uv pip compile --dry-run` (against `pyproject.toml`) | `uv sync --frozen` or `pip install --require-hashes -r requirements.lock` |
|
|
19
|
+
| Rust (Cargo) | `cargo info <crate>` (Cargo ≥ 1.82) | `cargo build --locked` / `cargo test --locked` |
|
|
20
|
+
| Go | `go list -m -versions <module>` | `go mod download` + `go build -mod=readonly` + `go mod verify` |
|
|
21
|
+
| Dart / Flutter | `dart pub outdated` / `flutter pub outdated` | `dart pub get --enforce-lockfile` / `flutter pub get --enforce-lockfile` |
|
|
22
|
+
| .NET (NuGet) | `dotnet package search <pkg> --exact-match` | `dotnet restore --locked-mode` |
|
|
23
|
+
| Ruby (Bundler) | `gem info <gem> --remote` | `bundle install --frozen` |
|
|
24
|
+
| PHP (Composer) | `composer show --all <vendor/pkg>` | `composer install --no-interaction --prefer-dist` (with committed `composer.lock`) |
|
|
16
25
|
|
|
17
|
-
|
|
26
|
+
## Opt-in updates and supply-chain cooldown
|
|
27
|
+
|
|
28
|
+
Offer an update bot for maintained applications with manifests and passing build/test coverage, not for design-only output or disposable prototypes. Do not enable outside repository policy or install both bots for the same dependency. Group routine updates, apply a release cooldown (for example 3–7 days) to reduce supply-chain compromise exposure on non-security updates, review majors separately against official migration notes, and verify build/tests plus a representative UI smoke flow. Keep auto-merge off by default.
|
|
29
|
+
|
|
30
|
+
**Dependabot** is the simplest choice for a GitHub repository. Adapt the example to the actual package ecosystem and lockfile directory; enable Dependabot alerts/security updates separately per repo policy (security updates bypass cooldown):
|
|
18
31
|
|
|
19
32
|
```yaml
|
|
20
33
|
# .github/dependabot.yml
|
|
@@ -24,13 +37,16 @@ updates:
|
|
|
24
37
|
directory: /
|
|
25
38
|
schedule:
|
|
26
39
|
interval: weekly
|
|
40
|
+
cooldown:
|
|
41
|
+
default-days: 7
|
|
42
|
+
semver-patch-days: 3
|
|
27
43
|
groups:
|
|
28
44
|
routine:
|
|
29
45
|
patterns: ["*"]
|
|
30
46
|
update-types: [minor, patch]
|
|
31
47
|
```
|
|
32
48
|
|
|
33
|
-
**Renovate** is an alternative for multi-ecosystem workspaces or projects needing package rules, a dependency dashboard, and lockfile maintenance. Use the organization's approved app/runner and preset;
|
|
49
|
+
**Renovate** is an alternative for multi-ecosystem workspaces or projects needing package rules, a dependency dashboard, and lockfile maintenance. Use the organization's approved app/runner and preset; configure `minimumReleaseAge` so newly published packages mature before automated PRs open:
|
|
34
50
|
|
|
35
51
|
```json
|
|
36
52
|
{
|
|
@@ -38,6 +54,7 @@ updates:
|
|
|
38
54
|
"extends": ["config:recommended"],
|
|
39
55
|
"dependencyDashboard": true,
|
|
40
56
|
"schedule": ["* 0-3 * * 1"],
|
|
57
|
+
"minimumReleaseAge": "7 days",
|
|
41
58
|
"automerge": false,
|
|
42
59
|
"lockFileMaintenance": { "enabled": true },
|
|
43
60
|
"packageRules": [
|