@vesviet/agent-skills 5.8.0 → 5.11.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.
Files changed (454) hide show
  1. package/INDEX.md +35 -22
  2. package/README.md +7 -18
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/ANTIGRAVITY.md +40 -142
  5. package/adapters/antigravity/INDEX_TIER1.json +174 -146
  6. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  7. package/adapters/antigravity/antigravity-tools.md +25 -0
  8. package/adapters/antigravity/role-skill-index.json +175 -58
  9. package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
  10. package/adapters/claude/settings.template.json +18 -3
  11. package/adapters/cursor/README.md +1 -5
  12. package/adapters/cursor/hooks.template.json +4 -2
  13. package/core/contracts/README.md +0 -20
  14. package/core/contracts/schemas/compact-working-state.json +42 -1
  15. package/core/contracts/schemas/ui-component-spec.json +28 -2
  16. package/core/policies/README.md +0 -20
  17. package/core/policies/action-boundaries.yaml +10 -1
  18. package/core/policies/execution-sandbox.md +0 -12
  19. package/core/policies/mcp-tool-map.yaml +28 -0
  20. package/core/roles/3d-graphics-engineer.md +144 -208
  21. package/core/roles/README.md +1 -23
  22. package/core/roles/agent-coordinator.md +28 -147
  23. package/core/roles/agent-discovery-engineer.md +46 -39
  24. package/core/roles/ai-systems-engineer.md +2 -0
  25. package/core/roles/backend-developer.md +22 -117
  26. package/core/roles/cloudflare-engineer.md +1 -1
  27. package/core/roles/data-engineer.md +3 -1
  28. package/core/roles/devops-engineer.md +4 -3
  29. package/core/roles/ecommerce-engineer.md +18 -6
  30. package/core/roles/frontend-developer.md +146 -317
  31. package/core/roles/game-developer.md +2 -1
  32. package/core/roles/mobile-engineer.md +18 -204
  33. package/core/roles/product-manager.md +3 -3
  34. package/core/roles/project-manager.md +5 -5
  35. package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
  36. package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
  37. package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
  38. package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
  39. package/core/roles/references/backend-developer-responsibilities.md +47 -0
  40. package/core/roles/references/backend-developer-review-checklist.md +15 -0
  41. package/core/roles/references/business-analyst-responsibilities.md +2 -2
  42. package/core/roles/references/frontend-developer-responsibilities.md +14 -6
  43. package/core/roles/references/frontend-developer-review-checklist.md +13 -6
  44. package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
  45. package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
  46. package/core/roles/references/reviewer-review-checklist.md +54 -0
  47. package/core/roles/references/sdet-review-checklist.md +53 -0
  48. package/core/roles/references/solution-architect-responsibilities.md +134 -0
  49. package/core/roles/references/sre-review-checklist.md +81 -0
  50. package/core/roles/references/system-engineer-responsibilities.md +124 -0
  51. package/core/roles/references/technical-architect-responsibilities.md +192 -0
  52. package/core/roles/references/technical-architect-review-checklist.md +58 -0
  53. package/core/roles/references/technical-lead-review-checklist.md +65 -0
  54. package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
  55. package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
  56. package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
  57. package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
  58. package/core/roles/researcher.md +3 -3
  59. package/core/roles/reviewer.md +2 -2
  60. package/core/roles/role-standard.md +79 -205
  61. package/core/roles/sdet.md +5 -6
  62. package/core/roles/security-engineer.md +4 -3
  63. package/core/roles/solution-architect.md +9 -130
  64. package/core/roles/sre.md +1 -0
  65. package/core/roles/system-engineer.md +15 -155
  66. package/core/roles/task-planner.md +1 -1
  67. package/core/roles/technical-architect.md +15 -244
  68. package/core/roles/technical-lead.md +1 -0
  69. package/core/roles/technical-writer.md +3 -3
  70. package/core/roles/ui-ux-designer.md +158 -303
  71. package/core/roles/vietnam-accounting-specialist.md +20 -20
  72. package/core/rules/README.md +0 -22
  73. package/core/rules/code.md +11 -6
  74. package/core/skills/README.md +12 -25
  75. package/core/skills/agent/agent-delegation/SKILL.md +11 -0
  76. package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
  77. package/core/skills/agent/agent-memory-compaction/SKILL.md +79 -82
  78. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
  79. package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
  80. package/core/skills/agent/agent-observability/SKILL.md +12 -6
  81. package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
  82. package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
  83. package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
  84. package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
  85. package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
  86. package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
  87. package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
  88. package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
  89. package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
  90. package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
  91. package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
  92. package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
  93. package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
  94. package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
  95. package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
  96. package/core/skills/ai/openrouter-task/SKILL.md +5 -5
  97. package/core/skills/ai-agent/context-optimization/SKILL.md +2 -0
  98. package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
  99. package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
  100. package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
  101. package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
  102. package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
  103. package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
  104. package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
  105. package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
  106. package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
  107. package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
  108. package/core/skills/backend/add-event-handler/SKILL.md +12 -1
  109. package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
  110. package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
  111. package/core/skills/backend/add-service-client/SKILL.md +2 -0
  112. package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
  113. package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
  114. package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
  115. package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
  116. package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
  117. package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
  118. package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
  119. package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
  120. package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
  121. package/core/skills/backend/implement-auth/SKILL.md +9 -0
  122. package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
  123. package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
  124. package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
  125. package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
  126. package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
  127. package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
  128. package/core/skills/business/elicit-requirements/SKILL.md +2 -0
  129. package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
  130. package/core/skills/business/write-use-cases/SKILL.md +1 -0
  131. package/core/skills/commerce/handle-checkout-flow/SKILL.md +18 -66
  132. package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
  133. package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
  134. package/core/skills/commerce/integrate-payment-gateway/SKILL.md +22 -58
  135. package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
  136. package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
  137. package/core/skills/commerce/manage-order-fulfillment/SKILL.md +17 -50
  138. package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
  139. package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
  140. package/core/skills/commerce/manage-product-catalog/SKILL.md +5 -1
  141. package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
  142. package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
  143. package/core/skills/content/write-article/SKILL.md +1 -1
  144. package/core/skills/document/docx/SKILL.md +1 -0
  145. package/core/skills/document/pdf/SKILL.md +2 -0
  146. package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
  147. package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
  148. package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
  149. package/core/skills/document/xlsx/SKILL.md +1 -0
  150. package/core/skills/documentation/configure-llms-txt/SKILL.md +3 -0
  151. package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
  152. package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
  153. package/core/skills/documentation/write-documentation/SKILL.md +4 -1
  154. package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
  155. package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
  156. package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
  157. package/core/skills/education/create-exercises/SKILL.md +1 -0
  158. package/core/skills/education/design-learning-plan/SKILL.md +1 -0
  159. package/core/skills/education/grade-and-review/SKILL.md +1 -0
  160. package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
  161. package/core/skills/foundation/ai-risk-assessment/SKILL.md +4 -5
  162. package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
  163. package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
  164. package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
  165. package/core/skills/foundation/conduct-research/SKILL.md +2 -2
  166. package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
  167. package/core/skills/foundation/create-migration/SKILL.md +10 -0
  168. package/core/skills/foundation/design-review/SKILL.md +9 -10
  169. package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
  170. package/core/skills/foundation/discernment-nudge/SKILL.md +2 -0
  171. package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
  172. package/core/skills/foundation/incident-report/SKILL.md +1 -0
  173. package/core/skills/foundation/plan-technical-delivery/SKILL.md +3 -1
  174. package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
  175. package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
  176. package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
  177. package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
  178. package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
  179. package/core/skills/foundation/release-notes/SKILL.md +3 -3
  180. package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
  181. package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
  182. package/core/skills/foundation/systematic-debugging/SKILL.md +15 -0
  183. package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
  184. package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
  185. package/core/skills/foundation/write-tests/SKILL.md +9 -0
  186. package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
  187. package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
  188. package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
  189. package/core/skills/frontend/INDEX.json +16 -0
  190. package/core/skills/frontend/add-page-route/SKILL.md +10 -8
  191. package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
  192. package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
  193. package/core/skills/frontend/add-ui-component/SKILL.md +4 -1
  194. package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
  195. package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
  196. package/core/skills/frontend/component-composition/SKILL.md +12 -1
  197. package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
  198. package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
  199. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  200. package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
  201. package/core/skills/frontend/frontend-testing/SKILL.md +4 -1
  202. package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
  203. package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
  204. package/core/skills/frontend/implement-ai-disclosure/SKILL.md +119 -0
  205. package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
  206. package/core/skills/frontend/implement-webmcp/SKILL.md +7 -4
  207. package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
  208. package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
  209. package/core/skills/frontend/integrate-api-client/SKILL.md +12 -12
  210. package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
  211. package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
  212. package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
  213. package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
  214. package/core/skills/frontend/setup-design-system/SKILL.md +6 -3
  215. package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
  216. package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
  217. package/core/skills/frontend/setup-visual-regression/SKILL.md +8 -5
  218. package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
  219. package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
  220. package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
  221. package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
  222. package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
  223. package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
  224. package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
  225. package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
  226. package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
  227. package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
  228. package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
  229. package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
  230. package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
  231. package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
  232. package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
  233. package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
  234. package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
  235. package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
  236. package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
  237. package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
  238. package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
  239. package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
  240. package/core/skills/gamedev/render-webgl-threejs/SKILL.md +14 -10
  241. package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
  242. package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +72 -0
  243. package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
  244. package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
  245. package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
  246. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
  247. package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
  248. package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
  249. package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
  250. package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
  251. package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
  252. package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
  253. package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
  254. package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
  255. package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +3 -0
  256. package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
  257. package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
  258. package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +3 -0
  259. package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
  260. package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
  261. package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
  262. package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
  263. package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
  264. package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
  265. package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
  266. package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
  267. package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
  268. package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
  269. package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
  270. package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
  271. package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
  272. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
  273. package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
  274. package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
  275. package/core/skills/platform/agents-sdk/SKILL.md +1 -0
  276. package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
  277. package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
  278. package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
  279. package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
  280. package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
  281. package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
  282. package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
  283. package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
  284. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
  285. package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
  286. package/core/skills/platform/durable-objects/SKILL.md +1 -0
  287. package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
  288. package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
  289. package/core/skills/platform/setup-deployment/SKILL.md +6 -2
  290. package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
  291. package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
  292. package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
  293. package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
  294. package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
  295. package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
  296. package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
  297. package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
  298. package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
  299. package/core/skills/platform/supply-chain-security/SKILL.md +3 -2
  300. package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
  301. package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
  302. package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
  303. package/core/skills/platform/web-perf/SKILL.md +2 -2
  304. package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
  305. package/core/skills/platform/wrangler/SKILL.md +1 -0
  306. package/core/skills/product/build-story-map/SKILL.md +3 -0
  307. package/core/skills/product/define-product-strategy/SKILL.md +1 -0
  308. package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
  309. package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
  310. package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
  311. package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
  312. package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
  313. package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
  314. package/core/skills/repo-ops/review-code/SKILL.md +12 -2
  315. package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
  316. package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
  317. package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
  318. package/core/skills/repo-ops/review-service/SKILL.md +4 -1
  319. package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
  320. package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
  321. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
  322. package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
  323. package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
  324. package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
  325. package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
  326. package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +8 -7
  327. package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
  328. package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
  329. package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
  330. package/core/skills/security-data/reverse-engineer-binary/SKILL.md +3 -0
  331. package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
  332. package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
  333. package/core/skills/security-data/security-audit/SKILL.md +3 -1
  334. package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
  335. package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
  336. package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +3 -0
  337. package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
  338. package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
  339. package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
  340. package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
  341. package/core/workflows/README.md +0 -20
  342. package/overlays/README.md +2 -22
  343. package/overlays/astro-cloudflare/README.md +0 -20
  344. package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
  345. package/overlays/b2b-catalog-golf/README.md +0 -20
  346. package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
  347. package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
  348. package/overlays/b2b-factory-catalog/README.md +0 -20
  349. package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
  350. package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
  351. package/overlays/b2b-sport-catalog/README.md +0 -20
  352. package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
  353. package/overlays/cad-projection/README.md +0 -20
  354. package/overlays/cad-projection/rules/cad-conventions.md +0 -20
  355. package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
  356. package/overlays/data-analyst-stack/README.md +0 -20
  357. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
  358. package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
  359. package/overlays/data-warehouse/README.md +0 -22
  360. package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
  361. package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
  362. package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
  363. package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
  364. package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
  365. package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
  366. package/overlays/ecommerce-microservices/README.md +22 -35
  367. package/overlays/ecommerce-microservices/config/README.md +3 -1
  368. package/overlays/ecommerce-microservices/rules/README.md +2 -1
  369. package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
  370. package/overlays/ecommerce-microservices/skills/README.md +1 -1
  371. package/overlays/ecommerce-microservices/workflows/README.md +3 -1
  372. package/overlays/fintech-compliance/README.md +0 -20
  373. package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
  374. package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
  375. package/overlays/go-microservices/README.md +1 -21
  376. package/overlays/go-microservices/rules/go-conventions.md +0 -31
  377. package/overlays/hugo-authority-content/README.md +0 -20
  378. package/overlays/hugo-authority-content/roles/README.md +0 -20
  379. package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
  380. package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
  381. package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
  382. package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
  383. package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
  384. package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
  385. package/overlays/hugo-authority-content/workflows/README.md +0 -20
  386. package/overlays/hvac-authority-content/README.md +0 -20
  387. package/overlays/hvac-authority-content/config/collections.md +0 -22
  388. package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
  389. package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
  390. package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
  391. package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
  392. package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
  393. package/overlays/laravel-ecommerce/README.md +0 -20
  394. package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
  395. package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
  396. package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
  397. package/overlays/laravel-filament/README.md +0 -20
  398. package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
  399. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
  400. package/overlays/livestream-web/README.md +0 -20
  401. package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
  402. package/overlays/obj-configurator/README.md +0 -20
  403. package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
  404. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
  405. package/overlays/r3f-stack/README.md +0 -20
  406. package/overlays/r3f-stack/rules/stub.md +0 -31
  407. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
  408. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
  409. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
  410. package/overlays/real-estate-content/README.md +0 -20
  411. package/overlays/real-estate-content/roles/README.md +0 -20
  412. package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
  413. package/overlays/real-estate-content/rules/content-schema.md +0 -31
  414. package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
  415. package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
  416. package/overlays/real-estate-content/workflows/README.md +0 -20
  417. package/overlays/security-research/README.md +0 -20
  418. package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
  419. package/overlays/seo-publishing/README.md +1 -21
  420. package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
  421. package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
  422. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
  423. package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
  424. package/overlays/ui-design-system/README.md +0 -20
  425. package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
  426. package/package.json +2 -2
  427. package/packs/README.md +3 -9
  428. package/packs/ecommerce-team/manifest.yaml +1 -1
  429. package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
  430. package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
  431. package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
  432. package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
  433. package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
  434. package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
  435. package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
  436. package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
  437. package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
  438. package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
  439. package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
  440. package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
  441. package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
  442. package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
  443. package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
  444. package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
  445. package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
  446. package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
  447. package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
  448. package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
  449. package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
  450. package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
  451. package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
  452. package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
  453. package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
  454. package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
