@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,8 +1,8 @@
1
- # Master Design Standard: UI/UX Anti-Slop Specification
1
+ # Master Design Standard: UI/UX Anti-Slop Specification & Reference
2
2
 
3
3
  This document establishes the unified **Master Design Standard** for all UI/UX design, frontend architecture, and component engineering across `agent-skills`. It consolidates and codifies the 9 S-Rank Design & UI/UX skills into an authoritative, enforceable design governance specification.
4
4
 
5
- Every agent assuming the `@designer` (`ui-ux-designer`) or `@frontend` (`frontend-developer`) role MUST strictly comply with these rules.
5
+ This reference is linked from [`ui-ux-designer.md`](../ui-ux-designer.md) and mirrored at `core/skills/frontend/ui-ux-designer-anti-slop-standards.md`. Every agent assuming the `@designer` (`ui-ux-designer`) or `@frontend` (`frontend-developer`) role MUST strictly comply with these rules.
6
6
 
7
7
  ---
8
8
 
@@ -12,27 +12,25 @@ The Master Design Standard synthesizes nine domain-leading design engineering me
12
12
 
13
13
  | # | S-Rank Skill | Core Focus & Authority | Integrated Sections |
14
14
  |---|--------------|------------------------|---------------------|
15
- | 1 | **Taste Skill** | Aesthetic direction, 3-dial engine, archetype calibration, mandatory pre-code Design Read statement | §2 (Taste Engine), §3 (Design Read) |
16
- | 2 | **Anthropic Frontend Design** | Layout family diversity, anti-center bias, hero viewport discipline, responsive grid orchestration | §4 (Layout & Composition), §10 (Copy & CTA) |
17
- | 3 | **shadcn/ui (v4)** | Compound component composition, `FieldGroup` + `Field`, `InputGroup`, semantic tokens, Base UI vs Radix | §5 (Component Composition), §6 (Token System) |
18
- | 4 | **Impeccable** | Micro-typography triad, perceptual contrast compliance, whitespace mathematics, visual polish | §3 (Design Read), §6 (Token System), §10 (Copy) |
19
- | 5 | **Emil Design Engineering** | Tactile interactions, gesture feedback, physical state models, fluid component dynamics | §5 (Component Composition), §7 (Motion Physics) |
20
- | 6 | **Animate** | Choreographed micro-interactions, transition curves, easing token governance, viewport reveals | §7 (Motion Physics & Skeletons) |
21
- | 7 | **Emil Kowalski's Bundle** | Frequency-based animation budget (0ms Cmd+K, 150-250ms modals), harmonic oscillator spring physics | §7 (Motion Physics & Timing Table) |
22
- | 8 | **Web Design Guidelines** | Bounded 2-pass QA protocol (Desktop 1280px+ & Mobile 375-430px simultaneously), single smooth-scroll engine | §7 (Smooth Scroll), §8 (Bounded Visual QA) |
23
- | 9 | **Build Awwwards-Quality Sites** | Editorial typography, negative asset constraints (ban fake SVG logos / synthetic testimonials / ungrounded metrics) | §4 (Layout), §9 (Negative Asset Constraints) |
15
+ | 1 | **Taste Skill** | Aesthetic direction, 3-dial engine, archetype calibration, mandatory pre-code Design Read statement | §2 (Taste Engine & Domain Matrix), §3 (Design Read) |
16
+ | 2 | **Anthropic Frontend Design** | Context-first intentional aesthetic commitment across varied visual poles (brutalist, editorial, luxury, tactile, industrial), avoiding any single AI template | §2.2 (Domain Matrix), §3 (Design Read), §4 (Layout) |
17
+ | 3 | **UI/UX Pro Max** | Domain-grounded lookup (styles, palettes, typography, charts, stack rules), `MASTER.md` + page override token hierarchy | §2.2 (Domain Matrix), §11.2 (Master + Page Overrides) |
18
+ | 4 | **Vercel Web Design Guidelines** | Deterministic UI craft & micro-audit rules (`file:line` findings, URL-as-state, unicode `…`, `tabular-nums`, `color-scheme`, focus restoration, hydration-safe inputs) | §8 (Visual QA), §10.3 (Web Interface Micro-Craft) |
19
+ | 5 | **Vercel Composition Patterns** | Compound components, `{ state, actions, meta }`, `FieldGroup` + `Field`, `InputGroup`, Base UI `render` vs Radix `asChild`, `<= 2` stylistic booleans | §5 (Component Composition) |
20
+ | 6 | **Impeccable & Emil Design Engineering** | Perceptual OKLCH ramps, APCA contrast + WCAG 2.2 AA floor, frequency-based motion budget (`0ms` hotkeys, `150–250ms` overlays), harmonic spring physics | §6 (Token System), §7 (Motion Physics) |
21
+ | 7 | **Build Awwwards-Quality Sites** | Negative asset constraints (ban fake SVG logos, synthetic testimonials, ungrounded precision metrics) | §9 (Negative Asset Constraints), §10 (Copy & CTA) |
24
22
 
25
23
  ---
26
24
 
27
- ## 2. Taste Engine & Three-Dial Calibration
25
+ ## 2. Taste Engine, Three-Dial Calibration & Domain-to-Aesthetic Matrix
28
26
 
29
- The Taste Engine governs design execution via three numeric dials on a 1–10 scale. Baseline default across all projects is **`8 / 6 / 4`**. These are global variables — cross-references must use these exact names, never aliases like `LAYOUT_VARIANCE` or `ANIM_LEVEL`.
27
+ The Taste Engine governs design execution via three numeric dials on a 1–10 scale. These are global variables — cross-references must use these exact names, never aliases like `LAYOUT_VARIANCE` or `ANIM_LEVEL`. **There is no universal visual look**: start from the project's **Domain Archetype** below rather than defaulting to dark-slate + `Geist` + Emerald.
30
28
 
