@vesviet/agent-skills 5.6.0 → 5.7.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 (184) hide show
  1. package/INDEX.md +5 -5
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +12 -12
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/README.md +1 -1
  10. package/core/contracts/schemas/api-contract-spec.json +191 -191
  11. package/core/contracts/schemas/data-pipeline-spec.json +1 -1
  12. package/core/contracts/schemas/design-tokens-spec.json +19 -0
  13. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  14. package/core/contracts/schemas/pull-request-spec.json +338 -338
  15. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  16. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  17. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  18. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  19. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  20. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  21. package/core/contracts/schemas/security-audit.json +143 -12
  22. package/core/contracts/schemas/system-design-spec.json +9 -1
  23. package/core/contracts/schemas/test-report.json +530 -530
  24. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  25. package/core/roles/ai-systems-engineer.md +31 -18
  26. package/core/roles/aws-engineer.md +33 -29
  27. package/core/roles/backend-developer.md +6 -4
  28. package/core/roles/content-manager.md +7 -7
  29. package/core/roles/data-engineer.md +39 -36
  30. package/core/roles/qa-engineer.md +18 -18
  31. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  32. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  33. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  34. package/core/roles/references/content-manager-governance-standards.md +2 -2
  35. package/core/roles/references/content-manager-review-checklist.md +7 -1
  36. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  37. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  38. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  39. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  40. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  41. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  42. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  43. package/core/roles/security-engineer.md +35 -5
  44. package/core/roles/solution-architect.md +7 -7
  45. package/core/roles/system-engineer.md +470 -465
  46. package/core/roles/ui-ux-designer.md +17 -3
  47. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  48. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  49. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  50. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  51. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  52. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  53. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  54. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  55. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  56. package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
  57. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  58. package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
  59. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  60. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  61. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  62. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  63. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  64. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  65. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  66. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  67. package/core/skills/content/audit-content/SKILL.md +3 -2
  68. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  69. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  70. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  71. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  72. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  73. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  74. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  75. package/core/skills/content/write-article/SKILL.md +6 -5
  76. package/core/skills/content/write-copy/SKILL.md +3 -2
  77. package/core/skills/document/pptx/SKILL.md +1 -0
  78. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  79. package/core/skills/document/pptx/scripts/clean.py +0 -0
  80. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  81. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  82. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  83. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  84. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  85. package/core/skills/foundation/design-review/SKILL.md +11 -1
  86. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  87. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  88. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  89. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  90. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  91. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  92. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  93. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  94. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  95. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  96. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  97. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  98. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  99. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  100. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  101. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  102. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  103. package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
  104. package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
  105. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  106. package/core/skills/platform/system-design/SKILL.md +7 -0
  107. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  108. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  109. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  110. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  111. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  112. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  113. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  114. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  115. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  116. package/core/skills/platform/web-perf/SKILL.md +151 -151
  117. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  118. package/core/skills/product/build-story-map/SKILL.md +104 -104
  119. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  120. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  121. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  122. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  123. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  124. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  125. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  126. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  127. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  128. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  129. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  130. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  131. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  132. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  133. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  134. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  135. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  136. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  137. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  138. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  139. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  140. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  141. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  142. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  143. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  144. package/core/skills/security-data/security-audit/SKILL.md +126 -119
  145. package/core/workflows/add-new-feature.md +212 -212
  146. package/core/workflows/agent-a2a-delegation.md +142 -142
  147. package/core/workflows/bug-fix.md +147 -147
  148. package/core/workflows/build-deploy.md +208 -208
  149. package/core/workflows/code-review.md +137 -137
  150. package/core/workflows/curriculum-delivery.md +1 -1
  151. package/core/workflows/dependency-upgrade.md +193 -193
  152. package/core/workflows/feature-delivery.md +149 -149
  153. package/core/workflows/hotfix-production.md +172 -172
  154. package/core/workflows/qa-validation.md +231 -231
  155. package/core/workflows/refactoring.md +154 -154
  156. package/core/workflows/revert-deployment.md +147 -147
  157. package/core/workflows/security-incident-response.md +191 -191
  158. package/core/workflows/seo-content-lifecycle.md +91 -91
  159. package/core/workflows/service-review-release.md +223 -223
  160. package/core/workflows/setup-new-service.md +214 -214
  161. package/core/workflows/tech-repo-review.md +245 -245
  162. package/core/workflows/troubleshooting.md +241 -241
  163. package/overlays/astro-cloudflare/README.md +93 -93
  164. package/overlays/data-analyst-stack/README.md +109 -109
  165. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  166. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  167. package/overlays/ecommerce-microservices/README.md +65 -65
  168. package/overlays/go-microservices/README.md +78 -78
  169. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  170. package/overlays/laravel-filament/README.md +90 -90
  171. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  172. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  173. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  174. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  175. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  176. package/overlays/r3f-stack/README.md +89 -89
  177. package/overlays/r3f-stack/rules/stub.md +43 -43
  178. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  179. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  180. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  181. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  182. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  183. package/package.json +2 -2
  184. package/core/README.md +0 -53