@@ -0,0 +1,55 @@
1
+ # React 19 Component Standards & Anti-Slop Mechanics (2026)
2
+
3
+ ## 1. React 19 Form Actions & Optimistic State
4
+
5
+ ### 1.1 Progressive Form Actions
6
+ Modern component architectures utilize native React 19 form actions and hooks, completely eliminating client-side `onSubmit` boilerplate:
7
+ - **`useActionState`**: Manages server action execution, returning pending status, errors, and updated form state.
8
+ - **`useOptimistic`**: Instantaneous UI updates rendering anticipated state while network action resolves in the background:
9
+ ```tsx
10
+ const [optimisticState, setOptimisticState] = useOptimistic(
11
+ currentState,
12
+ (state, update) => ({ ...state, ...update })
13
+ );
14
+ ```
15
+
16
+ ---
17
+
18
+ ## 2. Anti-Slop Finish Standards
19
+
20
+ To prevent unpolished "AI slop" in component interfaces, enforce the following five rules:
21
+ 1. **Dynamic Viewport Units**: Use `min-h-[100dvh]` rather than `100vh` on full-screen containers to avoid mobile address bar jumps.
22
+ 2. **Continuous Motion Isolation**: Never bind scroll, drag, or pointer movements to React `useState`. Use `motion/react` primitives (`useMotionValue`, `useTransform`) to update DOM nodes directly off the main thread.
23
+ 3. **Tactile Feedback**: Interactive buttons and card triggers must provide physical feedback via active transform scaling: `active:scale-[0.96]` (150ms `ease-out`, disabled controls excluded).
24
+ 4. **CTA Text Stability**: Primary Call-To-Action buttons on desktop must include `whitespace-nowrap` to prevent awkward line breaks on localized strings.
25
+ 5. **Icon Ecosystem Discipline**: Never inject raw, inline SVG markup. Import from one consistent icon package per codebase (`@phosphor-icons/react`, `hugeicons-react`, `@radix-ui/react-icons`, or `lucide-react` when aligning with an existing shadcn/ui or Base UI repo).
26
+
27
+ ---
28
+
29
+ ## 3. Compound Component Architecture & Slot Delegation
30
+
31
+ ### 3.1 Eliminating Boolean Prop Sprawl
32
+ Do not pass dozens of boolean flags (`isModal`, `hasHeader`, `withCloseIcon`, `isElevated`). Instead, structure components into compound primitives with Radix-style `asChild` slot delegation:
33
+ ```tsx
34
+ <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>
35
+ <Dialog.Trigger asChild>
36
+ <Button>Open Dialog</Button>
37
+ </Dialog.Trigger>
38
+ <Dialog.Portal>
39
+ <Dialog.Overlay className="fixed inset-0 bg-black/50 backdrop-blur-sm" />
40
+ <Dialog.Content className="fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2">
41
+ <Dialog.Title>Settings</Dialog.Title>
42
+ {children}
43
+ </Dialog.Content>
44
+ </Dialog.Portal>
45
+ </Dialog.Root>
46
+ ```
47
+
48
+ ---
49
+
50
+ ## 4. GenUI Automated Quality Gates
51
+
52
+ Every component authored or modified by AI agents must pass three automated pre-commit gates:
53
+ - **Design Token Conformance**: Zero hardcoded hex colors (`#ffffff`) or pixel spacing (`padding: 14px`). All tokens must map to Tailwind v4 CSS variables.
54
+ - **axe-core Accessibility Audit**: Zero automated WCAG 2.2 Level AA violations.
55
+ - **CSS Pollution Sweep**: Strip non-standard inline `style={{ ... }}` objects and rogue stylesheet imports.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: component-composition
3
3
  description: Architect scalable UI components using compound components, Radix-style asChild slot delegation, headless hook separation, and anti-boolean prop sprawl patterns. Use when designing reusable component libraries, refactoring prop-heavy components, or decoupling interaction state from presentation.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, run_dev_server, execute_command]
