@vesviet/agent-skills 5.10.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 (326) hide show
  1. package/INDEX.md +31 -19
  2. package/README.md +6 -18
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/ANTIGRAVITY.md +40 -142
  5. package/adapters/antigravity/INDEX_TIER1.json +142 -121
  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 +156 -48
  9. package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
  10. package/adapters/claude/settings.template.json +11 -0
  11. package/adapters/cursor/README.md +1 -5
  12. package/adapters/cursor/hooks.template.json +1 -1
  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/execution-sandbox.md +0 -12
  18. package/core/roles/3d-graphics-engineer.md +144 -208
  19. package/core/roles/README.md +0 -22
  20. package/core/roles/agent-coordinator.md +28 -147
  21. package/core/roles/agent-discovery-engineer.md +46 -39
  22. package/core/roles/ai-systems-engineer.md +2 -0
  23. package/core/roles/backend-developer.md +22 -117
  24. package/core/roles/cloudflare-engineer.md +1 -1
  25. package/core/roles/data-engineer.md +3 -1
  26. package/core/roles/devops-engineer.md +4 -3
  27. package/core/roles/ecommerce-engineer.md +18 -6
  28. package/core/roles/frontend-developer.md +145 -317
  29. package/core/roles/game-developer.md +2 -1
  30. package/core/roles/mobile-engineer.md +18 -204
  31. package/core/roles/product-manager.md +3 -3
  32. package/core/roles/project-manager.md +5 -5
  33. package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
  34. package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
  35. package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
  36. package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
  37. package/core/roles/references/backend-developer-responsibilities.md +47 -0
  38. package/core/roles/references/backend-developer-review-checklist.md +15 -0
  39. package/core/roles/references/business-analyst-responsibilities.md +2 -2
  40. package/core/roles/references/frontend-developer-responsibilities.md +14 -6
  41. package/core/roles/references/frontend-developer-review-checklist.md +13 -6
  42. package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
  43. package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
  44. package/core/roles/references/reviewer-review-checklist.md +54 -0
  45. package/core/roles/references/sdet-review-checklist.md +53 -0
  46. package/core/roles/references/solution-architect-responsibilities.md +134 -0
  47. package/core/roles/references/sre-review-checklist.md +81 -0
  48. package/core/roles/references/system-engineer-responsibilities.md +124 -0
  49. package/core/roles/references/technical-architect-responsibilities.md +192 -0
  50. package/core/roles/references/technical-architect-review-checklist.md +58 -0
  51. package/core/roles/references/technical-lead-review-checklist.md +65 -0
  52. package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
  53. package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
  54. package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
  55. package/core/roles/researcher.md +3 -3
  56. package/core/roles/reviewer.md +2 -2
  57. package/core/roles/role-standard.md +79 -213
  58. package/core/roles/sdet.md +5 -6
  59. package/core/roles/security-engineer.md +4 -3
  60. package/core/roles/solution-architect.md +9 -130
  61. package/core/roles/sre.md +1 -0
  62. package/core/roles/system-engineer.md +15 -155
  63. package/core/roles/task-planner.md +1 -1
  64. package/core/roles/technical-architect.md +15 -245
  65. package/core/roles/technical-lead.md +1 -0
  66. package/core/roles/technical-writer.md +3 -3
  67. package/core/roles/ui-ux-designer.md +158 -303
  68. package/core/rules/README.md +0 -22
  69. package/core/skills/README.md +10 -24
  70. package/core/skills/agent/agent-delegation/SKILL.md +11 -0
  71. package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
  72. package/core/skills/agent/agent-memory-compaction/SKILL.md +69 -99
  73. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
  74. package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
  75. package/core/skills/agent/agent-observability/SKILL.md +12 -6
  76. package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
  77. package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
  78. package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
  79. package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
  80. package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
  81. package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
  82. package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
  83. package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
  84. package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
  85. package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
  86. package/core/skills/backend/add-event-handler/SKILL.md +11 -0
  87. package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
  88. package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
  89. package/core/skills/backend/add-service-client/SKILL.md +2 -0
  90. package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
  91. package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
  92. package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
  93. package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
  94. package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
  95. package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
  96. package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
  97. package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
  98. package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
  99. package/core/skills/backend/implement-auth/SKILL.md +9 -0
  100. package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
  101. package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
  102. package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
  103. package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
  104. package/core/skills/business/elicit-requirements/SKILL.md +1 -0
  105. package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
  106. package/core/skills/business/write-use-cases/SKILL.md +1 -0
  107. package/core/skills/commerce/handle-checkout-flow/SKILL.md +15 -65
  108. package/core/skills/commerce/integrate-payment-gateway/SKILL.md +19 -57
  109. package/core/skills/commerce/manage-order-fulfillment/SKILL.md +14 -49
  110. package/core/skills/commerce/manage-product-catalog/SKILL.md +2 -0
  111. package/core/skills/document/docx/SKILL.md +1 -0
  112. package/core/skills/document/pdf/SKILL.md +1 -0
  113. package/core/skills/document/xlsx/SKILL.md +1 -0
  114. package/core/skills/documentation/configure-llms-txt/SKILL.md +1 -0
  115. package/core/skills/documentation/write-documentation/SKILL.md +1 -0
  116. package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
  117. package/core/skills/education/create-exercises/SKILL.md +1 -0
  118. package/core/skills/education/design-learning-plan/SKILL.md +1 -0
  119. package/core/skills/education/grade-and-review/SKILL.md +1 -0
  120. package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
  121. package/core/skills/foundation/ai-risk-assessment/SKILL.md +1 -0
  122. package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
  123. package/core/skills/foundation/conduct-research/SKILL.md +1 -1
  124. package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
  125. package/core/skills/foundation/create-migration/SKILL.md +10 -0
  126. package/core/skills/foundation/design-review/SKILL.md +9 -10
  127. package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
  128. package/core/skills/foundation/discernment-nudge/SKILL.md +1 -0
  129. package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
  130. package/core/skills/foundation/incident-report/SKILL.md +1 -0
  131. package/core/skills/foundation/plan-technical-delivery/SKILL.md +1 -0
  132. package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
  133. package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
  134. package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
  135. package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
  136. package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
  137. package/core/skills/foundation/release-notes/SKILL.md +1 -0
  138. package/core/skills/foundation/systematic-debugging/SKILL.md +10 -0
  139. package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
  140. package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
  141. package/core/skills/foundation/write-tests/SKILL.md +9 -0
  142. package/core/skills/frontend/add-page-route/SKILL.md +7 -7
  143. package/core/skills/frontend/add-ui-component/SKILL.md +1 -0
  144. package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +2 -2
  145. package/core/skills/frontend/component-composition/SKILL.md +10 -0
  146. package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
  147. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  148. package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
  149. package/core/skills/frontend/frontend-testing/SKILL.md +1 -0
  150. package/core/skills/frontend/implement-ai-disclosure/SKILL.md +25 -24
  151. package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
  152. package/core/skills/frontend/implement-webmcp/SKILL.md +4 -3
  153. package/core/skills/frontend/integrate-api-client/SKILL.md +9 -11
  154. package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
  155. package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
  156. package/core/skills/frontend/setup-design-system/SKILL.md +3 -2
  157. package/core/skills/frontend/setup-visual-regression/SKILL.md +5 -4
  158. package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
  159. package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
  160. package/core/skills/gamedev/render-webgl-threejs/SKILL.md +12 -10
  161. package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +21 -5
  162. package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
  163. package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
  164. package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
  165. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
  166. package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
  167. package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
  168. package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +1 -0
  169. package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +1 -0
  170. package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
  171. package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
  172. package/core/skills/platform/agents-sdk/SKILL.md +1 -0
  173. package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
  174. package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
  175. package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
  176. package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
  177. package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
  178. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
  179. package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
  180. package/core/skills/platform/durable-objects/SKILL.md +1 -0
  181. package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
  182. package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
  183. package/core/skills/platform/setup-deployment/SKILL.md +2 -2
  184. package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
  185. package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
  186. package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
  187. package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
  188. package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
  189. package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
  190. package/core/skills/platform/supply-chain-security/SKILL.md +1 -2
  191. package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
  192. package/core/skills/platform/web-perf/SKILL.md +2 -2
  193. package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
  194. package/core/skills/platform/wrangler/SKILL.md +1 -0
  195. package/core/skills/product/build-story-map/SKILL.md +1 -0
  196. package/core/skills/product/define-product-strategy/SKILL.md +1 -0
  197. package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
  198. package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
  199. package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
  200. package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
  201. package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
  202. package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
  203. package/core/skills/repo-ops/review-code/SKILL.md +10 -0
  204. package/core/skills/repo-ops/review-service/SKILL.md +3 -0
  205. package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
  206. package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
  207. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
  208. package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +1 -0
  209. package/core/skills/security-data/reverse-engineer-binary/SKILL.md +1 -0
  210. package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +1 -0
  211. package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
  212. package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
  213. package/core/workflows/README.md +0 -20
  214. package/overlays/README.md +2 -22
  215. package/overlays/astro-cloudflare/README.md +0 -20
  216. package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
  217. package/overlays/b2b-catalog-golf/README.md +0 -20
  218. package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
  219. package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
  220. package/overlays/b2b-factory-catalog/README.md +0 -20
  221. package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
  222. package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
  223. package/overlays/b2b-sport-catalog/README.md +0 -20
  224. package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
  225. package/overlays/cad-projection/README.md +0 -20
  226. package/overlays/cad-projection/rules/cad-conventions.md +0 -20
  227. package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
  228. package/overlays/data-analyst-stack/README.md +0 -20
  229. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
  230. package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
  231. package/overlays/data-warehouse/README.md +0 -22
  232. package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
  233. package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
  234. package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
  235. package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
  236. package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
  237. package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
  238. package/overlays/ecommerce-microservices/README.md +22 -35
  239. package/overlays/ecommerce-microservices/config/README.md +3 -1
  240. package/overlays/ecommerce-microservices/rules/README.md +2 -1
  241. package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
  242. package/overlays/ecommerce-microservices/skills/README.md +1 -1
  243. package/overlays/ecommerce-microservices/workflows/README.md +3 -1
  244. package/overlays/fintech-compliance/README.md +0 -20
  245. package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
  246. package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
  247. package/overlays/go-microservices/README.md +1 -21
  248. package/overlays/go-microservices/rules/go-conventions.md +0 -31
  249. package/overlays/hugo-authority-content/README.md +0 -20
  250. package/overlays/hugo-authority-content/roles/README.md +0 -20
  251. package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
  252. package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
  253. package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
  254. package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
  255. package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
  256. package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
  257. package/overlays/hugo-authority-content/workflows/README.md +0 -20
  258. package/overlays/hvac-authority-content/README.md +0 -20
  259. package/overlays/hvac-authority-content/config/collections.md +0 -22
  260. package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
  261. package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
  262. package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
  263. package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
  264. package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
  265. package/overlays/laravel-ecommerce/README.md +0 -20
  266. package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
  267. package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
  268. package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
  269. package/overlays/laravel-filament/README.md +0 -20
  270. package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
  271. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
  272. package/overlays/livestream-web/README.md +0 -20
  273. package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
  274. package/overlays/obj-configurator/README.md +0 -20
  275. package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
  276. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
  277. package/overlays/r3f-stack/README.md +0 -20
  278. package/overlays/r3f-stack/rules/stub.md +0 -31
  279. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
  280. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
  281. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
  282. package/overlays/real-estate-content/README.md +0 -20
  283. package/overlays/real-estate-content/roles/README.md +0 -20
  284. package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
  285. package/overlays/real-estate-content/rules/content-schema.md +0 -31
  286. package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
  287. package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
  288. package/overlays/real-estate-content/workflows/README.md +0 -20
  289. package/overlays/security-research/README.md +0 -20
  290. package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
  291. package/overlays/seo-publishing/README.md +1 -21
  292. package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
  293. package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
  294. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
  295. package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
  296. package/overlays/ui-design-system/README.md +0 -20
  297. package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
  298. package/package.json +2 -2
  299. package/packs/README.md +3 -9
  300. package/packs/ecommerce-team/manifest.yaml +1 -1
  301. package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
  302. package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
  303. package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
  304. package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
  305. package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
  306. package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
  307. package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
  308. package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
  309. package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
  310. package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
  311. package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
  312. package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
  313. package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
  314. package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
  315. package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
  316. package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
  317. package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
  318. package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
  319. package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
  320. package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
  321. package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
  322. package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
  323. package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
  324. package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
  325. package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
  326. package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