@@ -1,160 +1,160 @@
1
- ---
2
- name: write-product-brief
3
- description: Write or refine a product brief that makes user value, business outcome, preserved behavior, affected users, acceptance boundaries, and trade-offs explicit. Use when a feature, bug fix, workaround, rollback, or scope decision needs a product-facing decision artifact before implementation or release.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
- ---
6
-
7
- # Write Product Brief
8
-
9
- Use this skill when product direction needs to be turned into a decision-ready brief that engineering, QA, UX, and stakeholders can act on without guessing.
10
-
11
- ## When to Use
12
-
13
- - a feature/bugfix needs a decision artifact
14
- - defining user value + business outcome
15
- - setting acceptance boundaries and trade-offs
16
- - before implementation or release
17
-
18
- ## Core Rules
19
-
20
- - define the user or business outcome (Jobs-to-be-Done / underserved customer job) before discussing implementation — Feature Factory PRDs that specify buttons and database fields without a user problem are an anti-pattern
21
- - measure success by customer behavior change and business outcome, not by shipped feature count or schedule compliance
22
- - make preserved versus changed behavior explicit
23
- - identify affected users, workflows, and support impact
24
- - define explicit non-goals to prevent scope creep — unclear non-goals are a P1 defect in the brief
25
- - make trade-offs explicit when scope, quality, timing, or rollback options conflict
26
- - do not hide uncertainty, accepted degradation, or residual release risk
27
- - for AI-backed features: include EU AI Act risk classification (Prohibited / High-Risk / Limited / Minimal) before any acceptance criteria — high-risk classification changes the delivery contract and requires conformity assessment
28
- - for AI-backed features: state HITL requirement explicitly (trigger conditions, human gate scope); define AI transparency disclosure mechanism (label, tooltip, watermark) per EU AI Act Articles 50-52
29
- - for AI-backed features: define deterministic fallback behavior when the AI component fails or returns low-confidence output — "fail-open" (show AI output regardless) is not acceptable for High-Risk features
30
- - for AI-backed features: specify model version, data provenance (training corpus, geographic restrictions, PII flags), and model update cadence controls
31
- - classify any customer-affecting or data-handling decision in the brief with `data-classification.yaml`; surface restricted fields in the risks section
32
- - never present a "fail-open" behavior as acceptable for High-Risk AI features; require a deterministic fallback in the brief
33
- - validate that the brief's HITL triggers and AI transparency disclosures match the EU AI Act risk classification; reject briefs where the classification is missing or downgraded
34
-
35
- ## Suggested Process
36
-
37
- ### 1. Define The Decision
38
-
39
- Clarify:
40
-
41
- - what problem or opportunity is being addressed
42
- - whether this is a feature, bug fix, workaround, rollback, or release decision
43
- - what outcome must be achieved
44
- - what behavior must remain stable
45
-
46
- ### 2. Gather Product Evidence
47
-
48
- Collect only the signal needed:
49
-
50
- - user feedback or support cases
51
- - analytics or adoption indicators
52
- - engineering constraints or delivery risk
53
- - affected customer segments, roles, or commitments
54
-
55
- ### 3. Set Scope Boundaries
56
-
57
- State:
58
-
59
- - what is in scope
60
- - what is explicitly out of scope
61
- - what assumptions the decision depends on
62
- - what changes are acceptable and what changes are not
63
-
64
- ### 4. Define Acceptance And Trade-Offs
65
-
66
- Write:
67
-
68
- - success metrics or outcome signals
69
- - acceptance criteria or release acceptance
70
- - negative cases or degraded modes that are still acceptable
71
- - what gives way first if time, quality, or complexity conflict
72
-
73
- ### 5. Produce A Handoff-Ready Brief
74
-
75
- Leave a brief that downstream roles can use directly:
76
-
77
- - Product and BA can refine requirements from it
78
- - UX can design from it
79
- - Technical Lead can plan from it
80
- - QA can derive validation scope from it
81
-
82
- ## Output Format
83
-
84
- ```markdown
85
- # <Topic> - Product Brief
86
-
87
- ## Objective
88
- - User or business goal:
89
- - Success metric:
90
- - Preserved behavior:
91
-
92
- ## Scope
93
- - In scope:
94
- - Out of scope:
95
- - Assumptions:
96
- - Affected users, roles, or journeys:
97
-
98
- ## Acceptance
99
- - Success criteria:
100
- - Negative or exception cases:
101
- - Release or rollback acceptance:
102
-
103
- ## Trade-Offs
104
- - Options considered:
105
- - Recommended path:
106
- - What gives way first if constraints tighten:
107
-
108
- ## Handoff
109
- - Risks:
110
- - Open questions:
111
- - Next owner:
112
- ```
113
-
114
- ## Output Contracts
115
-
116
- When the brief is intended as the intake artifact for Solution Architect or Technical Architect, emit a machine-readable twin so the next role can consume it without re-typing:
117
-
118
- - **`contracts/schemas/solution-brief.json`** — emit when the brief describes a problem that needs architecture or solutioning (as opposed to a pure product/scope decision). Map directly from the markdown sections: `objective` ← Objective, `preserved_behavior` ← Objective → Preserved behavior, `in_scope` / `out_of_scope` ← Scope, `affected_users` ← Scope → Affected users, `acceptance_criteria` ← Acceptance → Success criteria, `trade_offs` ← Trade-Offs, `risks` ← Handoff → Risks. Set `produced_by_role: product-manager` (or whichever role authored the brief) so the architect can route follow-ups.
119
-
120
- Skip emission for purely editorial marketing briefs (copy / campaign releases) — those stay as markdown only.
121
-
122
- ## Checklist
123
-
124
- - [ ] user or business outcome defined
125
- - [ ] work type and preserved behavior identified
126
- - [ ] affected users or workflows named
127
- - [ ] scope boundaries made explicit
128
- - [ ] acceptance and trade-offs captured
129
- - [ ] risks and next owner stated
130
- - [ ] when handed to an architect role, matching `solution-brief.json` emitted alongside the markdown brief
131
- - [ ] for AI-backed features, EU AI Act risk classification stated before acceptance criteria
132
- - [ ] for AI-backed features, HITL triggers and AI transparency disclosures defined
133
- - [ ] for AI-backed features, deterministic fallback behavior defined (no fail-open for High-Risk)
134
- - [ ] residual release risk and accepted degradation surfaced honestly
135
-
136
- ## Failure Modes
137
-
138
- - **Feature Factory brief**: the brief specifies buttons and database fields without naming the user problem. Mitigation: enforce the Jobs-to-be-Done opener; reject briefs that skip the outcome.
139
- - **Hidden non-goal**: scope is unbounded and the non-goals section is empty. Mitigation: every brief must list at least three explicit non-goals.
140
- - **AI risk misclassified**: a High-Risk AI feature is labeled Minimal or Limited. Mitigation: require the EU AI Act classification as the first line of the AI section; reject briefs that down-classify without a documented rationale.
141
- - **Fail-open fallback**: a High-Risk feature's fallback is "show AI output anyway". Mitigation: reject fail-open fallbacks for High-Risk; require a deterministic alternative.
142
- - **Output count, not outcome**: success is measured by shipped feature count or schedule. Mitigation: every success metric must be a customer behavior change or a business outcome.
143
- - **Uncertainty hidden**: a known caveat is omitted from the risks section. Mitigation: require an explicit "known caveats" line in the risks; reject briefs that bury caveats in trade-offs.
144
- - **Architect handoff gap**: the brief is sent to an architect without a `solution-brief.json` twin. Mitigation: emit the JSON contract whenever the next role is Solution Architect or Technical Architect.
145
-
146
- ## Security Guardrails (OWASP ASI)
147
-
148
- - **ASI01 Goal Hijack**: a brief may try to reframe a feature's purpose to expand scope. Cross-check the brief's objective against the source user feedback or support cases; reject reframed goals.
149
- - **ASI03 Identity & Privilege Abuse**: do not include customer identifiers, internal hostnames, or credential patterns in the brief.
150
- - **ASI04 Supply Chain**: for AI-backed features, the model version, data provenance, and update cadence must be explicit; treat undisclosed provenance as a release-blocking issue.
151
- - **ASI07 Inter-Agent Communication**: the brief is consumed by Solution Architect and downstream roles; emit a structured contract so each role can validate against the same source of truth.
152
- - **ASI09 Human-Agent Trust Exploitation**: do not present an AI-backed feature as "transparent" without naming the disclosure mechanism; surface the actual user-facing label or tooltip.
153
-
154
- ## Related Skills
155
-
156
- - **meeting-review**: Stress-test the brief through cross-functional trade-offs
157
- - **analyze-business-requirements**: Turn the brief into testable requirements
158
- - **design-ux-flow**: Translate the brief into user journeys and interaction rules
159
- - **review-service**: Judge whether release readiness matches the brief
160
- - **write-documentation**: Turn the brief into durable product or release notes
1
+ ---
2
+ name: write-product-brief
3
+ description: Write or refine a product brief that makes user value, business outcome, preserved behavior, affected users, acceptance boundaries, and trade-offs explicit. Use when a feature, bug fix, workaround, rollback, or scope decision needs a product-facing decision artifact before implementation or release.
4
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
+ ---
6
+
7
+ # Write Product Brief
8
+
9
+ Use this skill when product direction needs to be turned into a decision-ready brief that engineering, QA, UX, and stakeholders can act on without guessing.
10
+
11
+ ## When to Use
12
+
13
+ - a feature/bugfix needs a decision artifact
14
+ - defining user value + business outcome
15
+ - setting acceptance boundaries and trade-offs
16
+ - before implementation or release
17
+
18
+ ## Core Rules
19
+
20
+ - define the user or business outcome (Jobs-to-be-Done / underserved customer job) before discussing implementation — Feature Factory PRDs that specify buttons and database fields without a user problem are an anti-pattern
21
+ - measure success by customer behavior change and business outcome, not by shipped feature count or schedule compliance
22
+ - make preserved versus changed behavior explicit
23
+ - identify affected users, workflows, and support impact
24
+ - define explicit non-goals to prevent scope creep — unclear non-goals are a P1 defect in the brief
25
+ - make trade-offs explicit when scope, quality, timing, or rollback options conflict
26
+ - do not hide uncertainty, accepted degradation, or residual release risk
27
+ - for AI-backed features: include EU AI Act risk classification (Prohibited / High-Risk / Limited / Minimal) before any acceptance criteria — high-risk classification changes the delivery contract and requires conformity assessment
28
+ - for AI-backed features: state HITL requirement explicitly (trigger conditions, human gate scope); define AI transparency disclosure mechanism (label, tooltip, watermark) per EU AI Act Articles 50-52
29
+ - for AI-backed features: define deterministic fallback behavior when the AI component fails or returns low-confidence output — "fail-open" (show AI output regardless) is not acceptable for High-Risk features
30
+ - for AI-backed features: specify model version, data provenance (training corpus, geographic restrictions, PII flags), and model update cadence controls
31
+ - classify any customer-affecting or data-handling decision in the brief with `data-classification.yaml`; surface restricted fields in the risks section
32
+ - never present a "fail-open" behavior as acceptable for High-Risk AI features; require a deterministic fallback in the brief
33
+ - validate that the brief's HITL triggers and AI transparency disclosures match the EU AI Act risk classification; reject briefs where the classification is missing or downgraded
34
+
35
+ ## Suggested Process
36
+
37
+ ### 1. Define The Decision
38
+
39
+ Clarify:
40
+
41
+ - what problem or opportunity is being addressed
42
+ - whether this is a feature, bug fix, workaround, rollback, or release decision
43
+ - what outcome must be achieved
44
+ - what behavior must remain stable
45
+
46
+ ### 2. Gather Product Evidence
47
+
48
+ Collect only the signal needed:
49
+
50
+ - user feedback or support cases
51
+ - analytics or adoption indicators
52
+ - engineering constraints or delivery risk
53
+ - affected customer segments, roles, or commitments
54
+
55
+ ### 3. Set Scope Boundaries
56
+
57
+ State:
58
+
59
+ - what is in scope
60
+ - what is explicitly out of scope
61
+ - what assumptions the decision depends on
62
+ - what changes are acceptable and what changes are not
63
+
64
+ ### 4. Define Acceptance And Trade-Offs
65
+
66
+ Write:
67
+
68
+ - success metrics or outcome signals
69
+ - acceptance criteria or release acceptance
70
+ - negative cases or degraded modes that are still acceptable
71
+ - what gives way first if time, quality, or complexity conflict
72
+
73
+ ### 5. Produce A Handoff-Ready Brief
74
+
75
+ Leave a brief that downstream roles can use directly:
76
+
77
+ - Product and BA can refine requirements from it
78
+ - UX can design from it
79
+ - Technical Lead can plan from it
80
+ - QA can derive validation scope from it
81
+
82
+ ## Output Format
83
+
84
+ ```markdown
85
+ # <Topic> - Product Brief
86
+
87
+ ## Objective
88
+ - User or business goal:
89
+ - Success metric:
90
+ - Preserved behavior:
91
+
92
+ ## Scope
93
+ - In scope:
94
+ - Out of scope:
95
+ - Assumptions:
96
+ - Affected users, roles, or journeys:
97
+
98
+ ## Acceptance
99
+ - Success criteria:
100
+ - Negative or exception cases:
101
+ - Release or rollback acceptance:
102
+
103
+ ## Trade-Offs
104
+ - Options considered:
105
+ - Recommended path:
106
+ - What gives way first if constraints tighten:
107
+
108
+ ## Handoff
109
+ - Risks:
110
+ - Open questions:
111
+ - Next owner:
112
+ ```
113
+
114
+ ## Output Contracts
115
+
116
+ When the brief is intended as the intake artifact for Solution Architect or Technical Architect, emit a machine-readable twin so the next role can consume it without re-typing:
117
+
118
+ - **`contracts/schemas/solution-brief.json`** — emit when the brief describes a problem that needs architecture or solutioning (as opposed to a pure product/scope decision). Map directly from the markdown sections: `objective` ← Objective, `preserved_behavior` ← Objective → Preserved behavior, `in_scope` / `out_of_scope` ← Scope, `affected_users` ← Scope → Affected users, `acceptance_criteria` ← Acceptance → Success criteria, `trade_offs` ← Trade-Offs, `risks` ← Handoff → Risks. Set `produced_by_role: product-manager` (or whichever role authored the brief) so the architect can route follow-ups.
119
+
120
+ Skip emission for purely editorial marketing briefs (copy / campaign releases) — those stay as markdown only.
121
+
122
+ ## Checklist
123
+
124
+ - [ ] user or business outcome defined
125
+ - [ ] work type and preserved behavior identified
126
+ - [ ] affected users or workflows named
127
+ - [ ] scope boundaries made explicit
128
+ - [ ] acceptance and trade-offs captured
129
+ - [ ] risks and next owner stated
130
+ - [ ] when handed to an architect role, matching `solution-brief.json` emitted alongside the markdown brief
131
+ - [ ] for AI-backed features, EU AI Act risk classification stated before acceptance criteria
132
+ - [ ] for AI-backed features, HITL triggers and AI transparency disclosures defined
133
+ - [ ] for AI-backed features, deterministic fallback behavior defined (no fail-open for High-Risk)
134
+ - [ ] residual release risk and accepted degradation surfaced honestly
135
+
136
+ ## Failure Modes
137
+
138
+ - **Feature Factory brief**: the brief specifies buttons and database fields without naming the user problem. Mitigation: enforce the Jobs-to-be-Done opener; reject briefs that skip the outcome.
139
+ - **Hidden non-goal**: scope is unbounded and the non-goals section is empty. Mitigation: every brief must list at least three explicit non-goals.
140
+ - **AI risk misclassified**: a High-Risk AI feature is labeled Minimal or Limited. Mitigation: require the EU AI Act classification as the first line of the AI section; reject briefs that down-classify without a documented rationale.
141
+ - **Fail-open fallback**: a High-Risk feature's fallback is "show AI output anyway". Mitigation: reject fail-open fallbacks for High-Risk; require a deterministic alternative.
142
+ - **Output count, not outcome**: success is measured by shipped feature count or schedule. Mitigation: every success metric must be a customer behavior change or a business outcome.
143
+ - **Uncertainty hidden**: a known caveat is omitted from the risks section. Mitigation: require an explicit "known caveats" line in the risks; reject briefs that bury caveats in trade-offs.
144
+ - **Architect handoff gap**: the brief is sent to an architect without a `solution-brief.json` twin. Mitigation: emit the JSON contract whenever the next role is Solution Architect or Technical Architect.
145
+
146
+ ## Security Guardrails (OWASP ASI)
147
+
148
+ - **ASI01 Goal Hijack**: a brief may try to reframe a feature's purpose to expand scope. Cross-check the brief's objective against the source user feedback or support cases; reject reframed goals.
149
+ - **ASI03 Identity & Privilege Abuse**: do not include customer identifiers, internal hostnames, or credential patterns in the brief.
150
+ - **ASI04 Supply Chain**: for AI-backed features, the model version, data provenance, and update cadence must be explicit; treat undisclosed provenance as a release-blocking issue.
151
+ - **ASI07 Inter-Agent Communication**: the brief is consumed by Solution Architect and downstream roles; emit a structured contract so each role can validate against the same source of truth.
152
+ - **ASI09 Human-Agent Trust Exploitation**: do not present an AI-backed feature as "transparent" without naming the disclosure mechanism; surface the actual user-facing label or tooltip.
153
+
154
+ ## Related Skills
155
+
156
+ - **meeting-review**: Stress-test the brief through cross-functional trade-offs
157
+ - **analyze-business-requirements**: Turn the brief into testable requirements
158
+ - **design-ux-flow**: Translate the brief into user journeys and interaction rules
159
+ - **review-service**: Judge whether release readiness matches the brief
160
+ - **write-documentation**: Turn the brief into durable product or release notes
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: write-tests
3
3
  description: Add or update tests by following repo-local test conventions, choosing the right test scope, isolating dependencies, and validating risky paths before delivery. Use when behavior needs regression coverage or release confidence.
