@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,6 +1,7 @@
1
1
  ---
2
2
  name: manage-order-fulfillment
3
3
  description: Implement and manage the post-purchase order lifecycle including order status management, packing, shipping label generation, carrier tracking, and refund or return processing. Use when building or maintaining fulfillment workflows after a successful payment.
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, fetch]
5
6
  ---
6
7
 
@@ -33,67 +34,31 @@ Use this skill when the task involves the operations and engineering required to
33
34
  ## Suggested Process
34
35
 
35
36
  ### 1. Define the Event-Sourced Order State Machine
36
-
37
- Map the full lifecycle as immutable event log before implementing:
38
-
37
+ Map the lifecycle as an immutable event log:
39
38
  ```
40
39
  order_placed → payment_captured → fulfillment_started → packed → shipped → delivered → completed
41
40
  ↘ return_requested → returned → refunded
42
- pending → cancelled (only before shipped)
43
41
  ```
44
-
45
- - enforce state transitions in code — reject invalid transitions with a clear error
46
- - **derive current status by projecting event stream** — NO mutable status field updates
47
- - emit an event or webhook on each state change for downstream systems (warehouse, email, analytics)
48
- - **Temporal/Step Functions Saga**: compensating branches for each failure mode, durable retries, automatic compensation registration
42
+ - enforce state transitions in code, derive status by projecting the event stream, and emit domain events
43
+ - orchestrate compensating branches via Temporal / AWS Step Functions (Shipping → Inventory → Payment)
49
44
 
50
45
  ### 2. Implement Order Processing
51
-
52
- - on payment confirmation: create the order record, decrement inventory, send confirmation email
53
- - assign the order to a fulfillment queue (warehouse team, 3PL, or automated picker)
54
- - allow operations team to view and manage orders through an admin interface
55
- - **Temporal patterns**: declarative states with guards in config, pure decider owns decisions; derived UI steps via `deriveStep()`; price integrity with `reviewedCartVersion`; reservation management with TTL
46
+ - create confirmed order, reserve/decrement inventory, enqueue warehouse/3PL fulfillment, and validate `reviewedCartVersion` with reservation TTL
56
47
 
57
48
  ### 3. Implement Shipping Label Generation
58
-
59
- - integrate with carrier API (EasyPost, Shippo, DHL API, GHTK for Vietnam) to generate shipping labels
60
- - validate the shipping address before requesting a label (reduce carrier correction fees)
61
- - store the label URL and tracking number against the order record
62
- - mark order as `shipped` after label is generated and send tracking info to customer
49
+ - validate shipping address first, request carrier label, persist label URL + tracking ID, and transition order to `shipped`
63
50
 
64
51
  ### 4. Implement Vietnamese Carrier Tracking (Webhook Callbacks)
52
+ - integrate **GHN** (`ready_to_pick`/`delivering`/`delivered` + COD webhook), **GHTK** (G1 Open API), **GrabExpress**, **Viettel Post**, **J&T Express** via webhooks over polling
53
+ - verify HMAC signatures + carrier IP allowlists; normalize codes to `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
65
54
 
66
- **GHN (Giao Hang Nhanh)**: `ready_to_pick`, `delivering`, `delivered` webhooks; COD callback URL for real-time COD status; automated sortation system
67
- **GHTK**: G1 Open API — sorting code, create/cancel/tracking/big bag order endpoints
68
- **GrabExpress**: on-demand same-city courier, real-time courier tracking, webhook updates over delivery lifecycle
69
- **Viettel Post**: government-backed, nationwide coverage
70
- **J&T Express**: regional Southeast Asia coverage
71
-
72
- - **Webhook callbacks OVER polling** for all carriers
73
- - **Normalize carrier codes** to unified milestones: `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
74
- - verify webhook signatures (HMAC) and carrier allowlist to prevent spoofing
75
-
76
- ### 5. Implement Refund and Returns
77
-
78
- - create a `ReturnRequest` with reason, items, and quantity
79
- - validate return eligibility: within return window, original order in `completed` or `delivered` state
80
- - on approval: initiate refund via `integrate-payment-gateway` using original transaction ID
81
- - **Restock Inspection Gate**: `return_received` → `inspection_completed` (Grade A) → `restocked`; automatic restock on RMA creation FORBIDDEN
82
- - emit a `refund_issued` event for accounting systems
83
-
84
- ### 6. Agent-Initiated Fulfillment Authorization
85
-
86
- - verify agent JWT contains `fulfillment_authorized: true` claim
87
- - claim must be cryptographically verified and scoped to specific order ID
88
- - verify BEFORE inventory lock or allocation routines
89
- - reject unauthorized agent fulfillment requests
90
-
91
- ### 7. Vietnam Decree 248/2026/ND-CP Compliance
55
+ ### 5. Implement Refund, Returns & Restock Inspection Gate
56
+ - validate return eligibility (`delivered`/`completed`, within window) and refund via `integrate-payment-gateway`
57
+ - enforce `return_received` → `inspection_completed` (Grade A) → `restocked`; auto-restock on RMA creation is FORBIDDEN
92
58
 