5
6
  ---
6
7
 
@@ -105,6 +106,15 @@ When this skill is invoked as part of a coordinated frontend slice, emit:
105
106
  - **ASI05 RCE Guard**: never render dynamic component types from untrusted user input; validate variant names against compile-time string literal unions.
106
107
  - **ASI07 Inter-Agent Communication**: emit structured `ui-component-spec.json` documenting the compound component hierarchy for downstream UI and QA agents.
107
108
 
109
+ ## Red Flags
110
+
111
+ | Rationalization Thought | Reality & Risk | Positive Corrective Action |
112
+ | :--- | :--- | :--- |
113
+ | "Just add one more `isCompactWithHeaderIcon` boolean prop — faster than refactoring." | Boolean explosion (`> 2` layout flags) creates contradictory render branches. | Decompose into compound parts (`Root`, `Trigger`, `Content`) and context slots. |
114
+ | "`forwardRef` + `useContext` matches older tutorials, so let's keep it." | React 19 flags redundant `forwardRef` wrappers and drifts from repo standards. | Pass `ref` directly as a prop, consume with `use(Context)`, use `FieldGroup`. |
115
+ | "Passing child `onClick` directly into `asChild` works fine." | Overwrites internal accessibility/toggle handlers silently. | Merge callbacks via `composeEventHandlers` and refs via `composeRefs`. |
116
+ | "I'll bind Zustand directly inside the button subcomponent." | Couples reusable primitives to global stores and breaks isolated testing. | Inject `{ state, actions, meta }` solely through the compound provider boundary. |
117
+
108
118
  ## Related Skills
