@vesviet/agent-skills 5.6.1 → 5.7.1

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 (111) hide show
  1. package/INDEX.md +58 -6
  2. package/README.md +2 -2
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +14 -12
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/core/contracts/README.md +1 -1
  8. package/core/contracts/schemas/INDEX.md +2 -2
  9. package/core/contracts/schemas/adr-spec.json +12 -3
  10. package/core/contracts/schemas/architecture-options.json +12 -4
  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/security-audit.json +143 -12
  14. package/core/contracts/schemas/seo-audit-report.json +8 -2
  15. package/core/contracts/schemas/seo-metadata.json +5 -2
  16. package/core/contracts/schemas/system-design-spec.json +9 -1
  17. package/core/contracts/schemas/ui-component-spec.json +25 -6
  18. package/core/contracts/schemas/ux-flow-spec.json +66 -0
  19. package/core/policies/action-boundaries.yaml +1 -1
  20. package/core/roles/README.md +1 -1
  21. package/core/roles/ai-systems-engineer.md +31 -18
  22. package/core/roles/aws-engineer.md +33 -29
  23. package/core/roles/backend-developer.md +6 -4
  24. package/core/roles/content-manager.md +7 -7
  25. package/core/roles/data-engineer.md +39 -36
  26. package/core/roles/frontend-developer.md +1 -1
  27. package/core/roles/prompt-engineer.md +9 -0
  28. package/core/roles/qa-engineer.md +18 -18
  29. package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
  30. package/core/roles/references/aws-engineer-review-checklist.md +29 -16
  31. package/core/roles/references/content-manager-governance-standards.md +2 -2
  32. package/core/roles/references/content-manager-review-checklist.md +7 -1
  33. package/core/roles/references/data-engineer-review-checklist.md +11 -3
  34. package/core/roles/references/qa-engineer-review-checklist.md +10 -5
  35. package/core/roles/references/security-engineer-review-checklist.md +8 -0
  36. package/core/roles/references/solution-architect-review-checklist.md +6 -1
  37. package/core/roles/references/system-engineer-review-checklist.md +11 -0
  38. package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
  39. package/core/roles/sdet.md +9 -0
  40. package/core/roles/security-engineer.md +35 -5
  41. package/core/roles/solution-architect.md +7 -7
  42. package/core/roles/system-engineer.md +9 -4
  43. package/core/roles/ui-ux-designer.md +17 -3
  44. package/core/skills/agent/agent-panel-meeting/SKILL.md +4 -4
  45. package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
  46. package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
  47. package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
  48. package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
  49. package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
  50. package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
  51. package/core/skills/backend/add-event-handler/SKILL.md +1 -0
  52. package/core/skills/backend/add-service-client/SKILL.md +1 -0
  53. package/core/skills/backend/build-mcp-server/SKILL.md +1 -0
  54. package/core/skills/backend/implement-auth/SKILL.md +1 -0
  55. package/core/skills/backend/implement-structured-outputs/SKILL.md +1 -0
  56. package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
  57. package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
  58. package/core/skills/commerce/handle-checkout-flow/SKILL.md +1 -4
  59. package/core/skills/commerce/integrate-payment-gateway/SKILL.md +1 -5
  60. package/core/skills/commerce/manage-product-catalog/SKILL.md +2 -7
  61. package/core/skills/content/audit-content/SKILL.md +3 -2
  62. package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
  63. package/core/skills/content/design-content-strategy/SKILL.md +6 -5
  64. package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
  65. package/core/skills/content/optimize-seo/SKILL.md +6 -5
  66. package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
  67. package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
  68. package/core/skills/content/repurpose-content/SKILL.md +4 -3
  69. package/core/skills/content/write-article/SKILL.md +7 -5
  70. package/core/skills/content/write-copy/SKILL.md +3 -2
  71. package/core/skills/document/pptx/SKILL.md +1 -0
  72. package/core/skills/education/create-exercises/SKILL.md +1 -6
  73. package/core/skills/education/design-learning-plan/SKILL.md +2 -9
  74. package/core/skills/education/grade-and-review/SKILL.md +2 -9
  75. package/core/skills/foundation/design-review/SKILL.md +11 -1
  76. package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
  77. package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
  78. package/core/skills/foundation/release-notes/SKILL.md +1 -1
  79. package/core/skills/foundation/write-tests/SKILL.md +11 -10
  80. package/core/skills/frontend/INDEX.json +100 -1
  81. package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
  82. package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
  83. package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
  84. package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
  85. package/core/skills/meetings-analysis/analyze-data/SKILL.md +2 -7
  86. package/core/skills/meetings-analysis/meeting-review/SKILL.md +3 -7
  87. package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
  88. package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
  89. package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
  90. package/core/skills/platform/setup-gpu-finops/SKILL.md +4 -0
  91. package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
  92. package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
  93. package/core/skills/platform/system-design/SKILL.md +7 -0
  94. package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
  95. package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
  96. package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
  97. package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
  98. package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
  99. package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +3 -1
  100. package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
  101. package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
  102. package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
  103. package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
  104. package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
  105. package/core/skills/security-data/security-audit/SKILL.md +8 -1
  106. package/core/workflows/curriculum-delivery.md +1 -1
  107. package/core/workflows/dependency-upgrade.md +1 -1
  108. package/core/workflows/security-incident-response.md +1 -1
  109. package/overlays/hugo-authority-content/workflows/affiliate-publishing.md +1 -1
  110. package/overlays/hugo-authority-content/workflows/publish-series.md +1 -1
  111. package/package.json +1 -1