93
- - **Seller Verification Gate**: verify seller identity before `fulfillment_started` event
94
- - **Platform Obligations**: disclose rights/obligations, service standards, pricing, promotions, security, complaints
95
- - **Affiliate Transparency**: roles, links, referral codes, responsibilities disclosed
96
- - **Electronic ID Verification**: sellers and livestream sellers from Jan 1, 2027
59
+ ### 6. Agent Authorization & Vietnam Decree 248/2026 Compliance
60
+ - verify `fulfillment_authorized: true` JWT claim scoped to `order_id` BEFORE allocating inventory
61
+ - enforce Decree 248/2026/ND-CP seller verification gate before `fulfillment_started`, affiliate disclosures, and electronic ID checks (from Jan 1, 2027)
97
62
 
98
63
  ## 2026 Fulfillment Architecture Patterns
99
64
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: manage-product-catalog
3
3
  description: Build or maintain a product catalog including product creation, variant management (size, color, SKU), pricing, and inventory synchronization across channels. Use when adding, updating, or structuring product data in an e-commerce system.
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, fetch]
5
6
  ---
6
7
 
@@ -45,6 +46,7 @@ When the catalog change is consumed by a storefront, a marketplace sync, or a do
45
46
 
46
47
  - **`contracts/schemas/api-contract-spec.json`** describing the catalog entity shape, variant structure, inventory model, vector search endpoints, content governance review workflows, and seller verification gates.
47
48
  - **`contracts/schemas/data-pipeline-spec.json`** for Kafka event-sourced inventory adjustments, CDC feeds, knowledge graph ETL, and downstream consumer contracts.
49
+ - **`contracts/schemas/schema-migration.json`** when product, SKU, variant, or inventory schema tables evolve.
48
50
  - **`contracts/schemas/deployment-plan.json`** when the catalog change is part of a coordinated multi-role rollout.
49
51
  - For human-readable reports, a markdown diff of the affected SKUs and the rationale.
50
52
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: docx
3
3
  description: "Use when creating, editing, inspecting, or formatting Microsoft Word (.docx) documents, enforcing DXA table column width invariants, raw XML unzipping workflows, or reading documents via pandoc markdown extraction."
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: pdf
3
3
  description: "Use when reading, extracting, creating, or modifying PDF documents, parsing text and tables via pdfplumber/pypdf, discovering and filling interactive AcroForms, performing OCR, or verifying digital signatures."
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: xlsx
3
3
  description: "Use when creating, analyzing, or modifying Microsoft Excel (.xlsx/.xlsm) workbooks, enforcing the Zero Formula Error invariant via recalc.py, dynamic formula injection, two-pass model reading, and openpyxl streaming."
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests, execute_command]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: configure-llms-txt
3
3
  description: Create and maintain the llms.txt and llms-full.txt files for a domain or project, making documentation and content discoverable by AI agents, LLMs, and automated tools per the llmstxt.org specification. Use when a site or API has AI agent interfaces, when optimizing for Generative Engine Optimization (GEO) and Agentic SEO (A-SEO), or when implementing the dual-audience documentation standard required by technical-writer role.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, fetch]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: write-documentation
3
3
  description: Draft or update technical documentation by following the repo's existing doc structure, audience needs, Diátaxis framework, and source-of-truth boundaries. Use when writing or updating README files, service docs, runbooks, architecture overviews, integration notes, or change explanations.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: write-tech-radar
3
3
  description: Draft or update a technology radar entry by summarizing context, trade-offs, recommendation, and adoption guidance in a concise decision-oriented format. Use when documenting technology choices, trials, or directional guidance.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: create-exercises
3
3
  description: Design educational assignments, practice tests, and quizzes following designated curriculum matrices, Webb's DOK 1-4, and cognitive models. Use when generating exercises, mock exams, or exam preparation materials for specific learning objectives.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: design-learning-plan
3
3
  description: Create a structured, curriculum-aligned learning plan or syllabus following ZPD pathways, SMART objectives, and spaced repetition. Use when planning a study schedule, syllabus, exam preparation roadmap, or grade transition plan for any educational level.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: grade-and-review
3
3
  description: Evaluate learner work and provide constructive feedback on the designated grading scale. Use when grading assignments, reviewing student submissions, or providing improvement guidance at any educational level.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: accessibility-review