4
+ version: 2.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
 
@@ -16,7 +17,7 @@ Use this skill to author independent, property-verified, contract-driven, and fa
16
17
  - establishing Consumer-Driven Contract Testing (CDCT) across HTTP, gRPC, or messaging boundaries
17
18
  - enforcing Protobuf wire compatibility gates (`buf breaking`) or OpenAPI 3.1 diff validation
18
19
  - injecting in-test network chaos (latency, jitter, resets) to verify circuit breakers and retries
19
- - testing Go 1.25+ Kratos Clean Architecture services with Testcontainers and transactional rollbacks
20
+ - testing Go 1.27+ Kratos Clean Architecture services with Testcontainers and transactional rollbacks
20
21
  - enforcing mutation test kill score thresholds (≥75–80%) on critical packages
21
22
  - verifying concurrent thread safety, data race freedom (`-race`), and goroutine leak absence
22
23
  - validating consumer-provider compatibility matrices using Pact Broker `can-i-deploy` prior to release
@@ -46,10 +47,10 @@ Use this skill to author independent, property-verified, contract-driven, and fa
46
47
  - assert circuit breaker state transitions (CLOSED $\to$ OPEN $\to$ HALF-OPEN $\to$ CLOSED) under degraded network conditions.
47
48
  - verify single-canary probe dispatch in the HALF-OPEN state and graceful fallback handling during the OPEN state.