@@ -38,6 +38,19 @@
38
38
  ],
39
39
  "version": "1.0.0"
40
40
  },
41
+ {
42
+ "name": "anti-ui-slop-finish-gate",
43
+ "description": "Use when conducting pre-staging UI finish reviews, enforcing 100% interaction state coverage, and applying the 13 universal escalation triggers.",
44
+ "allowed-tools": [
45
+ "read_file",
46
+ "write_file",
47
+ "edit_file",
48
+ "create_file",
49
+ "search_code",
50
+ "run_build"
51
+ ],
52
+ "version": "1.0.0"
53
+ },
41
54
  {
42
55
  "name": "component-composition",
43
56
  "description": "Architect scalable UI components using compound components, Radix-style asChild slot delegation, headless hook separation, and anti-boolean prop sprawl patterns. Use when designing reusable component libraries, refactoring prop-heavy components, or decoupling interaction state from presentation.",
@@ -55,6 +68,48 @@
55
68
  ],
56
69
  "version": "1.0.0"
57
70
  },
71
+ {
72
+ "name": "design-md-specification",
73
+ "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.",
74
+ "allowed-tools": [
75
+ "read_file",
76
+ "write_file",
77
+ "edit_file",
78
+ "create_file",
79
+ "search_code",
80
+ "run_build"
81
+ ],
82
+ "version": "1.0.0"
83
+ },
84
+ {
85
+ "name": "design-system-engineering",
86
+ "description": "Use when engineering design token architectures, calculating concentric border radii, establishing perceptual OKLCH color ramps, and verifying APCA contrast tables.",
87
+ "allowed-tools": [
88
+ "read_file",
89
+ "write_file",
90
+ "edit_file",
91
+ "create_file",
92
+ "search_code",
93
+ "run_build"
94
+ ],
95
+ "version": "1.0.0"
96
+ },
97
+ {
98
+ "name": "frontend-micro-polish",
99
+ "description": "Use when applying micro-typographic polish, optical padding compensations, mobile input zoom guards, active tap scales, and 3-layer shadow elevations.",
100
+ "allowed-tools": [
101
+ "read_file",
102
+ "write_file",
103
+ "edit_file",
104
+ "create_file",
105
+ "search_code",
106
+ "run_tests",
107
+ "run_linter",
108
+ "run_build",
109
+ "execute_command"
110
+ ],
111
+ "version": "1.0.0"
112
+ },
58
113
  {
59
114
  "name": "frontend-testing",
60
115
  "description": "Add or improve frontend test coverage by choosing the right UI test scope, reusing local tooling, and validating rendering, interaction, accessibility, and network-driven states. Use when frontend behavior needs regression coverage or UI release confidence.",
@@ -120,6 +175,35 @@
120
175
  ],
121
176
  "version": "1.0.0"
122
177
  },
178
+ {
179
+ "name": "interactive-component-workbench",
180
+ "description": "Use when building scratch-route component workbenches with search-param state switchers and multi-variant pickers for isolated multi-state UI testing.",
181
+ "allowed-tools": [
182
+ "read_file",
183
+ "write_file",
184
+ "edit_file",
185
+ "create_file",
186
+ "search_code",
187
+ "run_tests",
188
+ "run_linter",
189
+ "run_build",
190
+ "execute_command"
191
+ ],
192
+ "version": "1.0.0"
193
+ },
194
+ {
195
+ "name": "motion-performance-engineering",
196
+ "description": "Use when engineering 60fps/120fps hardware-accelerated animations, restricting transitions to composite-only properties, calibrating spring physics, and enforcing prefers-reduced-motion accessibility guards.",
197
+ "allowed-tools": [
198
+ "read_file",
199
+ "write_file",
200
+ "edit_file",
201
+ "create_file",
202
+ "search_code",
203
+ "run_build"
204
+ ],
205
+ "version": "1.0.0"
206
+ },
123
207
  {
124
208
  "name": "setup-design-system",
125
209
  "description": "Configure a scalable design system, styling framework, and component architecture for a frontend project. Use when initializing a new project, migrating to a unified CSS strategy, or setting up a component library (e.g., Tailwind, Storybook, Radix).",
@@ -153,6 +237,21 @@
153
237
  "execute_command"
154
238
  ],
155
239
  "version": "1.0.0"