3
3
  description: Audit UI for keyboard navigation, focus order, screen-reader labels, color contrast, motion preferences, and ARIA correctness against WCAG 2.2 criteria (including Focus Not Obscured 2.4.11, Target Size 2.5.8, Accessible Authentication 3.3.8, Dragging Movements 2.5.7, Redundant Entry 3.3.7). Use automated CI gates via @axe-core/playwright for regression detection alongside manual screen-reader testing. Use when validating user-facing flows before release, after design specs land, or when fixing reported a11y defects.
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: ai-risk-assessment
3
3
  description: Assess AI/ML system risks using NIST AI RMF 1.0 (Govern/Map/Measure/Manage) and NIST AI 600-1 GenAI Profile (12 risk categories), classify EU AI Act risk tiers, and produce an AI risk register covering hallucination thresholds, model degradation signals, bias exposure, and compliance drift. Use when onboarding a new AI feature, scoping an AI system for delivery, or conducting a periodic AI governance audit.
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: combinatorial-testing
3
3
  description: Design pairwise and n-way combinatorial test suites using orthogonal arrays and covering parameter matrices to prevent combinatorial explosion. Use when testing multi-parameter workflows, distributed configurations, or cross-service API contracts.
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
 
@@ -32,7 +32,7 @@ Use this skill when a task requires deep discovery before architectural, product
32
32
  - enforce quantitative **Information Density**: calculate $\text{ID} = \frac{\text{Named Entities} + \text{Quantified Metrics}}{\text{Total Words}} \ge 0.12$; strip conversational filler
33
33
  - populate `recommended_next_roles` in JSON handoffs — do not author feature-ticket.json or architecture decisions
34
34
 
35
- ### AI-Era Source Discipline (2025-2026)
35
+ ### AI-Era Source Discipline
36
36
  For the full reference architecture, see [`references/sota-deep-research-architecture.md`](references/sota-deep-research-architecture.md) and [`references/ai-era-source-discipline.md`](references/ai-era-source-discipline.md).
37
37
  - AI-generated answers (Perplexity, ChatGPT, Google AI Overviews, Gemini) are **never** citable; use only to formulate queries (`ZERO-AI-PRIMARY-CITATION-LOCK`).
38
38
  - Treat every URL, statistic, or quote from an AI tool as unverified until the original document is read.
@@ -4,7 +4,7 @@ Deep material extracted from `SKILL.md` to keep the main file under 200 lines.
4
4
  Load this file when the research touches AI-era source discipline, YMYL topics,
5
5
  or when a handoff requires detailed CoVe logging.
6
6
 
7
- ## AI-Era Source Discipline (2025-2026)
7
+ ## AI-Era Source Discipline
8
8
 
9
9
  ### Source Hierarchy
10
10
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: create-migration
3
3
  description: Create safe schema or data migrations by following the repo's local migration tool, naming rules, rollout constraints, and rollback expectations. Use when adding, changing, backfilling, cleaning, or repairing persisted data structures.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests]
5
6
  ---
6
7
 
@@ -142,6 +143,15 @@ backfill, and the data classification of any new column.
142
143
  - **PII column added without classification**: a new column stores customer PII but is not classified. Mitigation: classify every new column with `data-classification.yaml`; surface restricted columns in the migration report.
143
144
  - **Permanent flag without cleanup**: a feature flag is introduced to gate the migration but has no cleanup target. Mitigation: every flag must carry an ISO 8601 cleanup target.
144
145
 
146
+ ## Red Flags
147
+
148
+ | Rationalization Thought | Reality & Risk | Positive Corrective Action |
149
+ | :--- | :--- | :--- |
150
+ | "Just rename/drop the column directly in one migration — the table is small today." | Running old app pods crash during rolling deploys on missing columns. | Use 3-phase Expand-Contract across separate safe deployments. |
151
+ | "`CREATE INDEX` without `CONCURRENTLY` is fine for a quick fix." | Acquires write-blocking locks and stalls production traffic behind DDL wait queues. | Declare `SET lock_timeout = '2s';` and build indexes `CONCURRENTLY`. |
152
+ | "I'll backfill all rows in one `UPDATE` query." | Massive WAL bloat, replication lag, and long-held row locks crash replicas. | Batch backfills in `500–2000` keyset rows with throttling pauses. |
153
+ | "Rollback isn't needed if forward migration looks clean." | Partial failures leave unrecoverable corrupt production schemas. | Author explicit down-scripts or document partial-rollback limits honestly. |
154
+
145
155
  ## Security Guardrails (OWASP ASI)
146
156
 
147
157
  - **ASI03 Identity & Privilege Abuse**: the migration's privileged database role must be scoped to the minimum required grants; reject migrations that run under a superuser role when a scoped role would suffice.
