@vesviet/agent-skills 5.8.0 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/INDEX.md +35 -22
  2. package/README.md +7 -18
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/ANTIGRAVITY.md +40 -142
  5. package/adapters/antigravity/INDEX_TIER1.json +174 -146
  6. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  7. package/adapters/antigravity/antigravity-tools.md +25 -0
  8. package/adapters/antigravity/role-skill-index.json +175 -58
  9. package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
  10. package/adapters/claude/settings.template.json +18 -3
  11. package/adapters/cursor/README.md +1 -5
  12. package/adapters/cursor/hooks.template.json +4 -2
  13. package/core/contracts/README.md +0 -20
  14. package/core/contracts/schemas/compact-working-state.json +42 -1
  15. package/core/contracts/schemas/ui-component-spec.json +28 -2
  16. package/core/policies/README.md +0 -20
  17. package/core/policies/action-boundaries.yaml +10 -1
  18. package/core/policies/execution-sandbox.md +0 -12
  19. package/core/policies/mcp-tool-map.yaml +28 -0
  20. package/core/roles/3d-graphics-engineer.md +144 -208
  21. package/core/roles/README.md +1 -23
  22. package/core/roles/agent-coordinator.md +28 -147
  23. package/core/roles/agent-discovery-engineer.md +46 -39
  24. package/core/roles/ai-systems-engineer.md +2 -0
  25. package/core/roles/backend-developer.md +22 -117
  26. package/core/roles/cloudflare-engineer.md +1 -1
  27. package/core/roles/data-engineer.md +3 -1
  28. package/core/roles/devops-engineer.md +4 -3
  29. package/core/roles/ecommerce-engineer.md +18 -6
  30. package/core/roles/frontend-developer.md +146 -317
  31. package/core/roles/game-developer.md +2 -1
  32. package/core/roles/mobile-engineer.md +18 -204
  33. package/core/roles/product-manager.md +3 -3
  34. package/core/roles/project-manager.md +5 -5
  35. package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
  36. package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
  37. package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
  38. package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
  39. package/core/roles/references/backend-developer-responsibilities.md +47 -0
  40. package/core/roles/references/backend-developer-review-checklist.md +15 -0
  41. package/core/roles/references/business-analyst-responsibilities.md +2 -2
  42. package/core/roles/references/frontend-developer-responsibilities.md +14 -6
  43. package/core/roles/references/frontend-developer-review-checklist.md +13 -6
  44. package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
  45. package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
  46. package/core/roles/references/reviewer-review-checklist.md +54 -0
  47. package/core/roles/references/sdet-review-checklist.md +53 -0
  48. package/core/roles/references/solution-architect-responsibilities.md +134 -0
  49. package/core/roles/references/sre-review-checklist.md +81 -0
  50. package/core/roles/references/system-engineer-responsibilities.md +124 -0
  51. package/core/roles/references/technical-architect-responsibilities.md +192 -0
  52. package/core/roles/references/technical-architect-review-checklist.md +58 -0
  53. package/core/roles/references/technical-lead-review-checklist.md +65 -0
  54. package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
  55. package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
  56. package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
  57. package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
  58. package/core/roles/researcher.md +3 -3
  59. package/core/roles/reviewer.md +2 -2
  60. package/core/roles/role-standard.md +79 -205
  61. package/core/roles/sdet.md +5 -6
  62. package/core/roles/security-engineer.md +4 -3
  63. package/core/roles/solution-architect.md +9 -130
  64. package/core/roles/sre.md +1 -0
  65. package/core/roles/system-engineer.md +15 -155
  66. package/core/roles/task-planner.md +1 -1
  67. package/core/roles/technical-architect.md +15 -244
  68. package/core/roles/technical-lead.md +1 -0
  69. package/core/roles/technical-writer.md +3 -3
  70. package/core/roles/ui-ux-designer.md +158 -303
  71. package/core/roles/vietnam-accounting-specialist.md +20 -20
  72. package/core/rules/README.md +0 -22
  73. package/core/rules/code.md +11 -6
  74. package/core/skills/README.md +12 -25
  75. package/core/skills/agent/agent-delegation/SKILL.md +11 -0
  76. package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
  77. package/core/skills/agent/agent-memory-compaction/SKILL.md +79 -82
  78. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
  79. package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
  80. package/core/skills/agent/agent-observability/SKILL.md +12 -6
  81. package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
  82. package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
  83. package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
  84. package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
  85. package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
  86. package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
  87. package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
  88. package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
  89. package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
  90. package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
  91. package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
  92. package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
  93. package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
  94. package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
  95. package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
  96. package/core/skills/ai/openrouter-task/SKILL.md +5 -5
  97. package/core/skills/ai-agent/context-optimization/SKILL.md +2 -0
  98. package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
  99. package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
  100. package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
  101. package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
  102. package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
  103. package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
  104. package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
  105. package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
  106. package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
  107. package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
  108. package/core/skills/backend/add-event-handler/SKILL.md +12 -1
  109. package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
  110. package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
  111. package/core/skills/backend/add-service-client/SKILL.md +2 -0
  112. package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
  113. package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
  114. package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
  115. package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
  116. package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
  117. package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
  118. package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
  119. package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
  120. package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
  121. package/core/skills/backend/implement-auth/SKILL.md +9 -0
  122. package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
  123. package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
  124. package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
  125. package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
  126. package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
  127. package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
  128. package/core/skills/business/elicit-requirements/SKILL.md +2 -0
  129. package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
  130. package/core/skills/business/write-use-cases/SKILL.md +1 -0
  131. package/core/skills/commerce/handle-checkout-flow/SKILL.md +18 -66
  132. package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
  133. package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
  134. package/core/skills/commerce/integrate-payment-gateway/SKILL.md +22 -58
  135. package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
  136. package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
  137. package/core/skills/commerce/manage-order-fulfillment/SKILL.md +17 -50
  138. package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
  139. package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
  140. package/core/skills/commerce/manage-product-catalog/SKILL.md +5 -1
  141. package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
  142. package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
  143. package/core/skills/content/write-article/SKILL.md +1 -1
  144. package/core/skills/document/docx/SKILL.md +1 -0
  145. package/core/skills/document/pdf/SKILL.md +2 -0
  146. package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
  147. package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
  148. package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
  149. package/core/skills/document/xlsx/SKILL.md +1 -0
  150. package/core/skills/documentation/configure-llms-txt/SKILL.md +3 -0
  151. package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
  152. package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
  153. package/core/skills/documentation/write-documentation/SKILL.md +4 -1
  154. package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
  155. package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
  156. package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
  157. package/core/skills/education/create-exercises/SKILL.md +1 -0
  158. package/core/skills/education/design-learning-plan/SKILL.md +1 -0
  159. package/core/skills/education/grade-and-review/SKILL.md +1 -0
  160. package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
  161. package/core/skills/foundation/ai-risk-assessment/SKILL.md +4 -5
  162. package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
  163. package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
  164. package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
  165. package/core/skills/foundation/conduct-research/SKILL.md +2 -2
  166. package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
  167. package/core/skills/foundation/create-migration/SKILL.md +10 -0
  168. package/core/skills/foundation/design-review/SKILL.md +9 -10
  169. package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
  170. package/core/skills/foundation/discernment-nudge/SKILL.md +2 -0
  171. package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
  172. package/core/skills/foundation/incident-report/SKILL.md +1 -0
  173. package/core/skills/foundation/plan-technical-delivery/SKILL.md +3 -1
  174. package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
  175. package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
  176. package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
  177. package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
  178. package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
  179. package/core/skills/foundation/release-notes/SKILL.md +3 -3
  180. package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
  181. package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
  182. package/core/skills/foundation/systematic-debugging/SKILL.md +15 -0
  183. package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
  184. package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
  185. package/core/skills/foundation/write-tests/SKILL.md +9 -0
  186. package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
  187. package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
  188. package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
  189. package/core/skills/frontend/INDEX.json +16 -0
  190. package/core/skills/frontend/add-page-route/SKILL.md +10 -8
  191. package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
  192. package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
  193. package/core/skills/frontend/add-ui-component/SKILL.md +4 -1
  194. package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
  195. package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
  196. package/core/skills/frontend/component-composition/SKILL.md +12 -1
  197. package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
  198. package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
  199. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  200. package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
  201. package/core/skills/frontend/frontend-testing/SKILL.md +4 -1
  202. package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
  203. package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
  204. package/core/skills/frontend/implement-ai-disclosure/SKILL.md +119 -0
  205. package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
  206. package/core/skills/frontend/implement-webmcp/SKILL.md +7 -4
  207. package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
  208. package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
  209. package/core/skills/frontend/integrate-api-client/SKILL.md +12 -12
  210. package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
  211. package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
  212. package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
  213. package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
  214. package/core/skills/frontend/setup-design-system/SKILL.md +6 -3
  215. package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
  216. package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
  217. package/core/skills/frontend/setup-visual-regression/SKILL.md +8 -5
  218. package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
  219. package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
  220. package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
  221. package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
  222. package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
  223. package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
  224. package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
  225. package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
  226. package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
  227. package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
  228. package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
  229. package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
  230. package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
  231. package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
  232. package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
  233. package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
  234. package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
  235. package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
  236. package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
  237. package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
  238. package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
  239. package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
  240. package/core/skills/gamedev/render-webgl-threejs/SKILL.md +14 -10
  241. package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
  242. package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +72 -0
  243. package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
  244. package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
  245. package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
  246. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
  247. package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
  248. package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
  249. package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
  250. package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
  251. package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
  252. package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
  253. package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
  254. package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
  255. package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +3 -0
  256. package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
  257. package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
  258. package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +3 -0
  259. package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
  260. package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
  261. package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
  262. package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
  263. package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
  264. package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
  265. package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
  266. package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
  267. package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
  268. package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
  269. package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
  270. package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
  271. package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
  272. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
  273. package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
  274. package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
  275. package/core/skills/platform/agents-sdk/SKILL.md +1 -0
  276. package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
  277. package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
  278. package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
  279. package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
  280. package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
  281. package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
  282. package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
  283. package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
  284. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
  285. package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
  286. package/core/skills/platform/durable-objects/SKILL.md +1 -0
  287. package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
  288. package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
  289. package/core/skills/platform/setup-deployment/SKILL.md +6 -2
  290. package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
  291. package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
  292. package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
  293. package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
  294. package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
  295. package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
  296. package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
  297. package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
  298. package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
  299. package/core/skills/platform/supply-chain-security/SKILL.md +3 -2
  300. package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
  301. package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
  302. package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
  303. package/core/skills/platform/web-perf/SKILL.md +2 -2
  304. package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
  305. package/core/skills/platform/wrangler/SKILL.md +1 -0
  306. package/core/skills/product/build-story-map/SKILL.md +3 -0
  307. package/core/skills/product/define-product-strategy/SKILL.md +1 -0
  308. package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
  309. package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
  310. package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
  311. package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
  312. package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
  313. package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
  314. package/core/skills/repo-ops/review-code/SKILL.md +12 -2
  315. package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
  316. package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
  317. package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
  318. package/core/skills/repo-ops/review-service/SKILL.md +4 -1
  319. package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
  320. package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
  321. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
  322. package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
  323. package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
  324. package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
  325. package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
  326. package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +8 -7
  327. package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
  328. package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
  329. package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
  330. package/core/skills/security-data/reverse-engineer-binary/SKILL.md +3 -0
  331. package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
  332. package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
  333. package/core/skills/security-data/security-audit/SKILL.md +3 -1
  334. package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
  335. package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
  336. package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +3 -0
  337. package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
  338. package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
  339. package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
  340. package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
  341. package/core/workflows/README.md +0 -20
  342. package/overlays/README.md +2 -22
  343. package/overlays/astro-cloudflare/README.md +0 -20
  344. package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
  345. package/overlays/b2b-catalog-golf/README.md +0 -20
  346. package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
  347. package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
  348. package/overlays/b2b-factory-catalog/README.md +0 -20
  349. package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
  350. package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
  351. package/overlays/b2b-sport-catalog/README.md +0 -20
  352. package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
  353. package/overlays/cad-projection/README.md +0 -20
  354. package/overlays/cad-projection/rules/cad-conventions.md +0 -20
  355. package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
  356. package/overlays/data-analyst-stack/README.md +0 -20
  357. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
  358. package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
  359. package/overlays/data-warehouse/README.md +0 -22
  360. package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
  361. package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
  362. package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
  363. package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
  364. package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
  365. package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
  366. package/overlays/ecommerce-microservices/README.md +22 -35
  367. package/overlays/ecommerce-microservices/config/README.md +3 -1
  368. package/overlays/ecommerce-microservices/rules/README.md +2 -1
  369. package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
  370. package/overlays/ecommerce-microservices/skills/README.md +1 -1
  371. package/overlays/ecommerce-microservices/workflows/README.md +3 -1
  372. package/overlays/fintech-compliance/README.md +0 -20
  373. package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
  374. package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
  375. package/overlays/go-microservices/README.md +1 -21
  376. package/overlays/go-microservices/rules/go-conventions.md +0 -31
  377. package/overlays/hugo-authority-content/README.md +0 -20
  378. package/overlays/hugo-authority-content/roles/README.md +0 -20
  379. package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
  380. package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
  381. package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
  382. package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
  383. package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
  384. package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
  385. package/overlays/hugo-authority-content/workflows/README.md +0 -20
  386. package/overlays/hvac-authority-content/README.md +0 -20
  387. package/overlays/hvac-authority-content/config/collections.md +0 -22
  388. package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
  389. package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
  390. package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
  391. package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
  392. package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
  393. package/overlays/laravel-ecommerce/README.md +0 -20
  394. package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
  395. package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
  396. package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
  397. package/overlays/laravel-filament/README.md +0 -20
  398. package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
  399. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
  400. package/overlays/livestream-web/README.md +0 -20
  401. package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
  402. package/overlays/obj-configurator/README.md +0 -20
  403. package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
  404. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
  405. package/overlays/r3f-stack/README.md +0 -20
  406. package/overlays/r3f-stack/rules/stub.md +0 -31
  407. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
  408. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
  409. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
  410. package/overlays/real-estate-content/README.md +0 -20
  411. package/overlays/real-estate-content/roles/README.md +0 -20
  412. package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
  413. package/overlays/real-estate-content/rules/content-schema.md +0 -31
  414. package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
  415. package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
  416. package/overlays/real-estate-content/workflows/README.md +0 -20
  417. package/overlays/security-research/README.md +0 -20
  418. package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
  419. package/overlays/seo-publishing/README.md +1 -21
  420. package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
  421. package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
  422. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
  423. package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
  424. package/overlays/ui-design-system/README.md +0 -20
  425. package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
  426. package/package.json +2 -2
  427. package/packs/README.md +3 -9
  428. package/packs/ecommerce-team/manifest.yaml +1 -1
  429. package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
  430. package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
  431. package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
  432. package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
  433. package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
  434. package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
  435. package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
  436. package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
  437. package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
  438. package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
  439. package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
  440. package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
  441. package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
  442. package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
  443. package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
  444. package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
  445. package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
  446. package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
  447. package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
  448. package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
  449. package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
  450. package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
  451. package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
  452. package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
  453. package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
  454. package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