240
+ },
241
+ {
242
+ "name": "web-quality-audit",
243
+ "description": "Use when conducting Core Web Vitals audits, profiling Long Animation Frames and interaction responsiveness, auditing DOM depth and bundle bloat, and enforcing Lighthouse CI quality gates.",
244
+ "allowed-tools": [
245
+ "read_file",
246
+ "write_file",
247
+ "edit_file",
248
+ "create_file",
249
+ "search_code",
250
+ "run_tests",
251
+ "run_linter",
252
+ "run_build"
253
+ ],
254
+ "version": "1.0.0"
156
255
  }
157
256
  ]
158
- }
257
+ }
@@ -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
 
@@ -125,13 +125,8 @@ Populate the two-column Table of Evidence separating empirical data from narrati
125
125
 
126
126
  When delivering analysis to stakeholders, BI engineers, or downstream agent workflows, emit:
127
127
 
128
- - `contracts/schemas/data-analysis-report.json` — structured business context, metric definitions, dataset lineage, findings with fact/interpretation indices, anomalies, drift metrics, causal estimates, recommendations, **and agent query costs as FinOps line item**.
129
- - `contracts/schemas/apache-ossie-semantic-spec.json` — YAML model definitions for vendor-neutral portability
130
- - `contracts/schemas/dosi-ossie-agent-spec.json` — 10-min AI agent semantic layer setup
131
- - `contracts/schemas/fastmcp-sqlglot-spec.json` — AST validation configuration
132
- - `contracts/schemas/duckdb-v2-readiness-spec.json` — Migration readiness checklist
133
- - `contracts/schemas/dowhy-causal-spec.json` — DOT DAG + refutation configuration
134
- - `contracts/schemas/finops-agent-query-spec.json` — Cost tracking with per-agent budgets
128
+ - **`contracts/schemas/data-analysis-report.json`** — structured business context, metric definitions, dataset lineage, findings with fact/interpretation indices, anomalies, drift metrics, causal estimates, recommendations, and agent query costs as FinOps line items (incorporating Apache Ossie semantic models, AST validation rules, and DoWhy causal configurations).
129
+ - **`contracts/schemas/data-pipeline-spec.json`** — when data pipeline ingestion, DuckDB/Polars streaming configurations, or lakehouse ETL steps are required.
135
130
  - Markdown summary brief providing executive findings, narrative context, and recommended decisions.
136
131
 
137
132
  ## Failure Modes
@@ -162,13 +162,9 @@ Core: Architecture, Engineering, Risk. Optional: Product, QA, Operations, Data,
162
162
 
163
163
  ## Output Contracts
164
164
 
165
- - `contracts/schemas/code-review-finding.json` (adapted): severity, owner, category
166
- - `contracts/schemas/coordination-plan.json` for follow-up phases
167
- - `contracts/schemas/gadr-adr-pipeline-spec.json` for agentic ADR generation
168
- - `contracts/schemas/nygard-adr-ai-controls-spec.json` for ADR with AI safeguards
169
- - `contracts/schemas/async-decision-protocol-spec.json` for RFC + comment window
170
- - `contracts/schemas/daci-decision-spec.json` for single-approver framing
171
- - `contracts/schemas/ai-perspective-guardrails-spec.json` for labeling/pruning rules
165
+ - **`contracts/schemas/adr-spec.json`** for architectural decision records capturing Nygard format, AI controls & safeguards, DACI single-approver framing, and async decision protocols.
166
+ - **`contracts/schemas/coordination-plan.json`** for follow-up phases and multi-role delegations.
167
+ - **`contracts/schemas/code-review-finding.json`** (adapted): severity, owner, category.
172
168
 
173
169
  ## Failure Modes
174
170
 
@@ -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
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: debug-runtime-platform
3
3
  description: Investigate deployment, environment, runtime, and rollout issues that are not purely application-code bugs. Use when the service behaves differently across environments or when deployment health is unclear.
4
+ version: 1.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: setup-gpu-finops
3
3
  description: Configure GPU telemetry, DCGM metrics, and Kubecost to attribute AI compute costs to specific namespaces or teams. Use when managing GPU infrastructure budgets, tracking AI workload unit economics, or optimizing accelerator capacity.
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
 
@@ -18,6 +19,9 @@ Use this skill to implement cost transparency for self-hosted AI models and GPU
18
19
  - **MIG-MULTI-TENANT-ISOLATION**: For H100/A100/B200, configure NVIDIA MIG (Multi-Instance GPU) partitions to provide hardware-level isolation between teams sharing the same physical GPU — enforces memory and compute boundaries and prevents one tenant's OOM from affecting another's inference workload.
19
20
  - **KEDA-INFERENCE-AUTOSCALING**: Deploy KEDA ScaledObjects driven by vLLM or Triton inference queue depth metrics to scale model replicas to zero when queues are empty for >15 minutes — configure `cooldownPeriod: 900s` to prevent flapping.
20
21
  - **VLLM-APC-COST**: Enable vLLM v0.6+ Automatic Prefix Caching (APC) to reuse KV cache for repeated system prompts; structure prompts with static content first and dynamic user content last for maximum cache hit rate — reduces GPU compute cost by 20-60% for high-traffic repeated-context workloads.