31
29
  ```
32
30
  TASTE ENGINE THREE DIALS
33
31
  ┌─────────────────────────┬─────────────────────────┬─────────────────────────┐
34
32
  │ DESIGN_VARIANCE │ MOTION_INTENSITY │ VISUAL_DENSITY │
35
- │ (Default: 8) │ (Default: 6) │ (Default: 4) │
33
+ │ (Archetype-driven) │ (Archetype-driven) │ (Archetype-driven) │
36
34
  ├─────────────────────────┼─────────────────────────┼─────────────────────────┤
37
35
  │ 1: Perfect Symmetry │ 1: Static / No Motion │ 1: Art Gallery / Ultra │
38
36
  │ 5: Balanced Bento Grid │ 5: Snappy Micro-Springs │ 4: Modern SaaS Baseline │
@@ -96,16 +94,22 @@ The Taste Engine governs design execution via three numeric dials on a 1–10 sc
96
94
 
97
95
  ---
98
96
 
99
- ### 2.2 Dial Calibration Across Core Archetypes
97
+ ### 2.2 Domain-to-Aesthetic Lookup Matrix (Anti-Monoculture)
100
98
 
101
- | Archetype | VARIANCE | MOTION | DENSITY | Key Characteristics & Guidelines |
102
- |:---|:---:|:---:|:---:|:---|
103
- | **B2B Enterprise / Regulated / Gov** | **3** | **2** | **6** | Rigid 12-col grid, zero decorative whimsy, instantaneous transitions (0-150ms), high data density, WCAG AAA compliance. |
104
- | **Modern Developer Tool (Linear/Supabase style)** | **6** | **5** | **5** | Dark-mode precision, monospace accents, keyboard shortcuts (0ms), structured bento grids, snappy Kowalski springs. |
105
- | **Premium Consumer / Luxury Brand** | **7** | **6** | **3** | Cold luxury palette (slate/cobalt/monochrome), generous negative space, high-craft typography, tactile physical springs. |
106
- | **Editorial / Creative Portfolio** | **8** | **6** | **3** | Asymmetrical split screens, oversized typography, curated editorial pacing, staggered reveals, high whitespace. |
107
- | **Awwwards / Experiential Agency** | **9** | **8** | **3** | Broken grids, scroll-pinned sticky stacks, kinetic typography, magnetic interactions, bold expressive visual depth. |
108
- | **Universal SaaS Marketing Baseline** | **8** | **6** | **4** | Default anti-slop baseline. Asymmetric split hero, fluid micro-interactions, generous breathing room, semantic tokens. |
99
+ Select the matching domain archetype before proposing typography, colors, or layout. Never apply the **Modern Developer Tool** dark-slate + emerald aesthetic to Fintech, Healthcare, Editorial, or Retail unless the brief explicitly demands it.
100
+
101
+ | Domain Archetype | VARIANCE | MOTION | DENSITY | Aesthetic Pole, Typography & Palette Direction | Avoided Domain Cliché |
102
+ |:---|:---:|:---:|:---:|:---|:---|
103
+ | **Fintech / Core Banking / Ledger** | **3** | **2** | **6** | Crisp light-first paper (`oklch(0.985 0.004 250)`), deep navy/forest/slate ink, `tabular-nums` mandatory, high-contrast semantic status badges, institutional clarity. | Neon crypto dark glow, playful bouncy springs |
104
+ | **Healthcare / Clinical / Regulated** | **3** | **2** | **5** | Calm daylight surfaces, soft mineral teal or cobalt accent (`sat < 70%`), COGA-compliant plain labels, persistent field instructions, WCAG AAA text contrast. | Harsh high-contrast dark mode, ambiguous icons |
105
+ | **B2B Ops / WMS / Telemetry / ERP** | **4** | **3** | **7–8** | High-density data grids, sticky table headers, URL-persisted filters, keyboard shortcuts (`0ms`), crisp 1px borders, monospace IDs & `tabular-nums`. | Marketing bento cards, excessive whitespace padding |
106
+ | **Modern Developer Tool / Infra** | **6** | **5** | **5** | Choose between **Daylight Technical Docs** (warm stone/paper + sharp mono) OR **Dark Precision** (tinted slate + 1 restrained accent); `Cmd+K` at `0ms`. | Unprompted Linear-dark + Emerald + fake terminal clone |
107
+ | **Editorial / Publishing / Knowledge** | **7–8** | **4** | **3** | Expressive typographic hierarchy (permitted heritage serif pairing when brief aligns), `60–68ch` reading measure, asymmetric pull quotes, generous margins. | Generic SaaS 3-column feature card grid |
108
+ | **Premium Consumer / Luxury / Craft** | **7** | **6** | **3** | Rotate purposefully: **Cold Luxury** (ice grey + obsidian), **Botanical Forest** (pine + alabaster), **Terracotta + Slate**, or **Cobalt + Cream**; tactile transitions. | Warm-beige (`#f5f1ea`) + brass (`#b08947`) + espresso (`#1a1714`) |
109
+ | **E-Commerce / High-Velocity Retail** | **5** | **5** | **5** | Product-photography-first grid, sticky thumb-zone mobile CTA, clear 2D variant matrix (size × color), zero dark-pattern urgency tricks. | Cluttered badge spam, low-contrast ghost buttons on photos |
110
+ | **AI Agentic Workspace** | **5** | **4** | **6** | Visible Trust Ladder tier badge, streaming skeletons (`CLS = 0`), calibrated confidence badges, Red Path recovery, upfront `<AIDisclosureBanner>`. | Confident chat bubble with no undo, provenance, or fallback |
111
+ | **Public Sector / Gov / Education** | **2–3** | **2** | **5** | Official `govuk-frontend` / `uswds` grammar when applicable, linear single-column forms, WCAG 2.1/2.2 AA+, zero decorative animation. | Experimental split heroes, hidden navigation |
112
+ | **General SaaS Baseline (Mode A/B)** | **7** | **5** | **4** | Balanced modern SaaS when no specialist domain dominates; distinct brand accent (`sat < 80%`), `DESIGN.md` master tokens. | Purple/indigo AI mesh gradient, `Inter` + 3 identical cards |
109
113
 
110
114
  ### 2.3 Dial Clamping & Conflict Resolution Rules
111
115
  When user briefs contain conflicting requirements (e.g., "We want an experimental Awwwards look, but for a Swiss private wealth management portal"):