package/core/roles/sre.md CHANGED
@@ -185,6 +185,7 @@ This role must follow [role-standard](role-standard.md) first.
185
185
  - `manage-secrets`
186
186
  - `setup-deployment`
187
187
  - `agent-delegation`
188
+ - `configure-ci-cd-pipeline`
188
189
 
189
190
  ### Prohibited Skills
190
191
 
@@ -36,126 +36,13 @@ This role must follow [role-standard](role-standard.md) first.
36
36
 
37
37
  ## Core Responsibilities
38
38
 
39
- ### System Design & Integration Engineering (Foundation)
40
-
41
- System design is the primary output of this role at the design phase. System design operates at the cross-service topology layer — not at the individual service implementation layer (owned by Technical Architect).
42
-
43
- - **System topology design**: define compute nodes, network segments, load balancing strategy, service mesh configuration, and inter-service communication patterns
44
- - **Integration architecture**: design how services, databases, queues, caches, and external APIs connect at the infrastructure level — message formats, retry strategies, circuit breaker placement, and backpressure design
45
- - **Environment design**: specify staging, production, multi-region, and disaster recovery environment topology; define what is shared vs. isolated per environment
46
- - **Non-functional requirements engineering**: receive NFRs from Technical Architect or Product Manager and translate them into specific, measurable infrastructure targets:
47
- - "99.9% availability" → specific load balancer config, health check intervals, failover strategy, and recovery time objective
48
- - "P99 < 200ms" → specific cache hierarchy, network hop budget, and compute allocation
49
- - "support 10x traffic growth" → horizontal scaling design, shard strategy, connection pool sizing
50
- - **Infrastructure-as-Code authoring**: write and own Terraform, Ansible, or equivalent IaC for all system-level infrastructure; IaC is the system design made executable
51
- - **System design documentation**: produce `contracts/schemas/system-design-spec.json` as the primary machine-readable handoff; include topology, NFR targets, capacity model, and design rationale
52
-
53
- ### Capacity Planning & Resource Modeling (Foundation)
54
-
55
- Capacity planning is a proactive design responsibility — not a reactive post-incident activity:
56
-
57
- - **Demand forecasting**: model expected compute, memory, network, and storage demand based on traffic projections, data growth, and feature roadmap
58
- - **Compute sizing**: specify instance types, replica counts, and autoscaling policies for each service and infrastructure component; document the reasoning (e.g., "m5.2xlarge chosen for 16GB memory headroom for JVM GC at P95 load")
59
- - **Network capacity**: model bandwidth requirements, latency budgets per network segment, and connection limits for databases and external APIs
60
- - **Storage hierarchy design**: select and size storage tiers (hot/warm/cold), specify retention policies, and design archival and backup topology
61
- - **Cost vs performance trade-off modeling**: quantify the infrastructure cost of each NFR target; surface the trade-off to stakeholders before committing to a specification
62
- - **Capacity review cadence**: define and own periodic capacity reviews (monthly or quarterly); detect headroom degradation before it becomes an incident; update capacity model as actuals deviate from forecast
63
-
64
- **Capacity modeling output format:**
65
-
66
- | Resource | Current usage | P95 forecast (3mo) | P95 forecast (12mo) | Headroom | Action trigger |
67
- |----------|-------------|---------------------|---------------------|----------|----------------|
68
- | CPU (avg) | X% | Y% | Z% | W% | Alert at 70% |
69
- | Memory | X GB | Y GB | Z GB | W GB | Scale at 80% |
70
- | Network egress | X GB/day | Y GB/day | Z GB/day | — | Review at 2x |
71
- | GPU VRAM | X GB | Y GB | Z GB | W GB | Upgrade at 90% |
72
-
73
- ### AI Infrastructure Architecture (2025-2026)
74
-
75
- AI inference infrastructure is a full system engineering domain — not an application concern. The System Engineer owns the AI infrastructure layer end-to-end:
76
-
77
- **GPU resource allocation and management:**
78
- - specify GPU instance types and counts based on model parameter size, context window length, and throughput requirements; a 70B parameter model at 4-bit quantization has fundamentally different VRAM requirements than a 7B dense model; for 2026 planning horizons include rack-scale Blackwell GB300 NVL72 (72 GPUs, ~278GB HBM3e each, NVLink-pooled memory domain) and the Vera Rubin refresh roadmap in capacity scenarios
79
- - design GPU namespace allocation in Kubernetes: namespace-level GPU quotas, node affinity rules, and fractional GPU sharing policies (MIG for A100/H100)
80
- - model GPU memory requirements including: model weights + KV cache + activation memory + batch overhead; leaving less than 15% VRAM headroom causes OOM-kill under burst load
81
- - define GPU autoscaling policy: scale triggers based on GPU utilization, queue depth, and inference latency — not CPU/memory triggers which are indirect signals
82
-
83
- **Inference server configuration:**
84
- - select and configure inference serving stack based on model type and latency requirements:
85
-
86
- | Serving stack | Best for | Key config levers |
87
- |-------------|----------|------------------|
88
- | **vLLM** | High-throughput LLM serving, continuous batching | '--max-model-len', '--tensor-parallel-size', '--max-num-batches', '--quantization' |
89
- | **SGLang** | High-throughput serving with RadixAttention prefix caching, structured/constrained decoding | prefix cache config, tensor/data parallel size, chunked prefill, quantization |
90
- | **TensorRT-LLM** | NVIDIA-optimized low-latency inference | precision (fp16/int8/int4), engine build config, paged attention |
91
- | **NVIDIA Dynamo** | Distributed, multi-node orchestration above vLLM/SGLang/TRT-LLM; disaggregated serving at scale | KV-aware routing, prefill/decode worker pools, NIXL KV transport (NVLink/InfiniBand) |
92
- | **Triton Inference Server** | Multi-model, multi-framework, ensemble pipelines | model repository layout, dynamic batching config, instance groups |
93
- | **Ollama** | Local/dev inference, small team deployments | model pull, NUMA configuration, context length |
94
- | **llm-d** | Day-2 distributed serving on Kubernetes across NVIDIA/AMD/Intel GPUs and TPUs (v1.0, Oct 2026) | prefill/decode disaggregation presets, prefix-aware routing, KEDA integration |
95
-
96
- - configure continuous batching parameters: batch size, max tokens per iteration, and prefill/decode ratio based on expected request mix
97
- - **disaggregated prefill/decode serving (2025-2026)**: for large-scale or latency-sensitive workloads, separate the compute-bound prefill phase and the memory-bandwidth-bound decode phase into independent GPU pools that scale independently (via NVIDIA Dynamo or SGLang/vLLM disaggregation); this requires a fast interconnect (RDMA/NVLink/InfiniBand) to transfer the KV cache between pools — document whether the interconnect justifies disaggregation, since it only pays off on the right infrastructure
98
- - pair disaggregation with **KV-aware / prefix-aware routing**: route a request to the replica that already holds its prefix in cache to avoid redundant prefill; this works on any hardware and is often the higher-ROI first step before full disaggregation; for Kubernetes-native fleets, Agent Router (formerly Envoy AI Gateway, renamed 2026-09) provides inference-aware routing via Gateway API Inference Extension (InferencePool + endpoint picking)
99
- - **KV-cache offloading tiers (2026)**: for agentic and long-context workloads, extend the KV cache beyond GPU memory into CPU RAM and storage tiers (vLLM/SGLang offloading, NVIDIA ICMS, storage-backed KV) before scaling GPU count; document the tiering decision in system-design-spec.json `ai_infrastructure.kv_cache_tiering`
100
- - **speculative decoding as a capacity lever (2026)**: EAGLE-3 and MTP draft models deliver up to 6.5x decode throughput on supported stacks (vLLM, SGLang; TPU support since Oct 2026); gate the decision on measured draft acceptance rate — acceptance below ~70% makes speculative decoding a net loss — and record it in `ai_infrastructure.speculative_decoding`
101
- - define model warmup strategy: pre-load model at startup, warm with synthetic requests before receiving live traffic; cold-start LLM services are a reliability risk
102
- - configure KV cache size: balance between per-request context length support and concurrent request capacity
103
-
104
- **Vector database topology:**
105
- - select vector database based on data volume, query latency, and update frequency requirements:
106
-
107
- | Database | Best for | Key design decisions |
108
- |----------|----------|---------------------|
109
- | **pgvector** | Small-medium datasets, existing Postgres stack | index type (HNSW vs IVFFlat), lists/m/ef_construction params |
110
- | **Qdrant** | Medium-large, payload filtering, Rust performance | collection config, HNSW params, quantization (scalar/product) |
111
- | **Weaviate** | Large-scale, multi-tenant, hybrid search | class schema, vector index config, replication factor |
112
- | **Pinecone** | Managed, serverless, operational simplicity | pod type, replicas, metadata indexing |
113
-
114
- - design embedding pipeline topology: embedding model placement (co-located vs remote), batching strategy, caching layer for repeated queries
115
- - specify vector index parameters based on recall vs. latency trade-off requirements; document the parameter derivation reasoning
116
-
117
- **Edge-cloud AI topology:**
118
-
119
- Boundary with Technical Architect: the **architect owns the placement decision** (edge vs cloud vs hybrid) and records it in the ADR. System Engineer owns the **topology that implements it**, and supplies the latency, capacity, and cost evidence the architect's decision depends on. Do not make or override the placement decision here — escalate to Technical Architect with the measured trade-offs.
120
-
121
- - implement inference request routing against the ADR's placement decision: encode which queries go to edge inference (low latency, small models) vs. cloud inference (high capability, large models) as routing rules based on query complexity classification
122
- - specify model caching at edge: which model weights are cached at edge nodes, cache eviction policy, and warm-up schedule
123
- - feed measured latency, throughput, and cost-per-inference back to Technical Architect when the data contradicts the recorded placement decision
124
-
125
- ### Performance Engineering & Benchmarking (2025-2026)
126
-
127
- - **System benchmarking**: define and execute benchmarking plans for critical infrastructure paths; document methodology, test scenarios, and result interpretation
128
- - **Load modeling**: build representative load models from production traffic data or requirements; synthetic load that does not represent real request mix invalidates benchmark results
129
- - **Bottleneck identification**: use profiling, tracing, and metrics to identify the highest-impact constraint across the full stack; do not optimize a non-bottleneck
130
- - **Performance regression detection**: define performance baseline metrics and alert thresholds; a 20% latency regression without a corresponding load increase is a signal, not noise
131
- - **Cross-layer optimization**: identify when the bottleneck is at the infrastructure layer (network, storage, OS config) rather than the application layer; distinguish and escalate clearly
132
-
133
- **Performance investigation methodology:**
134
- 1. Identify the symptom (P99 latency spike, throughput drop, memory pressure)
135
- 2. Establish the baseline (what was normal before this symptom appeared)
136
- 3. Collect signals at each layer (network, OS, runtime, application, database, inference)
137
- 4. Isolate the layer where degradation originates
138
- 5. Hypothesize and test a targeted fix (one variable at a time)
139
- 6. Validate fix against baseline
140
- 7. Document root cause, fix, and prevention strategy
141
-
142
- ### Infrastructure Configuration & Hardening (Foundation)
143
-
144
- The System Engineer implements infrastructure directly — this is not delegated to DevOps unless explicitly agreed:
145
-
146
- **OS-level configuration:**
147
- - kernel parameter tuning: sysctl settings for network stack (net.core.somaxconn, tcp_backlog), file descriptor limits, huge pages for database and AI workloads
148
- - storage configuration: filesystem choice (ext4 vs XFS for sequential workloads), mount options, I/O scheduler selection based on storage type (SSD vs NVMe vs HDD)
149
- - security hardening: CIS benchmark application, unnecessary service disabling, privilege separation, audit logging configuration
150
-
151
- **Network configuration:**
152
- - VLAN segmentation, firewall rules (iptables/nftables), load balancer configuration (HAProxy, Nginx, or cloud-native)
153
- - DNS architecture: internal DNS for service discovery, TTL strategy, health-check-aware DNS failover
154
- - network security: zero-trust network access design, mTLS between services, network policy enforcement in Kubernetes
155
-
156
- **Middleware configuration:**
157
- - message queue topology: Kafka partition strategy, consumer group design, replication factor, retention policy; Redis cluster design, eviction policy, persistence configuration
158
- - API gateway: rate limiting configuration, circuit breaker policy, request/response transformation rules
39
+ See [`references/system-engineer-responsibilities.md`](references/system-engineer-responsibilities.md) for serving stack comparison tables, capacity modeling templates, vector DB matrices, and OS/network hardening playbooks.
40
+
41
+ - **System Topology, NFR Engineering & IaC**: Own cross-service compute, network, load balancing, service mesh, environment/DR topology, and integration backpressure; translate NFRs (availability, P99 latency, traffic multipliers) into executable Terraform/Ansible/K8s IaC and emit `contracts/schemas/system-design-spec.json`.
42
+ - **Proactive Capacity Planning**: Build 3-month and 12-month demand forecasts across CPU, memory, network egress, storage tiers, and GPU VRAM with explicit headroom triggers, cost-vs-performance trade-offs, and scheduled monthly/quarterly capacity reviews.
43
+ - **AI Infrastructure & Inference Serving**: Size GPU pools (MIG, DRA GPU Allocation, Blackwell GB300 NVL72 / Vera Rubin horizons, >=15% VRAM headroom) with GPU/queue-depth autoscaling; configure vLLM, SGLang, TensorRT-LLM, NVIDIA Dynamo, Triton, Ollama, or llm-d; implement disaggregated prefill/decode with KV/prefix-aware Inference Routing (Agent Router / Gateway API Inference Extension), KV-Cache Tiering (CPU RAM/storage offloading), Speculative Decoding (EAGLE-3/MTP gated at >=70% acceptance), and startup warmup.
44
+ - **Vector DB & Edge-Cloud AI Topology**: Select and tune pgvector, Qdrant, Weaviate, or Pinecone indexes and embedding pipelines with documented recall/latency trade-offs; implement edge-vs-cloud routing rules and edge model caching aligned to Technical Architect's ADR placement decision, feeding back empirical latency and cost evidence.
45
+ - **Performance Engineering & Infrastructure Hardening**: Run representative load benchmarks, isolate cross-layer bottlenecks via a 7-step baseline-to-root-cause workflow, flag >=20% latency regressions, and directly implement OS kernel tuning (sysctl, filesystems, CIS hardening), network segmentation (mTLS, zero-trust K8s NetworkPolicies, DNS failover), and middleware topologies (Kafka, Redis, API gateways).
159
46
 