@@ -22,9 +22,10 @@ Use this skill with **UI/UX Designer** or **Reviewer** when the deliverable is d
22
22
  - consume `ux-flow-spec.json` and `ui-component-spec.json` when present; do not invent missing states
23
23
  - separate blocking UX defects from polish or preference; classify findings as blocking | should-fix | suggestion
24
24
  - every screen spec must define all 5 critical UI states: Empty, Loading/Skeleton, Populated, Error (with actionable recovery), and Unauthorized/Permission — specs missing any of these states are incomplete
25
- - verify design-system tokens — all styles must reference tokens; zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (DTCG Design Tokens Format Module 2025.10, `$value`/`$type` syntax)
26
- - for AI-generated UI (v0.dev, Galileo, Builder.io, Copilot): run token conformance check (no hardcoded values), axe-core accessibility scan, and style namespace pollution check before development handoff
27
- - require interactive Figma prototype links for flows with more than 2 screens before Frontend implementation begins
25
+ - verify design-system tokens — all styles must reference Two-Tier semantic tokens (`DESIGN.md` `MASTER` + page overrides); zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (DTCG Design Tokens Format Module 2025.10, `$value`/`$type` syntax)
26
+ - for AI-generated UI (v0.dev, Galileo, Builder.io, Copilot): run token conformance check (no hardcoded values), composition hygiene (`<= 2` stylistic booleans, compound anatomy), axe-core accessibility scan, and style namespace pollution check before development handoff
27
+ - require an interactive Figma prototype link OR an `interactive-component-workbench` scratch-route verification for flows with more than 2 screens before Frontend implementation begins
28
+ - apply **Web Interface Micro-Craft checks (`web-design-guidelines`)** during UI/spec audits and emit concise `file:line` findings when reviewing UI markup/specs: URL-as-state persistence, hydration-safe inputs (no paste blocking, valid `autocomplete`), focus restoration + `Esc` close on dialogs, `overscroll-behavior: contain` on scrollable overlays, `scroll-margin-top` under sticky headers, true Unicode ellipsis (`…`) on `"Action…"` / `"Loading…"` labels, `tabular-nums` on comparable/live figures, `min-w-0` flex truncation safety, and `color-scheme: dark` on dark surfaces
28
29
  - do not implement UI; emit findings for Frontend or UI/UX to fix
29
30
  - route code-level bugs to `review-code`; route a11y conformance gaps to `accessibility-review`
30
31
  - treat AI-generated UI outputs (v0.dev, Galileo, Builder.io, Copilot) as untrusted artifacts: validate tokens, accessibility, and namespace conformance before any handoff to Frontend
@@ -91,13 +92,11 @@ Note spec gaps (missing state, missing api_field, ambiguous transition).
91
92
  - Review transitions, timing animations, and edge-case state responses (such as validation errors and loading loops) inside the interactive prototype.
92
93
  - Verify that touch targets and hover states behave as expected across various screen dimensions.
93
94
 
94
- ### 2026: Anti-Slop & Taste Skill Audit Checklist
95
- - Check for Brief Inference: verify the spec provides a 1-line Design Read and defines the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`).
96
- - Audit Hero Viewport Discipline: verify headline <= 2 lines, subtext <= 20 words, CTAs visible without scrolling, and top padding <= 6rem (pt-24).
97
- - Audit Eyebrow Restraint: verify no more than 1 eyebrow per 3 sections (blocking defect if exceeded).
98
- - Audit Typography & Color: verify no default Fraunces/Instrument_Serif; verify word emphasis uses the same font family; verify no AI-purple glow gradients; verify single accent hue.
99
- - Audit Section Variety & Bento Grids: verify at least 4 layout families across 8 sections; verify no more than 2 consecutive alternating zigzag sections; verify bento grids have no blank filler tiles.
100
- - Audit CTA & Copy Discipline: verify unified CTA labels per intent; verify primary desktop CTAs do not wrap; verify zero em-dashes in UI copy.
95
+ ### 2026: Domain Aesthetic & Web Interface Micro-Craft Audit
96
+ - **Anti-Monoculture Aesthetic Check**: verify the spec provides a domain-grounded Design Read and Archetype-calibrated Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`) — flag both legacy AI tropes (purple glow, `Fraunces`/`Instrument_Serif`, `Inter`/`Space Grotesk` unprompted) and unprompted Linear-dark-Geist-Emerald cloning when the domain calls for daylight/editorial/enterprise craft.
97
+ - **Mode A vs Mode B Check**: for Mode A (In-App Product UI), verify surface selection (Inline/Drawer/Modal/Route), URL-as-state, destructive confirmation tiers, and `composition_anatomy` (`<= 2` stylistic booleans). For Mode B (Landing/Showcase), verify hero `<= 100dvh` (`headline <= 2 lines`, `subtext <= 20 words`, `pt-24` max), `<= 1` eyebrow per 3 sections, `>= 4` layout families per 8 sections, and zero blank bento tiles.
98
+ - **Web Interface Micro-Craft (`web-design-guidelines`)**: check unicode `…` (never `...`), `"Action…"` on dialog triggers, `tabular-nums` on numeric tables, `color-scheme: dark` on dark themes, `overscroll-behavior: contain` inside modals/drawers, `scroll-margin-top` on anchor targets, focus restoration on modal close, hydration-safe inputs without paste blocking, `min-w-0` truncation, unified CTA labels, and zero em-dashes (`—`).
99
+ - **Terse Findings Format**: when auditing UI files or specs, emit actionable `file:line` (or `spec_path#field`) findings grouped by `blocking | should-fix | suggestion`.
101
100
 