22
+ - **KV-CACHE-OFFLOAD-COST (2026)**: for agentic and long-context workloads, extend KV cache into CPU RAM / storage tiers (vLLM-SGLang offloading, NVIDIA ICMS, storage-backed KV) before scaling GPU count — offloaded KV turns idle GPU VRAM back into serving capacity; price the tiers separately in cost dashboards.
23
+ - **SPECULATIVE-DECODING-THROUGHPUT (2026)**: EAGLE-3 / MTP draft models deliver up to 6.5x decode throughput on supported stacks (vLLM, SGLang; TPU support since 2026-10) — model the throughput-per-dollar gain using measured draft acceptance rate, and treat acceptance < ~70% as a net loss.
24
+ - **RACK-SCALE-PRICING (2026)**: maintain pricing sheets for rack-scale Blackwell systems (GB300 NVL72: 72 GPUs, ~278GB HBM3e each, NVLink-pooled domain) with per-GPU fractional allocation math; track the Vera Rubin roadmap for refresh depreciation windows.
21
25
 
22
26
  ## Suggested Process
23
27
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: setup-llm-gateway
3
3
  description: Configure a centralized LLM proxy gateway for token routing, budgeting, and failover. Use when deploying multi-model routing, enforcing token rate limits, managing provider credentials, or centralizing AI observability.
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
 
@@ -26,6 +27,7 @@ Use this skill to implement an AI infrastructure gateway (e.g., LiteLLM, Portkey
26
27
  Evaluate and select the LLM gateway engine based on technical requirements:
27
28
  - LiteLLM Proxy for Python/Kubernetes native environments supporting 100+ LLM providers.
28
29
  - Portkey or Cloudflare AI Gateway for edge-deployed, managed caching and routing pipelines.
30
+ - Agent Router (formerly Envoy AI Gateway; renamed 2026-09) for Kubernetes-native inference-aware routing via Gateway API Inference Extension (InferencePool, endpoint picking for KV/prefix-aware routing) when the gateway fronts self-hosted vLLM/SGLang fleets.
29
31
  - Verify support for streaming responses, function/tool calling passthrough, and structured JSON output constraints.
30
32
 
31
33
  ### 2. Deploy Gateway Infrastructure & Vault Credentials
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: supply-chain-security
3
3
  description: Implement software supply chain security by generating SBOMs (CycloneDX/SPDX), enforcing SLSA build provenance levels, integrating artifact signing (Sigstore), and maintaining VEX context for vulnerability management. Use when hardening CI/CD pipelines, generating per-build inventory, achieving SLSA Level 2 or 3 compliance, or auditing third-party dependencies including MCP server registries.
4
+ version: 1.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
6
  ---
6
7
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: system-design
3
3
  description: Design, specify, and document complex system architectures covering compute, network, storage, middleware, and AI inference layers. Translate NFRs into measurable infrastructure targets and produce capacity models. Use when designing or reviewing system topology, sizing infrastructure, planning capacity, or specifying AI infrastructure (GPU, inference servers, vector databases).
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
 
@@ -31,6 +32,9 @@ Use this skill when designing system topology for a new service or infrastructur
31
32
  - **LLM-SLOS & TOKEN-ECONOMICS**: Set measurable LLM SLOs ($TTFT_{P95} \le 800\text{ms}$, $TBT_{P95} \le 25\text{ms}$, throughput $> 40$ tokens/s per user); compute Cost-Per-Token ($CPT$) and enforce Value-Per-Token ($VPT \ge 4 \times CPT$) viability before sizing clusters.
32
33
  - **VECTOR-DB-TUNING**: Explicitly specify HNSW $m$ (connectivity), $ef\_construction$ (build quality), and query-time $ef$ (recall-latency trade-off).
33
34
  - **EMBEDDING-CACHE**: Always design an embedding cache layer; repeated embedding of identical content is the most common preventable AI cost spike.
35
+ - **KV-CACHE-TIERING (2026)**: For agentic and long-context workloads, evaluate KV-cache offloading tiers (GPU → CPU RAM → storage; vLLM/SGLang offloading, NVIDIA ICMS) before scaling GPU count; record the tiering decision in `ai_infrastructure.kv_cache_tiering` — idle GPU VRAM used as a KV warehouse is the most expensive storage in the stack.
36
+ - **SPECULATIVE-DECODING-DECISION (2026)**: Evaluate EAGLE-3/MTP speculative decoding as a capacity lever for decode-bound workloads (up to 6.5x throughput on supported stacks); gate the decision on measured draft acceptance rate (net loss below ~70%) and record it in `ai_infrastructure.speculative_decoding`.
37
+ - **DRA-GPU-ALLOCATION (2026)**: On Kubernetes v1.34+, allocate accelerators via DRA ResourceClaims (GA; admin-access and extended-resource support GA in v1.36/v1.37) with structured VRAM requests instead of opaque integer `nvidia.com/gpu` counts; combine with MIG partitioning for multi-tenant isolation.
34
38
  - See [`references/cellular-topology-and-capacity-sizing.md`](references/cellular-topology-and-capacity-sizing.md) for combinatorial proofs, Go HRW router code, and worked GPU sizing examples.
35
39
 
36
40
  ## Suggested Process
@@ -141,6 +145,9 @@ Before finalizing:
141
145
  - [ ] all infrastructure changes represented in IaC — no manual-only configuration
142
146
  - [ ] trade-offs documented: what was chosen, what was rejected, and why
143
147
  - [ ] AI infrastructure specified (when in scope): GPU allocation, inference server config, vector DB, embedding pipeline
148
+ - [ ] KV-cache tiering decision recorded for agentic/long-context workloads (when AI in scope)
149
+ - [ ] speculative decoding decision recorded with draft acceptance basis (when AI in scope)
150
+ - [ ] GPU allocation via DRA ResourceClaims on K8s v1.34+ (no opaque integer GPU counts)
144
151
  - [ ] system-design-spec.json produced when structured downstream handoff required
145
152
  - [ ] open questions, accepted risks, and escalation items documented
146
153
 
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: build-data-pipeline
3
- description: Design and implement transactional lakehouse pipelines (Iceberg v4/v3/Delta 4.0), enforce ODCS v3.1.0 data contracts, execute Write-Audit-Publish (WAP) on isolated snapshot branches, route malformed records to DLQ with circuit breaker wired to contract SLA fields, enforce S3 prefix hashing, implement Iceberg REST protocol (scan planning, ETag, Idempotency-Key, credential vending), native table encryption (KMS), and OpenLineage explicit lineage. Use when building or maintaining reliable, contract-governed lakehouse data pipelines.
3
+ description: Design and implement transactional lakehouse pipelines (Iceberg v3/Delta 4.4), enforce ODCS v3.2.0 data contracts, execute Write-Audit-Publish (WAP) on isolated snapshot branches, route malformed records to DLQ with circuit breaker wired to contract SLA fields, enforce S3 prefix hashing, implement Iceberg REST protocol (scan planning, ETag, Idempotency-Key, credential vending), native table encryption (KMS), and OpenLineage explicit lineage. Use when building or maintaining reliable, contract-governed lakehouse data pipelines.
4
+ version: 2.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests]
5
6
  ---