48
49
  - enforce exponential backoff retries with full jitter to eliminate thundering herd problems.
49
- - **Go 1.25+ Kratos Clean Architecture ephemeral test isolation**:
50
+ - **Go 1.27+ Kratos Clean Architecture ephemeral test isolation**:
50
51
  - enforce 4-layer separation (`api`/`service`/`biz`/`data`); `biz` layer must never leak database handlers (`gorm.DB`) or transport adapters.
51
52
  - isolate dependencies via compile-time Wire DI (`TestProviderSet`) injecting real ephemeral repositories.
52
- - provision real PostgreSQL 16 Alpine containers via `testcontainers/testcontainers-go` with automated Ryuk cleanup.
53
+ - provision real PostgreSQL 18 Alpine containers via `testcontainers/testcontainers-go` with automated Ryuk cleanup.
53
54
  - execute table-driven subtests sequentially with GORM `InTx` transactional rollbacks (`tx := db.Begin()`, `t.Cleanup(func() { _ = tx.Rollback() })`) to guarantee zero dirty-state contamination without container restarts.
54
55
  - forbid global database instances; pass transactions and connections explicitly via context or repository constructors.
55
56
  - detect data races and concurrency hazards via `go test -race` and goroutine leaks via `uber-go/goleak`.
@@ -91,7 +92,7 @@ Use this skill to author independent, property-verified, contract-driven, and fa
91
92
 