102
101
  ## Checklist
103
102
 
@@ -29,7 +29,10 @@ Use this skill with the **UI/UX Designer** role when user-facing behavior must b
29
29
  - do not implement production UI — hand off specs to Frontend Developer
30
30
  - apply progressive disclosure to hide secondary options until primary actions are taken
31
31
  - design agent UX flows to include delegation confirmations, progress indicators, and recoverable interrupts — users must always have a cancel/undo path for agent-initiated state changes
32
- - use Figma Variables (linked to DTCG Design Tokens Format Module 2025.10 tokens via Tokens Studio, `$value`/`$type` syntax) to prototype dynamic, real-world data states including empty states and error messages; require interactive prototype for any flow with more than 2 screens
32
+ - classify every scope as **Mode A (In-App Product UI)** or **Mode B (Landing & Showcase)** before layouting; never impose Mode B marketing hero/zigzag rules onto Mode A operational tools
33
+ - select interaction surfaces deliberately (**Inline** vs **Popover** vs **Drawer/Sheet** vs **Modal Dialog** vs **Dedicated Route**) and serialize filter, tab, pagination, and drawer state into URL query params (`URL-as-state`)
34
+ - specify composition-ready component contracts (`composition_anatomy`: compound subcomponents `Root/Trigger/Content`, slots, explicit variants, `<= 2` stylistic booleans) aligned with `component-composition`
35
+ - use Figma Variables (linked to DTCG Design Tokens Format Module 2025.10 tokens via Tokens Studio, `$value`/`$type` syntax) OR an `interactive-component-workbench` scratch route to validate dynamic real-data states (long names, empty states, errors); require an interactive prototype or workbench verification for any flow with more than 2 screens
33
36
  - design dual-audience operability when AI agents operate the UI alongside human users: declare `agent_operability` (agent entry points, machine-readable affordances, agent courtesy rules) in ux-flow-spec.json (Agents-as-Users, NN/g 2026)
34
37
  - run a dark-pattern compliance review on every flow: check nagging, obstruction, sneaking, forced action, confirmshaming, and trick questions against DSA Art 25/26 and FTC standards; record findings in ux-flow-spec.json `dark_pattern_review`
35
38
 
@@ -98,13 +101,12 @@ Publish UX handoff manifest (flow path + component paths) for Frontend and QA.
98
101
  - Disclose advanced options, settings, and complex configuration contextually after the primary action is selected.
99
102
  - Avoid cognitive overload by grouping advanced settings into collapsible panels or secondary screens.
100
103
 
101
- ### 2026: Brief Inference & Anti-Slop Flow Governance (Taste Skill)
104
+ ### 2026: Domain-Grounded Aesthetic Direction & Dual-Mode Flow Governance
102
105
 
103
- - Infer user and brand signals (page kind, audience, vibe words, quiet constraints) to output a 1-line Design Read before drafting screens.
104
- - Calibrate the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`) to configure layout risk, animation depth, and information density.
105
- - Enforce hero viewport containment: headline max 2 lines, subtext max 20 words, CTAs visible above the fold, top padding <= 6rem (pt-24).
106
- - Restrict uppercase tracking eyebrows to at most 1 per 3 sections; prohibit repeating section layout families.
107
- - Unify CTA labels per user intent across all screens in the flow.
106
+ - Select the **Domain Archetype** (`Fintech`, `Healthcare`, `B2B Ops`, `DevTool`, `Editorial`, `Luxury`, `E-Commerce`, `AI Workspace`, `Public Sector`, `General SaaS`) from `core/roles/references/ui-ux-designer-anti-slop-standards.md` and emit a 1-line Design Read committing to a distinct aesthetic pole (avoiding both legacy purple-glow slop and unprompted Linear-dark-Geist-Emerald cloning).
107
+ - Calibrate the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`) from the Domain Archetype Matrix.
108
+ - **Mode A (In-App Product UI)**: define navigation topology, URL-persisted state, surface selection (Inline/Popover/Drawer/Modal/Route), destructive action tiers (Undo Toast vs Named Confirm vs Typed Confirm), and `tabular-nums` for numeric columns.
109
+ - **Mode B (Landing & Showcase)**: enforce hero viewport containment (`min-h-[100dvh]`, headline `<= 2` lines, subtext `<= 20` words, primary CTA above fold, `pt-24` max top padding), `<= 1` eyebrow per 3 sections, `>= 4` layout families per 8 sections, and unified CTA labels per intent.
108
110
 