6
7
 
@@ -10,8 +11,8 @@ Use this skill when building or maintaining transactional lakehouse infrastructu
10
11
 
11
12
  ## When to Use
12
13
 
13
- - implementing transactional lakehouse pipelines with Apache Iceberg v4 (metadata-only restructuring), Iceberg v3, or Delta Lake 4.0 UniForm
14
- - enforcing Open Data Contract Standard (ODCS v3.1.0) at producer boundaries before ingestion
14
+ - implementing transactional lakehouse pipelines with Apache Iceberg v3 (metadata-only restructuring, Variant type) or Delta Lake 4.4 UniForm
15
+ - enforcing Open Data Contract Standard (ODCS v3.2.0) at producer boundaries before ingestion
15
16
  - staging writes to isolated snapshot branches (`wap_audit_<run_id>`) for atomic Write-Audit-Publish (WAP)
16
17
  - auditing branch data in-process via DuckDB zero-copy Arrow memory before publishing to `main`
17
18
  - routing poisoned or non-conforming records into Dead-Letter Queue (DLQ) quarantine with circuit breaker **wired to contract SLA fields**
@@ -25,10 +26,10 @@ Use this skill when building or maintaining transactional lakehouse infrastructu
25
26
  ## Core Rules
26
27
 
27
28
  - **Read-Only Sources**: treat all source inputs as read-only; never mutate upstream source files or CDC logs.
28
- - **ODCS v3.1.0 Contract Verification**: validate raw payloads against version-controlled ODCS v3.1.0 schemas at producer boundaries before ingestion; reject uncontracted schema drift.
29
+ - **ODCS v3.2.0 Contract Verification**: validate raw payloads against version-controlled ODCS v3.2.0 schemas at producer boundaries before ingestion; reject uncontracted schema drift.
29
30
  - **Modern Lakehouse Table Formats**:
30
- - standardize on **Apache Iceberg v4** with metadata-only restructuring (never data rewrites for schema/partition evolution) and **Iceberg v3** with Puffin RoaringBitmap Deletion Vectors (DVs) and integer `spec-id` partition evolution; avoid legacy position deletes.
31
- - support **Delta Lake 4.0 UniForm** for universal Iceberg metadata compatibility and Liquid Clustering.
31
+ - standardize on **Apache Iceberg v3** (1.11+/1.12 implementation line) with metadata-only restructuring (never data rewrites for schema/partition evolution), Puffin RoaringBitmap Deletion Vectors (DVs), and integer `spec-id` partition evolution; avoid legacy position deletes; treat the unratified Iceberg v4 spec strictly as roadmap.
32
+ - support **Delta Lake 4.4 UniForm** for universal Iceberg metadata compatibility and Liquid Clustering.
32
33
  - **Variant as Canonical Semi-Structured Path**: adopt `VARIANT` type for schemaless JSON payloads, eliminating `string` blob anti-patterns and enabling pushdown predicate evaluation on nested fields.
