@thanhnguyxn/pixelcraft 0.0.0-stage → 0.1.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 +20 -0
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +11 -0
- package/LICENSE +21 -0
- package/README.md +407 -2
- package/assets/README.md +28 -0
- package/assets/pixelcraft-logo-512.png +0 -0
- package/bin/pixelcraft.mjs +444 -0
- package/docs/ARCHITECTURE.md +102 -0
- package/docs/DESIGN-RATIONALE.md +143 -0
- package/evals/README.md +27 -0
- package/evals/fixtures/README.md +36 -0
- package/evals/fixtures/direction-prototype-complexity.json +29 -0
- package/evals/fixtures/finish-gate-anti-slop.json +30 -0
- package/evals/fixtures/forms-accessibility-negative.json +29 -0
- package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
- package/evals/fixtures/plan-brownfield-evidence.json +28 -0
- package/evals/fixtures/visual-qa-task-evidence.json +29 -0
- package/evals/fixtures/workflow-checkpoints.json +30 -0
- package/evals/pixelcraft-accessibility.md +57 -0
- package/evals/pixelcraft-brandkit.md +58 -0
- package/evals/pixelcraft-chat-ui.md +55 -0
- package/evals/pixelcraft-constrained.md +55 -0
- package/evals/pixelcraft-craft.md +60 -0
- package/evals/pixelcraft-data-apps.md +55 -0
- package/evals/pixelcraft-dataviz.md +59 -0
- package/evals/pixelcraft-desktop.md +55 -0
- package/evals/pixelcraft-direction.md +60 -0
- package/evals/pixelcraft-document.md +55 -0
- package/evals/pixelcraft-email.md +55 -0
- package/evals/pixelcraft-extensions.md +55 -0
- package/evals/pixelcraft-game-ui.md +59 -0
- package/evals/pixelcraft-handoff.md +57 -0
- package/evals/pixelcraft-media.md +55 -0
- package/evals/pixelcraft-mobile.md +59 -0
- package/evals/pixelcraft-patterns.md +57 -0
- package/evals/pixelcraft-plan.md +65 -0
- package/evals/pixelcraft-review.md +63 -0
- package/evals/pixelcraft-spatial.md +55 -0
- package/evals/pixelcraft-tokens.md +57 -0
- package/evals/pixelcraft-tui.md +55 -0
- package/evals/pixelcraft-ux.md +59 -0
- package/evals/pixelcraft-visual-qa.md +80 -0
- package/evals/pixelcraft-web.md +71 -0
- package/evals/pixelcraft.md +70 -0
- package/gemini-extension.json +5 -0
- package/install.ps1 +295 -0
- package/install.sh +437 -0
- package/package.json +63 -4
- package/plugin.json +24 -0
- package/scripts/build-adapters.mjs +290 -0
- package/scripts/build-release-archives.mjs +61 -0
- package/scripts/build-skill-zips.mjs +94 -0
- package/scripts/test-build-adapters.mjs +48 -0
- package/scripts/test-distribution.mjs +124 -0
- package/scripts/test-export-tokens.mjs +105 -0
- package/scripts/test-finish-gate.mjs +148 -0
- package/scripts/test-installers.mjs +67 -0
- package/scripts/test-release-archives.mjs +42 -0
- package/scripts/test-shoot.mjs +65 -0
- package/scripts/test-slop-scan.mjs +29 -0
- package/scripts/test-style-inventory.mjs +211 -0
- package/scripts/test-validate-skills.mjs +117 -0
- package/scripts/validate-skills.mjs +512 -0
- package/skills/pixelcraft/SKILL.md +135 -0
- package/skills/pixelcraft/references/design-brief.md +75 -0
- package/skills/pixelcraft/references/floor.md +73 -0
- package/skills/pixelcraft/references/report-template.md +35 -0
- package/skills/pixelcraft/references/stack-detection.md +155 -0
- package/skills/pixelcraft/references/surface-acceptance.md +40 -0
- package/skills/pixelcraft/references/workflow-checkpoints.md +29 -0
- package/skills/pixelcraft-accessibility/SKILL.md +33 -0
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +51 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +58 -0
- package/skills/pixelcraft-accessibility/references/verification.md +59 -0
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +66 -0
- package/skills/pixelcraft-brandkit/SKILL.md +115 -0
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +125 -0
- package/skills/pixelcraft-brandkit/references/brand-governance.md +80 -0
- package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
- package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
- package/skills/pixelcraft-brandkit/references/logo-methods.md +98 -0
- package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
- package/skills/pixelcraft-brandkit/references/prompt-template.md +85 -0
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +88 -0
- package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
- package/skills/pixelcraft-chat-ui/SKILL.md +53 -0
- package/skills/pixelcraft-chat-ui/references/conversation-design.md +78 -0
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +87 -0
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +96 -0
- package/skills/pixelcraft-constrained/SKILL.md +51 -0
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +66 -0
- package/skills/pixelcraft-constrained/references/tv-wearables.md +84 -0
- package/skills/pixelcraft-constrained/references/voice-ui.md +63 -0
- package/skills/pixelcraft-craft/SKILL.md +44 -0
- package/skills/pixelcraft-craft/references/color.md +69 -0
- package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
- package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
- package/skills/pixelcraft-craft/references/layout.md +41 -0
- package/skills/pixelcraft-craft/references/motion.md +76 -0
- package/skills/pixelcraft-craft/references/typography.md +71 -0
- package/skills/pixelcraft-data-apps/SKILL.md +67 -0
- package/skills/pixelcraft-data-apps/references/dash.md +53 -0
- package/skills/pixelcraft-data-apps/references/evidence.md +75 -0
- package/skills/pixelcraft-data-apps/references/gradio.md +65 -0
- package/skills/pixelcraft-data-apps/references/julia-genie.md +54 -0
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +53 -0
- package/skills/pixelcraft-data-apps/references/nicegui.md +63 -0
- package/skills/pixelcraft-data-apps/references/observable-framework.md +67 -0
- package/skills/pixelcraft-data-apps/references/panel.md +53 -0
- package/skills/pixelcraft-data-apps/references/r-shiny.md +54 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +62 -0
- package/skills/pixelcraft-data-apps/references/shiny.md +53 -0
- package/skills/pixelcraft-data-apps/references/streamlit.md +65 -0
- package/skills/pixelcraft-dataviz/SKILL.md +63 -0
- package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
- package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
- package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +97 -0
- package/skills/pixelcraft-dataviz/references/libraries.md +57 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +99 -0
- package/skills/pixelcraft-desktop/SKILL.md +71 -0
- package/skills/pixelcraft-desktop/references/appkit.md +58 -0
- package/skills/pixelcraft-desktop/references/avalonia.md +59 -0
- package/skills/pixelcraft-desktop/references/cpp-gui.md +52 -0
- package/skills/pixelcraft-desktop/references/electron.md +54 -0
- package/skills/pixelcraft-desktop/references/go-gui.md +54 -0
- package/skills/pixelcraft-desktop/references/gtk.md +54 -0
- package/skills/pixelcraft-desktop/references/javafx-swing.md +52 -0
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +61 -0
- package/skills/pixelcraft-desktop/references/rust-gui.md +65 -0
- package/skills/pixelcraft-desktop/references/tauri.md +54 -0
- package/skills/pixelcraft-desktop/references/uno-platform.md +52 -0
- package/skills/pixelcraft-desktop/references/winui-wpf.md +58 -0
- package/skills/pixelcraft-desktop/references/working-context.md +5 -0
- package/skills/pixelcraft-direction/SKILL.md +154 -0
- package/skills/pixelcraft-direction/references/composition-library.md +84 -0
- package/skills/pixelcraft-direction/references/direction-card.md +54 -0
- package/skills/pixelcraft-direction/references/direction-scoring.md +72 -0
- package/skills/pixelcraft-direction/references/movements.md +68 -0
- package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +58 -0
- package/skills/pixelcraft-direction/references/wildcards.md +47 -0
- package/skills/pixelcraft-document/SKILL.md +54 -0
- package/skills/pixelcraft-document/references/archetypes.md +83 -0
- package/skills/pixelcraft-document/references/pdf-tools.md +154 -0
- package/skills/pixelcraft-document/references/print-css.md +134 -0
- package/skills/pixelcraft-document/references/slides.md +102 -0
- package/skills/pixelcraft-email/SKILL.md +58 -0
- package/skills/pixelcraft-email/references/client-quirks.md +45 -0
- package/skills/pixelcraft-email/references/html-tables.md +53 -0
- package/skills/pixelcraft-email/references/mjml.md +52 -0
- package/skills/pixelcraft-email/references/react-email.md +53 -0
- package/skills/pixelcraft-extensions/SKILL.md +51 -0
- package/skills/pixelcraft-extensions/references/browser-extensions.md +31 -0
- package/skills/pixelcraft-extensions/references/figma-office.md +23 -0
- package/skills/pixelcraft-extensions/references/raycast.md +19 -0
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +26 -0
- package/skills/pixelcraft-game-ui/SKILL.md +61 -0
- package/skills/pixelcraft-game-ui/references/bevy.md +52 -0
- package/skills/pixelcraft-game-ui/references/godot.md +57 -0
- package/skills/pixelcraft-game-ui/references/hud-principles.md +38 -0
- package/skills/pixelcraft-game-ui/references/love2d.md +51 -0
- package/skills/pixelcraft-game-ui/references/monogame.md +52 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +65 -0
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -0
- package/skills/pixelcraft-handoff/SKILL.md +49 -0
- package/skills/pixelcraft-handoff/references/design-translation.md +104 -0
- package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
- package/skills/pixelcraft-media/SKILL.md +52 -0
- package/skills/pixelcraft-media/references/banners-video.md +112 -0
- package/skills/pixelcraft-media/references/og-generation.md +107 -0
- package/skills/pixelcraft-media/references/social-cards.md +72 -0
- package/skills/pixelcraft-mobile/SKILL.md +69 -0
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +63 -0
- package/skills/pixelcraft-mobile/references/flet.md +53 -0
- package/skills/pixelcraft-mobile/references/flutter.md +69 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +65 -0
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +61 -0
- package/skills/pixelcraft-mobile/references/kivy.md +59 -0
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +60 -0
- package/skills/pixelcraft-mobile/references/react-native-expo.md +71 -0
- package/skills/pixelcraft-mobile/references/swiftui.md +70 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +5 -0
- package/skills/pixelcraft-mobile/references/uikit.md +58 -0
- package/skills/pixelcraft-patterns/SKILL.md +58 -0
- package/skills/pixelcraft-patterns/references/auth-onboarding.md +25 -0
- package/skills/pixelcraft-patterns/references/commerce.md +28 -0
- package/skills/pixelcraft-patterns/references/communication.md +26 -0
- package/skills/pixelcraft-patterns/references/creative-tools.md +29 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +31 -0
- package/skills/pixelcraft-patterns/references/marketing.md +32 -0
- package/skills/pixelcraft-patterns/references/pattern-selection.md +74 -0
- package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
- package/skills/pixelcraft-patterns/references/settings.md +23 -0
- package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
- package/skills/pixelcraft-plan/SKILL.md +67 -0
- package/skills/pixelcraft-plan/references/design-input.md +69 -0
- package/skills/pixelcraft-plan/references/plan-template.md +99 -0
- package/skills/pixelcraft-plan/references/repo-discovery.md +42 -0
- package/skills/pixelcraft-plan/references/stack-freshness.md +50 -0
- package/skills/pixelcraft-plan/references/stack-selection.md +42 -0
- package/skills/pixelcraft-review/SKILL.md +64 -0
- package/skills/pixelcraft-review/references/audit-report.md +50 -0
- package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
- package/skills/pixelcraft-review/references/heuristics.md +18 -0
- package/skills/pixelcraft-review/references/personas.md +26 -0
- package/skills/pixelcraft-review/references/polish.md +38 -0
- package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
- package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
- package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
- package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
- package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
- package/skills/pixelcraft-review/scripts/slop-scan.mjs +586 -0
- package/skills/pixelcraft-spatial/SKILL.md +52 -0
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +98 -0
- package/skills/pixelcraft-spatial/references/platforms.md +77 -0
- package/skills/pixelcraft-tokens/SKILL.md +56 -0
- package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
- package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
- package/skills/pixelcraft-tokens/references/adoption.md +55 -0
- package/skills/pixelcraft-tokens/references/format.md +54 -0
- package/skills/pixelcraft-tokens/references/governance.md +80 -0
- package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
- package/skills/pixelcraft-tokens/references/theme-presets.md +94 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +285 -0
- package/skills/pixelcraft-tui/SKILL.md +60 -0
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +60 -0
- package/skills/pixelcraft-tui/references/ink.md +60 -0
- package/skills/pixelcraft-tui/references/ratatui.md +62 -0
- package/skills/pixelcraft-tui/references/rich.md +62 -0
- package/skills/pixelcraft-tui/references/textual.md +67 -0
- package/skills/pixelcraft-ux/SKILL.md +46 -0
- package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
- package/skills/pixelcraft-ux/references/feedback-performance.md +30 -0
- package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
- package/skills/pixelcraft-ux/references/forms.md +97 -0
- package/skills/pixelcraft-ux/references/i18n.md +183 -0
- package/skills/pixelcraft-ux/references/laws.md +18 -0
- package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
- package/skills/pixelcraft-ux/references/state-matrix.md +39 -0
- package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
- package/skills/pixelcraft-ux/references/ux-writing.md +43 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +82 -0
- package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +38 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +34 -0
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +35 -0
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +31 -0
- package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
- package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
- package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +65 -0
- package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
- package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +135 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
- package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
- package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +513 -0
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1154 -0
- package/skills/pixelcraft-web/SKILL.md +76 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +25 -0
- package/skills/pixelcraft-web/references/angular.md +61 -0
- package/skills/pixelcraft-web/references/astro.md +62 -0
- package/skills/pixelcraft-web/references/clojurescript.md +53 -0
- package/skills/pixelcraft-web/references/elm.md +53 -0
- package/skills/pixelcraft-web/references/fsharp-fable.md +53 -0
- package/skills/pixelcraft-web/references/html-css.md +88 -0
- package/skills/pixelcraft-web/references/htmx-alpine.md +53 -0
- package/skills/pixelcraft-web/references/java-web.md +52 -0
- package/skills/pixelcraft-web/references/kotlin-web.md +53 -0
- package/skills/pixelcraft-web/references/leptos-yew.md +54 -0
- package/skills/pixelcraft-web/references/lit-web-components.md +61 -0
- package/skills/pixelcraft-web/references/pwa.md +225 -0
- package/skills/pixelcraft-web/references/qwik.md +54 -0
- package/skills/pixelcraft-web/references/react-next.md +69 -0
- package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
- package/skills/pixelcraft-web/references/server-rendered.md +71 -0
- package/skills/pixelcraft-web/references/solid.md +60 -0
- package/skills/pixelcraft-web/references/svelte.md +61 -0
- package/skills/pixelcraft-web/references/tailwind.md +73 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +62 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Pixelcraft design rationale
|
|
2
|
+
|
|
3
|
+
This document explains why Pixelcraft's rules exist. It is written for contributors before they change behavior. It is deliberately prose rather than a citation registry: the goal is to preserve the reasoning and trade-offs in Pixelcraft's own words, not to outsource judgment to a bibliography.
|
|
4
|
+
|
|
5
|
+
Public standards and platform guidelines such as WCAG 2.2, WAI-ARIA, Apple Human Interface Guidelines, Material Design, DTCG, Unicode CLDR, W3C internationalization guidance, and host documentation remain authoritative in their own domains. This document explains how Pixelcraft uses them; it does not replace them.
|
|
6
|
+
|
|
7
|
+
## Planning-first
|
|
8
|
+
|
|
9
|
+
**Rule:** inspect the existing repository or explicitly choose a greenfield stack before visual direction or implementation.
|
|
10
|
+
|
|
11
|
+
**Why:** UI decisions are constrained by architecture, ownership, data flow, distribution, verification tools, localization, and existing design authority. Without planning, agents confuse greenfield freedom with brownfield obligation and rediscover the same facts repeatedly.
|
|
12
|
+
|
|
13
|
+
**Trade-off:** planning adds a step before visible output. Pixelcraft accepts that cost because premature visual novelty is usually more expensive to undo than a concise plan is to write.
|
|
14
|
+
|
|
15
|
+
The design brief and evidence classification exist because agents otherwise mix user facts, repository observations, visual-source inference, research, assumptions, and unknowns into one confident narrative. Keeping those classes separate makes escalation and waiver decisions auditable without requiring a heavyweight requirements process.
|
|
16
|
+
|
|
17
|
+
## Authority order
|
|
18
|
+
|
|
19
|
+
**Rule:** the explicit user brief outranks project conventions; project conventions outrank platform defaults; platform and legal constraints outrank Pixelcraft guidance; model taste is last.
|
|
20
|
+
|
|
21
|
+
**Why:** taste is the easiest thing for a model to supply and the least reliable source of authority. Existing products encode decisions, constraints, and user expectations that are invisible in a prompt.
|
|
22
|
+
|
|
23
|
+
**Trade-off:** Pixelcraft may preserve a choice it would not have invented. That is intentional. The system flags material conflicts instead of silently replacing user or project decisions. An approved design fixes visual intent, but never silently overrides accessibility, legal/platform duties, architecture, security, or existing semantic constraints.
|
|
24
|
+
|
|
25
|
+
## Divergence and anti-slop
|
|
26
|
+
|
|
27
|
+
**Rule:** when visual direction is undecided, generate several genuinely different directions, score them, choose one, and record why alternatives lost. Do not rediverge an approved design.
|
|
28
|
+
|
|
29
|
+
**Why:** single-shot generation tends toward statistically safe layouts, palettes, copy, and components. Repetition across outputs is the root of recognizable AI slop. Deliberate divergence forces contact with subject matter, audience, material, and constraints before convergence on implementation detail.
|
|
30
|
+
|
|
31
|
+
**Trade-off:** divergence costs tokens and can produce unusable candidates. Pixelcraft treats that as exploration cost, but bounds it: divergence is skipped where the user has already decided the direction and applies only to undecided scope.
|
|
32
|
+
|
|
33
|
+
The scoring rubric, prototypicality guardrail, visual-complexity budget, and repetition-history schema exist to keep divergence disciplined. Anti-slop does not mean maximal novelty: operational interfaces benefit from familiar structure, while repetition history prevents unrelated outputs from converging on the same fashionable fingerprint.
|
|
34
|
+
|
|
35
|
+
## Typography, color, layout, and motion craft
|
|
36
|
+
|
|
37
|
+
**Rule:** craft decisions must be semantic, systematic, platform-aware, and testable. Type needs role/measure/hierarchy; color needs roles, ramps, contrast behavior, and mode logic; layout needs structure rather than decorative rearrangement; motion needs purpose, duration budget, rendering cost awareness, and reduced-motion fallback.
|
|
38
|
+
|
|
39
|
+
**Why:** superficial variation is easy to imitate and quickly becomes another template. Durable distinctiveness comes from coherent relationships among content, spacing, rhythm, material, interaction, and platform behavior.
|
|
40
|
+
|
|
41
|
+
**Trade-off:** systematic craft is less spontaneous than styling by instinct. It can also feel restrictive for expressive work. Pixelcraft still allows deliberate exceptions, but expects them to be named and verified rather than accidental.
|
|
42
|
+
|
|
43
|
+
Layout-quality inspection translates otherwise vague spacing critique into observable focal path, grouping, contour clutter, density, alignment, balance, and resize behavior. This keeps craft feedback repairable and reduces low-confidence iteration by taste.
|
|
44
|
+
|
|
45
|
+
## UX states, forms, and flows
|
|
46
|
+
|
|
47
|
+
**Rule:** design the job, flow, navigation, feedback, validation, recovery, and complete state matrix before polishing pixels.
|
|
48
|
+
|
|
49
|
+
**Why:** interfaces fail most often at the boundaries: empty data, loading, errors, permissions, long text, offline behavior, interruptions, destructive actions, concurrency, and malformed input. A visually faithful static screen can still be operationally broken.
|
|
50
|
+
|
|
51
|
+
**Trade-off:** state coverage increases implementation scope. Pixelcraft prefers explicit assumptions and prioritized matrices over pretending one happy-path frame represents the whole product.
|
|
52
|
+
|
|
53
|
+
Cognitive walkthroughs and lightweight usability-test escalation exist because inspection and real-user behavior answer different questions. Forms receive unusually detailed rules because validation timing, input preservation, tolerant parsing, assistive input, error summaries, and focus movement determine whether recovery is possible; generic “show clear errors” advice is insufficient.
|
|
54
|
+
|
|
55
|
+
## Accessibility floor
|
|
56
|
+
|
|
57
|
+
**Rule:** accessibility is mandatory unless the user explicitly waives a scoped item. WCAG 2.2 is treated as a floor, not a finish line.
|
|
58
|
+
|
|
59
|
+
**Why:** semantic structure, keyboard interaction, names/labels, focus visibility, contrast, target size, text scaling, reduced motion, error identity, and non-color meaning determine whether people can use the interface at all. They are not optional polish.
|
|
60
|
+
|
|
61
|
+
**Trade-off:** some visual concepts require adaptation or rejection. Pixelcraft accepts that constraint because inaccessible fidelity is not fidelity to a usable product.
|
|
62
|
+
|
|
63
|
+
Composite-widget contracts exist because adding an ARIA role does not create keyboard behavior, focus restoration, state exposure, or a usable screen-reader experience. Explicit WCAG 2.2 addition matrices and repeatable manual scripts prevent a passing scan or vague manual inspection from being mistaken for task completion.
|
|
64
|
+
|
|
65
|
+
## Internationalization
|
|
66
|
+
|
|
67
|
+
**Rule:** plan for text expansion and contraction, script shaping, font fallback, directionality, locale formatting, plural and grammatical variation, input composition, culturally appropriate copy, and emoji behavior from the start.
|
|
68
|
+
|
|
69
|
+
**Why:** English-shaped layouts hide fragility. Dense CJK text, long compounded words, RTL mirroring, stacked diacritics, line-breaking rules, and localized formats expose assumptions that cannot be fixed by translating strings at the end.
|
|
70
|
+
|
|
71
|
+
**Trade-off:** early i18n constraints reduce layout freedom and increase test matrices. The benefit is that the design survives real language rather than treating localization as a destructive afterthought.
|
|
72
|
+
|
|
73
|
+
Message-authoring and pseudolocalization rules exist because concatenated grammar cannot be repaired by translation memory or a wider column. Pseudolocalization is used as a controlled diagnostic for hard-coded strings, clipping, directionality, and placeholder corruption while explicitly remaining unable to validate translation quality or cultural appropriateness.
|
|
74
|
+
|
|
75
|
+
## Platform idioms
|
|
76
|
+
|
|
77
|
+
**Rule:** translate principles into the actual stack rather than copying web assumptions into mobile, desktop, data apps, TUI, email, documents, games, spatial UI, or constrained hardware.
|
|
78
|
+
|
|
79
|
+
**Why:** each platform has its own layout model, input modality, navigation contract, accessibility machinery, performance envelope, packaging limits, and user expectations. Literal visual copying often destroys usability even when it preserves pixels.
|
|
80
|
+
|
|
81
|
+
**Trade-off:** idiomatic translation means a design will not be byte-identical across platforms. Pixelcraft values behavioral fidelity and user success over false uniformity.
|
|
82
|
+
|
|
83
|
+
The shared surface acceptance matrix exists because platform references otherwise vary in depth. It gives every surface the same ownership questions—layout, navigation, input, restoration, accessibility exposure, localization, performance, safe geometry, capture, and privacy—while leaving the implementation idiom to the platform skill.
|
|
84
|
+
|
|
85
|
+
## Design tokens
|
|
86
|
+
|
|
87
|
+
**Rule:** use semantic tokens with explicit modes, aliases, and export targets rather than scattering leaf hex or measurement values through components.
|
|
88
|
+
|
|
89
|
+
**Why:** tokens preserve intent across themes, density, platforms, and rebrands. DTCG-style structure gives implementations a shared contract, while semantic naming prevents two visually identical values with different meanings from collapsing into one accidental constant.
|
|
90
|
+
|
|
91
|
+
**Trade-off:** token architecture requires maintenance and can feel heavy for a tiny prototype. Pixelcraft scales depth to the project but does not treat hard-coded drift as a neutral choice in durable systems.
|
|
92
|
+
|
|
93
|
+
Governance, state matrices, and adoption guidance exist because a token file is only the start of a design system. Renames, deprecations, semantic redefinitions, consumer migration, state combinations, rollback, and documentation determine whether teams can trust the system. Pixelcraft treats those as lightweight lifecycle rules rather than enterprise bureaucracy.
|
|
94
|
+
|
|
95
|
+
## Visual QA and verification
|
|
96
|
+
|
|
97
|
+
**Rule:** claims must carry evidence labels. Rendered inspection, screenshots, overlays, measurements, accessibility checks, and performance evidence outrank compile success or confident prose.
|
|
98
|
+
|
|
99
|
+
**Why:** agents overestimate visual quality when they inspect only source code. Rendering exposes clipping, contrast failure, font fallback, motion cost, overflow, state mismatch, rasterization differences, and broken interaction.
|
|
100
|
+
|
|
101
|
+
**Trade-off:** verification is environment-dependent and sometimes impossible. Pixelcraft requires honest `not-checked` or `waived` labels instead of fabricated certainty.
|
|
102
|
+
|
|
103
|
+
Task-driven QA, critic calibration, fidelity tolerance, and screenshot-baseline governance exist because visual verification is itself fallible. A screenshot can look convincing while the task fails; model critique can hallucinate or degrade through iteration; pixel diffs can hide hard state failures; baselines can become meaningless when updated merely to pass. These rules preserve evidence provenance and stop conditions.
|
|
104
|
+
|
|
105
|
+
## Evaluations
|
|
106
|
+
|
|
107
|
+
**Rule:** behavior-changing guidance should be represented by evaluation prompts, expected behaviors, and failure signals.
|
|
108
|
+
|
|
109
|
+
**Why:** prose that sounds good can still fail to alter agent behavior. Evals expose missing triggers, generic output, ignored constraints, false verification claims, and regressions caused by later edits.
|
|
110
|
+
|
|
111
|
+
**Trade-off:** evals require maintenance and cannot prove taste. They are regression instruments, not a substitute for human review or rendered evidence.
|
|
112
|
+
|
|
113
|
+
Structured fixture metadata exists to make negative controls explicit. A passing build, flattering screenshot, scanner zero, low pixel difference, or familiar framework choice should not be accepted as proof of the desired behavior. The validator checks fixture structure only; behavioral judgment still belongs to evaluators.
|
|
114
|
+
|
|
115
|
+
## Distribution and installer safety
|
|
116
|
+
|
|
117
|
+
**Rule:** canonical skills remain self-contained; generated adapters are reproducible artifacts; installers default to project scope, avoid privilege escalation, refuse symlink traversal, preserve existing files unless forced, and support dry runs.
|
|
118
|
+
|
|
119
|
+
**Why:** a skill pack edits the user's workspace. Trust depends on predictable scope, reversible inspection, no hidden overwrite behavior, and clear separation between canonical content and generated integration fragments.
|
|
120
|
+
|
|
121
|
+
**Trade-off:** supporting fewer verified targets is less flashy than claiming universal compatibility. Pixelcraft chooses explicit support boundaries over unsafe guesses about agent-specific paths.
|
|
122
|
+
|
|
123
|
+
## Brand and logo craft
|
|
124
|
+
|
|
125
|
+
**Rule:** identity work starts with strategy, metaphor inventory, many small concepts, silhouette reduction, appropriate reproduction, and small-size evidence. Pixel-art identities additionally require integer-grid discipline, curated palettes, deliberate dithering, and explicit small-size reductions.
|
|
126
|
+
|
|
127
|
+
**Why:** a logo identifies rather than explaining everything. Detail that looks impressive at hero size often disappears at 16 or 32 px, while mascot and pixel-art systems fail when geometry, palette, or personality is inconsistent.
|
|
128
|
+
|
|
129
|
+
**Trade-off:** reduction can remove clever detail. Pixelcraft prefers recognition, reproducibility, and contextual appropriateness over decorative complexity.
|
|
130
|
+
|
|
131
|
+
Brand governance exists because generated imagery is not yet a usable identity system. Ownership/versioning, provenance and licensing boundaries, clearspace, minimum sizes, incorrect-use rules, contrast pairs, and small-size artifacts prevent a strong concept from fragmenting into inconsistent exports. Legal clearance remains outside the agent's authority and must be escalated rather than implied.
|
|
132
|
+
|
|
133
|
+
## Live interface measurement
|
|
134
|
+
|
|
135
|
+
**Rule:** visual direction and critique must be grounded in rendered measurements as well as principles. Typography, palette, geometry, motion, cursor behavior, payload, and basic semantics should be inventoried when a browser runtime is available.
|
|
136
|
+
|
|
137
|
+
**Why:** live inspection of strongly art-directed interfaces showed a consistent separation between transferable mechanisms and harmful surface excess. Restrained type/palette inventories, controlled scale contrast, object-led composition, editorial indexing, intentional overlap, and motion used for spatial continuity can be measured. The same evidence also exposed heavy payloads, scroll manipulation, missing reduced-motion behavior, custom cursors, canvas-hidden semantics, and accessibility defects that visual acclaim can mask.
|
|
138
|
+
|
|
139
|
+
**Trade-off:** measurements can be misread as targets or false proof. Pixelcraft therefore treats corpus ranges as calibration, labels heuristic extraction limits, and requires human inspection plus task verification. The goal is not imitation by number; it is preventing taste adjectives and celebrated surfaces from overriding evidence.
|
|
140
|
+
|
|
141
|
+
## Changing these rules
|
|
142
|
+
|
|
143
|
+
Do not weaken a rule merely because a task is inconvenient. Change the rule when the underlying trade-off changed, when evidence shows the rule produces worse outcomes, or when a platform/standard changed. Record the reason in the commit and update affected skills, evals, and verification tooling together.
|
package/evals/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Pixelcraft evaluation corpus
|
|
2
|
+
|
|
3
|
+
This directory contains lightweight behavioral evaluations for every skill. Each skill has one markdown file named `evals/<skill-name>.md` with two prompt cases. A case records the prompt, expected behaviors, failure signals, and comparison criteria for a with-skill versus without-skill run.
|
|
4
|
+
|
|
5
|
+
## How to run an evaluation
|
|
6
|
+
|
|
7
|
+
1. Choose one case and create two matched runs in the same repository/fixture: one baseline run without the skill available and one treatment run with the skill available.
|
|
8
|
+
2. Use the same model, temperature, tools, repository state, time budget, and user prompt. Do not give the treatment run extra manual hints.
|
|
9
|
+
3. Inspect the final artifact and process transcript. Score each expected behavior as pass, partial, fail, or not applicable.
|
|
10
|
+
4. Inspect failure signals independently; a polished final screenshot does not cancel privacy, truthfulness, accessibility, or state-model failures.
|
|
11
|
+
5. Compare dimensions using the case table. Prefer concrete evidence: file diffs, command output, rendered screenshots, interaction recordings, validator results, and labeled uncertainty.
|
|
12
|
+
6. Record model/version/date/fixture/result in the evaluation notes. These cases are behavioral prompts, not deterministic unit tests.
|
|
13
|
+
|
|
14
|
+
For finish-gate and anti-slop changes, compare a landing page, a dashboard, and a brownfield design with justified brand choices. Keep task success, brief fidelity, missed confirmed failures and false positives separate; record repair rounds, elapsed time and tool cost. Spot-check rendered outcomes and include cases the reviewer has not optimized the rules against.
|
|
15
|
+
|
|
16
|
+
## Interpretation
|
|
17
|
+
|
|
18
|
+
For scoped-work or freshness experiments use the same model, task, lockfile and fixture for both runs. Record repeated file reads, duplicate tool calls, input/output tokens when exposed, tool time, repair rounds, and confirmed task outcomes. Do not reward reduced cost if it comes from skipping applicable verification. Keep agent-backed evaluation opt-in.
|
|
19
|
+
|
|
20
|
+
- The baseline can still pass; the goal is measuring whether the skill improves routing, specificity, verification, and constraint fidelity.
|
|
21
|
+
- Do not score keyword presence alone. A response that names a skill but ignores its constraints is a failure.
|
|
22
|
+
- A response that uses the skill's behavior without literally naming it can still satisfy the behavioral criterion.
|
|
23
|
+
- Treat exact documented limits as time-sensitive. Recheck official sources when updating a case.
|
|
24
|
+
|
|
25
|
+
## Validator contract
|
|
26
|
+
|
|
27
|
+
`npm run validate` requires every skill folder in `skills/` to have a matching `evals/<skill-name>.md` file containing at least one `## Case` heading. It also validates the structure of machine-readable JSON fixtures under `evals/fixtures/`: unique filename-matched IDs, existing skill references, context snapshots, expected routing, forbidden behaviors, rubric dimensions, negative controls, and baselines. The validator enforces presence/structure only; evaluators judge semantic quality.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Eval fixture schema
|
|
2
|
+
|
|
3
|
+
JSON fixtures in this directory define deterministic behavioral contexts for evaluation. They are structured inputs for evaluators, not executable user tests.
|
|
4
|
+
|
|
5
|
+
Required shape:
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"schemaVersion": 1,
|
|
10
|
+
"id": "fixture-id-matching-filename",
|
|
11
|
+
"skill": "pixelcraft-visual-qa",
|
|
12
|
+
"title": "short behavioral name",
|
|
13
|
+
"contextSnapshot": {
|
|
14
|
+
"surface": "surface under test",
|
|
15
|
+
"platform": "target platform/stack",
|
|
16
|
+
"mode": "Operate/Read/Persuade/Experience/Play/Communicate/hybrid",
|
|
17
|
+
"states": ["state coverage"],
|
|
18
|
+
"constraints": ["input/locale/runtime constraints"]
|
|
19
|
+
},
|
|
20
|
+
"prompt": "representative user prompt",
|
|
21
|
+
"expectedRouting": ["skills/references expected"],
|
|
22
|
+
"forbiddenBehaviors": ["behavior that must not occur"],
|
|
23
|
+
"rubricDimensions": [
|
|
24
|
+
{ "dimension": "what is judged", "pass": "pass evidence", "fail": "failure evidence" }
|
|
25
|
+
],
|
|
26
|
+
"negativeControls": [
|
|
27
|
+
{ "name": "control name", "input": "misleading evidence/condition", "mustNot": "incorrect inference/behavior" }
|
|
28
|
+
],
|
|
29
|
+
"baseline": {
|
|
30
|
+
"withoutSkill": "expected baseline weakness",
|
|
31
|
+
"withSkill": "expected improvement"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`schemaVersion` must be `1`. The validator checks structure, uniqueness, filename/id agreement, existing skill names, nonempty routing/forbidden/rubric/control arrays, and baseline fields. It does not judge semantic quality; evaluators do.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "direction-prototype-complexity",
|
|
4
|
+
"skill": "pixelcraft-direction",
|
|
5
|
+
"title": "Distinctiveness respects operational familiarity",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "high-frequency dispatch console",
|
|
8
|
+
"platform": "cross-platform desktop/tablet",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["dense data", "alarm state", "keyboard workflow"],
|
|
11
|
+
"constraints": ["user rejected generic dashboard", "existing history contains dark neon console"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Generate a distinctive direction for this expert dispatch console.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-direction", "references/direction-scoring.md", "references/repetition-history.md", "references/composition-library.md"],
|
|
15
|
+
"forbiddenBehaviors": ["scrambles familiar operational anatomy only for novelty", "changes hue/font and calls it divergent", "ignores repetition history"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "prototypicality", "pass": "learned task structure preserved with deliberate deviation", "fail": "unfamiliar layout increases task cost without reason" },
|
|
18
|
+
{ "dimension": "complexity budget", "pass": "density/grouping/focal competition assigned by mode", "fail": "noise or emptiness treated as quality" },
|
|
19
|
+
{ "dimension": "evidence scoring", "pass": "scorecard records tradeoffs and losing reasons", "fail": "instant convergence using taste adjectives" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "history repeat", "input": "prior fingerprint dark neon console", "mustNot": "repeat it without explicit continuity rationale" },
|
|
23
|
+
{ "name": "unusual equals better", "input": "novel radial navigation impairs dispatch scanning", "mustNot": "score novelty above task success" }
|
|
24
|
+
],
|
|
25
|
+
"baseline": {
|
|
26
|
+
"withoutSkill": "returns generic dashboard or arbitrary experimental layout",
|
|
27
|
+
"withSkill": "chooses a scored direction balancing familiarity, task fit, and distinctiveness"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "finish-gate-anti-slop",
|
|
4
|
+
"skill": "pixelcraft-visual-qa",
|
|
5
|
+
"title": "Do not pass a visually polished but broken flow",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "brownfield dashboard search and filters",
|
|
8
|
+
"platform": "responsive web",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["happy", "error", "empty", "loading", "keyboard focus"],
|
|
11
|
+
"constraints": ["390/768/1440 widths and 320 reflow", "approved Inter and purple wordmark", "sandbox only"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Verify a changed search UI with an approved brand system. A baseline shot looks correct on desktop. At narrow sizes an overlay covers submit; when the test backend is offline, loading hangs. The first three scoped repairs still leave a reproducible narrow failure. One recovery fixture is unavailable.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-visual-qa", "references/finish-gate.md", "pixelcraft-review"],
|
|
15
|
+
"forbiddenBehaviors": ["passes from screenshots alone", "calls unavailable coverage passed", "weakens an assertion or accepts a baseline to pass", "rewrites approved brand solely to satisfy detector", "runs a fourth repair"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "asserted task outcome", "pass": "checks resulting search data and relevant failure/empty/loading states at real runtime", "fail": "checks only page load or visual resemblance" },
|
|
18
|
+
{ "dimension": "evidence completeness", "pass": "covers the viewport matrix and keyboard; reports unavailable recovery as not-checked", "fail": "omits a required check or reports unrun success" },
|
|
19
|
+
{ "dimension": "repair cap", "pass": "retains before/after failure evidence and lists remaining failures as OPEN", "fail": "updates baseline without proving change or retries without a bound" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "approved brand", "input": "Inter and purple wordmark justified by design authority", "mustNot": "block the gate just because of a fingerprint" },
|
|
23
|
+
{ "name": "closed disclosure", "input": "content deliberately hidden inside a closed disclosure", "mustNot": "treat intentional state as missing essential content" },
|
|
24
|
+
{ "name": "polished desktop", "input": "expansive desktop screenshot with no verified task outcome", "mustNot": "report responsive or behavioral pass" }
|
|
25
|
+
],
|
|
26
|
+
"baseline": {
|
|
27
|
+
"withoutSkill": "reports the visually clean wide snapshot and a successful build",
|
|
28
|
+
"withSkill": "asserts actual task outcome, retains failures and scope, separates brand critique from gate"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "forms-accessibility-negative",
|
|
4
|
+
"skill": "pixelcraft-accessibility",
|
|
5
|
+
"title": "Composite form behavior is not role-only compliance",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "payment form with custom combobox and dialog",
|
|
8
|
+
"platform": "web",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["invalid input", "focus recovery", "paste/autofill", "high contrast"],
|
|
11
|
+
"constraints": ["keyboard-only", "screen reader unavailable", "WCAG 2.2 additions in scope"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Audit and repair this form for WCAG 2.2 and usable error recovery.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-accessibility", "references/wcag22-checks.md", "references/apg-patterns.md", "pixelcraft-ux"],
|
|
15
|
+
"forbiddenBehaviors": ["claims conformance from scanner zero", "uses role without keyboard/focus contract", "requires redundant re-entry"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "WCAG 2.2 additions", "pass": "occlusion/target/dragging/help/redundant entry/auth explicitly scoped", "fail": "only contrast checked" },
|
|
18
|
+
{ "dimension": "composite behavior", "pass": "interaction contract tested through entry/movement/exit/async refresh", "fail": "role-only compliance claim" },
|
|
19
|
+
{ "dimension": "verification honesty", "pass": "keyboard evidence separated from untested screen reader", "fail": "inference reported as manual AT evidence" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "scanner zero", "input": "automated scan reports no violations", "mustNot": "claim accessible or conformant" },
|
|
23
|
+
{ "name": "visual target padding", "input": "visual padding is 24px but hit box smaller", "mustNot": "pass target size" }
|
|
24
|
+
],
|
|
25
|
+
"baseline": {
|
|
26
|
+
"withoutSkill": "adds aria labels and reports generic compliance",
|
|
27
|
+
"withSkill": "tests task completion, state exposure, recovery, and scoped uncertainty"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "handoff-fidelity-tolerance",
|
|
4
|
+
"skill": "pixelcraft-handoff",
|
|
5
|
+
"title": "Normalized fidelity comparison",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "approved settings frame",
|
|
8
|
+
"platform": "existing component system",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["focus", "error", "long localized labels"],
|
|
11
|
+
"constraints": ["same viewport required", "dark mode", "dynamic timestamp must freeze"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Implement this approved mockup and compare it faithfully against the source.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-handoff", "references/design-translation.md", "references/fidelity-tolerance.md", "pixelcraft-visual-qa"],
|
|
15
|
+
"forbiddenBehaviors": ["runs divergence on approved visual scope", "uses one global pixel score", "ignores accessibility/state failures inside tolerance"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "normalization", "pass": "viewport/scale/mode/locale/data frozen before diff", "fail": "uncontrolled comparison" },
|
|
18
|
+
{ "dimension": "region tolerance", "pass": "hard failures and region classes declared", "fail": "blanket tolerance hides clipping/state mismatch" },
|
|
19
|
+
{ "dimension": "translation fidelity", "pass": "existing components/tokens reused idiomatically", "fail": "absolute-positioned screenshot clone" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "font rasterizer drift", "input": "small antialiasing-only difference", "mustNot": "trigger redesign or layout churn" },
|
|
23
|
+
{ "name": "low pixel difference", "input": "visually similar capture with missing focus state", "mustNot": "call fidelity accepted" }
|
|
24
|
+
],
|
|
25
|
+
"baseline": {
|
|
26
|
+
"withoutSkill": "copies pixels or redesigns approved scope",
|
|
27
|
+
"withSkill": "translates intent and reports normalized residual divergence"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "plan-brownfield-evidence",
|
|
4
|
+
"skill": "pixelcraft-plan",
|
|
5
|
+
"title": "Brownfield evidence classification",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "existing settings area",
|
|
8
|
+
"platform": "unknown brownfield repository",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["existing tokens", "partial design system"],
|
|
11
|
+
"constraints": ["do not rewrite stack", "screenshot supplied"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Map this repository and supplied settings mockup before changing the UI.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-plan", "references/repo-discovery.md", "references/design-input.md"],
|
|
15
|
+
"forbiddenBehaviors": ["implements before inventory", "treats screenshot as complete specification", "merges facts and assumptions"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "evidence separation", "pass": "facts classified by source and unknowns explicit", "fail": "assumptions presented as facts" },
|
|
18
|
+
{ "dimension": "repository grounding", "pass": "key claims cite inspected files/areas", "fail": "generic repository summary" },
|
|
19
|
+
{ "dimension": "handoff decision", "pass": "scope/provenance/completeness determine handoff need", "fail": "handoff omitted or automatic" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "empty directory illusion", "input": "empty immediate folder with parent project evidence", "mustNot": "classify greenfield without inspecting context" }
|
|
23
|
+
],
|
|
24
|
+
"baseline": {
|
|
25
|
+
"withoutSkill": "chooses a familiar framework or edits immediately",
|
|
26
|
+
"withSkill": "produces an evidence-classified plan and explicit verification boundary"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "visual-qa-task-evidence",
|
|
4
|
+
"skill": "pixelcraft-visual-qa",
|
|
5
|
+
"title": "Task completion beats page load",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "checkout payment step",
|
|
8
|
+
"platform": "responsive web",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["invalid card", "offline retry", "keyboard input"],
|
|
11
|
+
"constraints": ["390px width", "keyboard-only pass", "light theme"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Verify the implemented checkout flow visually and behaviorally.",
|
|
14
|
+
"expectedRouting": ["pixelcraft-visual-qa", "references/task-verification.md", "references/critique-rubric.md"],
|
|
15
|
+
"forbiddenBehaviors": ["claims task completion because page loads", "hides overflow globally", "updates baseline only to pass"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "task evidence", "pass": "task executed through expected end state or explicitly not run", "fail": "screenshot treated as behavior proof" },
|
|
18
|
+
{ "dimension": "failure capture", "pass": "failure traces preserved before retry", "fail": "evidence overwritten by blind retry" },
|
|
19
|
+
{ "dimension": "critic calibration", "pass": "confidence/localization/root cause recorded", "fail": "repeated speculative visual churn" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "successful build", "input": "build passes but no interaction occurs", "mustNot": "label rendered task verification complete" },
|
|
23
|
+
{ "name": "flattering capture", "input": "wide happy-path screenshot only", "mustNot": "claim small/error/input behavior" }
|
|
24
|
+
],
|
|
25
|
+
"baseline": {
|
|
26
|
+
"withoutSkill": "reports compilation and a single screenshot",
|
|
27
|
+
"withSkill": "produces task/outcome evidence with calibrated uncertainty"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"id": "workflow-checkpoints",
|
|
4
|
+
"skill": "pixelcraft",
|
|
5
|
+
"title": "Rebuild existing flows without skipping process or losing contracts",
|
|
6
|
+
"contextSnapshot": {
|
|
7
|
+
"surface": "booking flow",
|
|
8
|
+
"platform": "existing web app",
|
|
9
|
+
"mode": "Operate",
|
|
10
|
+
"states": ["deep-link entry", "booking confirmation", "validation failure"],
|
|
11
|
+
"constraints": ["preserve localized content and keyboard flow", "no authorized stack change"]
|
|
12
|
+
},
|
|
13
|
+
"prompt": "Rebuild our existing booking UI from scratch. Move quickly, but keep current links, booking behavior, translations and keyboard access.",
|
|
14
|
+
"expectedRouting": ["pixelcraft", "references/workflow-checkpoints.md", "pixelcraft-plan", "pixelcraft-visual-qa"],
|
|
15
|
+
"forbiddenBehaviors": ["treats the rebuild as greenfield", "starts implementation before inspecting preserved contracts", "claims success from a screenshot alone"],
|
|
16
|
+
"rubricDimensions": [
|
|
17
|
+
{ "dimension": "route", "pass": "classifies the work as a brownfield rebuild and records authorized changes", "fail": "replaces stack or public behavior without authorization" },
|
|
18
|
+
{ "dimension": "phase evidence", "pass": "records read paths and findings, spec, and implementation before claiming verified outcomes", "fail": "only names phases or lists filenames" },
|
|
19
|
+
{ "dimension": "preservation", "pass": "maps and checks links, task outcome, localization and keyboard flow or labels unavailable checks", "fail": "drops a contract or claims untested parity" }
|
|
20
|
+
],
|
|
21
|
+
"negativeControls": [
|
|
22
|
+
{ "name": "empty replacement directory", "input": "a new directory next to the existing booking flow", "mustNot": "classify the replacement as a new project without inspecting the existing product" },
|
|
23
|
+
{ "name": "passing static capture", "input": "a clean screenshot from the rebuilt route, with untested deep links", "mustNot": "treat the image as evidence that legacy entry points or task outcomes still work" },
|
|
24
|
+
{ "name": "add without replacing", "input": "instead of rebuilding, add a new waitlist screen on the current stack", "mustNot": "force a rebuild or greenfield route; map host contracts and plan the new flow before coding" }
|
|
25
|
+
],
|
|
26
|
+
"baseline": {
|
|
27
|
+
"withoutSkill": "starts with new components and accepts visual polish as parity",
|
|
28
|
+
"withSkill": "records the applicable phase outputs, scopes design changes, and checks preserved contracts"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# pixelcraft-accessibility evaluation cases
|
|
2
|
+
|
|
3
|
+
## Case 1 — audit form
|
|
4
|
+
|
|
5
|
+
**Prompt**
|
|
6
|
+
|
|
7
|
+
> Audit a checkout form for WCAG 2.2 issues and propose fixes.
|
|
8
|
+
|
|
9
|
+
**Expected behaviors**
|
|
10
|
+
|
|
11
|
+
- Selects or applies `pixelcraft-accessibility` behavior when the prompt matches its trigger.
|
|
12
|
+
- checks semantics/focus/contrast/error identification.
|
|
13
|
+
- tests WCAG 2.2 additions for focus occlusion, dragging alternatives, target size exceptions, consistent help, redundant entry, and accessible authentication.
|
|
14
|
+
- uses platform-appropriate verification.
|
|
15
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
16
|
+
|
|
17
|
+
**Failure signals**
|
|
18
|
+
|
|
19
|
+
- reports only color contrast.
|
|
20
|
+
- uses div buttons.
|
|
21
|
+
- claims compliance without evidence.
|
|
22
|
+
|
|
23
|
+
**With-vs-without comparison criteria**
|
|
24
|
+
|
|
25
|
+
| Dimension | Without skill baseline | With skill target |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
28
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
29
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|
|
30
|
+
|
|
31
|
+
## Case 2 — mobile review
|
|
32
|
+
|
|
33
|
+
**Prompt**
|
|
34
|
+
|
|
35
|
+
> Review a mobile onboarding flow for accessibility.
|
|
36
|
+
|
|
37
|
+
**Expected behaviors**
|
|
38
|
+
|
|
39
|
+
- Selects or applies `pixelcraft-accessibility` behavior when the prompt matches its trigger.
|
|
40
|
+
- covers touch target/screen reader/text scaling/reduced motion.
|
|
41
|
+
- requires complete composite-widget interaction contracts for dialogs/menus/tabs/comboboxes/disclosures rather than role-only ARIA.
|
|
42
|
+
- distinguishes verified from unchecked claims.
|
|
43
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
44
|
+
|
|
45
|
+
**Failure signals**
|
|
46
|
+
|
|
47
|
+
- keyboard-only desktop mindset.
|
|
48
|
+
- missing focus order.
|
|
49
|
+
- no dynamic-type behavior.
|
|
50
|
+
|
|
51
|
+
**With-vs-without comparison criteria**
|
|
52
|
+
|
|
53
|
+
| Dimension | Without skill baseline | With skill target |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
56
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
57
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# pixelcraft-brandkit evaluation cases
|
|
2
|
+
|
|
3
|
+
## Case 1 — brand world
|
|
4
|
+
|
|
5
|
+
**Prompt**
|
|
6
|
+
|
|
7
|
+
> Create a premium identity board for a climate robotics startup.
|
|
8
|
+
|
|
9
|
+
**Expected behaviors**
|
|
10
|
+
|
|
11
|
+
- Selects or applies `pixelcraft-brandkit` behavior when the prompt matches its trigger.
|
|
12
|
+
- diverges into distinct brand worlds.
|
|
13
|
+
- uses specific art direction/material/typographic evidence.
|
|
14
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
15
|
+
|
|
16
|
+
**Failure signals**
|
|
17
|
+
|
|
18
|
+
- generic blue gradient tech moodboard.
|
|
19
|
+
- logo-only output.
|
|
20
|
+
- unexplained image prompts.
|
|
21
|
+
|
|
22
|
+
**With-vs-without comparison criteria**
|
|
23
|
+
|
|
24
|
+
| Dimension | Without skill baseline | With skill target |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
27
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
28
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|
|
29
|
+
|
|
30
|
+
## Case 2 — logo QA
|
|
31
|
+
|
|
32
|
+
**Prompt**
|
|
33
|
+
|
|
34
|
+
> Evaluate a generated logo system before delivery.
|
|
35
|
+
|
|
36
|
+
**Expected behaviors**
|
|
37
|
+
|
|
38
|
+
- Selects or applies `pixelcraft-brandkit` behavior when the prompt matches its trigger.
|
|
39
|
+
- tests silhouette/scaling/meaning/trademark risk/visual consistency.
|
|
40
|
+
- includes appropriateness, distinctiveness, simplicity, monochrome behavior, mascot/pixel-art constraints when relevant, and rendered 16/32/64 px evidence.
|
|
41
|
+
- documents QA evidence.
|
|
42
|
+
- records asset naming/versioning, provenance/licensing, clearspace/minimum size, approved/incorrect use, contrast pairs, and ownership before treating generated imagery as final brand assets.
|
|
43
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
44
|
+
|
|
45
|
+
**Failure signals**
|
|
46
|
+
|
|
47
|
+
- accepts first image.
|
|
48
|
+
- illegible favicon.
|
|
49
|
+
- blurred or misaligned pixel geometry.
|
|
50
|
+
- stock icon resemblance.
|
|
51
|
+
|
|
52
|
+
**With-vs-without comparison criteria**
|
|
53
|
+
|
|
54
|
+
| Dimension | Without skill baseline | With skill target |
|
|
55
|
+
|---|---|---|
|
|
56
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
57
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
58
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# pixelcraft-chat-ui evaluation cases
|
|
2
|
+
|
|
3
|
+
## Case 1 — slack approval
|
|
4
|
+
|
|
5
|
+
**Prompt**
|
|
6
|
+
|
|
7
|
+
> Build a Slack approval card for expense reports.
|
|
8
|
+
|
|
9
|
+
**Expected behaviors**
|
|
10
|
+
|
|
11
|
+
- Selects or applies `pixelcraft-chat-ui` behavior when the prompt matches its trigger.
|
|
12
|
+
- uses Block Kit surface limits/native actions/ephemeral error behavior.
|
|
13
|
+
- Documents platform constraints, missing states, and verification tradeoffs explicitly.
|
|
14
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
15
|
+
|
|
16
|
+
**Failure signals**
|
|
17
|
+
|
|
18
|
+
- wall of text.
|
|
19
|
+
- dead buttons.
|
|
20
|
+
- public leakage of private validation.
|
|
21
|
+
|
|
22
|
+
**With-vs-without comparison criteria**
|
|
23
|
+
|
|
24
|
+
| Dimension | Without skill baseline | With skill target |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
27
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
28
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|
|
29
|
+
|
|
30
|
+
## Case 2 — discord flow
|
|
31
|
+
|
|
32
|
+
**Prompt**
|
|
33
|
+
|
|
34
|
+
> Design a Discord bug-report modal and follow-up components.
|
|
35
|
+
|
|
36
|
+
**Expected behaviors**
|
|
37
|
+
|
|
38
|
+
- Selects or applies `pixelcraft-chat-ui` behavior when the prompt matches its trigger.
|
|
39
|
+
- uses correct component/modal model/ids/expiry/fallback semantics.
|
|
40
|
+
- Documents platform constraints, missing states, and verification tradeoffs explicitly.
|
|
41
|
+
- Preserves truthful content, necessary states, accessibility, security/privacy constraints, and honest evidence labels.
|
|
42
|
+
|
|
43
|
+
**Failure signals**
|
|
44
|
+
|
|
45
|
+
- embed-only interaction.
|
|
46
|
+
- custom_id collisions.
|
|
47
|
+
- no unauthorized state.
|
|
48
|
+
|
|
49
|
+
**With-vs-without comparison criteria**
|
|
50
|
+
|
|
51
|
+
| Dimension | Without skill baseline | With skill target |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| Trigger/routing | Implements directly with generic assumptions | Recognizes the domain and applies the matching skill/reference |
|
|
54
|
+
| Constraint fidelity | Relies on common defaults or stale APIs | Uses the exact surface constraints, state model, and platform idioms in the expected behaviors |
|
|
55
|
+
| Verification | Reports code/text output only | Provides appropriate rendered/static/model evidence and labels unavailable checks |
|