92
93
  1. Formulate property-based invariants (round-trip serialization, idempotency, state transitions) using `Hypothesis` or `fast-check`.
93
94
  2. Configure automated shrinking to ensure failing executions yield minimal reproduction inputs.
94
- 3. For Go Kratos data-layer tests, bootstrap an ephemeral PostgreSQL 16 Testcontainer and configure Wire DI test providers (`TestProviderSet`).
95
+ 3. For Go Kratos data-layer tests, bootstrap an ephemeral PostgreSQL 18 Testcontainer and configure Wire DI test providers (`TestProviderSet`).
95
96
 
96
97
  ### Step 4: In-Test Chaos Fault Injection & Resilience Probing
97
98
 
@@ -127,7 +128,7 @@ Use this skill to author independent, property-verified, contract-driven, and fa
127
128
  - [ ] Protobuf wire compatibility gates verified via buf breaking --against with WIRE_JSON rules
128
129
  - [ ] in-test chaos injected via Toxiproxy (latency, jitter, resets) verifying circuit breaker trip and recovery
129
130
  - [ ] single-canary probe dispatch verified during circuit breaker HALF-OPEN state transition
130
- - [ ] Go 1.25+ Kratos clean architecture tested with Testcontainers PostgreSQL 16 and Wire DI isolation
131
+ - [ ] Go 1.27+ Kratos clean architecture tested with Testcontainers PostgreSQL 18 and Wire DI isolation
131
132
  - [ ] table-driven subtests isolated sequentially using GORM InTx transactional rollbacks with zero dirty state
132
133
  - [ ] data race detector passes cleanly via go test -race and goroutine leaks verified absent with goleak
133
134
  - [ ] edge case synthesis applied across numeric boundaries, Unicode, timezones, and null states
@@ -147,7 +148,7 @@ Skip emission for rapid local test iterations during interactive development.
147
148
 
148
149
  - **Tautological / co-leaked tests**: author writes implementation and assertions together, mirroring faulty assumptions. Mitigation: enforce independent specification-based test authoring and mandatory Red-phase failure verification.
149
150
  - **Coverage theater without mutation testing**: 100% line coverage masking absent or weak assertions. Mitigation: enforce mutation score ≥75–80% on critical packages.
150
- - **Database dirty-state contamination**: subtests pollute shared database tables, causing flaky sequential failures. Mitigation: enforce GORM `InTx` uncommitted transactional rollbacks per subtest with Testcontainers PostgreSQL 16.
151
+ - **Database dirty-state contamination**: subtests pollute shared database tables, causing flaky sequential failures. Mitigation: enforce GORM `InTx` uncommitted transactional rollbacks per subtest with Testcontainers PostgreSQL 18.
151
152
  - **Unverified circuit breaker failure**: downstream service times out but client blocks indefinitely due to missing chaos testing. Mitigation: inject Toxiproxy latency and reset toxics in CI integration tests.
152
153
  - **Silent Protobuf wire drift**: schema changes alter wire tag numbering or JSON transcoding fields, breaking microservice consumers. Mitigation: execute `buf breaking --against` with `WIRE_JSON` in CI.
153
154
  - **Swallowed goroutine leaks**: unmanaged background workers remain active after test teardown, corrupting subsequent runs. Mitigation: enforce `uber-go/goleak` in test cleanup.
@@ -156,10 +157,10 @@ Skip emission for rapid local test iterations during interactive development.
156
157
 
157
158
  ## Security Guardrails (OWASP ASI)
158
159
 
159
- - **ASI01 Goal Hijack**: cross-check test assertions against source spec to prevent locking in unintentional drift or malicious scope changes.
160
- - **ASI04 Supply Chain**: validate test fixtures, VCR cassettes, and mocking libraries against project manifests; reject untrusted test packages.
161
- - **ASI05 RCE Guard**: test suites must run inside an isolated sandbox per `core/policies/execution-sandbox.md` without root privileges.
162
- - **ASI07 Inter-Agent Communication**: emit structured `test-report.json` for CI and reviewer verification.
160
+ - **ASI01 Agent Goal Hijack**: cross-check test assertions against source spec to prevent locking in unintentional drift or malicious scope changes.
161
+ - **ASI04 Agentic Supply Chain**: validate test fixtures, VCR cassettes, and mocking libraries against project manifests; reject untrusted test packages.
162
+ - **ASI05 Unexpected Code Execution**: test suites must run inside an isolated sandbox per `core/policies/execution-sandbox.md` without root privileges.
163
+ - **ASI07 Insecure Inter-Agent Communication**: emit structured `test-report.json` for CI and reviewer verification.
163
164
  - **ASI09 Human-Agent Trust Exploitation**: surface skipped tests, surviving mutants, and mock fidelity limitations transparently.
