@thanhnguyxn/pixelcraft 0.0.0-stage → 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 +20 -0
- package/.antigravity-plugin/plugin.json +32 -0
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +22 -0
- 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/LICENSE +21 -0
- package/README.md +264 -2
- package/SECURITY.md +28 -0
- package/assets/README.md +28 -0
- package/assets/pixelcraft-logo-128.png +0 -0
- package/assets/pixelcraft-logo-256.png +0 -0
- package/assets/pixelcraft-logo-512.png +0 -0
- package/bin/pixelcraft.mjs +852 -0
- package/docs/ARCHITECTURE.md +105 -0
- package/docs/DESIGN-RATIONALE.md +191 -0
- package/docs/INSTALL.md +221 -0
- package/evals/README.md +37 -0
- package/evals/fixtures/3d-web-engineering.json +69 -0
- package/evals/fixtures/README.md +36 -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/direction-prototype-complexity.json +29 -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/finish-gate-anti-slop.json +30 -0
- package/evals/fixtures/forms-accessibility-negative.json +29 -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/handoff-fidelity-tolerance.json +29 -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-brownfield-evidence.json +28 -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/visual-qa-task-evidence.json +29 -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/fixtures/workflow-checkpoints.json +30 -0
- package/evals/pixelcraft-accessibility.md +74 -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 +76 -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 +77 -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 +73 -0
- package/evals/pixelcraft-plan.md +127 -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 +86 -0
- package/evals/pixelcraft-web.md +89 -0
- package/evals/pixelcraft.md +70 -0
- package/gemini-extension.json +6 -0
- package/install.ps1 +341 -0
- package/install.sh +512 -0
- package/package.json +91 -4
- package/plugin.json +29 -0
- package/scripts/build-adapters.mjs +288 -0
- package/scripts/build-release-archives.mjs +61 -0
- package/scripts/build-skill-zips.mjs +94 -0
- package/scripts/run-evals.mjs +397 -0
- package/scripts/sync-docs.mjs +381 -0
- package/scripts/test-build-adapters.mjs +61 -0
- package/scripts/test-cross-platform-qa.mjs +359 -0
- package/scripts/test-distribution.mjs +203 -0
- package/scripts/test-export-tokens.mjs +361 -0
- package/scripts/test-finish-gate.mjs +271 -0
- package/scripts/test-installers.mjs +216 -0
- package/scripts/test-release-archives.mjs +42 -0
- package/scripts/test-shoot.mjs +87 -0
- package/scripts/test-slop-scan.mjs +416 -0
- package/scripts/test-style-inventory.mjs +234 -0
- package/scripts/test-sync-docs.mjs +140 -0
- package/scripts/test-validate-skills.mjs +195 -0
- package/scripts/validate-skills.mjs +658 -0
- package/skills/pixelcraft/SKILL.md +155 -0
- package/skills/pixelcraft/references/design-brief.md +75 -0
- package/skills/pixelcraft/references/floor.md +90 -0
- package/skills/pixelcraft/references/report-template.md +49 -0
- package/skills/pixelcraft/references/stack-detection.md +226 -0
- package/skills/pixelcraft/references/surface-acceptance.md +52 -0
- package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
- package/skills/pixelcraft-accessibility/SKILL.md +54 -0
- package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
- package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
- package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
- package/skills/pixelcraft-accessibility/references/verification.md +64 -0
- package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
- package/skills/pixelcraft-brandkit/SKILL.md +127 -0
- package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
- package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -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 +97 -0
- package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
- package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
- package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
- package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
- package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
- 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 +84 -0
- package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
- package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
- package/skills/pixelcraft-constrained/SKILL.md +52 -0
- package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
- package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
- package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
- package/skills/pixelcraft-craft/SKILL.md +58 -0
- package/skills/pixelcraft-craft/references/color.md +125 -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 +73 -0
- package/skills/pixelcraft-craft/references/motion.md +163 -0
- package/skills/pixelcraft-craft/references/typography.md +110 -0
- package/skills/pixelcraft-data-apps/SKILL.md +86 -0
- package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
- package/skills/pixelcraft-data-apps/references/dash.md +109 -0
- package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
- package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
- package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
- package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
- package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
- package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
- package/skills/pixelcraft-data-apps/references/panel.md +99 -0
- package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
- package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
- package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
- package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
- package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
- package/skills/pixelcraft-dataviz/SKILL.md +60 -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 +107 -0
- package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
- package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
- package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
- package/skills/pixelcraft-desktop/SKILL.md +93 -0
- package/skills/pixelcraft-desktop/references/appkit.md +92 -0
- package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
- package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
- package/skills/pixelcraft-desktop/references/electron.md +96 -0
- package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
- package/skills/pixelcraft-desktop/references/gtk.md +97 -0
- package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
- package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
- package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
- package/skills/pixelcraft-desktop/references/tauri.md +110 -0
- package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
- package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
- package/skills/pixelcraft-desktop/references/working-context.md +84 -0
- package/skills/pixelcraft-direction/SKILL.md +120 -0
- package/skills/pixelcraft-direction/references/composition-library.md +84 -0
- package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
- package/skills/pixelcraft-direction/references/direction-card.md +64 -0
- package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
- package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
- package/skills/pixelcraft-direction/references/movements.md +71 -0
- package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
- package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
- package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
- package/skills/pixelcraft-direction/references/wildcards.md +47 -0
- package/skills/pixelcraft-document/SKILL.md +58 -0
- package/skills/pixelcraft-document/references/archetypes.md +106 -0
- package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
- package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
- package/skills/pixelcraft-document/references/print-css.md +187 -0
- package/skills/pixelcraft-document/references/slides.md +198 -0
- package/skills/pixelcraft-email/SKILL.md +80 -0
- package/skills/pixelcraft-email/references/client-quirks.md +113 -0
- package/skills/pixelcraft-email/references/html-tables.md +114 -0
- package/skills/pixelcraft-email/references/maizzle.md +54 -0
- package/skills/pixelcraft-email/references/mjml.md +54 -0
- package/skills/pixelcraft-email/references/react-email.md +95 -0
- package/skills/pixelcraft-extensions/SKILL.md +56 -0
- package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
- package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
- package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
- package/skills/pixelcraft-extensions/references/raycast.md +98 -0
- package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
- package/skills/pixelcraft-game-ui/SKILL.md +80 -0
- package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
- package/skills/pixelcraft-game-ui/references/godot.md +130 -0
- package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
- package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
- package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
- package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
- package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
- package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
- package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
- package/skills/pixelcraft-handoff/SKILL.md +50 -0
- package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
- package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
- package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
- package/skills/pixelcraft-media/SKILL.md +49 -0
- package/skills/pixelcraft-media/references/banners-video.md +130 -0
- package/skills/pixelcraft-media/references/og-generation.md +154 -0
- package/skills/pixelcraft-media/references/social-cards.md +71 -0
- package/skills/pixelcraft-mobile/SKILL.md +86 -0
- package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
- package/skills/pixelcraft-mobile/references/flet.md +80 -0
- package/skills/pixelcraft-mobile/references/flutter.md +113 -0
- package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
- package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
- package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
- package/skills/pixelcraft-mobile/references/kivy.md +82 -0
- package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
- 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 +106 -0
- package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
- package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
- package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
- package/skills/pixelcraft-mobile/references/uikit.md +92 -0
- package/skills/pixelcraft-patterns/SKILL.md +75 -0
- 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 +44 -0
- 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 +47 -0
- package/skills/pixelcraft-patterns/references/communication.md +45 -0
- package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
- package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
- package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
- package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
- package/skills/pixelcraft-patterns/references/marketing.md +44 -0
- 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 +80 -0
- 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/search-filtering.md +42 -0
- package/skills/pixelcraft-patterns/references/settings.md +51 -0
- package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
- package/skills/pixelcraft-plan/SKILL.md +103 -0
- package/skills/pixelcraft-plan/references/design-input.md +69 -0
- 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 +134 -0
- package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
- package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
- package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
- package/skills/pixelcraft-review/SKILL.md +86 -0
- package/skills/pixelcraft-review/references/audit-report.md +69 -0
- package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
- package/skills/pixelcraft-review/references/heuristics.md +63 -0
- package/skills/pixelcraft-review/references/personas.md +53 -0
- package/skills/pixelcraft-review/references/polish.md +78 -0
- package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -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-longhand-removal.css +34 -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 +1233 -0
- package/skills/pixelcraft-spatial/SKILL.md +51 -0
- package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
- package/skills/pixelcraft-spatial/references/platforms.md +147 -0
- package/skills/pixelcraft-tokens/SKILL.md +60 -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 +84 -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 +122 -0
- package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
- package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
- package/skills/pixelcraft-tui/SKILL.md +76 -0
- package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
- package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
- package/skills/pixelcraft-tui/references/ink.md +109 -0
- package/skills/pixelcraft-tui/references/ratatui.md +102 -0
- package/skills/pixelcraft-tui/references/rich.md +82 -0
- package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
- package/skills/pixelcraft-tui/references/textual.md +108 -0
- package/skills/pixelcraft-ux/SKILL.md +56 -0
- package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
- package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
- package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
- package/skills/pixelcraft-ux/references/forms.md +151 -0
- package/skills/pixelcraft-ux/references/i18n.md +221 -0
- package/skills/pixelcraft-ux/references/laws.md +39 -0
- package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
- package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
- package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
- package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
- package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
- package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
- package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
- package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
- package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
- package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -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/motion-capture.md +63 -0
- package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
- package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
- package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -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 +174 -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 +668 -0
- package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
- package/skills/pixelcraft-web/SKILL.md +132 -0
- package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
- package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
- package/skills/pixelcraft-web/references/angular.md +108 -0
- package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
- package/skills/pixelcraft-web/references/astro.md +113 -0
- 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 +88 -0
- 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/elm.md +53 -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 +54 -0
- package/skills/pixelcraft-web/references/gsap.md +102 -0
- package/skills/pixelcraft-web/references/html-css.md +220 -0
- package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
- 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 +61 -0
- package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
- package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
- package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
- 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 +230 -0
- package/skills/pixelcraft-web/references/qwik.md +94 -0
- package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
- package/skills/pixelcraft-web/references/react-next.md +168 -0
- 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/scala-laminar.md +53 -0
- package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
- package/skills/pixelcraft-web/references/server-rendered.md +114 -0
- 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 +111 -0
- 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 +111 -0
- package/skills/pixelcraft-web/references/tailwind.md +99 -0
- package/skills/pixelcraft-web/references/video-media.md +69 -0
- package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
- package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
package/install.sh
ADDED
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
repo="${PIXELCRAFT_REPO:-ThanhNguyxnOrg/Pixelcraft}"
|
|
5
|
+
ref="${PIXELCRAFT_REF:-main}"
|
|
6
|
+
archive="${PIXELCRAFT_ARCHIVE:-}"
|
|
7
|
+
agents_arg="agents"
|
|
8
|
+
skills_arg="all"
|
|
9
|
+
scope="project"
|
|
10
|
+
force=0
|
|
11
|
+
dry_run=0
|
|
12
|
+
docs_mcp=0
|
|
13
|
+
|
|
14
|
+
usage() {
|
|
15
|
+
cat <<'USAGE'
|
|
16
|
+
Usage: install.sh [--agent NAME] [--skills LIST|all] [--global] [--force] [--dry-run]
|
|
17
|
+
|
|
18
|
+
Install Pixelcraft without Node.js by downloading the GitHub source tarball and
|
|
19
|
+
copying self-contained skill folders into an agent skills directory.
|
|
20
|
+
|
|
21
|
+
Options:
|
|
22
|
+
--agent NAME claude, codex, agents, devin, cursor, gemini, copilot,
|
|
23
|
+
windsurf, opencode, kiro, cline, roo, droid, antigravity, or all.
|
|
24
|
+
Amp, Zed and Goose map to agents.
|
|
25
|
+
Default: agents.
|
|
26
|
+
--skills LIST Comma-separated skill names, or all. Default: all.
|
|
27
|
+
--global Install in the user-level skills directory.
|
|
28
|
+
--project Install in the current project (default).
|
|
29
|
+
--force Replace explicitly requested existing skills. Auto-added
|
|
30
|
+
core skills install only when missing.
|
|
31
|
+
--dry-run Print copies without writing files.
|
|
32
|
+
--docs-mcp Print optional Context7 setup guidance without configuring any host.
|
|
33
|
+
--ref REF Git branch, tag, or commit archive to download (default: main).
|
|
34
|
+
--repo OWNER/REPO GitHub repository (default: ThanhNguyxnOrg/Pixelcraft).
|
|
35
|
+
--archive PATH Use a local repository .tar.gz instead of downloading.
|
|
36
|
+
|
|
37
|
+
Example:
|
|
38
|
+
curl -fsSL https://raw.githubusercontent.com/ThanhNguyxnOrg/Pixelcraft/main/install.sh | bash -s -- --agent claude --skills all
|
|
39
|
+
|
|
40
|
+
The script never uses sudo, refuses symlinked target/skill directories, and
|
|
41
|
+
skips existing skill directories unless --force is passed.
|
|
42
|
+
USAGE
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
die() {
|
|
46
|
+
echo "install.sh: $*" >&2
|
|
47
|
+
exit 1
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
while [[ $# -gt 0 ]]; do
|
|
51
|
+
case "$1" in
|
|
52
|
+
--agent)
|
|
53
|
+
shift
|
|
54
|
+
[[ $# -gt 0 ]] || die "--agent requires a value"
|
|
55
|
+
agents_arg="$1"
|
|
56
|
+
;;
|
|
57
|
+
--agent=*) agents_arg="${1#--agent=}" ;;
|
|
58
|
+
--skills|--skill)
|
|
59
|
+
shift
|
|
60
|
+
[[ $# -gt 0 ]] || die "--skills requires a value"
|
|
61
|
+
skills_arg="$1"
|
|
62
|
+
;;
|
|
63
|
+
--skills=*|--skill=*) skills_arg="${1#*=}" ;;
|
|
64
|
+
--global) scope="global" ;;
|
|
65
|
+
--project) scope="project" ;;
|
|
66
|
+
--force) force=1 ;;
|
|
67
|
+
--dry-run) dry_run=1 ;;
|
|
68
|
+
--docs-mcp) docs_mcp=1 ;;
|
|
69
|
+
--ref)
|
|
70
|
+
shift
|
|
71
|
+
[[ $# -gt 0 ]] || die "--ref requires a value"
|
|
72
|
+
ref="$1"
|
|
73
|
+
;;
|
|
74
|
+
--ref=*) ref="${1#--ref=}" ;;
|
|
75
|
+
--repo)
|
|
76
|
+
shift
|
|
77
|
+
[[ $# -gt 0 ]] || die "--repo requires a value"
|
|
78
|
+
repo="$1"
|
|
79
|
+
;;
|
|
80
|
+
--repo=*) repo="${1#--repo=}" ;;
|
|
81
|
+
--archive)
|
|
82
|
+
shift
|
|
83
|
+
[[ $# -gt 0 ]] || die "--archive requires a value"
|
|
84
|
+
archive="$1"
|
|
85
|
+
;;
|
|
86
|
+
--archive=*) archive="${1#--archive=}" ;;
|
|
87
|
+
-h|--help)
|
|
88
|
+
usage
|
|
89
|
+
exit 0
|
|
90
|
+
;;
|
|
91
|
+
*) die "unknown option: $1" ;;
|
|
92
|
+
esac
|
|
93
|
+
shift
|
|
94
|
+
done
|
|
95
|
+
|
|
96
|
+
trim() {
|
|
97
|
+
local value="$1"
|
|
98
|
+
value="${value#"${value%%[![:space:]]*}"}"
|
|
99
|
+
value="${value%"${value##*[![:space:]]}"}"
|
|
100
|
+
printf '%s' "$value"
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
contains() {
|
|
104
|
+
local needle="$1"
|
|
105
|
+
shift
|
|
106
|
+
local item
|
|
107
|
+
for item in "$@"; do
|
|
108
|
+
[[ "$item" == "$needle" ]] && return 0
|
|
109
|
+
done
|
|
110
|
+
return 1
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
canonical_agent() {
|
|
114
|
+
local value
|
|
115
|
+
value="$(printf '%s' "$1" | tr '[:upper:]' '[:lower:]')"
|
|
116
|
+
case "$value" in
|
|
117
|
+
claude-code) value="claude" ;;
|
|
118
|
+
gemini-cli) value="gemini" ;;
|
|
119
|
+
github-copilot) value="copilot" ;;
|
|
120
|
+
open-code) value="opencode" ;;
|
|
121
|
+
roo-code) value="roo" ;;
|
|
122
|
+
factory) value="droid" ;;
|
|
123
|
+
amp|zed|goose) value="agents" ;;
|
|
124
|
+
esac
|
|
125
|
+
printf '%s' "$value"
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
valid_agent() {
|
|
129
|
+
case "$1" in
|
|
130
|
+
claude|codex|agents|devin|cursor|gemini|copilot|windsurf|opencode|kiro|cline|roo|droid|antigravity|all) return 0 ;;
|
|
131
|
+
*) return 1 ;;
|
|
132
|
+
esac
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
agents=()
|
|
136
|
+
all_agents=(claude codex agents devin cursor gemini copilot windsurf opencode kiro cline roo droid antigravity)
|
|
137
|
+
IFS=',' read -r -a raw_agents <<< "$agents_arg"
|
|
138
|
+
use_all_agents=0
|
|
139
|
+
for raw in ${raw_agents[@]+"${raw_agents[@]}"}; do
|
|
140
|
+
raw="$(trim "$raw")"
|
|
141
|
+
[[ -n "$raw" ]] || continue
|
|
142
|
+
agent="$(canonical_agent "$raw")"
|
|
143
|
+
valid_agent "$agent" || die "invalid agent '$raw'"
|
|
144
|
+
if [[ "$agent" == "all" ]]; then
|
|
145
|
+
use_all_agents=1
|
|
146
|
+
break
|
|
147
|
+
fi
|
|
148
|
+
contains "$agent" ${agents[@]+"${agents[@]}"} || agents+=("$agent")
|
|
149
|
+
done
|
|
150
|
+
if (( use_all_agents )); then
|
|
151
|
+
agents=(${all_agents[@]+"${all_agents[@]}"})
|
|
152
|
+
fi
|
|
153
|
+
(( ${#agents[@]} > 0 )) || die "at least one agent is required"
|
|
154
|
+
|
|
155
|
+
tmp="$(mktemp -d)"
|
|
156
|
+
cleanup() {
|
|
157
|
+
rm -rf "$tmp"
|
|
158
|
+
}
|
|
159
|
+
trap cleanup EXIT
|
|
160
|
+
|
|
161
|
+
bundle="$tmp/pixelcraft.tar.gz"
|
|
162
|
+
if [[ -n "$archive" ]]; then
|
|
163
|
+
[[ -f "$archive" ]] || die "archive not found: $archive"
|
|
164
|
+
cp "$archive" "$bundle"
|
|
165
|
+
else
|
|
166
|
+
url="https://github.com/$repo/archive/$ref.tar.gz"
|
|
167
|
+
if command -v curl >/dev/null 2>&1; then
|
|
168
|
+
curl -fsSL "$url" -o "$bundle" || die "failed to download $url"
|
|
169
|
+
elif command -v wget >/dev/null 2>&1; then
|
|
170
|
+
wget -q "$url" -O "$bundle" || die "failed to download $url"
|
|
171
|
+
else
|
|
172
|
+
die "curl or wget is required"
|
|
173
|
+
fi
|
|
174
|
+
fi
|
|
175
|
+
|
|
176
|
+
tar -xzf "$bundle" -C "$tmp" || die "failed to extract repository tarball"
|
|
177
|
+
source_root=""
|
|
178
|
+
if [[ -d "$tmp/skills" ]]; then
|
|
179
|
+
source_root="$tmp"
|
|
180
|
+
else
|
|
181
|
+
for dir in "$tmp"/*; do
|
|
182
|
+
if [[ -d "$dir/skills" ]]; then
|
|
183
|
+
source_root="$dir"
|
|
184
|
+
break
|
|
185
|
+
fi
|
|
186
|
+
done
|
|
187
|
+
fi
|
|
188
|
+
[[ -n "$source_root" ]] || die "archive does not contain a skills directory"
|
|
189
|
+
|
|
190
|
+
available=()
|
|
191
|
+
shopt -s nullglob
|
|
192
|
+
for dir in "$source_root"/skills/*; do
|
|
193
|
+
if [[ -f "$dir/SKILL.md" ]]; then
|
|
194
|
+
available+=("$(basename "$dir")")
|
|
195
|
+
fi
|
|
196
|
+
done
|
|
197
|
+
(( ${#available[@]} > 0 )) || die "no skills found in archive"
|
|
198
|
+
|
|
199
|
+
IFS=',' read -r -a raw_skills <<< "$skills_arg"
|
|
200
|
+
use_all_skills=0
|
|
201
|
+
parsed_skills=()
|
|
202
|
+
for raw in ${raw_skills[@]+"${raw_skills[@]}"}; do
|
|
203
|
+
raw="$(trim "$raw")"
|
|
204
|
+
[[ -n "$raw" ]] || continue
|
|
205
|
+
if [[ "$raw" == "all" ]]; then
|
|
206
|
+
use_all_skills=1
|
|
207
|
+
break
|
|
208
|
+
fi
|
|
209
|
+
contains "$raw" ${available[@]+"${available[@]}"} || die "unknown skill '$raw'; available: ${available[*]}"
|
|
210
|
+
contains "$raw" ${parsed_skills[@]+"${parsed_skills[@]}"} || parsed_skills+=("$raw")
|
|
211
|
+
done
|
|
212
|
+
|
|
213
|
+
selected=()
|
|
214
|
+
if (( use_all_skills )); then
|
|
215
|
+
for name in ${available[@]+"${available[@]}"}; do
|
|
216
|
+
selected+=("$name:explicit")
|
|
217
|
+
done
|
|
218
|
+
else
|
|
219
|
+
injected=()
|
|
220
|
+
for core in pixelcraft pixelcraft-plan; do
|
|
221
|
+
if contains "$core" ${available[@]+"${available[@]}"} && ! contains "$core" ${parsed_skills[@]+"${parsed_skills[@]}"}; then
|
|
222
|
+
injected+=("$core")
|
|
223
|
+
fi
|
|
224
|
+
done
|
|
225
|
+
if (( ${#injected[@]} > 0 )); then
|
|
226
|
+
echo "note: including required core skill(s): ${injected[*]}"
|
|
227
|
+
for name in ${injected[@]+"${injected[@]}"}; do
|
|
228
|
+
selected+=("$name:auto")
|
|
229
|
+
done
|
|
230
|
+
fi
|
|
231
|
+
for name in ${parsed_skills[@]+"${parsed_skills[@]}"}; do
|
|
232
|
+
selected+=("$name:explicit")
|
|
233
|
+
done
|
|
234
|
+
fi
|
|
235
|
+
(( ${#selected[@]} > 0 )) || die "at least one skill is required"
|
|
236
|
+
|
|
237
|
+
target_for() {
|
|
238
|
+
local agent="$1"
|
|
239
|
+
if [[ "$scope" == "project" ]]; then
|
|
240
|
+
case "$agent" in
|
|
241
|
+
claude) printf '%s/.claude/skills\n' "$PWD" ;;
|
|
242
|
+
codex|agents|devin|antigravity) printf '%s/.agents/skills\n' "$PWD" ;;
|
|
243
|
+
cursor) printf '%s/.cursor/skills\n' "$PWD" ;;
|
|
244
|
+
gemini) printf '%s/.gemini/skills\n' "$PWD" ;;
|
|
245
|
+
copilot) printf '%s/.github/skills\n' "$PWD" ;;
|
|
246
|
+
windsurf) printf '%s/.windsurf/skills\n' "$PWD" ;;
|
|
247
|
+
kiro) printf '%s/.kiro/skills\n' "$PWD" ;;
|
|
248
|
+
cline) printf '%s/.cline/skills\n' "$PWD" ;;
|
|
249
|
+
roo) printf '%s/.roo/skills\n' "$PWD" ;;
|
|
250
|
+
droid) printf '%s/.factory/skills\n' "$PWD" ;;
|
|
251
|
+
opencode) printf '%s/.opencode/skills\n' "$PWD" ;;
|
|
252
|
+
esac
|
|
253
|
+
else
|
|
254
|
+
case "$agent" in
|
|
255
|
+
claude) printf '%s/.claude/skills\n' "$HOME" ;;
|
|
256
|
+
codex|agents|devin) printf '%s/.agents/skills\n' "$HOME" ;;
|
|
257
|
+
cursor) printf '%s/.cursor/skills\n' "$HOME" ;;
|
|
258
|
+
gemini) printf '%s/.gemini/skills\n' "$HOME" ;;
|
|
259
|
+
copilot) printf '%s/.copilot/skills\n' "$HOME" ;;
|
|
260
|
+
windsurf) printf '%s/.codeium/windsurf/skills\n' "$HOME" ;;
|
|
261
|
+
opencode) printf '%s/.config/opencode/skills\n' "$HOME" ;;
|
|
262
|
+
kiro) printf '%s/.kiro/skills\n' "$HOME" ;;
|
|
263
|
+
cline) printf '%s/.cline/skills\n' "$HOME" ;;
|
|
264
|
+
roo) printf '%s/.roo/skills\n' "$HOME" ;;
|
|
265
|
+
droid) printf '%s/.factory/skills\n' "$HOME" ;;
|
|
266
|
+
antigravity) printf '%s/.gemini/config/skills\n' "$HOME" ;;
|
|
267
|
+
esac
|
|
268
|
+
fi
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
assert_target_path_safe() {
|
|
272
|
+
local root="$1"
|
|
273
|
+
local base="$PWD"
|
|
274
|
+
if [[ "$scope" == "global" ]]; then
|
|
275
|
+
base="$HOME"
|
|
276
|
+
fi
|
|
277
|
+
local prefix="$base/"
|
|
278
|
+
[[ "$root" == "$prefix"* ]] || die "target skills directory is outside the expected scope: $root"
|
|
279
|
+
local base_len="${#prefix}"
|
|
280
|
+
local remainder="${root:$base_len}"
|
|
281
|
+
local current="$base"
|
|
282
|
+
local part
|
|
283
|
+
while [[ -n "$remainder" ]]; do
|
|
284
|
+
part="${remainder%%/*}"
|
|
285
|
+
current="$current/$part"
|
|
286
|
+
[[ ! -L "$current" ]] || die "target skills path component is a symlink: $current; refusing to install through it"
|
|
287
|
+
[[ "$remainder" == */* ]] || break
|
|
288
|
+
remainder="${remainder#*/}"
|
|
289
|
+
done
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
copy_skill() {
|
|
293
|
+
local name="$1"
|
|
294
|
+
local root="$2"
|
|
295
|
+
local auto="$3"
|
|
296
|
+
local source="$source_root/skills/$name"
|
|
297
|
+
local destination="$root/$name"
|
|
298
|
+
|
|
299
|
+
[[ ! -L "$source" ]] || die "source skill directory is a symlink: $source; refusing to install through it"
|
|
300
|
+
[[ ! -L "$root" ]] || die "target skills directory is a symlink: $root; refusing to install through it"
|
|
301
|
+
|
|
302
|
+
local exists=0
|
|
303
|
+
local is_link=0
|
|
304
|
+
if [[ -e "$destination" || -L "$destination" ]]; then
|
|
305
|
+
exists=1
|
|
306
|
+
[[ -L "$destination" ]] && is_link=1
|
|
307
|
+
fi
|
|
308
|
+
|
|
309
|
+
if (( auto && exists )); then
|
|
310
|
+
local kind="existing install"
|
|
311
|
+
local prefix=""
|
|
312
|
+
(( is_link )) && kind="existing symlink"
|
|
313
|
+
(( dry_run )) && prefix="dry-run: "
|
|
314
|
+
echo "${prefix}skipped auto-added $kind: $name -> $destination"
|
|
315
|
+
return
|
|
316
|
+
fi
|
|
317
|
+
(( ! is_link )) || die "installed skill directory is a symlink: $destination; refusing to install through it"
|
|
318
|
+
|
|
319
|
+
if (( dry_run )); then
|
|
320
|
+
if (( exists && ! force )); then
|
|
321
|
+
echo "dry-run: skipped existing $name -> $destination (use --force to replace)"
|
|
322
|
+
else
|
|
323
|
+
echo "dry-run: $name -> $destination"
|
|
324
|
+
fi
|
|
325
|
+
return
|
|
326
|
+
fi
|
|
327
|
+
|
|
328
|
+
mkdir -p "$root"
|
|
329
|
+
[[ ! -L "$root" ]] || die "target skills directory is a symlink: $root; refusing to install through it"
|
|
330
|
+
if (( exists && ! force )); then
|
|
331
|
+
echo "skipped existing: $name -> $destination (use --force to replace)"
|
|
332
|
+
return
|
|
333
|
+
fi
|
|
334
|
+
rm -rf "$destination"
|
|
335
|
+
cp -R "$source" "$destination"
|
|
336
|
+
echo "installed: $name -> $destination"
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
write_adapter_file() {
|
|
340
|
+
local file="$1"
|
|
341
|
+
shift
|
|
342
|
+
local dir
|
|
343
|
+
dir="$(dirname "$file")"
|
|
344
|
+
assert_target_path_safe "$dir"
|
|
345
|
+
[[ ! -L "$file" ]] || die "adapter output is a symlink: $file; refusing to install through it"
|
|
346
|
+
if [[ -e "$file" && $force -eq 0 ]]; then
|
|
347
|
+
local prefix=""
|
|
348
|
+
(( dry_run )) && prefix="dry-run: "
|
|
349
|
+
echo "${prefix}skipped existing adapter: $file (use --force to replace)"
|
|
350
|
+
return
|
|
351
|
+
fi
|
|
352
|
+
if (( dry_run )); then
|
|
353
|
+
echo "dry-run: adapter $file"
|
|
354
|
+
return
|
|
355
|
+
fi
|
|
356
|
+
mkdir -p "$dir"
|
|
357
|
+
assert_target_path_safe "$dir"
|
|
358
|
+
printf '%s\n' "$@" > "$file"
|
|
359
|
+
echo "installed adapter: $file"
|
|
360
|
+
}
|
|
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
|
+
|
|
423
|
+
workflow_task() {
|
|
424
|
+
case "$1" in
|
|
425
|
+
pixelcraft-plan) printf '%s' 'Run Pixelcraft step-zero planning before UI work' ;;
|
|
426
|
+
pixelcraft-review) printf '%s' 'Audit or critique UI with Pixelcraft evidence rules' ;;
|
|
427
|
+
pixelcraft-visual-qa) printf '%s' 'Capture and inspect rendered UI evidence' ;;
|
|
428
|
+
pixelcraft-direction) printf '%s' 'Generate divergent visual directions' ;;
|
|
429
|
+
*) printf '%s' 'Run the Pixelcraft orchestrator for UI design/build work' ;;
|
|
430
|
+
esac
|
|
431
|
+
}
|
|
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
|
+
|
|
442
|
+
write_shell_adapters() {
|
|
443
|
+
local agent="$1"
|
|
444
|
+
local root="$2"
|
|
445
|
+
local base action task display_root
|
|
446
|
+
display_root="$(display_skill_root "$root")"
|
|
447
|
+
case "$agent" in
|
|
448
|
+
claude)
|
|
449
|
+
base="${root%/skills}"
|
|
450
|
+
for action in pixelcraft pixelcraft-plan pixelcraft-review pixelcraft-visual-qa; do
|
|
451
|
+
task="$(workflow_task "$action")"
|
|
452
|
+
write_adapter_file "$base/commands/$action.md" '---' "description: $task" '---' '' "$task. Read and follow the self-contained \`$action\` skill. Preserve user requirements, project conventions, accessibility, and evidence labels."
|
|
453
|
+
done
|
|
454
|
+
;;
|
|
455
|
+
cursor)
|
|
456
|
+
base="${root%/skills}"
|
|
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."
|
|
458
|
+
;;
|
|
459
|
+
copilot)
|
|
460
|
+
base="${root%/skills}"
|
|
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.'
|
|
463
|
+
for action in pixelcraft-plan pixelcraft-review pixelcraft-visual-qa pixelcraft-direction; do
|
|
464
|
+
task="$(workflow_task "$action")"
|
|
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."
|
|
466
|
+
done
|
|
467
|
+
;;
|
|
468
|
+
windsurf|kiro)
|
|
469
|
+
base="${root%/skills}"
|
|
470
|
+
if [[ "$agent" == "windsurf" ]]; then
|
|
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
|
|
476
|
+
for action in pixelcraft-plan pixelcraft-review pixelcraft-visual-qa pixelcraft-direction; do
|
|
477
|
+
task="$(workflow_task "$action")"
|
|
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.'
|
|
479
|
+
done
|
|
480
|
+
else
|
|
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."
|
|
482
|
+
fi
|
|
483
|
+
;;
|
|
484
|
+
esac
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
targets=()
|
|
488
|
+
target_agents=()
|
|
489
|
+
for agent in ${agents[@]+"${agents[@]}"}; do
|
|
490
|
+
target="$(target_for "$agent")"
|
|
491
|
+
assert_target_path_safe "$target"
|
|
492
|
+
if ! contains "$target" ${targets[@]+"${targets[@]}"}; then
|
|
493
|
+
targets+=("$target")
|
|
494
|
+
target_agents+=("$agent")
|
|
495
|
+
fi
|
|
496
|
+
done
|
|
497
|
+
|
|
498
|
+
for index in "${!targets[@]}"; do
|
|
499
|
+
target="${targets[$index]}"
|
|
500
|
+
agent="${target_agents[$index]}"
|
|
501
|
+
for entry in ${selected[@]+"${selected[@]}"}; do
|
|
502
|
+
name="${entry%%:*}"
|
|
503
|
+
auto=0
|
|
504
|
+
[[ "${entry##*:}" == "auto" ]] && auto=1
|
|
505
|
+
copy_skill "$name" "$target" "$auto"
|
|
506
|
+
done
|
|
507
|
+
write_shell_adapters "$agent" "$target"
|
|
508
|
+
done
|
|
509
|
+
|
|
510
|
+
if (( docs_mcp )); then
|
|
511
|
+
printf '%s\n' 'Optional Context7 docs MCP: follow the instructions for your host at https://github.com/upstash/context7#readme. Pixelcraft does not configure MCP or request credentials. If unavailable, use versioned official docs and the package registry.'
|
|
512
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,93 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thanhnguyxn/pixelcraft",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
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",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ThanhNguyxnOrg/Pixelcraft.git"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"registry": "https://registry.npmjs.org/",
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"agent-skills",
|
|
22
|
+
"pi-package",
|
|
23
|
+
"frontend",
|
|
24
|
+
"ui",
|
|
25
|
+
"ux",
|
|
26
|
+
"accessibility",
|
|
27
|
+
"design-tokens",
|
|
28
|
+
"dtcg",
|
|
29
|
+
"multi-platform",
|
|
30
|
+
"tui",
|
|
31
|
+
"mobile",
|
|
32
|
+
"desktop"
|
|
33
|
+
],
|
|
34
|
+
"pi": {
|
|
35
|
+
"skills": [
|
|
36
|
+
"./skills"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"bin": {
|
|
40
|
+
"pixelcraft": "bin/pixelcraft.mjs"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
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",
|
|
47
|
+
"test:browser": "npm run test:shoot && npm run test:style-inventory",
|
|
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",
|
|
52
|
+
"build:adapters": "node scripts/build-adapters.mjs",
|
|
53
|
+
"build:skill-zips": "node scripts/build-skill-zips.mjs",
|
|
54
|
+
"test:adapters": "node scripts/test-build-adapters.mjs",
|
|
55
|
+
"test:installers": "node scripts/test-installers.mjs",
|
|
56
|
+
"test:distribution": "node scripts/test-distribution.mjs",
|
|
57
|
+
"test:tokens": "node scripts/test-export-tokens.mjs",
|
|
58
|
+
"test:validator": "node scripts/test-validate-skills.mjs",
|
|
59
|
+
"test:sync-docs": "node scripts/test-sync-docs.mjs",
|
|
60
|
+
"test:style-inventory": "node scripts/test-style-inventory.mjs",
|
|
61
|
+
"test:finish-gate": "node scripts/test-finish-gate.mjs",
|
|
62
|
+
"test:slop-scan": "node scripts/test-slop-scan.mjs",
|
|
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"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
".agents/plugins/marketplace.json",
|
|
69
|
+
".antigravity-plugin/",
|
|
70
|
+
".claude-plugin/",
|
|
71
|
+
".codex-plugin/",
|
|
72
|
+
".cursor-plugin/",
|
|
73
|
+
".devin-plugin/",
|
|
74
|
+
".github/plugin/",
|
|
75
|
+
"GEMINI.md",
|
|
76
|
+
"plugin.json",
|
|
77
|
+
"gemini-extension.json",
|
|
78
|
+
"assets/pixelcraft-logo-128.png",
|
|
79
|
+
"assets/pixelcraft-logo-256.png",
|
|
80
|
+
"assets/pixelcraft-logo-512.png",
|
|
81
|
+
"bin/",
|
|
82
|
+
"scripts/",
|
|
83
|
+
"skills/",
|
|
84
|
+
"evals/",
|
|
85
|
+
"docs/",
|
|
86
|
+
"CHANGELOG.md",
|
|
87
|
+
"LICENSE",
|
|
88
|
+
"README.md",
|
|
89
|
+
"SECURITY.md",
|
|
90
|
+
"install.sh",
|
|
91
|
+
"install.ps1"
|
|
92
|
+
]
|
|
93
|
+
}
|
package/plugin.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "pixelcraft",
|
|
4
|
+
"version": "0.2.0",
|
|
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/",
|
|
11
|
+
"repository": "https://github.com/ThanhNguyxnOrg/Pixelcraft",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"frontend",
|
|
15
|
+
"ui",
|
|
16
|
+
"ux",
|
|
17
|
+
"design system",
|
|
18
|
+
"accessibility",
|
|
19
|
+
"responsive design"
|
|
20
|
+
],
|
|
21
|
+
"extensions": {
|
|
22
|
+
"com.openai": {
|
|
23
|
+
"interface": {
|
|
24
|
+
"displayName": "Pixelcraft",
|
|
25
|
+
"shortDescription": "Plan, design, and verify frontend UI across platforms."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|