@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
package/install.ps1
CHANGED
|
@@ -105,28 +105,65 @@ function Get-WorkflowTask([string]$Name) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
function
|
|
108
|
+
function Get-DisplaySkillRoot([string]$SkillRoot) {
|
|
109
|
+
$full = [System.IO.Path]::GetFullPath($SkillRoot)
|
|
110
|
+
if ($Global) {
|
|
111
|
+
$homeFull = [System.IO.Path]::GetFullPath([System.Environment]::GetFolderPath('UserProfile')).TrimEnd('\', '/')
|
|
112
|
+
if ($full.StartsWith($homeFull, [System.StringComparison]::OrdinalIgnoreCase)) {
|
|
113
|
+
return ('~' + $full.Substring($homeFull.Length)).Replace('\', '/')
|
|
114
|
+
}
|
|
115
|
+
return $full.Replace('\', '/')
|
|
116
|
+
}
|
|
117
|
+
$cwdFull = [System.IO.Path]::GetFullPath((Get-Location).Path).TrimEnd('\', '/')
|
|
118
|
+
$prefix = $cwdFull + [System.IO.Path]::DirectorySeparatorChar
|
|
119
|
+
if ($full.StartsWith($prefix, [System.StringComparison]::OrdinalIgnoreCase)) {
|
|
120
|
+
return $full.Substring($prefix.Length).Replace('\', '/')
|
|
121
|
+
}
|
|
122
|
+
return $full.Replace('\', '/')
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function Write-AdapterFile([string]$Path, [string[]]$Lines, [switch]$Managed) {
|
|
109
126
|
$parent = Split-Path -Parent $Path
|
|
110
127
|
Assert-TargetPathSafe $parent ([bool]$Global)
|
|
111
128
|
if (Test-ReparsePoint $Path) { throw "adapter output is a symlink or reparse point: $Path; refusing to install through it" }
|
|
112
129
|
$exists = Test-AnyPath $Path
|
|
113
|
-
if ($exists -and -not $Force) {
|
|
130
|
+
if (-not $Managed -and $exists -and -not $Force) {
|
|
114
131
|
$prefix = if ($DryRun) { 'dry-run: ' } else { '' }
|
|
115
132
|
Write-Host "${prefix}skipped existing adapter: $Path (use -Force to replace)"
|
|
116
133
|
return
|
|
117
134
|
}
|
|
118
135
|
if ($DryRun) {
|
|
119
|
-
|
|
136
|
+
$kind = if ($Managed) { 'managed adapter' } else { 'adapter' }
|
|
137
|
+
Write-Host "dry-run: $kind $Path"
|
|
120
138
|
return
|
|
121
139
|
}
|
|
122
140
|
if (-not (Test-AnyPath $parent)) { New-Item -ItemType Directory -Path $parent -Force | Out-Null }
|
|
123
141
|
Assert-TargetPathSafe $parent ([bool]$Global)
|
|
124
|
-
|
|
142
|
+
if ($Managed) {
|
|
143
|
+
$startMarker = '<!-- pixelcraft:start -->'
|
|
144
|
+
$endMarker = '<!-- pixelcraft:end -->'
|
|
145
|
+
$block = "$startMarker`n$($Lines -join "`n")`n$endMarker"
|
|
146
|
+
$existing = if ($exists) { [System.IO.File]::ReadAllText($Path) } else { '' }
|
|
147
|
+
$pattern = '(?s)<!-- pixelcraft:start -->.*?<!-- pixelcraft:end -->'
|
|
148
|
+
if ([regex]::IsMatch($existing, $pattern)) {
|
|
149
|
+
$output = [regex]::Replace($existing, $pattern, [System.Text.RegularExpressions.MatchEvaluator]{ param($m) $block }, 1)
|
|
150
|
+
} elseif ($existing.Contains($startMarker)) {
|
|
151
|
+
throw "managed Pixelcraft block is missing its end marker: fix $Path before installing"
|
|
152
|
+
} elseif ([string]::IsNullOrWhiteSpace($existing)) {
|
|
153
|
+
$output = "$block`n"
|
|
154
|
+
} else {
|
|
155
|
+
$output = "$($existing.TrimEnd())`n`n$block`n"
|
|
156
|
+
}
|
|
157
|
+
[System.IO.File]::WriteAllText($Path, $output, [System.Text.UTF8Encoding]::new($false))
|
|
158
|
+
} else {
|
|
159
|
+
Set-Content -LiteralPath $Path -Value $Lines -Encoding UTF8
|
|
160
|
+
}
|
|
125
161
|
Write-Host "installed adapter: $Path"
|
|
126
162
|
}
|
|
127
163
|
|
|
128
164
|
function Write-PixelcraftAdapter([string]$AgentName, [string]$SkillRoot) {
|
|
129
165
|
$base = Split-Path -Parent $SkillRoot
|
|
166
|
+
$displayRoot = Get-DisplaySkillRoot $SkillRoot
|
|
130
167
|
$workflowActions = @(
|
|
131
168
|
@{ Name = 'pixelcraft-plan'; Task = (Get-WorkflowTask 'pixelcraft-plan') },
|
|
132
169
|
@{ Name = 'pixelcraft-review'; Task = (Get-WorkflowTask 'pixelcraft-review') },
|
|
@@ -134,25 +171,34 @@ function Write-PixelcraftAdapter([string]$AgentName, [string]$SkillRoot) {
|
|
|
134
171
|
@{ Name = 'pixelcraft-direction'; Task = (Get-WorkflowTask 'pixelcraft-direction') }
|
|
135
172
|
)
|
|
136
173
|
if ($AgentName -eq 'claude') {
|
|
137
|
-
$commandActions = @(
|
|
174
|
+
$commandActions = @(
|
|
175
|
+
@{ Name = 'pixelcraft'; Task = (Get-WorkflowTask 'pixelcraft') },
|
|
176
|
+
@{ Name = 'pixelcraft-plan'; Task = (Get-WorkflowTask 'pixelcraft-plan') },
|
|
177
|
+
@{ Name = 'pixelcraft-review'; Task = (Get-WorkflowTask 'pixelcraft-review') },
|
|
178
|
+
@{ Name = 'pixelcraft-visual-qa'; Task = (Get-WorkflowTask 'pixelcraft-visual-qa') }
|
|
179
|
+
)
|
|
138
180
|
foreach ($action in $commandActions) {
|
|
139
181
|
Write-AdapterFile (Join-Path $base ("commands/$($action.Name).md")) @('---', "description: $($action.Task)", '---', '', "$($action.Task). Read and follow the self-contained $($action.Name) skill. Preserve user requirements, project conventions, accessibility, and evidence labels.")
|
|
140
182
|
}
|
|
141
183
|
} elseif ($AgentName -eq 'cursor') {
|
|
142
|
-
Write-AdapterFile (Join-Path $base 'rules/pixelcraft.mdc') @('---', 'description: Route UI design and review through Pixelcraft', 'alwaysApply: true', '---', '', '# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $
|
|
184
|
+
Write-AdapterFile (Join-Path $base 'rules/pixelcraft.mdc') @('---', 'description: Route UI design and review through Pixelcraft', 'alwaysApply: true', '---', '', '# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $displayRoot; do not inline large generated content.")
|
|
143
185
|
} elseif ($AgentName -eq 'copilot') {
|
|
144
|
-
Write-AdapterFile (Join-Path $base 'copilot-instructions.md') @('# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $
|
|
145
|
-
Write-AdapterFile (Join-Path $base 'instructions/pixelcraft.instructions.md') @('---', 'applyTo: "**/*.{html,css,scss,js,jsx,ts,tsx,vue,svelte,astro,py,rb,php,cs,java,kt,swift,dart,rs,go,lua,ex,exs,clj,cljs,elm,fs,scala}"', '---', '', 'When editing interface or user-facing behavior, follow copilot-instructions.md and read the matching Pixelcraft skill before implementation or review.')
|
|
186
|
+
Write-AdapterFile (Join-Path $base 'copilot-instructions.md') @('# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $displayRoot; do not inline large generated content.") -Managed
|
|
187
|
+
Write-AdapterFile (Join-Path $base 'instructions/pixelcraft.instructions.md') @('---', 'applyTo: "**/*.{html,css,scss,less,pcss,js,jsx,ts,tsx,vue,svelte,astro,mdx,razor,heex,erb,templ,twig,mjml,typ,tex,qmd,py,rb,php,cs,java,kt,swift,dart,rs,go,zig,lua,ex,exs,clj,cljs,elm,fs,scala,cpp,h,glsl,wgsl,qml,xaml,axaml,fxml,blp,slint,ets,uxml,uss,gd,tscn,tcss,qss,r,jl}"', '---', '', 'When editing interface or user-facing behavior, follow copilot-instructions.md and read the matching Pixelcraft skill before implementation or review.')
|
|
146
188
|
foreach ($action in $workflowActions) {
|
|
147
189
|
Write-AdapterFile (Join-Path $base ("prompts/$($action.Name).prompt.md")) @('---', "description: $($action.Task)", '---', '', "$($action.Task). Read and follow the self-contained $($action.Name) skill. Preserve user requirements, project conventions, accessibility, and evidence labels.")
|
|
148
190
|
}
|
|
149
191
|
} elseif ($AgentName -eq 'windsurf') {
|
|
150
|
-
|
|
192
|
+
if ($Global) {
|
|
193
|
+
Write-AdapterFile (Join-Path $base 'memories/global_rules.md') @('# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $displayRoot.") -Managed
|
|
194
|
+
} else {
|
|
195
|
+
Write-AdapterFile (Join-Path $base 'rules/pixelcraft.md') @('# Pixelcraft router', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $displayRoot.")
|
|
196
|
+
}
|
|
151
197
|
foreach ($action in $workflowActions) {
|
|
152
|
-
Write-AdapterFile (Join-Path $base ("workflows/$($action.Name).md")) @("# $($action.Task)", '', "1. Read the self-contained $($action.Name) skill under $
|
|
198
|
+
Write-AdapterFile (Join-Path $base ("workflows/$($action.Name).md")) @("# $($action.Task)", '', "1. Read the self-contained $($action.Name) skill under $displayRoot.", '2. Follow its workflow and references.', '3. Preserve user requirements, accessibility, and evidence labels.')
|
|
153
199
|
}
|
|
154
200
|
} elseif ($AgentName -eq 'kiro') {
|
|
155
|
-
Write-AdapterFile (Join-Path $base 'steering/pixelcraft.md') @('# Pixelcraft steering', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $
|
|
201
|
+
Write-AdapterFile (Join-Path $base 'steering/pixelcraft.md') @('# Pixelcraft steering', '', "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $displayRoot.")
|
|
156
202
|
}
|
|
157
203
|
}
|
|
158
204
|
|
package/install.sh
CHANGED
|
@@ -359,6 +359,67 @@ write_adapter_file() {
|
|
|
359
359
|
echo "installed adapter: $file"
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
write_managed_adapter_file() {
|
|
363
|
+
local file="$1"
|
|
364
|
+
shift
|
|
365
|
+
local dir
|
|
366
|
+
dir="$(dirname "$file")"
|
|
367
|
+
assert_target_path_safe "$dir"
|
|
368
|
+
[[ ! -L "$file" ]] || die "adapter output is a symlink: $file; refusing to install through it"
|
|
369
|
+
if (( dry_run )); then
|
|
370
|
+
echo "dry-run: managed adapter $file"
|
|
371
|
+
return
|
|
372
|
+
fi
|
|
373
|
+
mkdir -p "$dir"
|
|
374
|
+
assert_target_path_safe "$dir"
|
|
375
|
+
local start_marker='<!-- pixelcraft:start -->'
|
|
376
|
+
local end_marker='<!-- pixelcraft:end -->'
|
|
377
|
+
local block
|
|
378
|
+
block="$(printf '%s\n' "$start_marker" "$@" "$end_marker")"
|
|
379
|
+
if [[ ! -e "$file" ]]; then
|
|
380
|
+
printf '%s\n' "$block" > "$file"
|
|
381
|
+
echo "installed adapter: $file"
|
|
382
|
+
return
|
|
383
|
+
fi
|
|
384
|
+
local out="" line="" state="before" has_start=0 has_end=0
|
|
385
|
+
while IFS= read -r line || [[ -n "$line" ]]; do
|
|
386
|
+
if [[ "$state" == "before" && "$line" == *"$start_marker"* ]]; then
|
|
387
|
+
has_start=1
|
|
388
|
+
if [[ "$line" == *"$end_marker"* ]]; then
|
|
389
|
+
has_end=1
|
|
390
|
+
state="after"
|
|
391
|
+
out+="${block}"$'\n'
|
|
392
|
+
else
|
|
393
|
+
state="inside"
|
|
394
|
+
out+="${block}"$'\n'
|
|
395
|
+
fi
|
|
396
|
+
elif [[ "$state" == "inside" ]]; then
|
|
397
|
+
if [[ "$line" == *"$end_marker"* ]]; then
|
|
398
|
+
has_end=1
|
|
399
|
+
state="after"
|
|
400
|
+
fi
|
|
401
|
+
else
|
|
402
|
+
out+="${line}"$'\n'
|
|
403
|
+
fi
|
|
404
|
+
done < "$file"
|
|
405
|
+
if (( has_start && ! has_end )); then
|
|
406
|
+
die "managed Pixelcraft block is missing its end marker: fix $file before installing"
|
|
407
|
+
fi
|
|
408
|
+
if (( has_start )); then
|
|
409
|
+
printf '%s' "$out" > "$file"
|
|
410
|
+
else
|
|
411
|
+
while [[ "$out" == *$'\n' ]]; do
|
|
412
|
+
out="${out%$'\n'}"
|
|
413
|
+
done
|
|
414
|
+
if [[ -n "$out" ]]; then
|
|
415
|
+
printf '%s\n\n%s\n' "$out" "$block" > "$file"
|
|
416
|
+
else
|
|
417
|
+
printf '%s\n' "$block" > "$file"
|
|
418
|
+
fi
|
|
419
|
+
fi
|
|
420
|
+
echo "installed adapter: $file"
|
|
421
|
+
}
|
|
422
|
+
|
|
362
423
|
workflow_task() {
|
|
363
424
|
case "$1" in
|
|
364
425
|
pixelcraft-plan) printf '%s' 'Run Pixelcraft step-zero planning before UI work' ;;
|
|
@@ -369,10 +430,20 @@ workflow_task() {
|
|
|
369
430
|
esac
|
|
370
431
|
}
|
|
371
432
|
|
|
433
|
+
display_skill_root() {
|
|
434
|
+
local root="$1"
|
|
435
|
+
if [[ "$scope" == "global" ]]; then
|
|
436
|
+
printf '~%s' "${root#"$HOME"}"
|
|
437
|
+
else
|
|
438
|
+
printf '%s' "${root#"$PWD/"}"
|
|
439
|
+
fi
|
|
440
|
+
}
|
|
441
|
+
|
|
372
442
|
write_shell_adapters() {
|
|
373
443
|
local agent="$1"
|
|
374
444
|
local root="$2"
|
|
375
|
-
local base action task
|
|
445
|
+
local base action task display_root
|
|
446
|
+
display_root="$(display_skill_root "$root")"
|
|
376
447
|
case "$agent" in
|
|
377
448
|
claude)
|
|
378
449
|
base="${root%/skills}"
|
|
@@ -383,12 +454,12 @@ write_shell_adapters() {
|
|
|
383
454
|
;;
|
|
384
455
|
cursor)
|
|
385
456
|
base="${root%/skills}"
|
|
386
|
-
write_adapter_file "$base/rules/pixelcraft.mdc" '---' 'description: Route UI design and review through Pixelcraft' 'alwaysApply: true' '---' '' '# Pixelcraft router' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $
|
|
457
|
+
write_adapter_file "$base/rules/pixelcraft.mdc" '---' 'description: Route UI design and review through Pixelcraft' 'alwaysApply: true' '---' '' '# Pixelcraft router' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $display_root; do not inline large generated content."
|
|
387
458
|
;;
|
|
388
459
|
copilot)
|
|
389
460
|
base="${root%/skills}"
|
|
390
|
-
|
|
391
|
-
write_adapter_file "$base/instructions/pixelcraft.instructions.md" '---' 'applyTo: "**/*.{html,css,scss,js,jsx,ts,tsx,vue,svelte,astro,py,rb,php,cs,java,kt,swift,dart,rs,go,lua,ex,exs,clj,cljs,elm,fs,scala}"' '---' '' 'When editing interface or user-facing behavior, follow copilot-instructions.md and read the matching Pixelcraft skill before implementation or review.'
|
|
461
|
+
write_managed_adapter_file "$base/copilot-instructions.md" '# Pixelcraft router' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $display_root; do not inline large generated content."
|
|
462
|
+
write_adapter_file "$base/instructions/pixelcraft.instructions.md" '---' 'applyTo: "**/*.{html,css,scss,less,pcss,js,jsx,ts,tsx,vue,svelte,astro,mdx,razor,heex,erb,templ,twig,mjml,typ,tex,qmd,py,rb,php,cs,java,kt,swift,dart,rs,go,zig,lua,ex,exs,clj,cljs,elm,fs,scala,cpp,h,glsl,wgsl,qml,xaml,axaml,fxml,blp,slint,ets,uxml,uss,gd,tscn,tcss,qss,r,jl}"' '---' '' 'When editing interface or user-facing behavior, follow copilot-instructions.md and read the matching Pixelcraft skill before implementation or review.'
|
|
392
463
|
for action in pixelcraft-plan pixelcraft-review pixelcraft-visual-qa pixelcraft-direction; do
|
|
393
464
|
task="$(workflow_task "$action")"
|
|
394
465
|
write_adapter_file "$base/prompts/$action.prompt.md" '---' "description: $task" '---' '' "$task. Read and follow the self-contained \`$action\` skill. Preserve user requirements, project conventions, accessibility, and evidence labels."
|
|
@@ -397,13 +468,17 @@ write_shell_adapters() {
|
|
|
397
468
|
windsurf|kiro)
|
|
398
469
|
base="${root%/skills}"
|
|
399
470
|
if [[ "$agent" == "windsurf" ]]; then
|
|
400
|
-
|
|
471
|
+
if [[ "$scope" == "global" ]]; then
|
|
472
|
+
write_managed_adapter_file "$base/memories/global_rules.md" '# Pixelcraft router' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $display_root."
|
|
473
|
+
else
|
|
474
|
+
write_adapter_file "$base/rules/pixelcraft.md" '# Pixelcraft router' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $display_root."
|
|
475
|
+
fi
|
|
401
476
|
for action in pixelcraft-plan pixelcraft-review pixelcraft-visual-qa pixelcraft-direction; do
|
|
402
477
|
task="$(workflow_task "$action")"
|
|
403
|
-
write_adapter_file "$base/workflows/$action.md" "# $task" '' "1. Read the self-contained \`$action\` skill under $
|
|
478
|
+
write_adapter_file "$base/workflows/$action.md" "# $task" '' "1. Read the self-contained \`$action\` skill under $display_root." '2. Follow its workflow and references.' '3. Preserve user requirements, accessibility, and evidence labels.'
|
|
404
479
|
done
|
|
405
480
|
else
|
|
406
|
-
write_adapter_file "$base/steering/pixelcraft.md" '# Pixelcraft steering' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $
|
|
481
|
+
write_adapter_file "$base/steering/pixelcraft.md" '# Pixelcraft steering' '' "Use Pixelcraft for interface design, implementation, review, and visual QA. Start with pixelcraft-plan and read the matching self-contained skill under $display_root."
|
|
407
482
|
fi
|
|
408
483
|
;;
|
|
409
484
|
esac
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thanhnguyxn/pixelcraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Portable Agent Skills pack for distinctive UI and rigorous UX across frontend stacks",
|
|
5
|
+
"homepage": "https://thanhnguyxnorg.github.io/Pixelcraft/",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/ThanhNguyxnOrg/Pixelcraft/issues"
|
|
8
|
+
},
|
|
9
|
+
"author": "ThanhNguyxnOrg",
|
|
5
10
|
"license": "MIT",
|
|
6
11
|
"repository": {
|
|
7
12
|
"type": "git",
|
|
@@ -17,7 +22,14 @@
|
|
|
17
22
|
"pi-package",
|
|
18
23
|
"frontend",
|
|
19
24
|
"ui",
|
|
20
|
-
"ux"
|
|
25
|
+
"ux",
|
|
26
|
+
"accessibility",
|
|
27
|
+
"design-tokens",
|
|
28
|
+
"dtcg",
|
|
29
|
+
"multi-platform",
|
|
30
|
+
"tui",
|
|
31
|
+
"mobile",
|
|
32
|
+
"desktop"
|
|
21
33
|
],
|
|
22
34
|
"pi": {
|
|
23
35
|
"skills": [
|
|
@@ -31,9 +43,12 @@
|
|
|
31
43
|
"node": ">=18"
|
|
32
44
|
},
|
|
33
45
|
"scripts": {
|
|
34
|
-
"test": "npm run validate && npm run test:distribution && npm run test:installers && npm run test:adapters && npm run test:tokens && npm run test:validator && npm run test:finish-gate && npm run test:slop-scan",
|
|
46
|
+
"test": "npm run validate && npm run sync:docs:check && npm run test:sync-docs && npm run test:distribution && npm run test:installers && npm run test:adapters && npm run test:tokens && npm run test:validator && npm run test:finish-gate && npm run test:slop-scan && npm run test:cross-platform-qa && npm run eval:offline",
|
|
35
47
|
"test:browser": "npm run test:shoot && npm run test:style-inventory",
|
|
36
48
|
"validate": "node scripts/validate-skills.mjs",
|
|
49
|
+
"sync:docs": "node scripts/sync-docs.mjs --write",
|
|
50
|
+
"sync:docs:check": "node scripts/sync-docs.mjs --check",
|
|
51
|
+
"eval:offline": "node scripts/run-evals.mjs",
|
|
37
52
|
"build:adapters": "node scripts/build-adapters.mjs",
|
|
38
53
|
"build:skill-zips": "node scripts/build-skill-zips.mjs",
|
|
39
54
|
"test:adapters": "node scripts/test-build-adapters.mjs",
|
|
@@ -41,24 +56,37 @@
|
|
|
41
56
|
"test:distribution": "node scripts/test-distribution.mjs",
|
|
42
57
|
"test:tokens": "node scripts/test-export-tokens.mjs",
|
|
43
58
|
"test:validator": "node scripts/test-validate-skills.mjs",
|
|
59
|
+
"test:sync-docs": "node scripts/test-sync-docs.mjs",
|
|
44
60
|
"test:style-inventory": "node scripts/test-style-inventory.mjs",
|
|
45
61
|
"test:finish-gate": "node scripts/test-finish-gate.mjs",
|
|
46
62
|
"test:slop-scan": "node scripts/test-slop-scan.mjs",
|
|
47
|
-
"test:
|
|
63
|
+
"test:cross-platform-qa": "node scripts/test-cross-platform-qa.mjs",
|
|
64
|
+
"test:shoot": "node scripts/test-shoot.mjs",
|
|
65
|
+
"test:release-archives": "node scripts/test-release-archives.mjs"
|
|
48
66
|
},
|
|
49
67
|
"files": [
|
|
50
68
|
".agents/plugins/marketplace.json",
|
|
69
|
+
".antigravity-plugin/",
|
|
51
70
|
".claude-plugin/",
|
|
71
|
+
".codex-plugin/",
|
|
72
|
+
".cursor-plugin/",
|
|
73
|
+
".devin-plugin/",
|
|
74
|
+
".github/plugin/",
|
|
75
|
+
"GEMINI.md",
|
|
52
76
|
"plugin.json",
|
|
53
77
|
"gemini-extension.json",
|
|
78
|
+
"assets/pixelcraft-logo-128.png",
|
|
79
|
+
"assets/pixelcraft-logo-256.png",
|
|
54
80
|
"assets/pixelcraft-logo-512.png",
|
|
55
81
|
"bin/",
|
|
56
82
|
"scripts/",
|
|
57
83
|
"skills/",
|
|
58
84
|
"evals/",
|
|
59
85
|
"docs/",
|
|
86
|
+
"CHANGELOG.md",
|
|
60
87
|
"LICENSE",
|
|
61
88
|
"README.md",
|
|
89
|
+
"SECURITY.md",
|
|
62
90
|
"install.sh",
|
|
63
91
|
"install.ps1"
|
|
64
92
|
]
|
package/plugin.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "pixelcraft",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"description": "Portable Agent Skills for distinctive UI and rigorous UX across frontend stacks",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "ThanhNguyxnOrg",
|
|
8
|
+
"url": "https://github.com/ThanhNguyxnOrg"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://thanhnguyxnorg.github.io/Pixelcraft/",
|
|
6
11
|
"repository": "https://github.com/ThanhNguyxnOrg/Pixelcraft",
|
|
7
12
|
"license": "MIT",
|
|
8
13
|
"keywords": [
|
|
@@ -23,25 +23,22 @@ function parse(args) {
|
|
|
23
23
|
for (let index = 0; index < args.length; index += 1) {
|
|
24
24
|
const arg = args[index];
|
|
25
25
|
if (arg === '--help' || arg === '-h') options.help = true;
|
|
26
|
-
else if (arg === '--out') {
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
else if (arg === '--out') {
|
|
27
|
+
if (args[index + 1] === undefined) throw new Error('--out requires a value');
|
|
28
|
+
options.out = args[++index];
|
|
29
|
+
options.explicitOut = true;
|
|
30
|
+
} else if (arg.startsWith('--out=')) {
|
|
31
|
+
options.out = arg.slice(6);
|
|
32
|
+
options.explicitOut = true;
|
|
33
|
+
} else throw new Error(`unknown option: ${arg}`);
|
|
29
34
|
}
|
|
30
35
|
return options;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
|
-
function frontmatterValue(text, key) {
|
|
34
|
-
const match = new RegExp(`^${key}:[ \\t]*(?:["']?)(.+?)(?:["']?)$`, 'm').exec(text);
|
|
35
|
-
return match ? match[1].trim() : '';
|
|
36
|
-
}
|
|
37
|
-
|
|
38
38
|
function catalog() {
|
|
39
39
|
return fs.readdirSync(skillsRoot, { withFileTypes: true })
|
|
40
40
|
.filter((entry) => entry.isDirectory() && fs.existsSync(path.join(skillsRoot, entry.name, 'SKILL.md')))
|
|
41
|
-
.map((entry) => {
|
|
42
|
-
const text = fs.readFileSync(path.join(skillsRoot, entry.name, 'SKILL.md'), 'utf8');
|
|
43
|
-
return { name: entry.name, description: frontmatterValue(text, 'description') };
|
|
44
|
-
})
|
|
41
|
+
.map((entry) => ({ name: entry.name }))
|
|
45
42
|
.sort((a, b) => a.name.localeCompare(b.name));
|
|
46
43
|
}
|
|
47
44
|
|
|
@@ -95,7 +92,7 @@ ${skillList(skills, '.github/skills')}
|
|
|
95
92
|
|
|
96
93
|
function copilotPathInstructions() {
|
|
97
94
|
return `---
|
|
98
|
-
applyTo: "**/*.{html,css,scss,js,jsx,ts,tsx,vue,svelte,astro,py,rb,php,cs,java,kt,swift,dart,rs,go,lua,ex,exs,clj,cljs,elm,fs,scala}"
|
|
95
|
+
applyTo: "**/*.{html,css,scss,less,pcss,js,jsx,ts,tsx,vue,svelte,astro,mdx,razor,heex,erb,templ,twig,mjml,typ,tex,qmd,py,rb,php,cs,java,kt,swift,dart,rs,go,zig,lua,ex,exs,clj,cljs,elm,fs,scala,cpp,h,glsl,wgsl,qml,xaml,axaml,fxml,blp,slint,ets,uxml,uss,gd,tscn,tcss,qss,r,jl}"
|
|
99
96
|
---
|
|
100
97
|
|
|
101
98
|
When editing interface, styling, navigation, interaction, or user-facing copy in these files, follow the Pixelcraft routing instructions in \`.github/copilot-instructions.md\` and read the matching skill under \`.github/skills/\` before implementation or review.
|
|
@@ -229,6 +226,7 @@ function build() {
|
|
|
229
226
|
const fragments = {
|
|
230
227
|
claude: '.claude/skills',
|
|
231
228
|
codex: '.agents/skills',
|
|
229
|
+
agents: '.agents/skills',
|
|
232
230
|
cursor: '.cursor/skills',
|
|
233
231
|
gemini: '.gemini/skills',
|
|
234
232
|
copilot: '.github/skills',
|