@@ -173,7 +177,7 @@ export default function Hero() {
173
177
  - **Mood & Intent**: Utilitarian Monospace Precision, High-Signal Developer Tool
174
178
  - **Dial Calibration**:
175
179
  - `DESIGN_VARIANCE`: 8 — Asymmetric 60/40 desktop split hero with terminal visual anchor
176
- - `MOTION_INTENSITY`: 6 — Tactile scale-[0.98] active spring on CTA; 0ms on keyboard shortcuts
180
+ - `MOTION_INTENSITY`: 6 — Tactile scale-[0.96] active spring on CTA; 0ms on keyboard shortcuts
177
181
  - `VISUAL_DENSITY`: 4 — Generous SaaS whitespace (min-h-[100dvh], py-24, gap-12)
178
182
  - **Composition Archetype**: Asymmetrical Split Hero (60/40) with Live Interactive Preview
179
183
  - **Typography System**: Display: Geist Sans (tracking-tight), Body: Geist Sans (leading-relaxed), Mono: Geist Mono
@@ -209,7 +213,7 @@ export default function Hero() {
209
213
  </p>
210
214
 
211
215
  <div className="flex flex-wrap items-center gap-4 pt-2">
212
- <Button size="lg" className="active:scale-[0.98] transition-transform">
216
+ <Button size="lg" className="active:scale-[0.96] transition-transform">
213
217
  Deploy Cluster
214
218
  </Button>
215
219
  <Button variant="outline" size="lg">
@@ -237,11 +241,20 @@ export default function Hero() {
237
241
  ```
238
242
 
239
243
  #### 💡 WHY
240
- Pre-code commitments anchor the LLM to specific tokens, layout archetypes, and negative constraints before generating tokens. Without this anchor, code defaults to generic centered AI slop with pure black backgrounds and hardcoded hex colors.
244
+ Pre-code commitments anchor the LLM to specific tokens, layout archetypes, and negative constraints before generating markup. **Crucial rule**: the dark-slate + Emerald example above is valid *only* for a Developer Tool brief; for Fintech, Healthcare, Retail, or B2B Ops, derive a completely different daylight/editorial/high-density Design Read from Section 2.2 so the system never collapses into a single dark-mode SaaS look.
241
245
 
242
246
  ---
243
247
 
244
- ## 4. Anti-Slop Layout & Composition Directives
248
+ ## 4. Layout & Composition Directives (Mode A: Product UI vs Mode B: Showcase)
249
+
250
+ Apply **Mode A** to in-app product UIs (dashboards, CRUD tables, settings, AI workspaces) and **Mode B** only to marketing, product landing, or storefront showcase pages. Never force Mode B landing rules (zigzags, marketing hero stacks) onto Mode A operational tools.
251
+
252
+ ### Mode A: In-App Product UI Grammar
253
+ - **Surface Hierarchy**: select Inline vs Popover vs Drawer/Sheet vs Modal Dialog vs Dedicated Route based on reversibility and context-preservation needs.
254
+ - **URL as State**: serialize active tabs, filters, sort order, pagination, and selected inspection drawers into URL query parameters (`?tab=`, `?status=`, `?selected=`).
255
+ - **Data-Dense Scannability**: align numeric/currency/time columns with `tabular-nums`, pin sticky table headers (`scroll-margin-top` set), and provide keyboard-accessible full-value reveal for truncated cells.
256
+
257
+ ### Mode B: Landing & Showcase Composition Directives
245
258
 
246
259
  ### 4.1 Anti-Center Bias
247
260
  Centered Hero / H1 sections are avoided when `DESIGN_VARIANCE > 4`. Use split screen (50/50, 60/40), left-aligned copy with right-aligned visual asset, asymmetric whitespace, or scroll-pinned compositions. Centered heroes are permitted only for manifesto/editorial launch pages.
@@ -605,12 +618,15 @@ export function GoodCard({ title, description }: { title: string; description: s
605
618
  2. **Perceptual Contrast Uniformity**: OKLCH ensures mathematically consistent perceived contrast across light and dark palettes, guaranteeing WCAG AA compliance.
606
619
  3. **Clean Codebases**: Eliminates repetitive `dark:*` class strings, reducing CSS bundle size and developer cognitive load.
607
620
 
608
- ### 6.2 Typography & Color Discipline Rules
609
- - **Serif Discipline**: Serif display fonts are banned as the default for creative or premium briefs. Default to high-craft sans display (`Geist Display`, `Cabinet Grotesk`, `Satoshi`, `Outfit`). Specifically banned default serifs: `Fraunces` and `Instrument_Serif`.
621
+ ### 6.2 Typography, Contrast Dual-Gate & Color Discipline Rules
622
+ - **Domain-Calibrated Typography Voice**: avoid lazy unprompted defaults (`Inter`, `Roboto`, `Space Grotesk`, `Fraunces`, `Instrument_Serif`), AND avoid defaulting every SaaS/app to `Geist`/`Satoshi` when the domain calls for warmth, authority, or editorial character. Select display + body + monospace fonts from the Domain Archetype Matrix (§2.2).
610
623
  - **Word Emphasis**: Word emphasis in display type must use bold or italic of the **same font family**; never inject a foreign serif word into a sans headline.
611
- - **Color Discipline & Lila Ban**: Maximum 1 accent color with saturation < 80%. Ban generic AI-purple/blue glow gradients on dark buttons and backgrounds. Use neutral bases with singular high-contrast accents.
612
- - **Palette Rotation**: Ban the default reach for warm-beige (`#f5f1ea`), brass/clay, and espresso text. Rotate to cold luxury, forest green, terracotta+slate, cobalt+cream, or sharp monochrome.
613
- - **Shape Consistency Lock**: Enforce a single corner-radius scale across the page (all-sharp, all-soft 12-16px, or documented pill buttons + soft cards).
624
+ - **Contrast Dual-Gate (Unified)**:
625
+ - **WCAG 2.2 AA (Legal & Accessibility Floor)**: $CR \ge 4.5:1$ normal text, $\ge 3.0:1$ large text, UI controls, and focus indicators.
626
+ - **APCA (Perceptual Design-Token Target)**: $L_c \ge 75$ body text, $L_c \ge 60$ headlines/controls, verified independently in both light and dark modes.
627
+ - **Color Discipline & Lila Ban**: Maximum 1 dominant accent color with saturation $< 80\%$ (unless domain semantics require status colors). Ban generic AI-purple/blue glow gradients on dark buttons and backgrounds.
628
+ - **Palette Rotation**: Ban the default reach for warm-beige (`#f5f1ea`), brass/clay, and espresso text, as well as repeating the same dark-slate + emerald palette across unrelated domains.
629
+ - **Shape Consistency Lock**: Enforce a single corner-radius scale across the page (all-sharp, all-soft 12-16px, or documented pill buttons + soft cards) and concentric corner math ($R_{\text{outer}} = R_{\text{inner}} + P + B$).
614
630
 
615
631
  ---
616
632
 
@@ -688,7 +704,7 @@ export function BadPalette({ isOpen }: { isOpen: boolean }) {
688
704
  initial={{ opacity: 0, scale: 0.9 }}
689
705
  animate={{ opacity: 1, scale: 1 }}
690
706
  exit={{ opacity: 0, scale: 0.9 }}
691
- transition={{ duration: 0.35 }} // ❌ Sluggish 350ms delay on hotkey!
707
+ transition={{ duration: 0.35 }}
692
708
  className="fixed top-24 left-1/2 -translate-x-1/2 w-[500px] bg-card p-4"
693
709
  >
694
710
  <input placeholder="Search..." autoFocus />
@@ -861,7 +877,7 @@ AI-generated interfaces frequently suffer from recognizable "vibe-slop" visual a
861
877
  NovaPulse
862
878
  </span>
863
879
  ```
864
- 2. **Generic Functional Iconography**: Icons must be drawn strictly from approved packages (`lucide-react`, `@phosphor-icons/react`, `@radix-ui/react-icons`) and represent **functional UI actions** (`<Terminal />`, `<Database />`, `<ChevronRight />`), NEVER masquerading as corporate brand marks.
880
+ 2. **Unified Functional Iconography**: Icons must be drawn strictly from one consistent icon library per codebase (`@phosphor-icons/react`, `hugeicons-react`, `@radix-ui/react-icons`, or `lucide-react` when aligning with an existing shadcn/ui or Base UI repo) and represent **functional UI actions** (`<Terminal />`, `<Database />`, `<ChevronRight />`), NEVER masquerading as corporate brand marks or mixed across libraries in the same component tree. Standardize stroke width globally.
865
881
  3. **Verified Social Proof Marks**: When real brand integration is required, use verified official monochrome marks via Simple Icons (`https://cdn.simpleicons.org/{slug}`) with the Logo-Only rule.
866
882
  4. **Factual Structural Placeholders**: If customer logos or testimonials are requested but real assets are not provided, render honest structural placeholders (`[Client Logo Slot: Monochrome SVG]`).
867
883
  5. **Verifiable Technical Highlights**: Replace fake testimonials with factual architecture benchmarks (latency measurements, uptime SLA, concurrent connection benchmarks).
@@ -874,12 +890,10 @@ AI-generated interfaces frequently suffer from recognizable "vibe-slop" visual a
874
890
  export function BadAssets() {
875
891
  return (
876
892
  <div>
877
- {/* Fake SVG swirl */}
878
893
  <svg className="h-8 w-8 text-indigo-500" viewBox="0 0 100 100">
879
894
  <circle cx="50" cy="50" r="40" stroke="url(#g)" strokeWidth="8" fill="none" />
880
895
  <defs><linearGradient id="g"><stop stopColor="#6366f1"/><stop offset="1" stopColor="#a855f7"/></linearGradient></defs>
881
896
  </svg>
882
- {/* Fake testimonial */}
883
897
  <blockquote>
884
898
  "NovaPulse doubled our engineering velocity by 340% in 14 days!"
885
899
  <footer>Sarah Miller, VP of Cloud at HyperScale</footer>
@@ -895,7 +909,6 @@ export function BadAssets() {
895
909
  export function GoodAssets() {
896
910
  return (
897
911
  <div className="space-y-8">
898
- {/* Authentic wordmark */}
899
912
  <div className="flex items-center gap-2.5">
900
913
  <div className="flex h-7 w-7 items-center justify-center rounded-md bg-primary text-primary-foreground font-mono text-xs font-semibold">
901
914
  NP
@@ -905,7 +918,6 @@ export function GoodAssets() {
905
918
  </span>
906
919
  </div>
907
920
 
908
- {/* Verifiable Technical Benchmark */}
909
921
  <div className="rounded-xl border border-border bg-card p-6">
910
922
  <div className="flex items-center justify-between pb-4 border-b border-border">
911
923
  <h4 className="text-xs font-mono font-semibold uppercase text-muted-foreground">
@@ -951,6 +963,15 @@ Audit all visible UI strings before handoff. Reject:
951
963
  - Do not mix "Get in touch", "Contact us", and "Let's talk" on one page.
952
964
  - Primary CTA labels must never wrap to multiple lines on desktop (maximum 3 words, ideally 1–2 words).
953
965
 
966
+ ### 10.3 Web Interface Micro-Craft Rules (Vercel Web Design Guidelines)
967
+ - **Unicode Ellipsis & Trigger Punctuation**: always use the true Unicode ellipsis (`…`), never three ASCII dots (`...`). Append `…` to async progress states (`Loading…`, `Saving…`) and menu/button labels that open a secondary dialog or flow (`Rename…`, `Export…`).
968
+ - **Tabular Numerals**: enforce `font-variant-numeric: tabular-nums` on all numeric tables, prices, KPIs, counters, and live telemetry so columns never jitter horizontally.
969
+ - **Dark Mode Native Integration**: declare `color-scheme: dark` on dark-theme root containers so native scrollbars, date pickers, and form controls match the theme without white flashes.
970
+ - **Tactile `:active` Press Feedback**: unify interactive press scaling at `scale-[0.96]` (`150ms ease-out`), excluding disabled controls, and guard hover styles inside `@media (hover: hover)`.
971
+ - **Scroll & Modal Containment**: set `overscroll-behavior: contain` inside scrollable modals/drawers to prevent background scroll chaining; set `scroll-margin-top` on anchored headings under sticky headers; always restore focus to the triggering element when closing dialogs/popovers.
972
+ - **Hydration-Safe & Frictionless Inputs**: never block paste in email/password/OTP fields; provide accurate `autocomplete` and `inputMode` attributes; keep mobile input `font-size >= 16px` (`text-base sm:text-sm`) to prevent iOS Safari auto-zoom.
973
+ - **Flex Truncation Safety**: set `min-w-0` on flex parents containing truncated (`truncate` / `text-ellipsis`) children, and pair truncated text with an accessible full-value reveal.
974
+
954
975
  ---
955
976
 
956
977
  ## 11. Design System Selection Map & Living Infrastructure
@@ -973,10 +994,11 @@ When the design read points to a known system, reach for the official package
973
994
  - **One system per project**: Do not mix Fluent with Carbon in the same tree.
974
995
  - When the brief is an aesthetic (glassmorphism, bento, brutalism, dark tech), build with native CSS + Tailwind + maintained primitives, clearly documenting approximations.
975
996
 
976
- ### 11.2 Living Infrastructure & Dual-Audience Documentation
977
- - **W3C DTCG Token Architecture**: Primitive -> Semantic -> Component. Components reference semantic tokens exclusively.
978
- - **Automated Pipeline**: Tokens Studio -> PR -> Style Dictionary.
979
- - **Dual-Audience Token Documentation**: When design systems serve AI agents, token definitions and specs must be authored in strict Markdown hierarchy (H1->H2->H3) for LLM parse efficiency.
997
+ ### 11.2 Living Infrastructure, `DESIGN.md` Master + Page Overrides & Dual-Audience Docs
998
+ - **Two-Tier DTCG 2025.10 Token Architecture**: `Tier 1 (Primitive) -> Tier 2 (Semantic)`, with optional `Tier 3 (Component)` strictly capped at `<= 3` documented exceptions per component. Components reference semantic tokens exclusively in DTCG `$value`/`$type` format.
999
+ - **Master + Page Override Pattern**: maintain `DESIGN.md` (`design-tokens-spec.json`) as the single **MASTER** system specification; document route-specific density or surface overrides in explicit **Page Overrides** without forking base palettes.
1000
+ - **Automated Pipeline**: Figma Variables / `DESIGN.md` -> PR -> Style Dictionary v4 DTCG mode / Terrazzo.
1001
+ - **Dual-Audience Token Documentation**: When design systems serve AI agents, token definitions and specs must be authored in strict Markdown hierarchy (`H1->H2->H3`) for LLM parse efficiency (`llms.txt` as scope map only).
980
1002
 
981
1003
  ---
982
1004
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: web-quality-audit
3
3
  description: Use when conducting Core Web Vitals audits, profiling Long Animation Frames and interaction responsiveness, auditing DOM depth and bundle bloat, and enforcing Lighthouse CI quality gates.
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]
5
6
  ---
6
7
 
@@ -20,17 +20,18 @@ Build high-framerate WebGL2 and WebGPU interactive 3D scenes with compressed ass
20
20
 
21
21
  ## Core Rules
22
22
 
23
- - **WebGPU with Graceful WebGL2 Fallback**: Initialize `WebGPURenderer` when navigator capabilities permit, while providing seamless automatic fallback to `WebGLRenderer` and handling `webglcontextlost` / `webglcontextrestored` events without crashing.
24
- - **Compressed Asset Streaming**: Enforce Draco or Meshopt geometry compression alongside KTX2 / Basis Universal GPU-compressed textures so assets remain compressed in VRAM and decode off the main thread.
25
- - **Explicit VRAM Disposal**: Never rely on JavaScript garbage collection for GPU resources. Explicitly call `.dispose()` on every `BufferGeometry`, `Material`, `Texture`, and `WebGLRenderTarget` when unmounting scenes or despawning entities.
26
- - **Contract Adherence**: Emit `contracts/schemas/implementation-result.json` upon completing WebGL/Three.js rendering slices.
23
+ - **Archetype & Backend Pairing**: Match renderer and post-processing to the scene archetype — `WebGPURenderer` + TSL (`MeshStandardNodeMaterial` / `THREE.PostProcessing`) for WebGPU-first pipelines, or `WebGLRenderer` + `pmndrs/postprocessing` `EffectComposer` for WebGL2 compatibility, handling `webglcontextlost`/`webglcontextrestored` and `device.lost` deterministically. Use `frameloop="demand"` + `invalidate()` for idle product configurators and `useThree((s) => s.renderer)` in R3F v9.
24
+ - **Anti-AI-3D-Slop Visual & Loop Craft**: Never ship flat `ambientLight` + single white `directionalLight` on `#000000` voids or fisheye `fov 75` `[0,0,5]` cameras. Calibrate PMREM HDRI + 3-point lighting, `AgX`/`ACESFilmic` tone mapping, bounding-sphere camera framing (`fov 35–45`), tight `near`/`far` frustum, grounded contact shadows, and **zero per-frame heap allocations** (`new THREE.Vector3()`, `.clone()`, `setState()`) inside `useFrame`/RAF loops.
25
+ - **Color-Space & Compressed Streaming**: Apply `THREE.SRGBColorSpace` strictly to albedo/emissive maps and `THREE.NoColorSpace` (Linear) to normal, roughness, metalness, AO, and packed ORM maps (`flipY = false` for glTF). Enforce Draco/Meshopt geometry compression + KTX2/Basis Universal GPU textures with local bundled WASM decoders.
26
+ - **Explicit Full VRAM Disposal**: JavaScript GC and `material.dispose()` do NOT free attached textures. Traverse every node on unmount to dispose every `BufferGeometry`, `Material`, **all texture map properties** (`map`, `normalMap`, `roughnessMap`, `metalnessMap`, `aoMap`, `emissiveMap`), `RenderTarget`s, and `PMREMGenerator`s.
27
+ - **Contract Adherence**: Emit `contracts/schemas/implementation-result.json` upon completing WebGL/WebGPU/Three.js rendering slices.
27
28
 
28
29
  ## Suggested Process
29
30
 
30
- ### 1. Renderer, Color Space & Pixel Ratio Setup
31
- Configure the renderer for consistent cross-device fidelity and frame pacing:
32
- - Set `renderer.outputColorSpace = THREE.SRGBColorSpace` and `renderer.toneMapping = THREE.ACESFilmicToneMapping`.
33
- - Clamp device pixel ratio (`Math.min(window.devicePixelRatio, 2.0)`) to prevent fill-rate collapse on high-DPI mobile screens.
31
+ ### 1. Renderer, Color Space, Camera & Pixel Ratio Setup
32
+ Configure the renderer, camera frustum, and tone mapping for consistent cross-device fidelity:
33
+ - Set `renderer.toneMapping = THREE.AgXToneMapping` (or `ACESFilmicToneMapping`), `outputColorSpace = THREE.SRGBColorSpace`, and `NoColorSpace` on data/normal/ORM textures.
34
+ - Frame product views with `fov 35–45`, bounding-sphere fit, tight `near`/`far` bounds, and `Math.min(window.devicePixelRatio, 2.0)`.
34
35
 
35
36
  ### 2. Asynchronous GLTF Streaming & Instancing
36
37
  Load 3D scenes via `GLTFLoader` configured with `DRACOLoader`, `MeshoptDecoder`, and `KTX2Loader`:
@@ -40,8 +41,9 @@ Load 3D scenes via `GLTFLoader` configured with `DRACOLoader`, `MeshoptDecoder`,
40
41
  Configure `MeshStandardMaterial` / `MeshPhysicalMaterial` using pre-filtered PMREM environment maps (`PMREMGenerator`):
41
42
  - Pack metallic, roughness, and ambient occlusion into a single ORM texture (`roughnessMap` = G, `metalnessMap` = B, `aoMap` = R) to halve texture sampler lookups.
42
43
 
43
- ### 4. EffectComposer Post-Processing Consolidation
44
- Combine bloom, vignette, and color grading into a merged `EffectComposer` pass (`pmndrs/postprocessing` `EffectPass`) rather than chaining multiple full-screen render-target blits.
44
+ ### 4. Post-Processing Consolidation & Loop Hygiene
45
+ - Merge WebGL2 bloom/vignette/grading into a single `pmndrs/postprocessing` `EffectPass`, or use Three.js node `PostProcessing` (TSL) on `WebGPURenderer` — never chain unmerged full-screen blits.
46
+ - Hoist scratch vectors/matrices outside `useFrame`/RAF ticks (`frameloop="demand"` when idle) and respect `prefers-reduced-motion`.
45
47
 
46
48
  ## Output Contracts
47
49
 
@@ -40,17 +40,33 @@ Modern browser 3D applications implement WebGPU as primary hardware abstraction
40
40
 
41
41
  ## 4. Deterministic GPU Resource Lifecycle
42
42
 
43
- JavaScript garbage collection does not clean GPU allocations. The unmount protocol requires:
43
+ JavaScript garbage collection and `material.dispose()` do not automatically free attached `Texture` instances. The unmount protocol must dispose geometries, materials, **and every texture map property**:
44
44
  ```typescript
45
+ const TEXTURE_MAPS = [
46
+ 'map', 'normalMap', 'roughnessMap', 'metalnessMap',
47
+ 'aoMap', 'emissiveMap', 'alphaMap', 'bumpMap', 'displacementMap', 'envMap',
48
+ ] as const;
49
+
50
+ function disposeMaterial(mat: THREE.Material) {
51
+ const record = mat as unknown as Record<string, unknown>;
52
+ for (const key of TEXTURE_MAPS) {
53
+ const tex = record[key];
54
+ if (tex && typeof (tex as THREE.Texture).dispose === 'function') {
55
+ (tex as THREE.Texture).dispose();
56
+ }
57
+ }
58
+ mat.dispose();
59
+ }
60
+
45
61
  function disposeHierarchy(node: THREE.Object3D) {
46
62
  if (node instanceof THREE.Mesh) {
47
- node.geometry.dispose();
63
+ node.geometry?.dispose();
48
64
  if (Array.isArray(node.material)) {
49
- node.material.forEach((m) => disposeMaterial(m));
50
- } else {
65
+ node.material.forEach(disposeMaterial);
66
+ } else if (node.material) {
51
67
  disposeMaterial(node.material);
52
68
  }
53
69
  }
54
70
  }
55
71
  ```
56
- All texture maps, render targets, and compute pipelines must execute `.dispose()`.
72
+ All texture maps, render targets, `PMREMGenerator`s, and compute pipelines must execute `.dispose()`.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: audit-ai-compliance
3
3
  description: Use when auditing AI systems, agentic workflows, or automated decision engines for compliance with Vietnam Law on Artificial Intelligence No. 134/2025/QH15 — including risk-tier classification, conformity assessment, registration, incident reporting, and transparency obligations.
4
+ version: "1.0.0"
4
5
  allowed-tools:
5
6
  - read_file
6
7
  - write_file
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: draft-legal-opinion
3
3
  description: Use when drafting a structured formal legal opinion on a Vietnamese legal matter — covering question framing, statutory authority research, legal analysis, executive conclusion, reliance conditions, action plan, and HITL approval gate before external issuance.
4
+ version: "1.0.0"
4
5
  allowed-tools:
5
6
  - read_file
6
7
  - write_file
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: manage-vietnam-legal
3
3
  description: Use when assessing Vietnamese statutory compliance, vetting commercial contracts, auditing Personal Data Protection Law (PDPL) No. 91/2025/QH15 & Decree 356/2025/ND-CP compliance, screening AI Law No. 134/2025/QH15 risk tiers, or drafting formal legal opinions.
4
+ version: "1.0.0"
4
5
  allowed-tools:
5
6
  - read_file
6
7
  - write_file
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: analyze-business-requirements
3
3
  description: Analyze and write business requirements by making actors, business rules, state transitions, exceptions, preserved behavior, and downstream process impact explicit. Use when a feature, policy change, or bug fix needs implementation-ready requirements and testable acceptance criteria.
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: analyze-data
3
3
  description: Explore analytical datasets using DuckDB/Polars, query canonical Semantic Metric Catalogs (dbt MetricFlow, Cube.js, Apache Ossie) to eliminate Text-to-SQL hallucinations, detect statistical distribution drift, track agent query costs as FinOps line item, and deliver quantitatively verified insights with explicit fact/interpretation separation. Use when answering business questions from data without owning production pipeline infrastructure.
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: meeting-review
3
3
  description: Run a structured multi-perspective review of a topic, proposal, code area, bug, feature, or risky change by producing a decision-ready artifact with trade-offs, preserved behavior, impact radius, and next actions. Use when a user wants cross-functional review signal before deciding, building, shipping, or changing course.
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: deploy-mmo-infrastructure
3
3
  description: Deploy and manage proxy pools (Residential/4G) with dynamic health probes and Anti-Detect Browser orchestration enforcing automated warmup state machines. Use when deploying a new MMO operation, expanding to new ad accounts, or migrating proxy infrastructure.
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: deploy-proxyware-fleet
3
3
  description: Containerize and orchestrate modern DePIN bandwidth monetization light nodes (Grass, Dawn, Nodepay) with Solana/EVM wallet authentication, WebSocket telemetry, and uptime scoring. Use when scaling decentralized bandwidth monetization fleets, orchestrating residential DePIN nodes, or configuring proof-of-bandwidth telemetry.
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: deploy-mobile-app
3
3
  description: Configure and execute mobile deployment pipelines using EAS Build, native code signing credentials, OTA updates via EAS Update, App Store and Google Play compliance, AI content disclosures, and crash symbolication. Use when configuring EAS build profiles, publishing OTA updates, preparing store releases, or validating Apple 4.3(b) and Google Play AI compliance.
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: develop-mobile-app
3
3
  description: Architect high-performance mobile applications using React Native New Architecture, Hermes bytecode engine, TurboModules/JSI, Bridgeless mode, FlashList recycling, Reanimated worklets, and offline-first state persistence with MMKV and WatermelonDB. Use when building or optimizing React Native apps, virtualizing heavy lists, creating 60/120 FPS UI animations, or designing offline-first mobile sync architectures.
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: agents-sdk
3
3
  description: Builds, deploys, and maintains stateful AI agents on Cloudflare Workers and Durable Objects using the Cloudflare Agents SDK. Use when creating stateful agents, implementing RPC methods with @callable(), configuring SQLite-backed agent state, orchestrating agent workflows, running durable fibers, managing chat agents, or handling agent webhooks and schedules.
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, wrangler_deploy, execute_command]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: cloudflare-email-service
3
3
  description: Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
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, wrangler_deploy, execute_command]
5
6
  ---
6
7
 
@@ -137,8 +138,7 @@ Read the reference that matches your situation. You don't need all of them.
137
138
 
138
139
  When this skill is invoked as part of a coordinated multi-role delivery, emit:
139
140
 
140
- - **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
141
- alidation_run. Set produced_by_role to the emitting developer role.
141
+ - **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
142
142
 
143
143
  Skip emission for solo refactor work where no downstream handoff is expected.
144
144
 
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: configure-ci-cd-pipeline
3
+ description: Design and harden CI/CD pipelines with SHA-pinned GitHub Actions, least-privilege OIDC permissions, build-matrix caching, SBOM artifact attestation, and fail-closed security gates. Use when creating or auditing GitHub Actions workflows, test matrices, release pipelines, or supply-chain CI controls.
4
+ version: "1.0.0"
5
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
6
+ ---
7
+
8
+ # Configure CI CD Pipeline
9
+
10
+ Use this skill when building, optimizing, or hardening automated CI/CD workflows (GitHub Actions or equivalent runners) for fast feedback and OWASP ASI04 supply-chain integrity.
11
+
12
+ ## When to Use
13
+
14
+ - authoring or refactoring GitHub Actions workflows, test matrices, and cache keys
15
+ - hardening workflow security (`permissions`, SHA pinning, OIDC token federation, SBOM attestation)
16
+ - eliminating flaky CI retries, slow uncached dependency installs, or `pull_request_target` injection traps
17
+ - enforcing merge-blocking lint, typecheck, secret scanning, and test coverage gates
18
+
19
+ ## Core Rules
20
+
21
+ - **Immutable Commit-SHA Action Pinning (OWASP ASI04)**: Pin EVERY third-party `uses:` step in CI workflows to a full 40-character commit SHA (`uses: actions/checkout@<40-hex-sha> # v4.x`), never mutable tags (`@v4`, `@main`).
22
+ - **Least-Privilege `permissions:` Block**: Declare top-level `permissions: { contents: read }` and elevate job-level scopes (`id-token: write`, `attestations: write`) only on jobs that require OIDC or artifact provenance.
23
+ - **Prevent `pull_request_target` Pwn-Request RCE**: Never check out untrusted PR head code inside a `pull_request_target` or privileged `workflow_run` job with write tokens or repository secrets.
24
+ - **OIDC Over Long-Lived Static Secrets**: Authenticate cloud/registry deploys via short-lived OIDC (`aws-actions/configure-aws-credentials`, npm Trusted Publishing) instead of standing API keys.
25
+ - **Fail-Closed Deterministic Gates**: Run secret scanning (`gitleaks`), lockfile-strict installs (`npm ci` / `uv sync --frozen`), unit/integration tests, and `audit_workflow_pinning.py` cleanly before promotion; cancel stale PR runs with `concurrency`.
26
+
27
+ ## Suggested Process
28
+
29
+ ### 1. Audit Trigger & Trust Boundary
30
+ Map triggers (`pull_request`, `push`, `workflow_dispatch`), separate untrusted fork PR checks from privileged deploy/release jobs, and declare top-level `permissions: read-all` or `contents: read`.
31
+
32
+ ### 2. Design Fast Matrix & Deterministic Caching
33
+ Key caches strictly on OS + lockfile hash (`package-lock.json`, `uv.lock`, `go.sum`), enable fail-fast cancellation (`concurrency.cancel-in-progress`), and verify zero writable shared caches on fork PRs.
34
+
35
+ ### 3. Pin Actions, Wire OIDC & Emit Provenance
36
+ Resolve full 40-char commit SHAs for every action, add dependency/secret scanning + SBOM generation (`CycloneDX`/`SPDX`), and attach SLSA build provenance attestation on release artifacts.
37
+
38
+ ### 4. Lint & Dry-Run Verify
39
+ Run `audit_workflow_pinning.py` against all `.github/workflows/*.yml` files cleanly and verify CI pass on a clean PR branch.
40
+
41
+ ## Checklist
42
+
43
+ - [ ] every third-party `uses:` reference pinned to a 40-char immutable commit SHA
44
+ - [ ] explicit minimal `permissions:` declared at workflow/job scope (zero default write-all)
45
+ - [ ] zero unsafe `pull_request_target` + PR head checkout combinations
46
+ - [ ] lockfile-enforced dependency installation and OS + lockfile hash caching active
47
+ - [ ] secret scanning, SAST/lint, and `audit_workflow_pinning.py` enforced fail-closed
48
+
49
+ ## Red Flags
50
+
51
+ | Rationalization Thought | Reality & Risk | Positive Corrective Action |
52
+ | :--- | :--- | :--- |
53
+ | "Pinning `@v4` is official and easier to read than a 40-char SHA." | Compromised upstream tags silently inject malware into every CI run and secret. | Pin full 40-char commit SHA with a human version comment (`# v4.x`). |
54
+ | "Default `GITHUB_TOKEN` permissions save YAML lines." | Grants write access across code, packages, and checks on compromised steps. | Declare explicit `permissions: contents: read` at top level. |
55
+ | "Use `pull_request_target` so fork PRs can run deploy previews with secrets." | Untrusted PR code executes inside privileged runner and exfiltrates secrets. | Keep fork builds unprivileged under `pull_request` with zero write tokens. |
56
+ | "Ignore failing cache or secret-scan steps with `continue-on-error: true`." | Leaks credentials or broken builds directly to `main`. | Make security, pinning, and test gates fail-closed (`continue-on-error: false`). |
57
+
58
+ ## Output Contracts
59
+
60
+ When pipeline changes cross DevOps/Release or Security boundaries, emit:
61
+
62
+ - **`contracts/schemas/deployment-plan.json`** capturing workflow paths, OIDC roles, SBOM/attestation steps, and gate verification results.
63
+
64
+ ## Failure Modes
65
+
66
+ - **Tag-hijack supply chain compromise**: mutable `@v3` tag force-pushed to malicious commit steals secrets. Mitigation: enforce 40-char SHA pinning (`audit_workflow_pinning.py`).
67
+ - **Script injection via `${{ github.event.pull_request.title }}`**: untrusted PR title/branch name interpolated into `run:` shell executes arbitrary commands. Mitigation: pass event strings through `env:` variables and quote properly.
68
+ - **Cross-PR cache poisoning**: fork PR writes malicious artifacts into shared default cache key. Mitigation: scope caches by branch and exclude untrusted triggers from write-privileged jobs.
69
+
70
+ ## Security Guardrails (OWASP ASI)
71
+
72
+ - **ASI03 Identity & Privilege Abuse**: use ephemeral OIDC federation instead of standing deploy secrets.
73
+ - **ASI04 Supply Chain**: enforce SHA-pinned actions and SLSA provenance attestations on release binaries/packages.
74
+ - **ASI05 RCE Guard**: forbid direct `${{ github.event.* }}` expression interpolation inside `run:` shell blocks.
75
+
76
+ ## Related Skills
77
+
78
+ - **setup-deployment**: Coordinate application rollout steps triggered after CI gates pass
79
+ - **supply-chain-security**: Enforce SBOM, Cosign signing, and CycloneDX compliance
80
+ - **manage-secrets**: Rotate OIDC trust policies and scoped environment secrets
81
+ - **write-tests**: Ensure test suites run hermetically inside CI matrix runners
82
+ - Companion reference: [`references/github-actions-sha-pinning-and-slsa-specs.md`](references/github-actions-sha-pinning-and-slsa-specs.md)
83
+ - Companion example: [`examples/hardened-ci-matrix-workflow.yml`](examples/hardened-ci-matrix-workflow.yml)
@@ -0,0 +1,33 @@
1
+ name: hardened-ci-matrix
2
+ on:
3
+ pull_request:
4
+ branches: [main]
5
+ push:
6
+ branches: [main]
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ concurrency:
12
+ group: ci-${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ jobs:
16
+ verify:
17
+ runs-on: ${{ matrix.os }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ os: [ubuntu-latest, windows-latest]
22
+ python-version: ["3.13"]
23
+ steps:
24
+ - name: Checkout repository (SHA-pinned)
25
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ with:
27
+ persist-credentials: false
28
+ - name: Set up Python
29
+ uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
30
+ with:
31
+ python-version: ${{ matrix.python-version }}
32
+ - name: Audit workflow pinning
33
+ run: python core/scripts/validate-all.py --parallel
@@ -0,0 +1,22 @@
1
+ # GitHub Actions SHA Pinning, OIDC & SLSA Provenance Specifications
2
+
3
+ Normative reference for `configure-ci-cd-pipeline`.
4
+
5
+ ## 1. Supply-Chain Pinning Rules (OWASP ASI04)
6
+
7
+ - Pin every remote action with its full 40-character hexadecimal git commit SHA:
8
+ `uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1`
9
+ - Ban mutable major/minor tags (`@v4`, `@v4.2`) and branch names (`@main`, `@master`).
10
+ - Pin container runner images by `@sha256:...` digest where supported.
11
+
12
+ ## 2. Script Injection & `pull_request_target` Ban
13
+
14
+ - Never interpolate untrusted GitHub context directly inside `run:`:
15
+ - Bad: `echo "${{ github.event.issue.title }}"`
16
+ - Good: bind to `env: ISSUE_TITLE: ${{ github.event.issue.title }}` and quote `"$ISSUE_TITLE"`.
17
+ - Never execute `actions/checkout` with `ref: ${{ github.event.pull_request.head.sha }}` under `pull_request_target`.
18
+
19
+ ## 3. Permissions & OIDC Baseline
20
+
21
+ - Set workflow root `permissions: { contents: read }`.
22
+ - Grant `id-token: write` solely to dedicated publish/deploy jobs gated by GitHub Environment protection rules.