109
119
 
110
120
  - **add-ui-component**: Author and style the presentation elements of the composed component
@@ -112,5 +122,6 @@ When this skill is invoked as part of a coordinated frontend slice, emit:
112
122
  - **setup-design-system**: Align compound component tokens and styling with design system rules
113
123
  - **review-code**: Audit components for boolean prop sprawl and composition anti-patterns
114
124
  - **implement-view-transitions**: Animate layout state changes and morphs across composed elements
125
+ - Companion example: `examples/headless-combobox-compound-component.tsx`
115
126
 
116
- Last updated: 2026-09-25
127
+ Last updated: 2026-11-08
@@ -0,0 +1,207 @@
1
+ /**
2
+ * Headless Combobox Compound Component Architecture
3
+ *
4
+ * Implements:
5
+ * - Headless state hook (`useCombobox`) separating logic from presentation
6
+ * - Compound primitives: Combobox.Root, Combobox.Input, Combobox.List, Combobox.Option
7
+ * - Full ARIA 1.2 combobox pattern with keyboard navigation (ArrowUp/Down, Enter, Escape)
8
+ * - Radix-style asChild slot delegation and anti-boolean prop sprawl
9
+ */
10
+
11
+ import React, {
12
+ createContext,
13
+ useContext,
14
+ useState,
15
+ useRef,
16
+ useId,
17
+ ReactNode,
18
+ } from 'react';
19
+
20
+ export interface ComboboxOption {
21
+ value: string;
22
+ label: string;
23
+ disabled?: boolean;
24
+ }
25
+
26
+ // --- Headless Hook ---
27
+
28
+ export function useCombobox(options: ComboboxOption[], onSelect?: (value: string) => void) {
29
+ const [isOpen, setIsOpen] = useState(false);
30
+ const [query, setQuery] = useState('');
31
+ const [activeIndex, setActiveIndex] = useState(-1);
32
+
33
+ const filteredOptions = options.filter((opt) =>
34
+ opt.label.toLowerCase().includes(query.toLowerCase())
35
+ );
36
+
37
+ const selectIndex = (index: number) => {
38
+ const item = filteredOptions[index];
39
+ if (item && !item.disabled) {
40
+ setQuery(item.label);
41
+ setIsOpen(false);
42
+ setActiveIndex(-1);
43
+ onSelect?.(item.value);
44
+ }
45
+ };
46
+
47
+ const onKeyDown = (e: React.KeyboardEvent) => {
48
+ switch (e.key) {
49
+ case 'ArrowDown':
50
+ e.preventDefault();
51
+ if (!isOpen) {
52
+ setIsOpen(true);
53
+ setActiveIndex(0);
54
+ } else {
55
+ setActiveIndex((prev) => (prev < filteredOptions.length - 1 ? prev + 1 : 0));
56
+ }
57
+ break;
58
+ case 'ArrowUp':
59
+ e.preventDefault();
60
+ if (!isOpen) {
61
+ setIsOpen(true);
62
+ setActiveIndex(filteredOptions.length - 1);
63
+ } else {
64
+ setActiveIndex((prev) => (prev > 0 ? prev - 1 : filteredOptions.length - 1));
65
+ }
66
+ break;
67
+ case 'Enter':
68
+ e.preventDefault();
69
+ if (isOpen && activeIndex >= 0) {
70
+ selectIndex(activeIndex);
71
+ }
72
+ break;
73
+ case 'Escape':
74
+ e.preventDefault();
75
+ setIsOpen(false);
76
+ setActiveIndex(-1);
77
+ break;
78
+ }
79
+ };
80
+
81
+ return {
82
+ isOpen,
83
+ setIsOpen,
84
+ query,
85
+ setQuery,
86
+ activeIndex,
87
+ setActiveIndex,
88
+ filteredOptions,
89
+ selectIndex,
90
+ onKeyDown,
91
+ };
92
+ }
93
+
94
+ // --- Context & Compound Primitives ---
95
+
96
+ type ComboboxContextValue = ReturnType<typeof useCombobox> & {
97
+ listboxId: string;
98
+ inputId: string;
99
+ };
100
+
101
+ const ComboboxContext = createContext<ComboboxContextValue | null>(null);
102
+
103
+ function useComboboxContext() {
104
+ const ctx = useContext(ComboboxContext);
105
+ if (!ctx) throw new Error('Combobox subcomponents must be inside Combobox.Root');
106
+ return ctx;
107
+ }
108
+
109
+ export function ComboboxRoot({
110
+ options,
111
+ onSelect,
112
+ children,
113
+ }: {
114
+ options: ComboboxOption[];
115
+ onSelect?: (val: string) => void;
116
+ children: ReactNode;
117
+ }) {
118
+ const combobox = useCombobox(options, onSelect);
119
+ const listboxId = useId();
120
+ const inputId = useId();
121
+
122
+ return (
123
+ <ComboboxContext.Provider value={{ ...combobox, listboxId, inputId }}>
124
+ <div className="relative w-full">{children}</div>
125
+ </ComboboxContext.Provider>
126
+ );
127
+ }
128
+
129
+ export function ComboboxInput({
130
+ placeholder = 'Select option...',
131
+ }: {
132
+ placeholder?: string;
133
+ }) {
134
+ const { query, setQuery, onKeyDown, isOpen, setIsOpen, listboxId, inputId, activeIndex } =
135
+ useComboboxContext();
136
+
137
+ return (
138
+ <input
139
+ id={inputId}
140
+ type="text"
141
+ role="combobox"
142
+ aria-expanded={isOpen}
143
+ aria-haspopup="listbox"
144
+ aria-controls={listboxId}
145
+ aria-activedescendant={
146
+ activeIndex >= 0 ? `${listboxId}-opt-${activeIndex}` : undefined
147
+ }
148
+ value={query}
149
+ onChange={(e) => {
150
+ setQuery(e.target.value);
151
+ if (!isOpen) setIsOpen(true);
152
+ }}
153
+ onKeyDown={onKeyDown}
154
+ onFocus={() => setIsOpen(true)}
155
+ placeholder={placeholder}
156
+ className="w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground shadow-sm focus:border-primary focus:ring-2 focus:ring-primary/20"
157
+ />
158
+ );
159
+ }
160
+
161
+ export function ComboboxList({ children }: { children: ReactNode }) {
162
+ const { isOpen, listboxId } = useComboboxContext();
163
+ if (!isOpen) return null;
164
+
165
+ return (
166
+ <ul
167
+ id={listboxId}
168
+ role="listbox"
169
+ className="absolute z-50 mt-1 max-h-60 w-full overflow-auto rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-md"
170
+ >
171
+ {children}
172
+ </ul>
173
+ );
174
+ }
175
+
176
+ export function ComboboxOptionItem({
177
+ index,
178
+ option,
179
+ }: {
180
+ index: number;
181
+ option: ComboboxOption;
182
+ }) {
183
+ const { activeIndex, selectIndex, listboxId } = useComboboxContext();
184
+ const isActive = activeIndex === index;
185
+
186
+ return (
187
+ <li
188
+ id={`${listboxId}-opt-${index}`}
189
+ role="option"
190
+ aria-selected={isActive}
191
+ aria-disabled={option.disabled}
192
+ onClick={() => selectIndex(index)}
193
+ className={`relative flex cursor-pointer select-none items-center rounded-md px-3 py-1.5 text-sm outline-none transition-colors ${
194
+ isActive ? 'bg-accent text-accent-foreground' : 'hover:bg-muted'
195
+ } ${option.disabled ? 'pointer-events-none opacity-50' : ''}`}
196
+ >
197
+ {option.label}
198
+ </li>
199
+ );
200
+ }
201
+
202
+ export const Combobox = {
203
+ Root: ComboboxRoot,
204
+ Input: ComboboxInput,
205
+ List: ComboboxList,
206
+ Option: ComboboxOptionItem,
207
+ };
@@ -37,6 +37,11 @@ Author authoritative, machine-readable `DESIGN.md` architecture files and YAML f
37
37
  - All numerical data tables, order counts, and financial summaries must enforce OpenType tabular figures:
38
38
  `font-variant-numeric: tabular-nums;` (or `font-feature-settings: "tnum" 1;`).
39
39
  - This prevents horizontal column jitter during live data polling and stream updates.
40
+ - **MASTER + Page Override Hierarchy (`ui-ux-pro-max` pattern)**:
41
+ - Author `DESIGN.md` as the authoritative **MASTER** token, typography, palette, and component contract grounded in the project's **Domain Archetype** (avoiding unprompted dark-slate/emerald or purple-glow defaults).
42
+ - When specific routes require localized adjustments (e.g., high-density telemetry view vs onboarding flow), document explicit **Page Overrides** inside `DESIGN.md` (or `design-system/pages/<slug>.md`) without forking Tier 1 primitive ramps.
43
+ - **Contrast Dual-Gate**:
44
+ - Verify both the **WCAG 2.2 AA legal floor** ($CR \ge 4.5:1$ normal text, $\ge 3.0:1$ large text/controls) and the **APCA perceptual target** ($L_c \ge 75$ body text, $L_c \ge 60$ headlines/controls) across light and dark modes.
40
45
  - **Mobile Touch Affordance Guard**:
41
46
  - All interactive buttons, inputs, and touch targets must provide a minimum bounding hit area of $\ge 44\text{px} \times 44\text{px}$ on touch-enabled viewports.