109
111
  ## Output Format
110
112
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: discernment-nudge
3
3
  description: "Use when evaluating high-stakes architectural plans, financial projections, or critical code reviews, appending 2 to 3 sharp Socratic follow-up questions to probe unstated assumptions, verify critical facts, and surface missing context."
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: hostile-component-stress-testing
3
3
  description: Use when subjecting UI components to hostile edge-case inputs across 6 scenario axes on an isolated scratch route and checking removed regression signals.
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: incident-report
3
3
  description: Capture, structure, and communicate an incident from triage through resolution and prevention. Use when a production failure, degradation, or security event requires a formal timeline, impact assessment, root cause analysis, and follow-up action items.
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: plan-technical-delivery
3
3
  description: Turn architecture decisions and requirements into a delivery-ready technical plan with slices, quality gates, impact radius, and rollout notes. Use when Technical Lead breaks down implementation work for developers, QA, and release.
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: playwright-evidence-qa
3
3
  description: Use when diagnosing Playwright test failures using tripartite evidence triage (screenshot, DOM snapshot, console logs) to classify root causes into application defects, selector drift, or timing flakiness.
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
 
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: refactor-legacy-code
3
+ description: Refactor legacy modules safely using Strangler Fig seams, characterization tests, dependency-inversion decoupling, and small verifiable commits without mixing behavior changes. Use when splitting monolithic files, isolating global state or external dependencies, or migrating legacy patterns cleanly.
4
+ version: "1.0.0"
5
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build]
6
+ ---
7
+
8
+ # Refactor Legacy Code
9
+
10
+ Use this skill when restructuring existing code, breaking monoliths via Strangler Fig seams, or decouple legacy modules while guaranteeing 100% behavioral preservation.
11
+
12
+ ## When to Use
13
+
14
+ - extracting pure domain logic from bloated controllers, singletons, or god classes
15
+ - writing golden characterization tests before altering untested legacy behavior
16
+ - executing safe incremental Strangler Fig migrations or Expand-Contract interface swaps
17
+ - isolating static globals, clock calls, or side effects behind injectable seams
18
+
19
+ ## Core Rules
20
+
21
+ - **Strict Behavior-Preservation Separation**: Never mix structural refactoring with bug fixes or new feature logic in the same diff — land behavior changes in an independent PR/slice before or after cleanup.
22
+ - **Characterization Safety Net First**: Before moving or splitting untested code, pin current observed outputs (including edge cases and quirk behavior) in characterization tests and confirm green baseline exit code 0.
23
+ - **Seam-Driven Extraction**: Extract time (`Clock`), randomness, filesystem, and network/DB adapters behind thin parameter/constructor interfaces before reorganizing business flow.
24
+ - **Smallest Reversibly Verifiable Steps**: Proceed in atomic steps (`rename -> extract pure helper -> introduce interface seam -> swap caller -> delete dead code`), running target tests after each step.
25
+ - **Contract Parity Under Refactors**: When refactoring touches HTTP, gRPC, or event serializers, assert byte/JSON schema parity against golden fixtures and run `check_refactor_blast_radius.py`.
26
+
27
+ ## Suggested Process
28
+
29
+ ### 1. Map Callers & Freeze Behavioral Baseline
30
+ Use skill: `navigate-service`. Locate every caller, global state dependency, and external side effect touching the target module.
31
+
32
+ ### 2. Write Characterization Tests
33
+ Pin current external inputs -> outputs and side effects (database rows, emitted events, error codes) BEFORE editing production code.
34
+
35
+ ### 3. Introduce Seams & Extract Pure Core
36
+ Isolate side effects (clock, UUID, HTTP, SQL) via explicit dependencies so core decision logic becomes deterministic and fast to test.
37
+
38
+ ### 4. Reorganize, Verify Parity & Prune Dead Code
39
+ Move extracted units cleanly, run full unit/contract tests + `check_refactor_blast_radius.py`, and remove obsolete shims only after all callers migrate.
40
+
41
+ ## Checklist
42
+
43
+ - [ ] target scope separated strictly from feature changes or opportunistic bug fixes
44
+ - [ ] all callers and shared side effects mapped via `navigate-service`
45
+ - [ ] characterization tests authored and green BEFORE structural edits
46
+ - [ ] global state / clock / I/O isolated behind explicit seams
47
+ - [ ] API/event wire formats verified unchanged via contract/golden fixtures
48
+ - [ ] full tests and linters rerun cleanly after final dead-code cleanup
49
+
50
+ ## Red Flags
51
+
52
+ | Rationalization Thought | Reality & Risk | Positive Corrective Action |
53
+ | :--- | :--- | :--- |
54
+ | "I noticed a small logic bug mid-refactor — let me fix it in the same commit." | Masks behavior regressions and makes bisecting/reverting impossible. | Preserve exact legacy behavior now; log and fix the bug in its own slice. |
55
+ | "This function is obvious, no need for characterization tests first." | Subtle caller-dependent edge cases break silently when moving branches. | Write characterization tests locking current outputs before moving code. |
56
+ | "Refactor the whole 15-file subsystem at once so types line up." | Unreviewable mega-diff introduces hidden N+1 queries or race regressions. | Work in small single-responsibility slices, testing after every move. |
57
+ | "Delete legacy wrappers immediately before checking dynamic callers." | Breaks reflection, webhook routes, or external consumers still calling old path. | Search callers + runtime metrics and retire shims in a clean final commit. |
58
+
59
+ ## Output Contracts
60
+
61
+ When refactoring spans multiple slices or cross-role boundaries, emit:
62
+
63
+ - **`contracts/schemas/implementation-result.json`** capturing changed vs preserved behavior, characterization tests added, and blast-radius metrics.
64
+
65
+ ## Failure Modes
66
+
67
+ - **Silent semantic drift**: subtle ordering/rounding changes alter billing or auth outcomes. Mitigation: pin outputs with characterization golden assertions before editing.
68
+ - **Scope creep mega-PR**: opportunistic cleanup pulls 30 unrelated files into diff. Mitigation: enforce file blast-radius budget (`check_refactor_blast_radius.py`).
69
+ - **Deleted seam breaks reflection caller**: dynamic/cron caller missed by static type check. Mitigation: grep config, cron, and DI bindings before pruning shims.
70
+
71
+ ## Security Guardrails (OWASP ASI)
72
+
73
+ - **ASI03 Identity & Privilege Abuse**: never bypass or relocate auth checks downward without re-verifying every caller preserves authorization invariants.
74
+ - **ASI05 RCE Guard**: never refactor explicit static dispatch into dynamic `eval`/`getattr` lookup tables.
75
+ - **ASI09 Human-Agent Trust Exploitation**: surface behavior-altering bugs noticed during refactoring instead of fixing them silently under a "refactor" label.
76
+
77
+ ## Related Skills
78
+
79
+ - **navigate-service**: Map callers, entrypoints, and blast radius before editing
80
+ - **write-tests**: Author characterization and contract-parity suites
81
+ - **review-code**: Validate zero behavioral drift and clean architecture boundaries
82
+ - **commit-code**: Package small atomic refactor steps cleanly
83
+ - Companion reference: [`references/strangler-fig-seams-and-characterization-tests.md`](references/strangler-fig-seams-and-characterization-tests.md)
84
+ - Companion example: [`examples/characterization-test-seam-extraction.py`](examples/characterization-test-seam-extraction.py)
@@ -0,0 +1,34 @@
1
+ """Worked example: extracting a pure pricing seam covered by a characterization test."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass
6
+ from datetime import datetime, timezone
7
+ from typing import Callable
8
+
9
+
10
+ @dataclass(frozen=True)
11
+ class DiscountInput:
12
+ subtotal_minor: int
13
+ is_vip: bool
14
+
15
+
16
+ def legacy_compute_discount(item: DiscountInput, *, now_fn: Callable[[], datetime] | None = None) -> int:
17
+ """Extracted pure core with injectable clock seam preserving exact legacy truncation rules."""
18
+ clock = now_fn or (lambda: datetime.now(timezone.utc))
19
+ now = clock()
20
+ rate = 15 if (item.is_vip and now.weekday() == 4) else (10 if item.is_vip else 0)
21
+ return (item.subtotal_minor * rate) // 100
22
+
23
+
24
+ def test_characterization_friday_vip_discount_preserved() -> None:
25
+ friday = lambda: datetime(2026, 11, 27, 12, 0, tzinfo=timezone.utc) # Friday
26
+ monday = lambda: datetime(2026, 11, 23, 12, 0, tzinfo=timezone.utc) # Monday
27
+ assert legacy_compute_discount(DiscountInput(1999, True), now_fn=friday) == 299
28
+ assert legacy_compute_discount(DiscountInput(1999, True), now_fn=monday) == 199
29
+ assert legacy_compute_discount(DiscountInput(1999, False), now_fn=friday) == 0
30
+
31
+
32
+ if __name__ == "__main__":
33
+ test_characterization_friday_vip_discount_preserved()
34
+ print("Characterization test passed.")
@@ -0,0 +1,17 @@
1
+ # Strangler Fig Seams & Characterization Testing Guide
2
+
3
+ Normative reference for `refactor-legacy-code`: Working Effectively with Legacy Code seam patterns, golden-master pinning, and blast-radius bounds.
4
+
5
+ ## 1. Characterization Testing Protocol
6
+
7
+ Unlike feature TDD (which specifies *desired* behavior), a characterization test records *actual* current behavior of a legacy unit before any edits:
8
+
9
+ 1. Invoke target function across representative nominal + boundary + null inputs (including odd legacy rounding or status quirks).
10
+ 2. Assert exact outputs/side effects and run the suite to confirm 100% baseline PASS.
11
+ 3. Freeze assertions until structural extraction is complete; never alter assertion expectations mid-refactor.
12
+
13
+ ## 2. Three Primary Seam Techniques
14
+
15
+ - **Parameter / Clock Seam**: Inject `now_fn` / `Clock` instead of calling `datetime.now()` inside pricing or expiration logic.
16
+ - **Adapter Interface Seam**: Wrap legacy raw SQL / HTTP calls behind a minimal repository/client protocol so domain calculation becomes pure and memory-testable.
17
+ - **Strangler Fig Facade**: Route new callers through `v2` clean module while keeping `v1` delegating through an adapter until 100% caller cutover is verified.
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env python3
2
+ """Check refactor slice blast radius and ensure test coverage accompanies production moves."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import argparse
7
+ import sys
8
+
9
+
10
+ def assess_refactor_slice(
11
+ prod_files_changed: list[str],
12
+ test_files_changed: list[str],
13
+ *,
14
+ max_prod_files: int = 12,
15
+ includes_behavior_fix: bool = False,
16
+ ) -> list[str]:
17
+ errors: list[str] = []
18
+ if len(prod_files_changed) > max_prod_files:
19
+ errors.append(
20
+ f"Blast radius exceeded: {len(prod_files_changed)} prod files > limit {max_prod_files}; split into smaller slices."
21
+ )
22
+ if prod_files_changed and not test_files_changed:
23
+ errors.append("No characterization or regression tests modified alongside refactored production files.")
24
+ if includes_behavior_fix:
25
+ errors.append("Behavior bug fixes must be separated from structural refactors.")
26
+ return errors
27
+
28
+
29
+ def run_self_test() -> int:
30
+ ok = assess_refactor_slice(["src/billing/core.py"], ["tests/test_billing_char.py"])
31
+ assert ok == [], f"Expected clean slice, got {ok}"
32
+
33
+ no_tests = assess_refactor_slice(["src/billing/core.py"], [])
34
+ assert len(no_tests) == 1
35
+ too_big = assess_refactor_slice([f"src/m{i}.py" for i in range(15)], ["tests/t.py"])
36
+ assert len(too_big) == 1
37
+ mixed = assess_refactor_slice(["src/a.py"], ["tests/t.py"], includes_behavior_fix=True)
38
+ assert len(mixed) == 1
39
+ print("check_refactor_blast_radius self-test PASSED")
40
+ return 0
41
+
42
+
43
+ def main() -> int:
44
+ parser = argparse.ArgumentParser(description="Validate refactor slice blast radius constraints.")
45
+ parser.add_argument("--self-test", action="store_true")
46
+ parser.add_argument("--prod", nargs="*", default=[])
47
+ parser.add_argument("--tests", nargs="*", default=[])
48
+ parser.add_argument("--max-files", type=int, default=12)
49
+ args = parser.parse_args()
50
+
51
+ if args.self_test:
52
+ return run_self_test()
53
+ errs = assess_refactor_slice(args.prod, args.tests, max_prod_files=args.max_files)
54
+ if errs:
55
+ for e in errs:
56
+ print(f"ERROR: {e}", file=sys.stderr)
57
+ return 1
58
+ print("OK: refactor blast radius within threshold")
59
+ return 0
60
+
61
+
62
+ if __name__ == "__main__":
63
+ sys.exit(main())
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: release-notes
3
3
  description: Draft, structure, and review release notes for a software change so that users, operators, and downstream consumers understand what changed, what broke compatibility, and what action they must take. Use when shipping a feature, fix, or breaking change that requires external communication.
4
+ version: "1.0.0"
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
5
6
  ---
6
7