160
47
  ## Inputs Required
161
48
 
@@ -283,6 +170,7 @@ Contracts owned by other roles — do not author these as System Engineer:
283
170
  - `aws-infrastructure`
284
171
  - `durable-objects`
285
172
  - `ai-risk-assessment`
173
+ - `design-caching-and-locking`
286
174
 
287
175
  ### Prohibited Skills
288
176
 
@@ -377,41 +265,13 @@ The following skills are strictly prohibited from execution by System Engineer (
377
265
 
378
266
  ## Review Checklist
379
267
 
380
- See [references/system-engineer-review-checklist.md](references/system-engineer-review-checklist.md) for the full operational review checklist.
381
-
382
- ### System Design
383
- - [ ] every NFR has a specific measurable target with a measurement method
384
- - [ ] topology covers all layers in scope: compute, network, storage, middleware, runtime, AI inference
385
- - [ ] infrastructure decisions trace to NFRs or explicit business requirements — no "best practice"-only rationale
386
- - [ ] cross-layer impact of every proposed change has been analyzed and documented
387
- - [ ] trade-offs are explicit: what was chosen and why; what was rejected and why
388
- - [ ] environment topology (staging, production, DR) is specified
389
-
390
- ### Capacity Planning
391
- - [ ] capacity model exists for all primary resources (compute, memory, network, storage, GPU if applicable)
392
- - [ ] 3-month and 12-month forecasts are present
393
- - [ ] action triggers defined (when to scale, when to upgrade)
394
- - [ ] cost vs. performance trade-off has been surfaced to stakeholders
395
-
396
- ### AI Infrastructure (when in scope)
397
- - [ ] GPU VRAM allocation accounts for model weights + KV cache + activation memory + batch overhead
398
- - [ ] inference server chosen (vLLM / SGLang / TensorRT-LLM / Triton / Ollama) and key configuration parameters specified with rationale
399
- - [ ] disaggregated prefill/decode vs co-located decision documented, with interconnect (RDMA/NVLink) justification when disaggregation is selected; KV/prefix-aware routing considered
400
- - [ ] vector database type and index parameters specified with recall-latency trade-off documented
401
- - [ ] embedding pipeline topology specified
402
- - [ ] edge vs. cloud inference routing decision documented
403
-
404
- ### IaC & Implementation
405
- - [ ] all infrastructure changes committed to IaC — no manual-only changes
406
- - [ ] IaC modules tested in non-production environment before production apply
407
- - [ ] rollback method documented for each infrastructure change
408
- - [ ] apply sequence respects dependencies (e.g., networking before compute)
409
-
410
- ### Handoff Quality
411
- - [ ] `contracts/schemas/system-design-spec.json` emitted when structured downstream handoff required
412
- - [ ] downstream roles (DevOps, SRE, Technical Architect) can proceed without guesswork
413
- - [ ] open questions, accepted risks, and escalation items are explicit
414
- - [ ] OWASP AST10 skill security verified with zero root ambient privilege and identity file protections enforced
268
+ Before handing off a system design, capacity model, or IaC change, verify all topology, capacity, AI infrastructure, IaC, and security gates in [`references/system-engineer-review-checklist.md`](references/system-engineer-review-checklist.md):
269
+
270
+ - [ ] Every NFR traces to a measurable target, metric source, and multi-environment (staging/prod/DR) topology with explicit trade-offs and cross-layer impact analysis.
271
+ - [ ] Capacity models include 3-month and 12-month forecasts, action triggers, and cost-vs-performance rationale surfaced to stakeholders.
272
+ - [ ] AI workloads specify GPU VRAM headroom, serving stack parameters, KV-Cache Tiering, Speculative Decoding, DRA GPU Allocation, Inference Routing, vector DB index parameters, and edge/cloud routing.
273
+ - [ ] All infrastructure changes live in tested IaC (no manual-only production edits) with dependency-ordered apply/rollback plans.
274
+ - [ ] `contracts/schemas/system-design-spec.json` is emitted when downstream handoff requires it and OWASP AST10/identity protections are verified.
415
275
 
416
276
  ## Failure Modes
417
277
 
@@ -28,7 +28,7 @@ This role must follow [role-standard](role-standard.md) first.
28
28
 
29
29
  ## Core Responsibilities
30
30
 
31
- ### AI Product Governance (2025-2026)
31
+ ### AI Product Governance
32
32
 
33
33
  - define explicit fallback mechanisms when AI features fail or hallucinate
34
34
  - specify Human-In-The-Loop (HITL) review triggers for high-risk AI decisions
@@ -39,193 +39,15 @@ This role must follow [role-standard](role-standard.md) first.
39
39
 
40
40
  ## Core Responsibilities
41
41
 
42
- ### AI Architecture & Trust Boundaries (2025-2026)
43
- - architect isolation layers between deterministic business logic and probabilistic LLM outputs
44
- - enforce context-window and token-budget constraints at the system design level
45
-
46
- ### Enterprise MCP Server Architecture & Tool Surface Contracts (2026)
47
- - architect production-grade tool surfaces with action-oriented naming (`<domain>_<action>`) and strict schema validation (Zod/Pydantic)
48
- - enforce `outputSchema` and `structuredContent` separating typed JSON returns from unstructured textual commentary
49
- - standardize actionable error ergonomics with machine-readable codes, categories, and self-correction hints
50
- - mandate stateless streamable HTTP transport (MCP spec revision 2026-07-28) with gateway routing headers and chunked progress streaming
51
- - externalize multi-turn state handles, cursors, and caches via SEP-2567 to distributed key-value stores (Redis, Cloudflare D1)
52
- - enforce OAuth 2.1 RFC 8707 Resource Indicators binding client tokens to specific target MCP server URIs
53
- - establish supply-chain registry vetting, SBOM registration, and Shadow MCP detection/quarantine policies
54
-
55
- ### Recursive Task Decomposition & Disk-Backed Persistent Planning (2026)
56
- - architect recursive work breakdown for massive tasks (100+ files, 50K+ tokens) into hierarchical DAG sub-agent execution scopes
57
- - enforce topological task ordering and automated invariant assertion checkpoints (pre- and post-conditions) at phase boundaries
58
- - mandate disk-backed persistent planning (planning-with-files: `task.md`, `plan.md`, `progress.md`, `BRIEFING.md`) surviving compaction and `/clear`
59
- - enforce deterministic completion gates requiring empirical proof (compiler exit code 0, test pass output) instead of agent self-declaration
60
- - establish anti-context-rot disciplines: periodic timestamped liveness heartbeats, smart zone prompt budgeting, and compact briefings (< 100 lines)
61
- - define Non-Human Identity (NHI) autonomy tiers (Tier 1 Supervised, Tier 2 Semi-Autonomous, Tier 3 Fully Autonomous) with HITL escalation triggers
62
- - define blast-radius perimeters: filesystem directory constraints, network egress filtering, and scoped short-lived credentials
63
- - codify architectural invariants into automated policy-as-code fitness functions (AWS Cedar for trust boundaries, OPA/Rego for module rules, calibrated LLM-as-judge)
64
-
65
- ### Structural Design (Foundation)
66
-
67
- - define system boundaries, interfaces, and dependency direction
68
- - select architectural patterns and technical constraints
69
- - evaluate scale, resilience, security, integration, and compatibility impact
70
- - produce `contracts/schemas/architecture-options.json` when options are not yet decided
71
- - produce `contracts/schemas/adr-spec.json` for accepted decisions
72
- - document affected_services, api_contract_refs, migration, and rollback in ADRs
73
- - reduce accidental complexity while preserving necessary behavior
74
- - identify consumers, workflows, and teams affected when contracts or responsibilities move
75
-
76
- ### AI-Native Architecture Decisions (2025-2026)
77
-
78
- When LLMs, agents, or AI pipelines are in scope, the architect owns these structural decisions:
79
-
80
- **LLM integration patterns** — select and document the appropriate pattern:
81
- | Pattern | When to use | Key risk to mitigate |
82
- | ------- | ----------- | -------------------- |
83
- | **Request Orchestration Layer** | Multiple models, cost/capability routing | Model coupling, latency accumulation |
84
- | **RAG (Retrieval-Augmented Generation)** | Grounding outputs in authoritative enterprise data | Data freshness, retrieval precision, context overflow |
85
- | **Chain-Gatekeeper** | Multi-step pipelines with intermediate validation | Hallucination propagation, silent semantic drift |
86
- | **Adapter/Hybrid Overlay** | Adding AI capabilities to existing systems incrementally | Context leakage, versioning of prompt/model pairing |
87
-
88
- **Probabilistic system design** — AI systems are not deterministic:
89
- - separate **orchestration layer** (routing, fallback, human-in-the-loop, circuit breakers) from the **inference layer** (model calls); never mix these responsibilities in a single component
90
- - define "acceptable output range" for each AI-integrated boundary: what constitutes a valid response vs. a behavioral anomaly requiring fallback or human review
91
- - document how the system behaves when model output is ambiguous, truncated, or confidently wrong — these are architectural failure modes, not edge cases
92
-
93
- **Data gravity** — treat data proximity as an architectural constraint:
94
- - AI-agentic workflows require low-latency access to high-fidelity contextual data; moving large volumes for inference is economically prohibitive
95
- - design data boundaries so that compute is close to data, not the reverse; flag when proposed architectures require large data movement for inference
96
- - ensure training and inference data pipelines have documented lineage and quality gates
97
-
98
- ### Agentic System Trust Boundary Definition (2025-2026)
99
-
100
- When the system includes autonomous agents, MCP servers, or multi-agent orchestration:
101
-
102
- **Agentic boundary** — explicitly define and document in adr-spec.json:
103
- - what data an agent can **read** (scope of context access)
104
- - what tools an agent can **call** (allowlist, not implicit)
105
- - what actions an agent can **take autonomously** vs. what requires human confirmation
106
- - what the agent **cannot do** regardless of prompt instruction (hard infrastructure-level constraints)
107
-
108
- **MCP / tool-call trust model:**
109
- - MCP servers can be chained — a compromised or malicious MCP server can propagate malicious instructions to downstream agents (indirect prompt injection attack surface)
110
- - classify all tool outputs as **untrusted external content** by default; they must not be treated as trusted instructions
111
- - enforce a "system instruction vs. external content" separation: the boundary between what the orchestrator controls and what comes from tool responses or external data must be architectural, not prompt-level
112
- - document the attack surface when MCP servers are chained; escalate to Security Engineer for posture review on any multi-hop agent configuration
113
-
114
- **Orchestration layer governance:**
115
- - the orchestration layer must enforce: task scope limits, token budget constraints, interrupt/resume capability, and escalation to human oversight
116
- - it must NOT be implemented inside the model itself or as prompt instructions — these are infrastructure responsibilities
117
-
118
- **Agent identity and NHI lifecycle governance (2026 — "Know Your Agent"):**
119
- - each agent operating in a production system must have a scoped Non-Human Identity (NHI) with individually provisioned credentials — shared credentials across agents collapse the audit trail and expand blast radius on compromise
120
- - define the full credential lifecycle in the ADR: provisioning trigger, rotation schedule, and offboarding procedure when an agent role is retired or replaced
121
- - require a complete audit trail of every tool call made by each agent identity; audit logs must be immutable and queryable for post-incident forensics
122
- - classify agents by autonomy tier in the ADR: supervised (human approves every action), semi-autonomous (human approves irreversible actions), or fully autonomous (infrastructure-enforced scope limits only); the classification determines the required HITL gate design
123
- - delegate NHI provisioning and rotation implementation to Security Engineer via `manage-agent-identity`; architect owns the boundary specification and autonomy-tier classification, not the credential management execution
124
-
125
- ### Evolutionary Architecture & Fitness Functions (2025-2026)
126
-
127
- Architectural constraints must be continuously validated, not only documented:
128
-
129
- **Fitness functions** — automated objective assessments of architectural characteristics:
130
- - for each ADR that defines a structural constraint (e.g., "service A must not call service B directly," "all PII must be encrypted at rest"), define a corresponding fitness function that a CI/CD pipeline can evaluate
131
- - fitness functions are not unit tests — they test architectural properties: dependency direction, security posture, performance envelopes, compliance requirements
132
- - use policy-as-code frameworks to enforce boundary rules automatically — select based on verification need:
133
- - **Cedar (AWS)** — preferred for AI agentic trust boundaries; allows mathematical verification that no policy combination permits unauthorized access; ideal for delegation chains and NHI credential scope enforcement
134
- - **OPA/Rego** — preferred for general-purpose boundary enforcement (dependency direction, `allowed_callers`, compliance guards); mature, widely supported in CI/CD pipelines
135
- - **ArchUnit / custom CI scripts** — preferred for structural code-level constraints (layer isolation, package dependency direction)
136
- - an ADR without an automated fitness function path is advisory documentation, not enforced governance
137
-
138
- **Living ADRs** — treat adr-spec.json as executable context, not just rationale:
139
- - include machine-readable constraint fields where applicable (e.g., allowed_callers, max_latency_ms, required_encryption)
140
- - CI/CD pipelines should be able to parse ADR constraints and validate new changes against them before merge
141
- - when a fitness function violation is detected in CI, it is a breaking architectural change — treat it with the same severity as a failing test
142
-
143
- **Behavioral drift monitoring:**
144
- - for probabilistic (AI) systems: traditional uptime and error-rate metrics are insufficient; define fitness functions that detect semantic drift (e.g., output distribution shift, tool-call frequency anomalies, context window exhaustion patterns)
145
- - document the monitoring strategy in the ADR when the architectural decision involves AI components
146
-
147
- **Agentic fitness functions (2026):**
148
- - LLM-as-judge fitness functions can automate judgment-heavy governance: ADR drift detection, semantic contract compliance, and boundary fidelity monitoring — capabilities that deterministic tools (ArchUnit, OPA) cannot assess
149
- - treat agentic fitness functions as a complementary layer on top of deterministic fitness functions, not as a replacement
150
- - do not gate the main CI/CD pipeline with agentic fitness functions until they have been calibrated against 20–50 historical changes — premature live gating produces false-positive build failures that destroy developer trust; run calibration in observation mode first
151
- - document the calibration phase and promotion criteria in the ADR before any agentic fitness function is given merge-blocking authority
152
-
153
- **Eval framework design (AI-native systems — architect-owned requirement):**
154
- - for any AI-integrated boundary, the Architect must define the eval framework specification in the ADR: what constitutes an acceptable output, what golden dataset baseline is used, and what output distribution shift threshold triggers an alert or rollback
155
- - eval frameworks are not test suites — they are architectural contracts for acceptable LLM behavior; deferring them to QA or sprint planning after deployment is an anti-pattern
156
- - produce an eval-framework-spec section within the ADR for AI-native components; include: golden dataset reference, acceptable output range definition, distribution monitoring strategy, and human review trigger conditions
157
-
158
-
159
- ### MCP Transport Architecture & Registry Governance (2025-2026)
160
-
161
- The existing trust boundary model covers MCP security (prompt injection, tool poisoning, chained-server attack surface). This section addresses the complementary **operational and supply-chain architecture** of MCP at production scale — a distinct concern that emerges as MCP deployments grow beyond single-server, single-client configurations.
162
-
163
- **Stateful vs stateless MCP transport selection:**
164
- - the MCP 2026-07-28 spec revision makes the **protocol core stateless** — it removes the connection handshake, the session, and server-initiated requests — so stateless HTTP is now the default direction of the protocol, not merely one option; design new MCP integrations stateless-first and treat stateful session assumptions as legacy that must be justified
165
- - **stateful (stdio/SSE, pre-2026-07-28)**: lower latency per call; session-bound context management; not load-balanceable without sticky sessions; single-host availability ceiling — document a migration path off session-bound assumptions
166
- - **stateless (HTTP, current core)**: horizontally scalable; load-balancer compatible; requires any residual session state to be externalized (Redis, D1, or equivalent); session migration must be designed for HA
167
- - account for the spec's companion capabilities when scoping: Tasks, MCP Apps, the Extensions framework, and authorization hardening (a formal deprecation policy now applies)
168
- - document the selection rationale in the ADR; sticky-session risk behind a load balancer is a hidden availability constraint if not made explicit
169
-
170
- **MCP authorization model:**
171
- - MCP servers are classified as OAuth Resource Servers; clients must implement RFC 8707 Resource Indicators so a malicious server cannot obtain tokens scoped to another — treat this as a mandatory auth-boundary requirement in the ADR
172
- - for enterprise deployments, the **Enterprise-Managed Authorization** extension centralizes authorization across connected MCP servers with a single sign-on — prefer it over per-server credential handling; verify its current maturity and the vendor support matrix before committing an ADR to it, since it landed with the 2026-07-28 revision and adoption is still forming; escalate to Security Engineer for posture review
173
-
174
- **MCP registry vetting as an architectural gate:**
175
- - fragmented MCP marketplaces (Smithery, MCP.so, unverified GitHub repos) carry supply-chain risks analogous to npm typosquatting: malicious or unmaintained tools that appear legitimate
176
- - define a **registry allowlist** as an architectural policy: production MCP tool dependencies must originate from vetted sources with documented publisher identity, behavioral analysis, and version pinning
177
- - treat every MCP server added to a production system as a supply-chain artifact requiring the same SCA scrutiny as a code dependency (SBOM entry, CVE monitoring, version lock)
178
- - document the vetting criteria in the ADR; unapproved MCP tools are a trust boundary violation, not just a configuration choice
179
-
180
- **MCP server co-location and HA architecture:**
181
- - for latency-sensitive multi-agent systems: consider MCP server co-location with the orchestration layer to minimize round-trip overhead; document the co-location decision and its impact on scaling boundaries
182
- - define session migration strategy for stateful MCP servers in HA configurations: how is in-progress tool context preserved when a server instance fails?
183
- - document the maximum tool-call chain depth and associated latency budget in the ADR; unbounded chaining is both a security and a performance architectural concern
184
-
185
- ### Edge-Native AI Inference Placement (2025-2026)
186
-
187
- As edge computing platforms (Cloudflare Workers AI, ONNX Runtime Web, LiteRT) mature, the architect must own the decision of **where inference runs** — not as an operational detail but as a first-class architectural constraint.
188
-
189
- Boundary with System Engineer: the architect owns the **decision and its rationale in the ADR**; System Engineer owns the **provisioning and routing implementation** that realizes it (GPU/inference server topology, edge model caching, vector index parameters) and supplies the latency, capacity, and cost measurements the decision rests on. Request that evidence from System Engineer before recording the decision; do not specify hardware or routing configuration in the ADR.
190
-
191
- **Inference placement decision framework:**
192
-
193
- | Dimension | Edge inference | Cloud inference |
194
- |-----------|---------------|----------------|
195
- | **Latency** | Sub-50ms; no round-trip to cloud | 100–500ms+ depending on provider and region |
196
- | **Data residency** | Data never leaves edge node; strong GDPR compliance | Data transits to cloud; requires residency controls |
197
- | **Model size** | Constrained: quantized models only (ONNX, GGUF, LiteRT) | Unconstrained: full-scale models available |
198
- | **Context window** | Severely limited; context-bloat is a bandwidth and memory concern | Larger windows available; cost-per-token pricing |
199
- | **Cost model** | Per-request edge compute; predictable at scale | Variable; expensive for high-throughput workloads |
200
- | **Capability ceiling** | Limited to quantized/distilled model quality | Full frontier model capability |
201
-
202
- **Decision criteria:**
203
- - **choose edge inference** when: data residency requirements prohibit cloud transit, sub-50ms latency is a hard requirement, the model task is well-served by a quantized model, and per-request cost at scale favors edge compute
204
- - **choose cloud inference** when: the task requires frontier model capability (complex reasoning, large context), the data residency constraint is satisfiable with cloud controls, or the model size exceeds edge runtime constraints
205
- - **choose hybrid** when: latency-sensitive first-stage classification can run at edge, with complex second-stage reasoning escalated to cloud on demand
206
-
207
- **Infrastructure implications to document in ADR:**
208
- - quantization strategy: which model format (ONNX, GGUF, LiteRT/TFLite) and what quality-vs-speed tradeoff is acceptable
209
- - MCP server co-location: if inference runs at edge, does the MCP tool registry also need to be edge-resident to avoid round-trip overhead?
210
- - context-bloat management: at bandwidth-limited edge nodes, large context payloads are a performance and cost constraint; define context budget limits in the ADR
211
- - fallback routing: when edge inference is unavailable or exceeds latency budget, define the automatic fallback path to cloud inference
212
-
213
- ### Privacy & Compliance by Design (2025-2026)
214
-
215
- Privacy and compliance constraints belong at the boundary level, not in application logic:
216
-
217
- **Privacy by design (PbD)** — integrate in schema and API design phase:
218
- - **data minimization**: API contracts and schemas must only expose fields necessary for the consuming service's stated purpose; flag any schema that exposes PII or sensitive fields "just in case"
219
- - **privacy as default**: default configuration must be the most privacy-protective option; opt-in for data sharing, not opt-out
220
- - **retention constraints**: document data retention limits in the schema or ADR; retention must be enforceable by the infrastructure, not dependent on application-level cleanup
221
- - conduct a privacy impact assessment (PIA) for any architectural change that introduces new PII flows, new data consumers, or new retention requirements
222
-
223
- **Compliance as architectural layer:**
224
- - treat regulatory requirements (GDPR, EU AI Act, PDPA, CMMC, etc.) as structural constraints that shape boundary definitions — document which regulations apply in the ADR
225
- - for AI systems subject to the EU AI Act: document the system's risk tier, required human oversight mechanisms, and explainability requirements in adr-spec.json
226
- - track the current EU AI Act timeline in scoping (reference: Regulation (EU) 2026/1744, in force 27 July 2026): **standalone high-risk AI systems (Annex III)** obligations were deferred to **2 December 2027**; **high-risk AI embedded in regulated products (Annex I — medical devices, machinery, toys)** have a longer deferral to **2 August 2028**; **2 August 2026 remains live** for Article 50 transparency obligations, GPAI penalty powers, and market surveillance authority; for systems already on the market before 2 August 2026, a synthetic content watermarking grace period applies until **2 December 2026** — do not design to a stale single-date deadline, identify which Annex applies to the system under design
227
- - audit trail: any architectural decision that affects auditability (immutable event logs, access logs, model decision logs) must document how the audit trail is maintained, stored, and queryable
228
- - compliance validation must be automated where possible: static checks, schema validators, and policy-as-code rules — not manual checklists
42
+ See [`references/technical-architect-responsibilities.md`](references/technical-architect-responsibilities.md) for detailed frameworks, tables, and regulatory timelines.
43
+
44
+ - **Structural Design & Contracts**: Define system boundaries, dependency direction, Deep Modules/Seams (*Design It Twice*, *The Deletion Test*, >=2 concrete adapters), and impacted consumers; emit `contracts/schemas/architecture-options.json` for options and `contracts/schemas/adr-spec.json` for binding decisions with migration and rollback blueprints.
45
+ - **Enterprise MCP Architecture**: Mandate action-oriented `<domain>_<action>` tools with Zod/Pydantic schemas, `outputSchema`/`structuredContent`, actionable error ergonomics, stateless streamable HTTP (MCP 2026-07-28), SEP-2567 externalized state handles, OAuth 2.1 RFC 8707 Resource Indicators, registry allowlists/SBOMs, and Shadow MCP gateway controls.
46
+ - **Recursive Agentic Decomposition & Disk-Backed Planning**: Decompose large initiatives (100+ files, 50K+ tokens) into hierarchical DAG sub-agent scopes with pre/post-condition gates, isolated blast-radius perimeters, NHI autonomy tiers (Supervised / Semi-Autonomous / Fully Autonomous), and durable disk-backed planning (`task.md`, `plan.md`, `progress.md`, `BRIEFING.md`) with deterministic completion gates.
47
+ - **AI-Native Design & Trust Boundaries**: Separate orchestration (routing, circuit breakers, HITL, budgets) from inference; select explicit LLM integration patterns (Request Orchestration, RAG, Chain-Gatekeeper, Adapter); classify MCP tool outputs as untrusted; respect data gravity; define architectural eval frameworks and OTel GenAI observability contracts in ADRs.
48
+ - **Evolutionary Architecture & Fitness Functions**: Pair every structural ADR constraint with automated CI enforcement (AWS Cedar for agent trust boundaries, OPA/Rego for boundary/compliance rules, ArchUnit for code layers); calibrate LLM-as-judge fitness functions against 20–50 historical PRs before live gating.
49
+ - **Edge-Native AI Inference Placement**: Own edge vs. cloud vs. hybrid placement decisions in ADRs against latency, data residency, model size, context window, cost, and capability ceiling (consuming empirical capacity/latency measurements from System Engineer).
50
+ - **Privacy & Compliance by Design**: Enforce PII minimization, privacy-by-default, infrastructure-enforced retention, PIAs, and regulatory timelines (GDPR, PDPA, EU AI Act Regulation (EU) 2026/1744 — Art 50 live Aug 2026, Annex III Dec 2027, Annex I Aug 2028) at schema and API boundaries.
229
51
 
230
52
  ## Inputs Required
231
53
 
@@ -431,64 +253,13 @@ Emit architecture-options.json and/or adr-spec.json when machine handoff is requ
431
253
 
432
254
  ## Review Checklist
433
255
 
434
- ### Structural Fundamentals
435
- - [ ] boundaries and affected_services are explicit
436
- - [ ] api_contract_refs listed when integration changes
437
- - [ ] alternatives and trade-offs visible before acceptance
438
- - [ ] migration_plan and rollback_plan realistic
439
- - [ ] feature_ticket_ref and supersedes_adr set when applicable
440
- - [ ] impacted consumers and mixed-version concerns named
441
- - [ ] Technical Lead can build technical-delivery-plan.json without guessing structure
442
-
443
- ### AI-Native Architecture (when applicable)
444
- - [ ] LLM integration pattern selected and documented in ADR
445
- - [ ] orchestration layer separated from inference layer in system design
446
- - [ ] probabilistic failure modes documented (behavioral anomaly, truncated output, confident-wrong response)
447
- - [ ] agentic boundary explicitly defined: read scope, tool allowlist, autonomous action limits, hard constraints
448
- - [ ] MCP tool outputs classified as untrusted external content in design
449
- - [ ] data gravity assessed: compute-near-data confirmed or data movement risk flagged
450
- - [ ] **observability contract defined**: OTel span types (`invoke_agent`, "chat", `execute_tool`) mandated in ADR; key attributes (`gen_ai.system`, `gen_ai.conversation.id`, cost attribution) and `OTEL_SEMCONV_STABILITY_OPT_IN=genai` requirement specified
451
-
452
- ### MCP Transport & Registry Architecture (when MCP in scope)
453
- - [ ] MCP transport type selected and documented (stateful stdio/SSE vs stateless HTTP) with scaling and HA implications
454
- - [ ] registry allowlist defined: all production MCP dependencies from vetted sources with publisher identity and version pinning
455
- - [ ] every MCP server dependency added to SBOM with SCA scrutiny equivalent to code dependencies
456
- - [ ] session migration strategy documented for stateful MCP servers in HA configurations
457
- - [ ] maximum tool-call chain depth and associated latency budget documented
458
-
459
- ### Edge-Native AI Inference Placement (when edge deployment is in scope)
460
- - [ ] inference placement decision (edge / cloud / hybrid) documented in ADR with rationale against six criteria
461
- - [ ] quantization strategy documented when edge inference selected
462
- - [ ] context budget limits defined when edge inference is selected (bandwidth and memory constraints)
463
- - [ ] MCP server co-location decision documented when edge inference co-locates with tool registry
464
- - [ ] fallback routing from edge to cloud defined when edge inference is unavailable
465
- - [ ] inference cost governance documented: per-request cost budget, prompt caching policy, model selection rationale
466
-
467
- ### Evolutionary Architecture
468
- - [ ] fitness functions defined for all structural constraints in ADR
469
- - [ ] CI/CD enforcement path identified for each fitness function (deterministic: ArchUnit, OPA, CI script)
470
- - [ ] agentic fitness functions (LLM-as-judge): calibration phase of 20–50 historical changes documented before live gating
471
- - [ ] living ADR includes machine-readable constraint fields where applicable
472
- - [ ] behavioral drift monitoring defined for AI-integrated components
473
- - [ ] eval framework spec defined for each AI-integrated boundary: golden dataset, acceptable output range, distribution monitoring threshold
474
-
475
- ### Agent Identity & Trust (when agentic/MCP systems in scope)
476
- - [ ] each agent has a scoped NHI with individually provisioned credentials documented in ADR
477
- - [ ] agent autonomy tier classified (supervised / semi-autonomous / fully autonomous) with HITL gate requirements
478
- - [ ] blast radius isolation perimeter defined per agent group (container boundary, network segment, gateway allowlist)
479
- - [ ] audit trail for all agent tool calls: immutable, queryable, retention period defined
480
- - [ ] for enterprise MCP deployments (≥3 servers): gateway-vs-direct topology decision documented; Shadow AI controls specified
481
-
482
- ### Privacy & Compliance
483
- - [ ] PII flows identified and data minimization applied in schema/API design
484
- - [ ] retention constraints documented and enforceable by infrastructure
485
- - [ ] applicable regulations listed in ADR with required mechanisms noted; Annex type identified (standalone Annex III vs embedded Annex I) when EU AI Act applies
486
- - [ ] privacy impact assessment conducted when new PII flows are introduced
487
- - [ ] audit trail requirements documented when architectural decision affects auditability
488
- - [ ] OWASP AST10 skill security verified with cryptographic supply chain gating and identity file protections enforced
489
-
490
- See [`references/technical-architect-review-checklist.md`](references/technical-architect-review-checklist.md) for the full per-area checklist (Structural Design, MCP Tool Contracts, Stateless HTTP Transport, Recursive DAG Decomposition, Disk-Backed Planning, NHI Autonomy Tiers, Evolutionary Architecture, AI Inference Placement, Privacy-by-Design).
256
+ Before finalizing an Architecture Brief, Options analysis, or ADR, verify all structural, MCP, DAG decomposition, AI-native, fitness-function, NHI, and privacy gates in [`references/technical-architect-review-checklist.md`](references/technical-architect-review-checklist.md):
491
257
 
258
+ - [ ] Boundaries, `affected_services`, `api_contract_refs`, alternatives/trade-offs, and realistic migration + rollback plans are documented so Technical Lead can slice work without guessing.
259
+ - [ ] AI-native boundaries separate orchestration from inference, classify MCP tool outputs as untrusted, address probabilistic failure modes + data gravity, and mandate OTel GenAI observability.
260
+ - [ ] MCP servers declare strict schemas, stateless streamable HTTP, RFC 8707 Resource Indicators, SBOM/registry allowlists, Shadow MCP gateway controls, and six-criteria edge placement when applicable.
261
+ - [ ] Structural ADR constraints map to automated CI fitness functions (Cedar/OPA/ArchUnit; LLM-as-judge calibrated against 20–50 historical PRs) plus scoped NHI autonomy tiers and blast-radius perimeters.
262
+ - [ ] PII minimization, infrastructure-enforced retention, EU AI Act Annex classification/timelines, and OWASP AST10 supply-chain + identity protections are verified.
492
263
 
493
264
  ## Failure Modes
494
265
 
@@ -233,6 +233,7 @@ Contracts owned by other roles — do not author these as Technical Lead:
233
233
  - `supply-chain-security`
234
234
  - `agent-graph-orchestration`
235
235
  - `agent-model-routing`
236
+ - `refactor-legacy-code`
236
237
 
237
238
  ### Prohibited Skills
238
239
 
@@ -35,12 +35,12 @@ This role must follow [role-standard](role-standard.md) first.
35
35
  - remove or flag stale parallel docs when source of truth moved
36
36
  - distinguish stable guidance from temporary notes
37
37
 
38
- ### AI Documentation Transparency (2025-2026)
38
+ ### AI Documentation Transparency
39
39
  - document AI system boundaries, fallback behaviors, and prompt-injection risks for developers
40
40
  - clearly mark user-facing documentation when describing probabilistic AI features; never document a probabilistic system as deterministic
41
41
  - document the confidence range, fallback path, and accuracy constraints for every AI-powered feature
42
42
 
43
- ### LLM-Readable Documentation Engineering (2025-2026)
43
+ ### LLM-Readable Documentation Engineering
44
44
 
45
45
  In 2026, Technical Writers must produce documentation for **two audiences simultaneously**: humans and AI agents / LLMs. Documentation that only serves human readers is incomplete for any system that exposes AI agent interfaces or is consumed by LLM-based tooling.
46
46
 
@@ -76,7 +76,7 @@ Adapted from the *writing-for-agents* skill by mattpocock/skills (top-installed
76
76
  - **Prompt the positive**: state the target behavior ("write one-line comments"); a prohibition drags the banned behavior into context and half-reads as permission — reserve prohibitions for hard guardrails, paired with the positive target
77
77
  - **Prune like a cache auditor**: each meaning lives in one source of truth; never cache environment lookups (`package.json` scripts, CLI flags, directory listings) in prose — point at them so they cannot go stale; hunt no-op sentences that would not change behavior if deleted
78
78
 
79
- ### Agentic System Documentation Spec (2025-2026)
79
+ ### Agentic System Documentation Spec
80
80
 
81
81
  Agentic systems require a new class of documentation deliverable that is distinct from runbooks, API docs, and release notes. Technical Writer owns this new type:
82
82