33
34
  - coordinate catalog metadata through REST Catalogs (Polaris, Unity Catalog OSS, Lakekeeper) with short-lived STS tokens.
34
35
  - **Iceberg REST Catalog Protocol**: implement scan planning (`POST /v1/oauth/tokens`, `POST /v1/namespaces/{ns}/tables`), ETag-based freshness validation (`If-None-Match`), Idempotency-Key commits for exactly-once writes, and dynamic credential vending (`GET /v1/credentials`).
@@ -57,7 +58,7 @@ Use this skill when building or maintaining transactional lakehouse infrastructu
57
58
  ## Suggested Process
58
59
 
59
60
  ### 1. Ingest & Verify Producer Contract
60
- Validate incoming batch or streaming event schemas against the ODCS v3.1.0 contract in producer CI/CD before persisting to storage.
61
+ Validate incoming batch or streaming event schemas against the ODCS v3.2.0 contract in producer CI/CD before persisting to storage.
61
62
 
62
63
  ### 2. Contract Validation, DLQ Quarantine & WAP Branch Staging
63
64
  Validate incoming batch records against the ODCS contract. Route non-compliant records to the DLQ with structured envelopes. Calculate quarantine ratio $Q_r = (N_{\text{quarantined}} / N_{\text{total}}) \times 100\%$. Write and stage only compliant, deduplicated records to an isolated Iceberg snapshot branch (`wap_audit_<run_id>`) with `write.object-storage.enabled = true`.
@@ -83,8 +84,8 @@ Validate outputs against `contracts/schemas/data-pipeline-spec.json`. Tag mainte
83
84
  ## Checklist
84
85
 
85
86
  - [ ] upstream source files and streaming CDC logs treated as strictly read-only
86
- - [ ] ODCS v3.1.0 producer contracts validated at perimeter before storage persistence
87
- - [ ] Iceberg v4 / v3 / Delta 4.0 UniForm configured with Puffin RoaringBitmap DVs and `spec-id` partition evolution
87
+ - [ ] ODCS v3.2.0 producer contracts validated at perimeter before storage persistence
88
+ - [ ] Iceberg v3 / Delta 4.4 UniForm configured with Puffin RoaringBitmap DVs and `spec-id` partition evolution
88
89
  - [ ] **Variant type adopted for semi-structured JSON payloads** (canonical path)
89
90
  - [ ] table property `write.object-storage.enabled = true` active to prevent AWS S3 503 Slow Down throttling
90
91
  - [ ] **Iceberg REST Catalog protocol implemented**: scan planning, ETag freshness, Idempotency-Key commits, credential vending
@@ -117,7 +118,7 @@ When emitting pipeline specifications for downstream consumers, orchestrators, o
117
118
 
118
119
  ## Failure Modes
119
120
 
120
- - **Silent schema poisoning**: unannounced upstream schema changes corrupt lakehouse tables. Mitigation: enforce ODCS v3.1.0 pre-ingestion validation; route non-conforming payloads to DLQ quarantine.
121
+ - **Silent schema poisoning**: unannounced upstream schema changes corrupt lakehouse tables. Mitigation: enforce ODCS v3.2.0 pre-ingestion validation; route non-conforming payloads to DLQ quarantine.
121
122
  - **S3 partition throttling storm**: high-volume writes hit single S3 prefix limits causing 503 Slow Down errors. Mitigation: set table property `write.object-storage.enabled = true` for prefix hashing.
122
123
  - **Direct write corruption**: unvalidated rows written directly to `main`. Mitigation: mandate Write-Audit-Publish (WAP) isolated snapshot branches (`wap_audit_<run_id>`).
123
124
  - **DLQ poison overflow**: high-volume bad data floods quarantine silently. Mitigation: enforce circuit breaker halting ingestion when $Q_r > 2.0%$ ($N \ge 50$).
@@ -129,10 +130,10 @@ When emitting pipeline specifications for downstream consumers, orchestrators, o
129
130
  ## Security Guardrails (OWASP ASI)
130
131
 
131
132
  - **ASI03 Identity & Privilege Abuse**: classify PII with `data-classification.yaml`; enforce short-lived STS tokens via REST Catalog.
132
- - **ASI04 Supply Chain**: validate connectors, dbt packages, and Iceberg catalog drivers against approved manifests.
133
- - **ASI05 RCE Guard**: parameterize all dynamic SQL and partition paths; prohibit raw string interpolation.
134
- - **ASI06 Context & Memory Poisoning**: sanitize and provenance-tag document chunks before RAG vector ingestion.
135
- - **ASI07 Inter-Agent Communication**: emit structured `data-pipeline-spec.json` contracts for downstream agents.
133
+ - **ASI04 Agentic Supply Chain**: validate connectors, dbt packages, and Iceberg catalog drivers against approved manifests.
134
+ - **ASI05 Unexpected Code Execution**: parameterize all dynamic SQL and partition paths; prohibit raw string interpolation.
135
+ - **ASI06 Memory & Context Poisoning**: sanitize and provenance-tag document chunks before RAG vector ingestion.
136
+ - **ASI07 Insecure Inter-Agent Communication**: emit structured `data-pipeline-spec.json` contracts for downstream agents.
136
137
  - **ASI09 Human-Agent Trust Exploitation**: disclose residual ingestion risks, SLA deviations, and quality validation metrics truthfully.