164
165
 
165
166
  ## Related Skills
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: anti-ui-slop-finish-gate
3
3
  description: Use when conducting pre-staging UI finish reviews, enforcing 100% interaction state coverage, and applying the 13 universal escalation triggers.
4
+ version: 2.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build]
5
6
  ---
6
7
 
@@ -18,6 +19,9 @@ Enforce rigorous pre-staging UI finish criteria, verifying 100% interaction stat
18
19
 
19
20
  ## Core Rules
20
21
 
22
+ - **Dark-Pattern Compliance (regulatory, distinct from aesthetic slop)**:
23
+ Consent, cancellation, subscription, and upsell surfaces must pass a dark-pattern review — nagging, obstruction, sneaking, forced action, confirmshaming, and trick questions — per DSA Art 25/26 and FTC enforcement standards; record the review in ux-flow-spec.json `dark_pattern_review`. A visually clean flow can still be a regulatory violation.
24
+
21
25
  - **100% Interaction State Coverage Standard**:
22
26
  Every interactive UI component or view must implement and verify all 6 discrete interaction states before staging handoff:
23
27
  1. *Empty State*: Defined iconography or illustration slot, concise explanatory copy, actionable primary onboarding button, and zero broken container borders.
@@ -109,6 +113,7 @@ When completing an anti-UI-slop review, emit `contracts/schemas/ui-component-spe
109
113
  - [ ] Error messages state failure factually without exclamation marks and supply a recovery button
110
114
  - [ ] Keyboard navigation and visible focus rings verified; `outline: none` avoided
111
115
  - [ ] None of the 13 universal escalation triggers tripped in rendered markup
116
+ - [ ] Dark-pattern review passed for consent, cancellation, subscription, and upsell surfaces (DSA Art 25/26, FTC)
112
117
  - [ ] Text passes APCA contrast thresholds ($L_c \ge 75$ body, $L_c \ge 60$ controls)
113
118
  - [ ] Viewport resilience verified at $320\text{px}$ mobile width and $200\%$ browser zoom
114
119
  - [ ] Fabricated SVG logos, fake testimonials, and synthetic headshots completely removed
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: design-md-specification
3
3
  description: Use when generating machine-readable DESIGN.md documents, specifying YAML frontmatter design tokens, enforcing two-tier token architectures, calculating concentric radii, and codifying tabular-nums standards.
4
+ version: 1.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: design-system-engineering
3
3
  description: Use when engineering design token architectures, calculating concentric border radii, establishing perceptual OKLCH color ramps, and verifying APCA contrast tables.
4
+ version: 2.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_build]
5
6
  ---
6
7
 
@@ -64,7 +65,8 @@ Engineer scalable design token architectures, calculate concentric border radii
64
65
  - *Discernible non-text dividers and subtle borders*: $L_c \ge 15$.
65
66
  - *Placeholder / disabled text target*: $L_c \approx 30$.
66
67
  - **Token Portability & Syntax**:
67
- - Tokens must be exported to CSS variables and W3C Design Tokens Community Group (DTCG) JSON format for seamless Figma Variables synchronization.
68
+ - Tokens must be exported to CSS variables and DTCG Design Tokens Format Module 2025.10 JSON (first stable release; `$value`/`$type` syntax) for seamless Figma Variables synchronization; Style Dictionary v4 DTCG mode, Tokens Studio, and Terrazzo are the reference interchange consumers.
69
+ - Validate every token file against the DTCG format before pipeline adoption; reject files that mix legacy `{value}` syntax with DTCG `$value`.
68
70
  - Avoid mixing styling paradigms; standardize on CSS custom properties or Tailwind `@theme` directives.
69
71
 
70
72
  ## Suggested Process
@@ -112,7 +114,7 @@ When producing design system specifications, emit `contracts/schemas/ui-componen
112
114
  - [ ] APCA contrast verified: body text achieves $L_c \ge 75$ and headlines/controls achieve $L_c \ge 60$
113
115
  - [ ] Semantic tokens define both light and dark surface modes without color inversion artifacts
114
116
  - [ ] Component tokens limited to $\le 3$ documented exceptions per component
115
- - [ ] Design tokens exported to W3C DTCG format for Figma and toolchain portability
117
+ - [ ] Design tokens exported to DTCG Design Tokens Format Module 2025.10 (`$value`/`$type`) for Figma and toolchain portability
116
118
 
117
119
  ## Security Guardrails (OWASP ASI)
118
120
 
@@ -115,7 +115,7 @@ Scenario: [Happy path scenario]
115
115
  ## Security Guardrails (OWASP ASI)
116
116
 
117
117
  - **ASI01 Goal Hijack**: cross-check refined requirements against original stakeholder intent.
118
- - **ASI02 Excessive Agency**: restrict agentic features to least-privilege MCP tool allowlists and mandatory kill-switches.
118
+ - **ASI02 Tool Misuse & Exploitation**: restrict agentic features to least-privilege MCP tool allowlists and mandatory kill-switches.
119
119
  - **ASI07 Inter-Agent Communication**: hand off requirements strictly via validated `feature-ticket.json` schemas.
120
120
  - **ASI09 Human Oversight**: enforce mandatory human sign-off on AI-assisted requirements before sprint lock.
121
121
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: add-telemetry-instrumentation
3
3
  description: Add or update logging, metrics, and tracing by following the repo's observability patterns and OpenTelemetry (OTel) GenAI Semantic Conventions. Use when a service, feature, endpoint, job, or integration needs operational visibility — including AI/LLM features requiring token-level tracing (gen_ai.usage.tokens, gen_ai.response.model, TTFT), kernel-level eBPF socket telemetry, and MWMBR SLI recording rules.
4
+ version: 2.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
 