42
47
 
@@ -55,8 +55,8 @@ Engineer scalable design token architectures, calculate concentric border radii
55
55
  - *Constant hue angle*: Hold hue angle strictly constant ($\Delta H = 0^\circ$) across each functional color ramp.
56
56
  - *Chroma profile*: Taper to near-zero chroma at endpoints (`50` and `950`); peak chroma mid-ramp (`500`–`600`).
57
57
  - *Contrast adjustments*: Adjust OKLCH Lightness ($L$) while holding hue angle and chroma steady.
58
- - **APCA (Advanced Perceptual Contrast Algorithm) Standards**:
59
- - Contrast is evaluated using APCA Lightness Contrast ($L_c$) based on visual mass:
58
+ - **Contrast Dual-Gate (WCAG 2.2 AA Legal Floor + APCA Perceptual Target)**:
59
+ - Every semantic foreground/background token pair must clear **WCAG 2.2 AA** ($CR \ge 4.5:1$ normal text, $\ge 3.0:1$ large text/controls/focus rings) as the non-negotiable legal baseline AND calibrate visual weight under **APCA Lightness Contrast ($L_c$)**:
60
60
  - *Body text* (columns, dense reading, $< 24\text{px}$): $L_c \ge 75$ (preferred $L_c \ge 90$).
61
61
  - *Non-body text* (headlines, navigation labels, button labels): $L_c \ge 60$.
62
62
  - *Large text* ($\ge 36\text{px}$ regular or $\ge 24\text{px}$ bold): $L_c \ge 45$.
@@ -64,6 +64,8 @@ Engineer scalable design token architectures, calculate concentric border radii
64
64
  - *Solid icons and interactive UI component boundaries*: $L_c \ge 30$.
65
65
  - *Discernible non-text dividers and subtle borders*: $L_c \ge 15$.
66
66
  - *Placeholder / disabled text target*: $L_c \approx 30$.
67
+ - **Domain-Grounded Palette Diversity**:
68
+ - Select base surfaces and accent hue from the project's Domain Archetype (`core/roles/references/ui-ux-designer-anti-slop-standards.md` §2.2); never ship the same dark-slate + emerald or beige + brass palette blindly across unrelated domains. Declare `color-scheme: dark` on dark-theme roots.
67
69
  - **Token Portability & Syntax**:
68
70
  - Tokens must be exported to CSS variables and DTCG Design Tokens Format Module 2025.10 JSON (first stable release; `$value`/`$type` syntax) for seamless Figma Variables synchronization; Style Dictionary v4 DTCG mode, Tokens Studio, and Terrazzo are the reference interchange consumers.
69
71
  - Validate every token file against the DTCG format before pipeline adoption; reject files that mix legacy `{value}` syntax with DTCG `$value`.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: frontend-micro-polish
3
3
  description: Use when applying micro-typographic polish, optical padding compensations, mobile input zoom guards, active tap scales, and 3-layer shadow elevations.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: frontend-testing
3
3
  description: Add or improve frontend test coverage by choosing the right UI test scope, reusing local tooling, and validating rendering, interaction, accessibility, and network-driven states. Use when frontend behavior needs regression coverage or UI release confidence.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
6
  ---
6
7
 
@@ -192,5 +193,7 @@ Skip emission for solo refactor work with no downstream handoff.
192
193
  - **commit-code**: Prepare test changes for delivery
193
194
  - **combinatorial-testing**: Pairwise matrices
194
195
  - **systematic-debugging**: Isolate flaky browser interactions
196
+ - Companion reference: `references/playwright-msw-and-a11y-testing-standards.md`
197
+ - Companion example: `examples/playwright-e2e-with-msw-and-axe.spec.ts`
195
198
 