137
138
  - **NATIVE-ENCRYPTION-LOCK**: all Iceberg and Delta Lake tables must enforce AES-256 encryption at rest via cloud KMS; encryption keys managed through catalog-integrated key management.
138
139
  - **OPENLINEAGE-LOCK**: all pipeline stages must emit column-level OpenLineage events for end-to-end traceability and impact analysis.
@@ -1,14 +1,14 @@
1
1
  # Producer Contracts & Modern Lakehouse Storage — Reference
2
2
 
3
- This reference documents standards and implementation procedures for enforcing Open Data Contract Standard (ODCS v3.1.0) specifications at producer boundaries and managing transactional lakehouse architectures (Apache Iceberg and Delta Lake).
3
+ This reference documents standards and implementation procedures for enforcing Open Data Contract Standard (ODCS v3.2.0) specifications at producer boundaries and managing transactional lakehouse architectures (Apache Iceberg and Delta Lake).
4
4
 
5
5
  ---
6
6
 
7
- ## 1. Open Data Contract Standard (ODCS v3.1.0) at Producer Boundary
7
+ ## 1. Open Data Contract Standard (ODCS v3.2.0) at Producer Boundary
8
8
 
9
9
  Modern agentic data architectures replace fragile, undocumented data handoffs with explicit, machine-readable data contracts negotiated between data producers and consumers.
10
10
 
11
- ### 1.1 ODCS v3.1.0 Contract Specification
11
+ ### 1.1 ODCS v3.2.0 Contract Specification
12
12
  Every ingested dataset must possess an active contract specifying four foundational pillars:
13
13
 
14
14
  ```yaml
@@ -74,8 +74,8 @@ Data pipelines must organize storage into transactional, ACID-compliant tiers us
74
74
  - **ACID Snapshot Isolation**: All write transactions commit atomically by updating the metadata pointer file (`metadata.json`). Readers query consistent snapshots without locking writers.
75
75
  - **File Sizing Standards**: Optimize Parquet file sizes between 128 MB and 512 MB to balance scan throughput with query planning latency.
76
76
 
77
- ### 2.3 dbt 1.9 Microbatch Incremental Strategy
78
- For high-volume event streams, use dbt 1.9 microbatch models to enable partitioned backfills and granular auto-retries:
77
+ ### 2.3 dbt Core 2.0 Microbatch Incremental Strategy
78
+ For high-volume event streams, use dbt Core 2.0 (Rust-engine GA; the 1.12+ line remains in active support until 2027-07) microbatch models to enable partitioned backfills and granular auto-retries:
79
79
 
80
80
  ```sql