@@ -27,7 +28,7 @@ Use this skill when code changes need matching observability so operators can un
27
28
  - **EBPF-SOCKET-TELEMETRY**: deploy kernel-level eBPF socket profiling (Cilium Hubble, Grafana Beyla, Coroot) to capture L4/L7 flow telemetry, TCP retransmits, socket buffer queue drops, and DNS resolution latency directly from kernel space without injecting sidecar proxies
28
29
  - **OTEL-V130-GENAI-CONVENTIONS**: use stable OpenTelemetry GenAI conventions (opt in via `OTEL_SEMCONV_STABILITY_OPT_IN=genai`); mandate `gen_ai.system`, `gen_ai.request.model`, `gen_ai.response.model`, `gen_ai.usage.tokens`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens`, `gen_ai.response.finish_reasons`, and Time-To-First-Token (TTFT) for streaming responses
29
30
  - **MWMBR-SLI-RECORDING-RULES**: configure Prometheus/OTel metric recording rules supporting Multi-Window Multi-Burn-Rate (MWMBR) error budget alerting across short (5m, 30m, 2h) and long (1h, 6h, 3d) evaluation windows with empty-vector coalescing (`or on() vector(0)`)
30
- - **OTEL-PROFILING-4TH-PILLAR**: use continuous profiling (Pyroscope, Beyla) via OTLP profiling signal alongside logs/metrics/traces
31
+ - **OTEL-PROFILING-4TH-PILLAR**: use continuous profiling via the OTLP profiling signal (public Alpha since 2026-03; eBPF agent collects most languages with zero code changes) alongside logs/metrics/traces — Pyroscope and Parca are the reference backends; treat the signal as alpha and keep a Parca/Pyroscope-native export path
31
32
  - **NATIVE-HISTOGRAMS**: prefer native exponential histograms for dynamic bucket resolution over fixed-bucket counts
32
33
  - **DORA-METRIC-SPANS**: emit CI/CD and deployment spans (`cicd.pipeline.run.*`, `deploy.environment`) for automated DORA metric computation
33
34
 
@@ -1,19 +1,20 @@
1
1
  ---
2
2
  name: aws-infrastructure
3
3
  description: Provision, configure, and optimize AWS cloud infrastructure via OpenTofu state KMS encryption, Crossplane Go compositions, Bottlerocket distroless EKS nodes, and IAM Zero-Trust. Use when provisioning VPCs, EKS, RDS, S3, Bedrock, or specialized silicon; authoring EKS Pod Identity roles and SCPs; or enforcing FinOps cost tags.
4
+ version: 2.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
 
7
8
  # AWS Infrastructure
8
9
 
9
- Use this skill when designing, provisioning, or operating AWS cloud infrastructure using OpenTofu v1.8+ with client-side KMS state encryption, Crossplane v1.16+ Go compositions, Bottlerocket distroless EKS nodes, AWS IAM Zero-Trust, Karpenter autoscaling, Graviton4/Trainium2/Inferentia2 compute, and Amazon Bedrock PrivateLink isolation.
10
+ Use this skill when designing, provisioning, or operating AWS cloud infrastructure using OpenTofu v1.13+ with client-side KMS state encryption, Crossplane v2.4+ Go compositions, Bottlerocket distroless EKS nodes, AWS IAM Zero-Trust, Karpenter v1.x autoscaling (or managed EKS Auto Mode), Graviton5/Trainium3/Inferentia2 compute, and Amazon Bedrock PrivateLink isolation.
10
11
 
11
12
  ## When to Use
12
13
 
13
14
  - provisioning VPCs, Bottlerocket EKS clusters, Aurora/RDS, or S3 storage via OpenTofu or Crossplane
14
15
  - authoring IAM roles with EKS Pod Identity (v1.31+) or Control Tower Service Control Policies (SCPs)
15
16
  - deploying sidecarless service networking via AWS VPC Lattice (Gateway API) and IAM SigV4 auth
16
- - configuring Karpenter v1.0+ declarative autoscaling with Graviton4 (c8g, m8g, r8g) and Spot fleets
17
+ - configuring Karpenter v1.x declarative autoscaling (EKS Auto Mode as the managed default) with Graviton5 (c9g, m9g, r9g) and Spot fleets
17
18
  - provisioning Amazon Bedrock PrivateLink VPC endpoints with Guardrails v2 (contextual grounding >= 0.7)
18
19
  - enforcing FinOps cost allocation tags (`team`, `service`, `environment`, `cost-center`) at apply time
19
20
  - emitting the `aws-infra-spec.json` machine handoff for downstream DevOps or System Engineers
@@ -45,12 +46,12 @@ terraform {
45
46
 
46
47
  ## Core Rules
47
48
 
48
- - **OPENTOFU-KMS-LOCK**: All IaC state and plans must be client-side encrypted in-memory via OpenTofu v1.8+ using AWS KMS (AES-GCM) with `enforced = true`; unencrypted remote state in S3 is prohibited.
49
- - **CROSSPLANE-COMPOSITION-LOCK**: Universal cloud control planes must use Crossplane v1.16+ Compositions powered by compiled Go functions (`function-go-templating`) or KCL; unstructured YAML patch-and-transform is banned.
49
+ - **OPENTOFU-KMS-LOCK**: All IaC state and plans must be client-side encrypted in-memory via OpenTofu v1.13+ using AWS KMS (AES-GCM) with `enforced = true`; unencrypted remote state in S3 is prohibited.
50
+ - **CROSSPLANE-COMPOSITION-LOCK**: Universal cloud control planes must use Crossplane v2.4+ Compositions powered by compiled Go functions (`function-go-templating`) or KCL; unstructured YAML patch-and-transform is banned.
50
51
  - **BOTTLEROCKET-LOCK**: EKS node pools must run AWS Bottlerocket distroless container OS (`amiFamily: Bottlerocket` in `EC2NodeClass`) with SELinux enforcing and dm-verity integrity; general-purpose Linux with shells is prohibited.
51
52
  - **AWS-IAM-ZERO-TRUST-LOCK**: Enforce IAM Identity Center for humans and EKS Pod Identity (v1.31+) with `pods.eks.amazonaws.com` for workloads; ban static IAM users and long-lived AKIA keys via root SCP.
52
- - **KARPENTER-AUTOSCALING-LOCK**: Compute autoscaling must use Karpenter v1.0+ `NodePool` manifests with `WhenEmptyOrUnderutilized` consolidation and disruption budgets; static node groups are prohibited.
53
- - **GRAVITON4-FIRST-LOCK**: Default compute to AWS Graviton4 (c8g, m8g, r8g); Trainium2 (trn2) and Inferentia2 (inf2) for AI/ML; enforce multi-architecture images (`linux/arm64,linux/amd64`) in CI/CD.
53
+ - **KARPENTER-AUTOSCALING-LOCK**: Compute autoscaling must use EKS Auto Mode (managed Karpenter, default for new clusters) or self-managed Karpenter v1.x `NodePool` manifests with `WhenEmptyOrUnderutilized` consolidation and disruption budgets; static node groups are prohibited.
54
+ - **GRAVITON5-FIRST-LOCK**: Default compute to AWS Graviton5 (c9g, m9g, r9g — all GA by 2026-08; Graviton4 only where a Graviton5 family lacks regional availability); Trainium3 (trn3) for AI training and Inferentia2 (inf2) for inference; enforce multi-architecture images (`linux/arm64,linux/amd64`) in CI/CD.
54
55
  - **VPC-LATTICE-LOCK**: Cross-VPC and cross-account service networking must route through AWS VPC Lattice via Gateway API (`amazon-vpc-lattice`) with IAM SigV4 auth; proxy sidecars are prohibited.
55
56
  - **BEDROCK-ISOLATION-LOCK**: Bedrock endpoints must route exclusively through PrivateLink VPC endpoints; enforce Guardrails v2 with contextual grounding >= 0.7 and token-level cost attribution.
56
57
  - **FINOPS-LOCK**: Apply mandatory cost allocation tags (`team`, `service`, `environment`, `cost-center`) enforced via SCP at creation time; review Compute Optimizer rightsizing monthly.
@@ -68,7 +69,7 @@ Configure multi-account landing zone SCPs, IAM Identity Center, VPC subnets, Pri
68
69
  Author customer-managed IAM roles with EKS Pod Identity trust policies (`pods.eks.amazonaws.com`). Submit IAM definitions to Security Engineer and validate with IAM Access Analyzer.
69
70
 
70
71
  ### Step 4: Provision Compute, Storage & Managed AI via IaC
71
- Deploy OpenTofu v1.8+ modules with KMS state encryption or Crossplane Go compositions. Configure Bottlerocket EKS clusters, Karpenter Graviton4 NodePools, Aurora Multi-AZ, and Bedrock PrivateLink endpoints.
72
+ Deploy OpenTofu v1.13+ modules with KMS state encryption or Crossplane Go compositions. Configure Bottlerocket EKS clusters, Karpenter Graviton4 NodePools, Aurora Multi-AZ, and Bedrock PrivateLink endpoints.
72
73
 
73
74
  ### Step 5: Validate, Verify & Emit Machine Contract
74
75
  Verify CIS benchmarks via AWS Config and telemetry via ADOT/CloudWatch. Emit `contracts/schemas/aws-infra-spec.json` for downstream DevOps Engineer consumption.
@@ -79,7 +80,7 @@ Verify CIS benchmarks via AWS Config and telemetry via ADOT/CloudWatch. Emit `co
79
80
  - [ ] Crossplane Compositions authoring with compiled Go functions (`function-go-templating`) or KCL.