196
- Last updated: 2026-09-25
199
+ Last updated: 2026-11-08
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Playwright E2E Test Suite with MSW v2 and Axe Accessibility
3
+ *
4
+ * Implements:
5
+ * - Deterministic web-first auto-waiting assertions (zero sleep/waitForTimeout)
6
+ * - MSW v2 transport-level route interception
7
+ * - Automated WCAG 2.2 AA accessibility scan via @axe-core/playwright
8
+ * - Modal keyboard focus containment & Escape key focus restoration
9
+ * - Playwright ARIA snapshot assertion
10
+ */
11
+
12
+ import { test, expect } from '@playwright/test';
13
+ import AxeBuilder from '@axe-core/playwright';
14
+
15
+ test.describe('Checkout Order Review & Accessibility Gate', () => {
16
+ test.beforeEach(async ({ page }) => {
17
+ // 1. MSW / Playwright Route Interception (Deterministic API mocking)
18
+ await page.route('**/api/v1/checkout/review', async (route) => {
19
+ await route.fulfill({
20
+ status: 200,
21
+ contentType: 'application/json',
22
+ body: JSON.stringify({
23
+ orderId: 'ord_test_8821',
24
+ subtotalCents: 9800,
25
+ taxCents: 808,
26
+ shippingCents: 1200,
27
+ totalCents: 11808,
28
+ items: [{ sku: 'SKU-001', name: 'Mechanical Keyboard Switch Set', quantity: 2 }],
29
+ }),
30
+ });
31
+ });
32
+
33
+ await page.goto('/checkout/review');
34
+ });
35
+
36
+ test('renders review order details with auto-waiting assertions', async ({ page }) => {
37
+ // 2. Web-first auto-waiting locators
38
+ const submitBtn = page.getByRole('button', { name: 'Complete Purchase' });
39
+ await expect(submitBtn).toBeVisible();
40
+ await expect(submitBtn).toBeEnabled();
41
+
42
+ const totalHeading = page.getByText('$118.08');
43
+ await expect(totalHeading).toBeVisible();
44
+ });
45
+
46
+ test('passes automated WCAG 2.2 AA accessibility audit', async ({ page }) => {
47
+ // 3. Automated axe-core scan
48
+ const accessibilityScanResults = await new AxeBuilder({ page })
49
+ .withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])
50
+ .analyze();
51
+
52
+ expect(accessibilityScanResults.violations).toEqual([]);
53
+ });
54
+
55
+ test('verifies modal dialog keyboard trap and focus restoration', async ({ page }) => {
56
+ const editShippingBtn = page.getByRole('button', { name: 'Edit Address' });
57
+ await editShippingBtn.click();
58
+
59
+ const dialog = page.getByRole('dialog', { name: 'Edit Shipping Address' });
60
+ await expect(dialog).toBeVisible();
61
+
62
+ // Verify initial focus is trapped inside dialog
63
+ const firstInput = dialog.getByRole('textbox', { name: 'Street Address' });
64
+ await expect(firstInput).toBeFocused();
65
+
66
+ // Verify Escape key dismisses dialog and restores focus to triggering button
67
+ await page.keyboard.press('Escape');
68
+ await expect(dialog).not.toBeVisible();
69
+ await expect(editShippingBtn).toBeFocused();
70
+ });
71
+
72
+ test('validates semantic ARIA snapshot structure', async ({ page }) => {
73
+ const summaryCard = page.getByRole('region', { name: 'Order Summary' });
74
+ await expect(summaryCard).toBeVisible();
75
+
76
+ // 4. Playwright ARIA snapshot assertion
77
+ await expect(summaryCard).toMatchAriaSnapshot(`
78
+ - region "Order Summary":
79
+ - heading "Order Summary" [level=2]
80
+ - list:
81
+ - listitem:
82
+ - text: /Mechanical Keyboard Switch Set/
83
+ - text: /\\$118\\.08/
84
+ - button "Complete Purchase"
85
+ `);
86
+ });
87
+ });
@@ -0,0 +1,78 @@
1
+ # Playwright, MSW v2, and Automated Accessibility Testing Standards (2026)
2
+
3
+ ## 1. Web-First E2E Automation (Playwright v1.48+)
4
+
5
+ ### 1.1 Auto-Waiting & Timing Discipline
6
+ - **Absolute Ban on Fixed Timeouts**: `page.waitForTimeout()` and arbitrary `sleep()` statements are strictly prohibited. Tests must rely exclusively on web-first auto-waiting assertions:
7
+ ```typescript
8
+ await expect(page.getByRole('button', { name: 'Submit Order' })).toBeVisible();
9
+ await expect(page.getByRole('button', { name: 'Submit Order' })).toBeEnabled();
10
+ ```
11
+ - **Diagnostic Trace Retention**: Configure `trace: 'retain-on-failure'` in `playwright.config.ts`. Retain DOM snapshots, network waterfalls, and console logs exclusively when assertions fail, minimizing CI storage bloat.
12
+ - **HAR Network Replay**: Record third-party network traffic during sandbox sessions and replay via `page.routeFromHAR('fixtures/payments.har')` to decouple tests from external vendor flakiness.
13
+
14
+ ---
15
+
16
+ ## 2. Transport-Level Network Interception (MSW v2)
17
+
18
+ ### 2.1 Boundary Isolation & Error Simulation
19
+ Mock Service Worker (MSW) v2 intercepts network traffic at the Node `fetch` transport level:
20
+ - **Strict Leakage Prevention**: Enforce `onUnhandledRequest: 'error'` in test runner setup to immediately fail any test issuing unmocked network calls to production services.
21
+ - **Typed Handlers & Network Faults**:
22
+ ```typescript
23
+ import { http, HttpResponse, delay } from 'msw';
24
+
25
+ export const handlers = [
26
+ http.get('/api/v1/orders/:id', async () => {
27
+ await delay(50); // Simulate network latency
28
+ return HttpResponse.json({ id: 'ord_123', status: 'shipped' });
29
+ }),
30
+ http.post('/api/v1/checkout', () => {
31
+ return new HttpResponse(null, { status: 504, statusText: 'Gateway Timeout' });
32
+ }),
33
+ ];
34
+ ```
35
+
36
+ ---
37
+
38
+ ## 3. Automated Accessibility Gates (WCAG 2.2 Level AA)
39
+
40
+ ### 3.1 axe-core & ARIA Snapshot Assertions
41
+ - **Automated CI Gate**: Integrate `@axe-core/playwright` into E2E specs to assert zero accessibility violations:
42
+ ```typescript
43
+ import AxeBuilder from '@axe-core/playwright';
44
+
45
+ const accessibilityScanResults = await new AxeBuilder({ page })
46
+ .withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])
47
+ .analyze();
48
+
49
+ expect(accessibilityScanResults.violations).toEqual([]);
50
+ ```
51
+ - **Keyboard Focus Containment**: In modal dialogs, Tab key navigation must cycle strictly within the active dialog. Pressing `Escape` must dismiss the modal and restore focus to the triggering element.
52
+ - **Semantic ARIA Snapshots**: Assert DOM accessibility tree semantics using Playwright ARIA snapshots:
53
+ ```typescript
54
+ await expect(page.getByRole('dialog')).toMatchAriaSnapshot(`
55
+ - dialog "Confirm Deletion":
56
+ - heading "Are you sure?" [level=2]
57
+ - button "Cancel"
58
+ - button "Delete"
59
+ `);
60
+ ```
61
+
62
+ ---
63
+
64
+ ## 4. Font-Stabilized Visual Regression Protocol
65
+
66
+ - **Font Readiness**: Await font rasterization before capturing snapshots:
67
+ ```typescript
68
+ await page.evaluate(() => document.fonts.ready);
69
+ ```
70
+ - **Animation Disabling & Masking**: Disable all transitions (`animations: 'disabled'`) and mask non-deterministic elements (timestamps, avatars):
71
+ ```typescript
72
+ await expect(page).toHaveScreenshot('checkout-review.png', {
73
+ mask: [page.locator('[data-testid="live-timestamp"]')],
74
+ maxDiffPixelRatio: 0.002,
75
+ animations: 'disabled',
76
+ });
77
+ ```
78
+ - **Containerized Headless Linux**: All visual regression test runs must execute in Docker containerized Linux environments to eliminate anti-aliasing variations between macOS and Linux CI workers.
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: implement-ai-disclosure
3
+ description: Implement EU AI Act Article 50 transparency components - AIDisclosureBanner, data-ai-generated attributes, C2PA metadata embedding for AI media, and DOMPurify sanitization. Use when deploying user-facing AI features, chatbots, generative content requiring EU AI Act compliance (effective 2 August 2026).
4
+ version: "1.0.0"
5
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
6
+ ---
7
+
8
+ # Implement AI Disclosure
9
+
10
+ Implement EU AI Act Article 50 transparency components for legal compliance in EU market.
11
+
12
+ ## When to Use
13
+
14
+ - deploying chatbots, virtual assistants, conversational AI
15
+ - implementing generative AI content (text, image, audio, video)
16
+ - building AI-enhanced UIs requiring transparency disclosure
17
+ - adding AI disclosure to existing features
18
+
19
+ ## Core Rules
20
+
21
+ ### EU AI Act Article 50 - Four Obligations (effective 2 Aug 2026)
22
+
23
+ | Obligation | Article | Description |
24
+ |------------|---------|-------------|
25
+ | AI Interaction Disclosure | 50(1) | Inform users they interact with AI (unless obvious) |
26
+ | AI Content Marking | 50(2) | Mark AI content in machine-readable format |
27
+ | Biometric Notification | 50(3) | Notify individuals of emotion/biometric systems |
28
+ | Deepfake Disclosure | 50(4) | Disclose deepfakes depicting real persons/places |
29
+
30
+ ### C2PA Metadata (deadline 2 Dec 2026)
31
+
32
+ - Apply to AI-generated image, audio, video content
33
+ - Requires cryptographic metadata embedding
34
+ - Enables machine-readable AI detection
35
+
36
+ ### Disclosure Components
37
+
38
+ 1. **AIDisclosureBanner**: Display before first meaningful interaction, accessible (ARIA, screen reader)
39
+ 2. **data-ai-generated attribute**: Apply to AI-generated content elements
40
+ 3. **DOMPurify + Trusted Types**: Sanitize AI content before DOM insertion
41
+
42
+ ## Implementation Patterns
43
+
44
+ ```tsx
45
+ import DOMPurify from 'dompurify';
46
+
47
+ // Persistent, accessible EU AI Act Article 50 disclosure before first interaction
48
+ export function ChatInterface({ aiOutputHtml }: { aiOutputHtml: string }) {
49
+ // Always keep an accessible AI label visible; allow collapsing details, never erasing AI identity
50
+ const sanitized = DOMPurify.sanitize(aiOutputHtml, {
51
+ RETURN_TRUSTED_TYPE: typeof window !== 'undefined' && 'trustedTypes' in window,
52
+ });
53
+
54
+ return (
55
+ <section aria-label="AI Assistant Workspace">
56
+ <AIDisclosureBanner
57
+ role="status"
58
+ message="You are interacting with an AI system. Outputs may be inaccurate."
59
+ />
60
+ <article
61
+ data-ai-generated="true"
62
+ dangerouslySetInnerHTML={{ __html: sanitized as unknown as string }}
63
+ />
64
+ </section>
65
+ );
66
+ }
67
+ ```
68
+
69
+ ## Compliance Matrix
70
+
71
+ | Feature | 50(1) | 50(2) | 50(3) | 50(4) |
72
+ |---------|-------|-------|-------|-------|
73
+ | Chatbot | Required | - | - | - |
74
+ | AI text | - | Required | - | - |
75
+ | AI image/video | - | Required | - | If deepfake |
76
+ | Emotion recognition | - | - | Required | - |
77
+
78
+ ## Suggested Process
79
+
80
+ 1. **Classify AI Feature**: Identify applicable Article 50 obligations
81
+ 2. **Design Components**: Create AIDisclosureBanner, content marking strategy
82
+ 3. **Implement**: Add banner before interaction, apply data attributes, sanitize
83
+ 4. **Test**: Verify banner appears, marks present, accessibility works
84
+ 5. **Document**: Record compliance for audit
85
+
86
+ ## Checklist
87
+
88
+ - [ ] Article 50 obligations identified
89
+ - [ ] AIDisclosureBanner component created
90
+ - [ ] Banner appears before first interaction
91
+ - [ ] Banner is accessible (ARIA, screen reader)
92
+ - [ ] data-ai-generated attribute applied
93
+ - [ ] DOMPurify sanitization implemented
94
+ - [ ] C2PA planned for media (Dec 2026)
95
+ - [ ] Compliance documented
96
+
97
+ ## Output Contracts
98
+
99
+ - **`contracts/schemas/implementation-result.json`** — Emit implementation summary, touched files, and verification evidence when delivering Article 50 disclosure components across roles.
100
+
101
+ ## Failure Modes
102
+
103
+ - Missing disclosure: Add CI/CD gate, verify before release
104
+ - XSS from AI content: Always sanitize with DOMPurify
105
+ - C2PA deadline miss: Track as separate work item
106
+
107
+ ## Security Guardrails (OWASP ASI)
108
+
109
+ - ASI05: AI content is untrusted, always sanitize before DOM insertion
110
+ - ASI07: AI outputs from external services require validation
111
+
112
+ ## Related Skills
113
+
114
+ - **add-ui-component**: Build accessible reusable disclosure banners and content wrappers
115
+ - **accessibility-review**: Verify ARIA live regions, focus behavior, and banner accessibility
116
+ - **frontend-testing**: Test disclosure rendering before interaction and DOMPurify sanitization
117
+ - **design-ux-flow**: Design transparent AI states and Article 50 user flows around disclosure
118
+
119
+ Last updated: 2026-11-16
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: implement-view-transitions
3
3
  description: Implement fluid, native-feeling page and state transitions using CSS View Transitions API, React 19 ViewTransition, Next.js App Router transitions, and shared element morphing without degrading Core Web Vitals. Use when adding route animations, shared element transitions, or layout morphs.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, run_dev_server, execute_command]
5
6
  ---
6
7