81
81
  {{ config(
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: database-maintenance
3
3
  description: Plan and execute operational data store and modern lakehouse maintenance, including Apache Iceberg/Delta 256MB bin-pack compaction merging Deletion Vectors, manifest rewriting, 7-day/50-snapshot expiration, 72h orphan vacuuming, and FinOps cost attribution. Use for cleanup, compaction, repair, and operational performance tasks.
4
+ version: 1.0.0
4
5
  allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests]
5
6
  ---
6
7
 
@@ -67,15 +67,15 @@ Never execute plain `REINDEX TABLE` or `REINDEX INDEX` in production environment
67
67
 
68
68
  ---
69
69
 
70
- ## 3. PostgreSQL 17 Zero-Downtime Upgrades
70
+ ## 3. PostgreSQL 18 Zero-Downtime Upgrades
71
71
 
72
- When executing major PostgreSQL version upgrades (e.g. Postgres 15/16 → Postgres 17):
72
+ When executing major PostgreSQL version upgrades (e.g. Postgres 16/17 → Postgres 18):
73
73
 
74
74
  ### 3.1 Logical Replication via `pg_createsubscriber`
75
- 1. **Provision Target Node**: Deploy new PostgreSQL 17 replica matching existing cluster specifications.
75
+ 1. **Provision Target Node**: Deploy new PostgreSQL 18 replica matching existing cluster specifications.
76
76
  2. **Convert to Subscriber**: Execute `pg_createsubscriber` to transform physical standby into logical subscriber:
77
77
  ```bash
78
- pg_createsubscriber -D /var/lib/postgresql/17/data -P "host=primary-db port=5432 user=replicator"
78
+ pg_createsubscriber -D /var/lib/postgresql/18/data -P "host=primary-db port=5432 user=replicator"
79
79
  ```
80
80
  3. **Synchronize Sequences & DDL**: Manually replicate and apply DDL schema changes and advance sequence values.
81
- 4. **Traffic Cutover**: Switch application connection pools to PostgreSQL 17 target with sub-second downtime.
81
+ 4. **Traffic Cutover**: Switch application connection pools to PostgreSQL 18 target with sub-second downtime.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: manage-secrets
3
3
  description: Add, update, rotate, or review secret handling by following the repo's source-of-truth, access-control, and rollout patterns. Use when code or deployment work touches credentials, tokens, keys, or sensitive configuration.
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
 
@@ -26,6 +27,7 @@ Use this skill when a change involves creating, rotating, wiring, or auditing se
26
27
  - **WIMSE alignment (2027)**: for agent and workload identities, prefer SPIFFE/SVID issuance and short-lived WIMSE-style tokens (JOSE-based service-to-service chains) over static API keys; use RFC 8693 token exchange at trust boundaries — the first WIMSE RFCs are expected in 2027 as the IETF architecture (at IESG since July 2026) formalizes
27
28
  - **Secrets-less preference**: prefer payment-native or federated access patterns (e.g., x402) that remove standing credentials entirely where the integration allows; where secrets remain, they must be NHI-scoped, rotated, and inventory-tracked
28
29
  - maintain a **per-agent identity inventory**: every non-human identity (agent, service account, workload) recorded with owner, scope, and lifecycle state — untracked NHIs are prohibited
30
+ - **PQC crypto-agility**: record each key's algorithm and rotation cadence in the secret/NHI inventory so quantum-vulnerable algorithms (RSA, ECDSA) can be enumerated into the CBOM and scheduled ahead of NIST IR 8547 deadlines (deprecated 2030, disallowed 2035); prefer hybrid-capable, algorithm-negotiable libraries for new key material
29
31
  - mitigate the elevated risk (2× secrets leakage rate) in AI-assisted code generation by enforcing automated pre-commit and CI pipeline scanning using Gitleaks or TruffleHog
30
32
  - evaluate secret storage provider choices (e.g., OpenBao vs. HashiCorp Vault) against the organization's governance policies, licensing models (MPL vs. BSL), and migration/support requirements
31
33
  - treat every secret rotation as an irreversible action that requires explicit user confirmation; never rotate a production credential without an approval gate
@@ -127,6 +129,7 @@ Confirm without exposing values:
127
129
  - [ ] OIDC workload identity federation configured for pipeline authentication
128
130
  - [ ] pre-commit and CI/CD secret scanning (Gitleaks/TruffleHog) active for AI-generated code validation
129
131
  - [ ] governance alignment (OpenBao vs HashiCorp Vault) reviewed and documented
132
+ - [ ] crypto algorithm and rotation metadata recorded for CBOM/PQC inventory alignment
130
133
 
131
134
  ## Related Skills
132
135
 
@@ -27,6 +27,8 @@ When completing a scoped accounting review or period close, emit the appropriate
27
27
 
28
28
  - **`contracts/schemas/accounting-compliance-review.json`** — Machine-readable compliance review with source versions, gates, findings, retention classification, required approvals, assumptions, exceptions, and a scoped disclaimer. Set `produced_by_role: vietnam-accounting-specialist`.
29
29
  - **`contracts/schemas/period-end-closing-report.json`** — Machine-readable financial period-end closing report capturing trial balance reconciliations, closing entries, Account 911 clearing, financial statements, and HITL approval token. Set `produced_by_role: vietnam-accounting-specialist`.
30
+ - **`contracts/schemas/amis-voucher-contract.json`** — Enterprise financial schema for multi-channel retail vouchers exported to MISA AMIS ERP, enforcing VAS 14 revenue recognition, pre-tax VAT decomposition, and strict debit-credit balance verification. Set `produced_by_role: vietnam-accounting-specialist`.
31
+ - **`contracts/schemas/stock-audit-session.json`** — Physical inventory stocktake contract governing the audit lifecycle, tolerance thresholds, blind recounts, variance reconciliation, TK 1381/3381 suspense accounting, and sign-offs. Set `produced_by_role: vietnam-accounting-specialist`.
30
32
 
31
33
  ## Suggested Process
32
34
 
@@ -82,7 +84,7 @@ Assemble B01-DN, B02-DN, B03-DN, B09-DN with balance equality checks. Emit SHA-2
82
84
  - [ ] TK 242 allocation $\le$ 36 months, TK 214 depreciation within Circular 45 brackets, and Account 911 cleared to zero
83
85
  - [ ] financial statements satisfy balance equality equations (B01, B02, B03, B09)
84
86
  - [ ] immutable WORM snapshot generated, OCSF 99001 logged, and Chief Accountant HITL token verified
85
- - [ ] output contract emitted: `accounting-compliance-review.json` or `period-end-closing-report.json`
87
+ - [ ] output contract emitted: `accounting-compliance-review.json`, `period-end-closing-report.json`, `amis-voucher-contract.json`, or `stock-audit-session.json`
86
88
 
87
89
  ## Related Skills
88
90