80
81
  - [ ] EKS worker nodes run Bottlerocket distroless OS with SELinux enforcing and dm-verity active.
81
82
  - [ ] Zero static AKIA access keys; workload credentials federated via EKS Pod Identity (v1.31+).
82
- - [ ] Karpenter v1.0+ autoscaling configured with Graviton4 and `WhenEmptyOrUnderutilized` consolidation.
83
+ - [ ] Karpenter v1.x autoscaling (or EKS Auto Mode) configured with Graviton5 and `WhenEmptyOrUnderutilized` consolidation.
83
84
  - [ ] VPC Lattice Gateway API configured with IAM SigV4 authorization; zero proxy sidecars.
84
85
  - [ ] Bedrock accessed exclusively via PrivateLink; Guardrails v2 configured with grounding >= 0.7.
85
86
  - [ ] Mandatory cost allocation tags (`team`, `service`, `environment`, `cost-center`) enforced by SCP.
@@ -106,9 +107,9 @@ Skip emission for local sandbox experimentation where no cloud resources are pro
106
107
  ## Security Guardrails (OWASP ASI)
107
108
 
108
109
  - **ASI03 Identity & Privilege Abuse**: Enforce EKS Pod Identity and IAM Identity Center; reject wildcard permissions; run IAM Access Analyzer before apply.
109
- - **ASI04 Supply Chain**: Mandate Bottlerocket distroless AMI and ECR immutable KMS-encrypted repositories; verify Bedrock PrivateLink isolation.
110
- - **ASI05 RCE Guard**: Never execute unvalidated scripts on EC2 hosts; manage Bottlerocket via transactional `apiclient` API without interactive shells.
111
- - **ASI07 Inter-Agent Communication**: Treat `aws-infra-spec.json` as authoritative contract; validate schema before handing off to DevOps Engineer.
110
+ - **ASI04 Agentic Supply Chain**: Mandate Bottlerocket distroless AMI and ECR immutable KMS-encrypted repositories; verify Bedrock PrivateLink isolation.
111
+ - **ASI05 Unexpected Code Execution**: Never execute unvalidated scripts on EC2 hosts; manage Bottlerocket via transactional `apiclient` API without interactive shells.
112
+ - **ASI07 Insecure Inter-Agent Communication**: Treat `aws-infra-spec.json` as authoritative contract; validate schema before handing off to DevOps Engineer.
112
113
  - **ASI09 Human-Agent Trust Exploitation**: Always surface wildcard permissions and unencrypted endpoints honestly; do not claim compliance without verification.
113
114
 
114
115
  ## Related Skills