@@ -1,114 +0,0 @@
1
- # add-ui-component — 2026 Upgrade Plan
2
-
3
- ## Summary of 2026 Standards Changes
4
-
5
- ### React 19 / RSC Component Architecture (2026)
6
- - **RSC Leaf Pattern**: Push `"use client"` as deep as possible; maximize Server-side rendering
7
- - **RSC at top, client leaves**: Interactive Client Components passed as children/props into Server Components
8
- - **Minimize client-side state high in tree**: Avoid unnecessary re-renders
9
- - **React 19 form actions**: `<form action={submitAction}>`, `useActionState` for standard mutations
10
- - **`useOptimistic` hook**: Optimistic updates for data mutations
11
-
12
- ### AI-Generated Component Governance (2026)
13
- - **Token Conformance Check**: Verify AI components consume design tokens (no hardcoded hex, px, shadow DOM leakage)
14
- - **Automated axe-devtools Scan**: Color contrast, screen reader labels, keyboard navigation
15
- - **CSS Pollution Prevention**: Strip custom/inline/non-repo CSS files and rules
16
- - **Peer Code Review Mandatory**: All AI-generated components reviewed for code style and safety
17
-
18
- ### Lit v3 Web Components Bridging (2026)
19
- - **`@lit/react` wrapper**: Expose Lit v3 Web Components cleanly as React components
20
- - **Properties/events/lifecycle mapping**: Correct React props and callbacks mapping
21
- - **Cleanup verification**: Event listener detachment on unmount
22
-
23
- ### Anti-Slop Component Mechanics (2026)
24
- - **Full-height hero/banner**: ALWAYS enforce `min-h-[100dvh]` to avoid mobile viewport jumping
25
- - **Continuous motion isolation**: NEVER use `useState` for pointer physics, scroll progress, mouse movement; bind to `motion/react` values (`useMotionValue`, `useTransform`)
26
- - **Tactile feedback**: `:active` transform (`scale-[0.98]` or `-translate-y-[1px]`) on interactive elements
27
- - **CTA label wrapping**: Primary CTA labels never wrap to multiple lines on desktop
28
- - **Icon library restriction**: Approved only (@phosphor-icons/react, hugeicons-react, @radix-ui/react-icons); no hand-rolled SVG icons
29
-
30
- ### Composition Patterns (2026)
31
- - **Compound Components**: `Dialog.Root`, `Dialog.Content`, `Dialog.Trigger` with Radix-style `asChild` slot delegation
32
- - **shadcn v4 `FieldGroup` + `Field`**: Replace legacy `FormItem`/`FormControl` boilerplate
33
- - **React 19 `useId()`**: Deterministic label/description/error linking compatible with Server Actions
34
- - **`InputGroup`**: Prefix/suffix addons, action buttons, dropdowns with `:focus-within` rings
35
-
36
- ---
37
-
38
- ## Required Skill Upgrades
39
-
40
- ### 1. Core Rules Updates
41
- | Current Rule | 2026 Upgrade |
42
- |--------------|--------------|
43
- | RSC leaf pattern mentioned | **RSC leaf pattern mandatory**: `"use client"` pushed as deep as possible; RSC at top |
44
- | AI component governance basic | **Full AI governance**: Token conformance, axe-devtools scan, CSS pollution strip, peer review |
45
- | Lit v3 bridging mentioned | **`@lit/react` wrapper mandatory**: Properties/events/lifecycle mapped; cleanup verified |
46
- | Anti-slop mechanics basic | **Full anti-slop**: `min-h-[100dvh]`, motion/react for continuous values, `:active` transform, CTA no-wrap, approved icons only |
47
- | Composition patterns | **shadcn v4 `FieldGroup`/`Field` + `useId()` + `InputGroup`**: Modern form layouts |
48
-
49
- ### 2. New 2026 Patterns to Add
50
- - **RSC/Client Component Boundary**: Explicit boundary definition with `"use client"` at leaves
51
- - **React 19 `useActionState` + `useOptimistic`**: Form mutations with pending state, optimistic updates
52
- - **Server Actions Integration**: `<form action={serverFn}>` with progressive enhancement
53
- - **Composite Components**: Server UI with client slots (TanStack Start pattern)
54
- - **Motion/React for Continuous Values**: `useMotionValue`, `useTransform` instead of `useState`
55
- - **Approved Icon Library Enforcement**: Lint rule restricting to @phosphor-icons, hugeicons, @radix-ui/react-icons
56
- - **`min-h-[100dvh]` for Hero Sections**: Lint rule for full-height components
57
- - **`:active` Transform Requirement**: Lint rule for interactive element tactile feedback
58
-
59
- ### 3. Checklist Additions
60
- - [ ] Similar component pattern reviewed (RSC/client boundary aware)
61
- - [ ] Component contract defined with RSC/client classification
62
- - [ ] Accessibility and semantics checked (axe-devtools scan passes)
63
- - [ ] State boundaries kept clear (client state only in `"use client"` components)
64
- - [ ] Styling follows local system (design tokens, no hardcoded values)
65
- - [ ] Anti-slop mechanics verified: `min-h-[100dvh]`, continuous motion on motion/react, tactile `:active`, no CTA wrapping, approved icons
66
- - [ ] Performance impact considered (bundle size, lazy loading, CLS, RSC streaming)
67
- - [ ] AI-generated component governance: token conformance, axe-devtools scan, CSS pollution stripped, peer review completed
68
- - [ ] Lit v3 Web Components wrapped with `@lit/react` if used
69
- - [ ] shadcn v4 `FieldGroup` + `Field` with `useId()` for forms
70
- - [ ] `InputGroup` for compound inputs with `:focus-within` rings
71
- - [ ] Tests: render, interactions, a11y states, prop/slot variations
72
- - [ ] `implementation-result.json` emitted with component props/events summary
73
-
74
- ### 4. Failure Mode Additions
75
- - **RSC boundary leak**: Client component imported in Server Component without `"use client"`. Mitigation: Lint rule enforcing `"use client"` at boundary; type-check import graph.
76
- - **AI component token violation**: Hardcoded colors/spacing in AI-generated component. Mitigation: Automated token conformance check in CI; reject non-conforming.
77
- - **Continuous motion on useState**: `useState` for scroll/pointer causing re-render storms. Mitigation: Lint rule banning `useState` for continuous values; require `motion/react`.
78
- - **CSS pollution from AI**: Inline styles or custom CSS files in AI output. Mitigation: Automated strip of non-repo CSS; reject components with style leakage.
79
- - **Lit v3 cleanup failure**: Event listeners not detached on unmount. Mitigation: `@lit/react` wrapper verification; test unmount cleanup.
80
- - **CTA label wrapping**: Primary CTA wraps on desktop. Mitigation: Lint rule for `whitespace-nowrap` on primary CTA; visual regression test.
81
- - **Hand-rolled SVG icons**: Custom SVG icons bypassing design system. Mitigation: Lint rule restricting to approved icon libraries.
82
-
83
- ### 5. Output Contract Updates
84
- - Update `contracts/schemas/implementation-result.json` with: RSC/client classification, AI governance checks passed, anti-slop verification, icon library compliance
85
-
86
- ---
87
-
88
- ## Implementation Priority
89
-
90
- | Priority | Task | Effort |
91
- |----------|------|--------|
92
- | P0 | RSC leaf pattern enforcement (`"use client"` depth) | High |
93
- | P0 | AI component governance pipeline (token, axe, CSS, review) | High |
94
- | P0 | Anti-slop mechanics lint rules (`min-h-[100dvh]`, motion/react, `:active`, CTA, icons) | High |
95
- | P1 | React 19 `useActionState` + `useOptimistic` integration | Medium |
96
- | P1 | shadcn v4 `FieldGroup`/`Field` + `useId()` migration | Medium |
97
- | P1 | `@lit/react` wrapper for Web Components | Medium |
98
- | P1 | Composite Components (Server UI + client slots) | Medium |
99
- | P2 | Expanded failure modes | Low |
100
- | P2 | Output contract updates | Low |
101
-
102
- ---
103
-
104
- ## Validation Gates
105
- - Run `python3 core/scripts/validate-all.py` from agent-skills root
106
- - Verify INDEX.md regeneration if VERSION bumped
107
- - Check adapter parity with `validate-rules.py` (9 parity groups)
108
- - Test RSC boundary with `"use client"` at various depths
109
- - Run axe-devtools scan on AI-generated components
110
- - Verify `min-h-[100dvh]` on hero components across viewports
111
- - Verify `motion/react` for continuous motion (no `useState` for scroll/pointer)
112
- - Verify approved icon library restriction lint rule
113
- - Test `@lit/react` wrapper unmount cleanup
114
- - Test React 19 `useActionState` form with Server Function
@@ -1,103 +0,0 @@
1
- # component-composition — 2026 Upgrade Plan
2
-
3
- ## Summary of 2026 Standards Changes
4
-
5
- ### React 19 Idioms (Mandatory 2026)
6
- - **No `forwardRef`**: Pass `ref` as standard prop in React 19
7
- - **`use(Context)` instead of `useContext()`**: Direct context reading
8
- - **`<Context value={...}>` instead of `<Context.Provider>`**: Simplified provider syntax
9
- - **`useId()` for deterministic IDs**: Label/description/error linking compatible with Server Actions
10
- - **Server Actions compatible forms**: `useActionState`, `useOptimistic`, `<form action={...}>`
11
-
12
- ### shadcn v4 Form Architecture (2026)
13
- - **`FieldGroup` + `Field`**: Replace legacy v3 nested `FormItem`/`FormControl` boilerplate
14
- - **React 19 `useId()`**: Deterministic label, description, error linking
15
- - **`InputGroup`**: Prefix/suffix addons, action buttons, dropdowns with unified flex containers and `:focus-within` rings
16
-
17
- ### Compound Component Evolution (2026)
18
- - **Base UI `render` prop vs Radix `asChild`**: Use Base UI `render` prop when children need internal headless state injection or polymorphic tags; Radix `asChild` (`Slot`) for single-child delegation without state projection
19
- - **Context interface facets**: `{ state, actions, meta }` — read-only data, callbacks/mutations, references (DOM refs, unique IDs, active indices)
20
- - **Headless hooks extraction**: `useDialog`, `useDropdown` returning `{ state, actions, triggerProps, contentProps }` with keyboard bindings (Escape, Enter, Arrows) and ARIA attributes
21
-
22
- ### Anti-Boolean Prop Sprawl Enforcement (2026)
23
- - **Strict ban**: Boolean flags toggling internal layout (`isThread`, `hasBadge`, `isHeader`, `withIcon`, `isLoadingModal`) — max 2 booleans for purely stylistic states
24
- - **Compound component replacement**: `Component.Root`, `Component.Trigger`, `Component.Content`, `Component.Close`
25
- - **Explicit pre-composed variants**: `ThreadComposer`, `ChannelComposer` for common use cases
26
-
27
- ---
28
-
29
- ## Required Skill Upgrades
30
-
31
- ### 1. Core Rules Updates
32
- | Current Rule | 2026 Upgrade |
33
- |--------------|--------------|
34
- | React 19 idioms mentioned | **React 19 idioms mandatory**: No `forwardRef`, `use(Context)`, `<Context value>`, `useId()` for forms |
35
- | shadcn v3 form layouts | **shadcn v4 `FieldGroup` + `Field`**: Replace legacy `FormItem`/`FormControl`; `useId()` for linking |
36
- | Base UI vs Radix mentioned | **Decision framework**: Base UI `render` prop for state injection/polymorphic tags; Radix `asChild` for single-child delegation |
37
- | Headless hooks mentioned | **Standardized headless hooks**: `useDialog`, `useDropdown` returning `{ state, actions, triggerProps, contentProps }` with keyboard/ARIA |
38
- | Anti-boolean prop sprawl | **Max 2 booleans for stylistic states only**: Layout-altering booleans banned; compound refactor required |
39
-
40
- ### 2. New 2026 Patterns to Add
41
- - **React 19 Migration Checklist**: `forwardRef` → standard `ref` prop; `useContext()` → `use(Context)`; `<Context.Provider>` → `<Context value>`; `useId()` for forms
42
- - **shadcn v4 Form Migration**: `FieldGroup` + `Field` pattern with `useId()`; `InputGroup` for compound inputs
43
- - **Context Interface Contract**: Three-facet interface (`state`, `actions`, `meta`) with TypeScript types
44
- - **Headless Hook Library**: Reusable `useDialog`, `useDropdown`, `useCombobox`, `useTabs` with keyboard/ARIA
45
- - **Base UI vs Radix Decision Tree**: When to use `render` prop (state injection, polymorphic) vs `asChild` (delegation)
46
- - **Variant Composition Strategy**: Pre-composed variants for common cases; primitives for custom layouts
47
-
48
- ### 3. Checklist Additions
49
- - [ ] Component avoids boolean prop proliferation; max <= 2 booleans for purely stylistic states
50
- - [ ] Complex multi-region layout structured as compound component (`Root`, `Trigger`, `Content`, etc.)
51
- - [ ] State management decoupled from UI via context provider interface (`state`, `actions`, `meta`)
52
- - [ ] Interactive triggers support `asChild` slot delegation without illegal DOM wrapper nesting
53
- - [ ] Event handlers and refs merged safely via `composeEventHandlers` and `composeRefs`
54
- - [ ] Keyboard navigation and WAI-ARIA roles handled deterministically via headless hook or primitive
55
- - [ ] **React 19 idioms used**: direct `ref` prop, `use(Context)` hook, `<Context value={...}>`, `useId()` for forms
56
- - [ ] shadcn v4 `FieldGroup` + `Field` with `useId()` for form layouts
57
- - [ ] `InputGroup` for compound inputs with `:focus-within` rings
58
- - [ ] Base UI `render` prop used for state injection/polymorphic tags; Radix `asChild` for single-child delegation
59
- - [ ] Headless hooks extracted: `useDialog`, `useDropdown` returning `{ state, actions, triggerProps, contentProps }`
60
- - [ ] Explicit pre-composed variants provided for common high-frequency use cases
61
- - [ ] Behavioral interaction tests verify compound composition and accessibility contracts
62
- - [ ] `ui-component-spec.json` and `implementation-result.json` emitted and validated
63
-
64
- ### 4. Failure Mode Additions
65
- - **React 19 migration incomplete**: `forwardRef` or `useContext()` remains in codebase. Mitigation: Codemod for `forwardRef` removal; lint rule for `use(Context)` vs `useContext()`.
66
- - **shadcn v3 form legacy**: `FormItem`/`FormControl` boilerplate persists. Mitigation: Codemod for `FieldGroup`/`Field` migration; lint rule banning legacy form components.
67
- - **Base UI/Radix misuse**: `render` prop used for simple delegation; `asChild` used when state injection needed. Mitigation: Decision tree in code review; documented pattern examples.
68
- - **Headless hook state leakage**: Internal state exposed in hook return. Mitigation: Strict return type `{ state, actions, triggerProps, contentProps }`; no internal state exposure.
69
- - **Context null pointer**: Subcomponent rendered outside Provider. Mitigation: Context consumer hook throws diagnostic error (`useComposerContext must be used within Composer.Provider`).
70
- - **Event handler collision in slot**: Child `onClick` overwrites trigger `onClick`. Mitigation: Always `composeEventHandlers`; test with custom child components.
71
- - **Ref forwarding broken in `asChild`**: Custom child loses ref binding. Mitigation: `composeRefs` supporting callback and object refs; test with `forwardRef` components.
72
-
73
- ### 5. Output Contract Updates
74
- - Update `contracts/schemas/ui-component-spec.json` with: React 19 idiom compliance, shadcn v4 form pattern, context interface, headless hook signatures, Base UI/Radix decision
75
-
76
- ---
77
-
78
- ## Implementation Priority
79
-
80
- | Priority | Task | Effort |
81
- |----------|------|--------|
82
- | P0 | React 19 idioms migration (no `forwardRef`, `use(Context)`, `useId()`) | High |
83
- | P0 | shadcn v4 `FieldGroup` + `Field` form migration | High |
84
- | P0 | Anti-boolean prop sprawl enforcement (max 2 stylistic) | High |
85
- | P1 | Context interface contract (`state`, `actions`, `meta`) | Medium |
86
- | P1 | Headless hook library standardization | Medium |
87
- | P1 | Base UI `render` prop vs Radix `asChild` decision framework | Medium |
88
- | P1 | Explicit pre-composed variants for common use cases | Medium |
89
- | P2 | Expanded failure modes | Low |
90
- | P2 | Output contract updates | Low |
91
-
92
- ---
93
-
94
- ## Validation Gates
95
- - Run `python3 core/scripts/validate-all.py` from agent-skills root
96
- - Verify INDEX.md regeneration if VERSION bumped
97
- - Check adapter parity with `validate-rules.py` (9 parity groups)
98
- - Test React 19 codemod removes all `forwardRef` and `useContext()`
99
- - Verify shadcn v4 `FieldGroup`/`Field` renders with `useId()` linking
100
- - Test Base UI `render` prop state injection vs Radix `asChild` delegation
101
- - Verify headless hooks return correct interface with keyboard/ARIA
102
- - Test context consumer throws diagnostic error outside Provider
103
- - Test `composeEventHandlers`/`composeRefs` with custom children
@@ -1,137 +0,0 @@
1
- # frontend-testing — 2026 Upgrade Plan
2
-
3
- ## Summary of 2026 Standards Changes
4
-
5
- ### Playwright v1.48+ Evolution (2026)
6
- - **Web-first auto-waiting**: `expect(locator).toBeVisible()`, `toBeEnabled()` — strictly ban `sleep()`, `waitForTimeout()`
7
- - **Trace Viewer mandatory**: `trace: 'retain-on-failure'` with console logs, network traffic, DOM snapshots
8
- - **HAR replay**: `page.routeFromHAR()` for deterministic external API interactions
9
- - **Component Testing**: `@playwright/experimental-ct-*` or Vitest Browser Mode for real DOM without full browser stack
10
- - **Cross-browser matrix**: Chromium, Firefox, WebKit at mobile/desktop viewports
11
-
12
- ### MSW v2 Transport-Level Interception (2026)
13
- - **`setupServer` (Node/Vitest) / `setupWorker` (browser/Playwright)**: Transport-level handlers
14
- - **Typed `HttpResponse.json()`**: Standard fetch `http.*` methods
15
- - **`onUnhandledRequest: 'error'`**: Catch unmocked requests, prevent silent leakage to live backends
16
- - **Network variation simulation**: Latency injection, 4xx/5xx errors, disconnection, malformed payloads
17
-
18
- ### WCAG 2.2 AA Automated Gates (2026)
19
- - **`@axe-core/playwright`**: `AxeBuilder.withTags(['wcag2a', 'wcag2aa', 'wcag22aa']).analyze()` — zero violations in CI
20
- - **Keyboard focus containment**: Tab cycling trapped within modals, flyouts, drawers
21
- - **Focus restoration**: Escape dismisses overlay, restores focus to triggering element
22
- - **ARIA snapshots**: `expect(locator).toMatchAriaSnapshot()` for accessibility tree structure
23
-
24
- ### Font-Stabilized Visual Regression (2026)
25
- - **`await document.fonts.ready`**: Web font readiness before screenshots
26
- - **Animation suppression**: `animations: 'disabled'` (CSS transitions, blinking carets)
27
- - **Dynamic content masking**: `mask: [locator]` for timestamps, avatars, counters
28
- - **Containerized Linux execution**: Docker for reproducible rasterization
29
- - **Tight tolerances**: `maxDiffPixelRatio: 0.002` to catch defects, ignore subpixel jitter
30
-
31
- ### AI/LLM-Generated UI Resilience Testing (2026)
32
- - **Empty/truncated/streaming/malformed LLM responses**: Explicit test cases; never assume well-formed output
33
- - **Visual regression baselines before merge**: Catch missing active/hover/focus states
34
- - **Automated axe-core on AI UI**: Catch syntactically valid but semantically broken ARIA
35
-
36
- ### Pairwise Combinatorial Testing (2026)
37
- - **`combinatorial-testing`**: Pairwise covering arrays across viewports, permissions, component states
38
- - **`systematic-debugging`**: 4-phase isolation of non-deterministic UI flakiness, race conditions, state transitions
39
-
40
- ### 4-Phase Systematic Debugging (2026)
41
- 1. **Reproduce**: Minimal deterministic reproduction
42
- 2. **Isolate**: Binary search via git bisect / test bisection
43
- 3. **Diagnose**: Trace Viewer timeline, network panel, DOM snapshots
44
- 4. **Verify**: Fix validation with regression test
45
-
46
- ---
47
-
48
- ## Required Skill Upgrades
49
-
50
- ### 1. Core Rules Updates
51
- | Current Rule | 2026 Upgrade |
52
- |--------------|--------------|
53
- | Playwright v1.48+ mentioned | **Playwright v1.48+ mandatory**: Web-first auto-waiting, Trace Viewer, HAR replay, Component Testing |
54
- | MSW v2 mentioned | **MSW v2 transport-level**: `setupServer`/`setupWorker`, typed `HttpResponse`, `onUnhandledRequest: 'error'` |
55
- | WCAG 2.2 AA mentioned | **Zero violations CI gate**: `@axe-core/playwright` with `wcag22aa` tag; focus containment + restoration verified |
56
- | Visual regression mentioned | **Font-stabilized + containerized**: `document.fonts.ready`, `animations: 'disabled'`, masking, Docker Linux, `maxDiffPixelRatio: 0.002` |
57
- | AI UI testing mentioned | **LLM response resilience**: Empty/truncated/streaming/malformed tests; visual baselines before merge; axe-core on AI UI |
58
- | Pairwise testing mentioned | **Combinatorial covering arrays**: Viewports × permissions × states; systematic debugging 4-phase |
59
-
60
- ### 2. New 2026 Patterns to Add
61
- - **Playwright Component Testing**: `@playwright/experimental-ct-*` for isolated component tests without full app
62
- - **Vitest Browser Mode**: Real DOM rendering without browser stack overhead
63
- - **HAR Recording/Replay Workflow**: Record once, replay deterministically for external APIs
64
- - **ARIA Snapshot Testing**: `toMatchAriaSnapshot()` for semantic structure validation
65
- - **AI LLM Response Test Matrix**: Empty, truncated, streaming, malformed, rate-limited responses
66
- - **Pairwise UI Matrix Generation**: `combinatorial-testing` for viewport × theme × locale × permissions
67
- - **Systematic Flakiness Isolation**: 4-phase debugging with Trace Viewer diagnostics
68
- - **Mutation Testing for UI**: Stryker mutation score ≥ 75-80% for critical UI logic
69
-
70
- ### 3. Checklist Additions
71
- - [ ] Playwright v1.48+ with web-first auto-waiting assertions (`toBeVisible`, `toBeEnabled`)
72
- - [ ] `sleep()` / `waitForTimeout()` completely eliminated
73
- - [ ] Trace Viewer enabled: `trace: 'retain-on-failure'` with console, network, DOM
74
- - [ ] HAR replay configured for external third-party API stability
75
- - [ ] Playwright Component Testing or Vitest Browser Mode for component tests
76
- - [ ] MSW v2 transport-level: `setupServer`/`setupWorker`, typed `HttpResponse`, `onUnhandledRequest: 'error'`
77
- - [ ] Network variation simulation: latency, 4xx/5xx, disconnection, malformed payloads
78
- - [ ] `@axe-core/playwright` CI gate: zero violations with `wcag2a`, `wcag2aa`, `wcag22aa` tags
79
- - [ ] Keyboard focus containment verified: Tab trapped in modals/flyouts/drawers
80
- - [ ] Focus restoration verified: Escape dismisses overlay, restores focus to trigger
81
- - [ ] ARIA snapshots: `toMatchAriaSnapshot()` for accessibility tree structure
82
- - [ ] Font-stabilized visual regression: `document.fonts.ready`, animations disabled, dynamic masking
83
- - [ ] Containerized headless Linux (Docker) for visual snapshots
84
- - [ ] `maxDiffPixelRatio: 0.002` for tight visual diff tolerance
85
- - [ ] AI LLM response test cases: empty, truncated, streaming, malformed
86
- - [ ] Visual regression baselines captured before AI component merge
87
- - [ ] Axe-core scan on all AI-generated UI components
88
- - [ ] Pairwise combinatorial matrix: viewports × permissions × states
89
- - [ ] Systematic debugging 4-phase documented for flaky tests
90
- - [ ] Mutation score ≥ 75-80% via Stryker for critical UI logic
91
- - [ ] `contracts/schemas/test-report.json` and `implementation-result.json` emitted
92
-
93
- ### 4. Failure Mode Additions
94
- - **Playwright component test false confidence**: Component passes in isolation but fails in app context. Mitigation: Route/page tests for integration; component tests for isolated behavior only.
95
- - **HAR replay staleness**: External API changes but HAR not updated. Mitigation: Scheduled HAR refresh; CI check for HAR age; fallback to MSW handlers.
96
- - **ARIA snapshot false positives**: Semantic structure changes without functional impact. Mitigation: Baseline ARIA snapshots per component version; review diffs manually.
97
- - **AI UI test maintenance burden**: LLM response patterns evolve rapidly. Mitigation: Parameterized test matrix; shared fixtures for LLM response shapes.
98
- - **Pairwise matrix explosion**: Too many combinations. Mitigation: Pairwise covering arrays (not full factorial); prioritize high-risk combinations.
99
- - **Mutation testing performance**: Stryker slow on large UI codebases. Mitigation: Run only on critical UI logic (forms, mutations, state machines); parallelize.
100
-
101
- ### 5. Output Contract Updates
102
- - Update `contracts/schemas/test-report.json` with: Playwright version, Trace Viewer artifacts, HAR replay status, axe-core results, ARIA snapshots, visual regression metrics, mutation scores, pairwise matrix coverage
103
- - Update `contracts/schemas/implementation-result.json` with test evidence
104
-
105
- ---
106
-
107
- ## Implementation Priority
108
-
109
- | Priority | Task | Effort |
110
- |----------|------|--------|
111
- | P0 | Playwright v1.48+ web-first auto-waiting + Trace Viewer + HAR | High |
112
- | P0 | MSW v2 transport-level with `onUnhandledRequest: 'error'` | High |
113
- | P0 | WCAG 2.2 AA zero-violations CI gate (`wcag22aa`) | High |
114
- | P0 | Font-stabilized visual regression in containerized Linux | High |
115
- | P1 | Playwright Component Testing / Vitest Browser Mode | Medium |
116
- | P1 | ARIA snapshot testing (`toMatchAriaSnapshot`) | Medium |
117
- | P1 | AI LLM response resilience test matrix | Medium |
118
- | P1 | Pairwise combinatorial testing (`combinatorial-testing`) | Medium |
119
- | P1 | Systematic debugging 4-phase workflow | Medium |
120
- | P1 | Mutation testing (Stryker ≥ 75-80%) for critical UI | Medium |
121
- | P2 | Expanded failure modes | Low |
122
- | P2 | Output contract updates | Low |
123
-
124
- ---
125
-
126
- ## Validation Gates
127
- - Run `python3 core/scripts/validate-all.py` from agent-skills root
128
- - Verify INDEX.md regeneration if VERSION bumped
129
- - Check adapter parity with `validate-rules.py` (9 parity groups)
130
- - Test Playwright auto-waiting eliminates all `sleep()` calls
131
- - Verify MSW v2 `onUnhandledRequest: 'error'` catches unmocked requests
132
- - Run `@axe-core/playwright` with `wcag22aa` — zero violations
133
- - Test visual regression in Docker container with `document.fonts.ready`
134
- - Verify ARIA snapshots match baseline on component updates
135
- - Test AI LLM response matrix with empty/truncated/streaming/malformed
136
- - Run pairwise combinatorial matrix generation
137
- - Verify Stryker mutation score ≥ 75% on critical UI logic
@@ -1,118 +0,0 @@
1
- # implement-view-transitions — 2026 Upgrade Plan
2
-
3
- ## Summary of 2026 Standards Changes
4
-
5
- ### CSS View Transitions API (2026)
6
- - **Native browser support**: `::view-transition-old`, `::view-transition-new` pseudo-elements
7
- - **Composited motion only**: Strictly animate `transform` and `opacity`; **never** layout geometry (`width`, `height`, `top`, `left`, `margin`, `padding`)
8
- - **`view-transition-name` uniqueness**: Globally unique across active elements; suffix with dynamic IDs (`hero-image-${item.id}`)
9
-
10
- ### React 19 ViewTransition (2026)
11
- - **`<ViewTransition>` component**: `default="none"` mandatory; wrap content **before any DOM nodes**
12
- - **Type-keyed transitions**: `name` prop for shared elements; `share="morph"` for morphing
13
- - **Directional transitions**: `addTransitionType` (`nav-forward`, `nav-back`) inside `startTransition`
14
- - **Fallback animations**: Defined for shared elements when matching target absent
15
-
16
- ### Performance Budgets (2026)
17
- - **INP < 200ms**: DOM mutation callback in `startViewTransition` must execute < 50ms
18
- - **No synchronous long tasks**: Wrap non-urgent transitions in `React.startTransition`; chunk with `scheduler.yield()`
19
- - **Frequency-based animation budget**: Hotkeys (`Cmd+K`) = 0ms; micro-interactions = 100-150ms; overlays/drawers = 150-250ms; route transitions ≤ 400ms
20
- - **Harmonic spring physics**: Mass m=1.0, near-critical damping (ζ ≈ 0.75-0.85); underdamped (ζ < 0.6) forbidden
21
-
22
- ### App Shell Isolation (2026)
23
- - **Persistent elements**: Headers, sidebars, sticky controls pulled out of `root` transition group via unique `viewTransitionName`
24
- - **Single smooth-scroll engine**: Strictly prohibit Lenis + Locomotive Scroll simultaneously; exactly one coordinator
25
-
26
- ### Reduced Motion Compliance (2026)
27
- - **Mandatory `@media (prefers-reduced-motion: reduce)`**: Disable or instant-fade all animations
28
- - **WCAG 2.2 AA**: Motion reduction compliance across all view transitions
29
-
30
- ---
31
-
32
- ## Required Skill Upgrades
33
-
34
- ### 1. Core Rules Updates
35
- | Current Rule | 2026 Upgrade |
36
- |--------------|--------------|
37
- | Composited motion mentioned | **Composited motion mandatory**: Only `transform`/`opacity`; layout property animations rejected in code review |
38
- | Animation budget mentioned | **Frequency-based budget mandatory**: Hotkeys 0ms, micro 100-150ms, overlays 150-250ms, routes ≤400ms |
39
- | Spring physics mentioned | **Harmonic springs mandatory**: m=1.0, ζ≈0.75-0.85; ζ<0.6 forbidden |
40
- | Scroll engine mentioned | **Single coordinator mandatory**: Exactly one (Lenis or native CSS); race conditions prohibited |
41
- | INP budget mentioned | **INP < 200ms with 50ms DOM mutation limit**: `React.startTransition` + `scheduler.yield()` for chunking |
42
- | `default="none"` mentioned | **`default="none"` discipline mandatory**: All `<ViewTransition>` boundaries explicitly opt-in |
43
- | Reduced motion mentioned | **Reduced motion fallback mandatory**: `@media (prefers-reduced-motion: reduce)` in every transition stylesheet |
44
-
45
- ### 2. New 2026 Patterns to Add
46
- - **React 19 `<ViewTransition>` Integration**: Type-keyed boundaries, `default="none"`, pre-DOM-node placement
47
- - **Shared Element Morphing**: Dynamic `name={`entity-hero-${id}`}`, `share="morph"`, fallback `enter`/`exit` classes
48
- - **Directional Route Transitions**: `addTransitionType` (`nav-forward`/`nav-back`) with `startTransition`
49
- - **Suspense Reveal Transitions**: Skeleton → content without layout jumps
50
- - **Layout Displacement Morphs**: Dynamic list add/remove/reorder animations
51
- - **Performance Verification**: INP/LCP/CLS under 4x CPU throttling; 60/120fps compositor verification
52
- - **Security Validation**: `view-transition-name` sanitization against CSS injection; transition type allowlist
53
-
54
- ### 3. Checklist Additions
55
- - [ ] View transitions animate exclusively composited properties (`transform`, `opacity`)
56
- - [ ] Interaction to Next Paint verified under budget (INP < 200ms under 4x CPU throttling)
57
- - [ ] All targeted `<ViewTransition>` boundaries declare `default="none"`
58
- - [ ] `<ViewTransition>` components placed before any host DOM nodes
59
- - [ ] `name` attributes for shared elements dynamically scoped and globally unique
60
- - [ ] Persistent headers/navigation/sidebars isolated with unique `viewTransitionName`
61
- - [ ] `@media (prefers-reduced-motion: reduce)` overrides verified in browser
62
- - [ ] Hierarchical navigations mapped with typed directional transitions (`nav-forward`/`nav-back`)
63
- - [ ] Fallback animations defined for shared elements when matching target absent
64
- - [ ] Frequency-based animation budget enforced (hotkeys 0ms, micro 100-150ms, overlays 150-250ms, routes ≤400ms)
65
- - [ ] Harmonic spring physics: mass 1.0, damping 0.75-0.85
66
- - [ ] Single smooth-scroll engine (Lenis or native CSS) — not both
67
- - [ ] Security: `view-transition-name` sanitized; transition types allowlisted
68
- - [ ] `performance-audit.json` and `implementation-result.json` emitted and validated
69
-
70
- ### 4. Failure Mode Additions
71
- - **Layout thrashing from CSS property animation**: `height`/`width` animated during transition. Mitigation: Code review rejects layout animations; replace with scale/translate transforms.
72
- - **Duplicate `view-transition-name` collision**: Two active items render `name="hero-image"`. Mitigation: Require dynamic ID parameterization (`name={`hero-${id}`}`).
73
- - **Unintended global crossfade**: Unconfigured `<ViewTransition>` fades on background revalidation. Mitigation: Enforce `default="none"` on all boundaries.
74
- - **Persistent header jump**: Sticky nav stretches/slides during page change. Mitigation: Pull header into independent transition group via `viewTransitionName: "header"`.
75
- - **Spring physics violation**: Underdamped cartoonish bouncing (ζ < 0.6). Mitigation: Design system enforces ζ ≈ 0.75-0.85; lint rule for spring config.
76
- - **INP budget breach**: DOM mutation > 50ms inside `startViewTransition`. Mitigation: `React.startTransition` + `scheduler.yield()` chunking; profile with 4x CPU throttling.
77
- - **CSS injection via `view-transition-name`**: Unescaped string interpolation. Mitigation: Sanitize dynamic names against pattern; reject unsafe characters.
78
-
79
- ### 5. Output Contract Updates
80
- - Update `contracts/schemas/ui-component-spec.json` with transition boundaries, names, triggers, type maps
81
- - Update `contracts/schemas/performance-audit.json` with INP, LCP, CLS, compositor frame-rate measurements
82
- - Update `contracts/schemas/implementation-result.json` with CSS recipes, behavioral test evidence
83
-
84
- ---
85
-
86
- ## Implementation Priority
87
-
88
- | Priority | Task | Effort |
89
- |----------|------|--------|
90
- | P0 | Composited motion only enforcement (code review gate) | High |
91
- | P0 | Frequency-based animation budget with harmonic springs | High |
92
- | P0 | React 19 `<ViewTransition>` with `default="none"` discipline | High |
93
- | P0 | Shared element morphing with dynamic unique names | High |
94
- | P0 | INP < 200ms with 50ms DOM mutation limit | High |
95
- | P1 | Directional route transitions (`nav-forward`/`nav-back`) | Medium |
96
- | P1 | App shell isolation (persistent elements) | Medium |
97
- | P1 | Suspense reveal transitions (skeleton → content) | Medium |
98
- | P1 | Layout displacement morphs (list add/remove/reorder) | Medium |
99
- | P1 | Reduced motion fallback in every transition stylesheet | Medium |
100
- | P2 | Security validation for dynamic names | Low |
101
- | P2 | Expanded failure modes | Low |
102
- | P2 | Output contract updates | Low |
103
-
104
- ---
105
-
106
- ## Validation Gates
107
- - Run `python3 core/scripts/validate-all.py` from agent-skills root
108
- - Verify INDEX.md regeneration if VERSION bumped
109
- - Check adapter parity with `validate-rules.py` (9 parity groups)
110
- - Benchmark INP/LCP/CLS under 4x CPU throttling with view transitions
111
- - Verify `default="none"` on all `<ViewTransition>` boundaries
112
- - Verify `<ViewTransition>` wraps content before DOM nodes
113
- - Verify unique dynamic `view-transition-name` for shared elements
114
- - Verify persistent elements isolated from root transition group
115
- - Verify `@media (prefers-reduced-motion: reduce)` disables animations
116
- - Verify harmonic spring physics (mass 1.0, damping 0.75-0.85)
117
- - Verify single smooth-scroll engine (no Lenis + Locomotive conflict)
118
- - Security test: `view-transition-name` sanitization against CSS injection
@@ -1,108 +0,0 @@
1
- # implement-webmcp — 2026 Upgrade Plan
2
-
3
- ## Summary of 2026 Standards Changes
4
-
5
- ### WebMCP Evolution (2026)
6
- - **Feature detection mandatory**: `'modelContext' in document` guards for SSR/polyfilled environments
7
- - **State synchronization**: Critical app state (Redux/Zustand) exposed securely; sensitive fields stripped
8
- - **Action allowlist (default deny)**: Explicit allowlist of browser actions (clicks, navigation, form fills); reject tools not on allowlist
9
- - **Strict input schema validation**: Every tool declares explicit property types, enums, required fields; empty `{ type: "object" }` prohibited
10
- - **Security context**: Agent operates within user's authenticated session; HttpOnly cookies not exposed to JS runtime
11
- - **User consent gate (HITL)**: Non-idempotent/financial actions require explicit user confirmation; fail-safe on dismiss/timeout
12
- - **Background sync**: Service Workers + Push API for async HITL callbacks
13
- - **Structured error payloads**: `{ error: { code: 'OUT_OF_STOCK', message: '...' } }` — never raw stack traces
14
-
15
- ### MCP Ecosystem Integration (2026)
16
- - **MCP Registry**: External tools via MCP Registry for developer workflows
17
- - **Browser-side + backend MCP coordination**: `configure-mcp` skill for cross-environment coordination
18
- - **WebMCP provider in root layout**: Global mount with SSR safety guards
19
- - **Sanitized state mapping**: Reactive UI state (route, entity ID, filtered view) with sensitive field filtering
20
-
21
- ---
22
-
23
- ## Required Skill Upgrades
24
-
25
- ### 1. Core Rules Updates
26
- | Current Rule | 2026 Upgrade |
27
- |--------------|--------------|
28
- | Feature detection mentioned | **Feature detection mandatory**: `'modelContext' in document` guards for SSR safety |
29
- | State synchronization mentioned | **Sanitized state mapping**: Reactive UI state with sensitive field filtering before `provideContext()` |
30
- | Action allowlist mentioned | **Default deny allowlist**: Explicit registration required; runtime broadening rejected |
31
- | Input schema validation | **Strict schema mandatory**: Explicit property types, enums, required fields; empty object prohibited |
32
- | Security context mentioned | **HttpOnly cookie isolation**: Auth tokens/cookies stay outside JS runtime WebMCP can read |
33
- | HITL consent gate | **Mandatory for non-idempotent/financial**: Explicit confirmation modal; fail-safe on dismiss/timeout |
34
- | Background sync mentioned | **Service Workers + Push API**: Async HITL callbacks for agent-user communication |
35
- | Structured error payloads | **Error codes mandatory**: `{ error: { code, message } }`; raw stack traces prohibited |
36
-
37
- ### 2. New 2026 Patterns to Add
38
- - **WebMCP Provider SSR Safety**: Mount in global root layout (`layout.tsx`, `Layout.astro`) with client-side execution guards
39
- - **Reactive State Subscription**: Subscribe to route changes, active entity, filtered views; emit context on transitions
40
- - **Action Allowlist Governance**: Allowlist as code (not config); every action requires security review
41
- - **HITL Modal Component**: Reusable confirmation modal with timeout, dismiss handling, visual agent activity indicator
42
- - **Service Worker HITL Bridge**: Push API for background agent callbacks; offline queue for confirmations
43
- - **MCP Registry Coordination**: Backend MCP server cards registered; browser WebMCP discovers via registry
44
- - **Permission Parity Enforcement**: Agent actions cannot bypass UI permission rules; same guards as UI
45
-
46
- ### 3. Checklist Additions
47
- - [ ] WebMCP provider mounted in global root layout with SSR safety guards (`'modelContext' in document`)
48
- - [ ] Sanitized application state mapped to agent context (no credentials, tokens, PII)
49
- - [ ] Client-side actions and input schemas explicitly defined and registered (allowlist as code)
50
- - [ ] Security boundaries and permission checks enforced on all action handlers
51
- - [ ] HITL confirmation modal wired for destructive/financial actions (fail-safe on dismiss/timeout)
52
- - [ ] Service Worker event listeners registered for push notifications/background sync
53
- - [ ] Visual indicator when agent actively reading context or performing actions
54
- - [ ] Component and integration tests for context emission and action execution
55
- - [ ] MCP Registry coordination with backend server cards
56
- - [ ] Permission parity: agent actions cannot bypass UI permission rules
57
- - [ ] Structured error responses with codes (never raw stack traces)
58
- - [ ] `implementation-result.json` emitted with action allowlist and validation run
59
-
60
- ### 4. Failure Mode Additions
61
- - **SSR hydration breakage**: WebMCP provider runs server-side. Mitigation: Client-side execution guards; mount only in global root layout.
62
- - **Action allowlist too broad**: Action added without security review. Mitigation: Default deny; explicit allowlist registration required.
63
- - **Empty input schema**: Tool registered with `{ type: "object" }` no properties. Mitigation: Enforce explicit property types, enums, required fields.
64
- - **Sensitive state exposed**: Passwords/tokens/PII in WebMCP context. Mitigation: Filter before `provideContext()`; never expose HttpOnly cookies.
65
- - **No HITL gate on financial action**: Payment/account-modification runs without confirmation. Mitigation: Require HITL modal; fail-safe on dismiss/timeout.
66
- - **Raw stack trace in error**: Server stack trace exposed. Mitigation: Structured JSON error responses with codes.
67
- - **Browser feature not detected**: Assumes `'modelContext' in navigator` always true. Mitigation: Feature-detect with `in document`; polyfill bridge fallback.
68
- - **Agent bypasses UI permissions**: Agent triggers transaction user couldn't via UI. Mitigation: Enforce same permission rules; reject bypassed paths.
69
- - **Service Worker HITL failure**: Push notification not delivered. Mitigation: Fallback to in-app modal; offline queue for confirmations.
70
-
71
- ### 5. Output Contract Updates
72
- - Update `contracts/schemas/implementation-result.json` with: action allowlist, sanitized state fields, HITL flow, WebMCP connection validation
73
-
74
- ---
75
-
76
- ## Implementation Priority
77
-
78
- | Priority | Task | Effort |
79
- |----------|------|--------|
80
- | P0 | WebMCP provider SSR safety guards (`'modelContext' in document`) | High |
81
- | P0 | Default deny action allowlist with explicit registration | High |
82
- | P0 | Strict input schema validation (explicit types, enums, required) | High |
83
- | P0 | HITL confirmation gate for non-idempotent/financial actions | High |
84
- | P1 | Sanitized reactive state mapping with sensitive field filtering | Medium |
85
- | P1 | Service Worker + Push API for async HITL callbacks | Medium |
86
- | P1 | MCP Registry coordination with backend cards | Medium |
87
- | P1 | Permission parity enforcement (agent = UI permissions) | Medium |
88
- | P1 | Structured error payloads with codes | Medium |
89
- | P2 | Visual agent activity indicator | Low |
90
- | P2 | Expanded failure modes | Low |
91
- | P2 | Output contract updates | Low |
92
-
93
- ---
94
-
95
- ## Validation Gates
96
- - Run `python3 core/scripts/validate-all.py` from agent-skills root
97
- - Verify INDEX.md regeneration if VERSION bumped
98
- - Check adapter parity with `validate-rules.py` (9 parity groups)
99
- - Test WebMCP provider SSR safety (no hydration breakage)
100
- - Verify action allowlist default deny blocks unregistered actions
101
- - Test input schema validation rejects empty `{ type: "object" }`
102
- - Test HITL modal blocks financial action without confirmation
103
- - Test fail-safe on HITL dismiss/timeout
104
- - Verify sensitive fields filtered from `provideContext()`
105
- - Test Service Worker HITL bridge with push notifications
106
- - Test MCP Registry discovery of backend cards
107
- - Verify agent actions respect UI permission boundaries
108
- - Verify structured error responses (no raw stack traces)