@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
package/INDEX.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agent-Skills Master Index & Router
2
2
 
3
- > **Location:** `core/` & `overlays/` | **Version:** `5.6.0` (A2A 1.0 + Antigravity)
3
+ > **Location:** `core/` & `overlays/` | **Version:** `5.7.0` (A2A 1.0 + Antigravity)
4
4
  > **Total Catalog:** **38 Roles** | **182 Skills** (167 Core + 15 Overlays) | **25 Workflows** | **60 Data Contracts**
5
5
 
6
6
  ---
@@ -108,7 +108,7 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
108
108
 
109
109
  | Skill Slug | Description | File |
110
110
  |:---|:---|:---|
111
- | **`@deploy-vllm-inference`** | Deploy, configure, scale, and optimize high-throughput LLM inference workloads using vLLM v1 PagedAt... | [`core/skills/ai/deploy-vllm-inference/SKILL.md`](./core/skills/ai/deploy-vllm-inference/SKILL.md) |
111
+ | **`@deploy-vllm-inference`** | Deploy, configure, scale, and optimize high-throughput LLM inference workloads using the vLLM V1 eng... | [`core/skills/ai/deploy-vllm-inference/SKILL.md`](./core/skills/ai/deploy-vllm-inference/SKILL.md) |
112
112
 
113
113
  ### Category: `ai-agent` (3 skills)
114
114
 
@@ -410,13 +410,13 @@ When you mention `@<role>` and/or `@<skill>` in chat, Antigravity resolves them
410
410
 
411
411
  | Skill Slug | Description | File |
412
412
  |:---|:---|:---|
413
- | **`@build-data-pipeline`** | Design and implement transactional lakehouse pipelines (Iceberg v4/v3/Delta 4.0), enforce ODCS v3.1.... | [`core/skills/security-data/build-data-pipeline/SKILL.md`](./core/skills/security-data/build-data-pipeline/SKILL.md) |
413
+ | **`@build-data-pipeline`** | Design and implement transactional lakehouse pipelines (Iceberg v3/Delta 4.4), enforce ODCS v3.2.0 d... | [`core/skills/security-data/build-data-pipeline/SKILL.md`](./core/skills/security-data/build-data-pipeline/SKILL.md) |
414
414
  | **`@database-maintenance`** | Plan and execute operational data store and modern lakehouse maintenance, including Apache Iceberg/D... | [`core/skills/security-data/database-maintenance/SKILL.md`](./core/skills/security-data/database-maintenance/SKILL.md) |
415
415
  | **`@manage-secrets`** | Add, update, rotate, or review secret handling by following the repo's source-of-truth, access-contr... | [`core/skills/security-data/manage-secrets/SKILL.md`](./core/skills/security-data/manage-secrets/SKILL.md) |
416
416
  | **`@manage-vietnam-accounting`** | Prepare and review Vietnam accounting controls, accounting-regime evidence, reconciliations, invoice... | [`core/skills/security-data/manage-vietnam-accounting/SKILL.md`](./core/skills/security-data/manage-vietnam-accounting/SKILL.md) |
417
- | **`@optimize-olap-database`** | Design high-throughput OLAP schemas for Iceberg v4/v3, tune ClickHouse/DuckDB columnar engines, conf... | [`core/skills/security-data/optimize-olap-database/SKILL.md`](./core/skills/security-data/optimize-olap-database/SKILL.md) |
417
+ | **`@optimize-olap-database`** | Design high-throughput OLAP schemas for Iceberg v3, tune ClickHouse/DuckDB columnar engines, configu... | [`core/skills/security-data/optimize-olap-database/SKILL.md`](./core/skills/security-data/optimize-olap-database/SKILL.md) |
418
418
  | **`@prompt-injection-defense`** | Use when safeguarding AI agents against direct and indirect prompt injection attacks, implementing b... | [`core/skills/security-data/prompt-injection-defense/SKILL.md`](./core/skills/security-data/prompt-injection-defense/SKILL.md) |
419
- | **`@query-analytical-engine`** | Execute in-process analytical SQL with chDB and DuckDB v1.1+, orchestrate multi-step stateful pipeli... | [`core/skills/security-data/query-analytical-engine/SKILL.md`](./core/skills/security-data/query-analytical-engine/SKILL.md) |
419
+ | **`@query-analytical-engine`** | Execute in-process analytical SQL with chDB and DuckDB v1.5+, orchestrate multi-step stateful pipeli... | [`core/skills/security-data/query-analytical-engine/SKILL.md`](./core/skills/security-data/query-analytical-engine/SKILL.md) |
420
420
  | **`@security-audit`** | Review code, configuration, and service behavior for security risks by checking trust boundaries, se... | [`core/skills/security-data/security-audit/SKILL.md`](./core/skills/security-data/security-audit/SKILL.md) |
421
421
  | **`@skill-preflight-ast-check`** | Use when performing zero-execution static AST security vetting of third-party agent skills, enforcin... | [`core/skills/security-data/skill-preflight-ast-check/SKILL.md`](./core/skills/security-data/skill-preflight-ast-check/SKILL.md) |
422
422
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agent Skills — Engineering & Multi-Agent Pack
2
2
 
3
- **Version 5.6.0** · Portable engineering standards, principal-level agent roles, modular skills, structured data contracts, and end-to-end workflows for AI coding assistants and autonomous multi-agent swarms.
3
+ **Version 5.7.0** · Portable engineering standards, principal-level agent roles, modular skills, structured data contracts, and end-to-end workflows for AI coding assistants and autonomous multi-agent swarms.
4
4
 
5
5
  > **Catalog**: **38 Roles** · **182 Skills** (167 Core + 15 Overlays) · **25 Workflows** · **60 JSON Schemas** · **17 Team Packs** · **21 Overlays**
6
6
  > **Navigation**: [Master Index (`INDEX.md`)](INDEX.md) · [Machine Registry (`role-skill-index.json`)](core/a2a/.well-known/role-skill-index.json) · [Contributing Guide](CONTRIBUTING.md) · [Changelog](CHANGELOG.md)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 5.6.0
1
+ 5.7.0
@@ -4,7 +4,7 @@
4
4
  a2a:
5
5
  enabled: true
6
6
  protocol_version: "1.0"
7
- pack_version: "5.6.0" # sync with VERSION file
7
+ pack_version: "5.7.0" # sync with VERSION file
8
8
 
9
9
  discovery:
10
10
  registry: "core/a2a/.well-known/agent-registry.json"
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.6.0",
2
+ "version": "5.7.0",
3
3
  "protocol": "A2A 1.0 + Antigravity",
4
4
  "root": ".",
5
5
  "stats": {
@@ -1593,7 +1593,7 @@
1593
1593
  "ai-systems-engineer": {
1594
1594
  "name": "ai-systems-engineer",
1595
1595
  "title": "AI Systems Engineer",
1596
- "description": "architect, deploy, evaluate, and optimize production-grade AI and LLM systems — bridging machine learning models with resilient backend serving infrastructure, intelligent LLM gateways, structured output enforcement, and empirical evaluation frameworks while enforcing GPU FinOps, hardware-partitioned accelerator orchestration, knowledge distillation from frontier models to Small Language Models (SLMs), and defense-in-depth against prompt injection and model drift.",
1596
+ "description": "architect, deploy, evaluate, and optimize production-grade AI and LLM systems — bridging machine learning models with resilient backend serving infrastructure, intelligent LLM gateways, structured output enforcement, and empirical evaluation frameworks while enforcing GPU FinOps, hardware-partitioned accelerator orchestration, knowledge distillation from frontier models to Small Language Models (SLMs), defense-in-depth against prompt injection and model drift, and context engineering (compaction, just-in-time retrieval, durable agent memory) for long-running agents.",
1597
1597
  "file": "core/roles/ai-systems-engineer.md",
1598
1598
  "skills": [
1599
1599
  "deploy-vllm-inference",
@@ -1638,7 +1638,7 @@
1638
1638
  "aws-engineer": {
1639
1639
  "name": "aws-engineer",
1640
1640
  "title": "AWS Engineer",
1641
- "description": "build, operate, and optimize AWS-native managed services and universal cloud control planes with OpenTofu v1.8+ client-side state KMS encryption, Crossplane v1.16+ Go compositions, Bottlerocket distroless container hosts, AWS IAM Zero-Trust with EKS Pod Identity, and Amazon Bedrock AI isolation — ensuring every AWS resource is provisioned securely, cost-attributed, and observable. In 2026–2027, this extends to governing multi-account landing zones via AWS Control Tower and SCPs, enforcing zero long-lived credentials with IAM Identity Center, declarative autoscaling via Karpenter v1.0+ on Graviton4, Trainium2 and Inferentia2 silicon, sidecarless service networking via AWS VPC Lattice with Gateway API, Bedrock PrivateLink endpoints with Guardrails v2 contextual grounding, and shift-left FinOps tagging at apply time, emitting authoritative `contracts/schemas/aws-infra-spec.json` machine handoffs for platform delivery.",
1641
+ "description": "build, operate, and optimize AWS-native managed services and universal cloud control planes with OpenTofu v1.13+ client-side state KMS encryption, Crossplane v2.4+ Go compositions, Bottlerocket distroless container hosts, AWS IAM Zero-Trust with EKS Pod Identity, and Amazon Bedrock AI isolation — ensuring every AWS resource is provisioned securely, cost-attributed, and observable. In 2026–2027, this extends to governing multi-account landing zones via AWS Control Tower and SCPs, enforcing zero long-lived credentials with IAM Identity Center, declarative autoscaling via Karpenter v1.x or managed EKS Auto Mode on Graviton5 and Trainium3 silicon, sidecarless service networking via AWS VPC Lattice with Gateway API, Bedrock PrivateLink endpoints with Guardrails v2 contextual grounding, and shift-left FinOps tagging at apply time, emitting authoritative `contracts/schemas/aws-infra-spec.json` machine handoffs for platform delivery.",
1642
1642
  "file": "core/roles/aws-engineer.md",
1643
1643
  "skills": [
1644
1644
  "aws-infrastructure",
@@ -1820,7 +1820,7 @@
1820
1820
  "content-manager": {
1821
1821
  "name": "content-manager",
1822
1822
  "title": "Content Manager",
1823
- "description": "direct the overall content portfolio strategy of a website — from architecting comprehensive pillar-cluster taxonomies, governing full-funnel audience journeys (TOFU awareness → MOFU consideration → BOFU conversion), to enforcing Top 10 SERP Information Gain moats (≥75/100 non-commodity score), authenticating subject matter expert (SME) credentials, and executing 3-tier content decay triage. Bridge business goals and day-to-day content operations; ensure every published asset delivers novel value, maintains strict internal linking topology, serves the right audience, on the right channel, at the right stage of website growth. In 2025–2026, this extends to governing AI-assisted content pipelines with mandatory human editorial gates, rejecting commodity skyscraper rewrites, operating proactive decay remediation SLAs (Quick Patch ≤15d, Structural Rewrite ≤30d, Consolidation ≤20d, Decommission ≤10d), and enforcing closed-loop multi-channel distribution with zero semantic drift.",
1823
+ "description": "direct the overall content portfolio strategy of a website — from architecting comprehensive pillar-cluster taxonomies, governing full-funnel audience journeys (TOFU awareness → MOFU consideration → BOFU conversion), to enforcing Top 10 SERP Information Gain moats (≥75/100 non-commodity score), authenticating subject matter expert (SME) credentials, and executing 3-tier content decay triage. Bridge business goals and day-to-day content operations; ensure every published asset delivers novel value, maintains strict internal linking topology, serves the right audience, on the right channel, at the right stage of website growth. In 2025–2027, this extends to governing AI-assisted content pipelines with mandatory human editorial gates, rejecting commodity skyscraper rewrites, operating proactive decay remediation SLAs (Quick Patch ≤15d, Structural Rewrite ≤30d, Consolidation ≤20d, Decommission ≤10d), and enforcing closed-loop multi-channel distribution with zero semantic drift.",
1824
1824
  "file": "core/roles/content-manager.md",
1825
1825
  "skills": [
1826
1826
  "design-content-strategy",
@@ -1933,7 +1933,7 @@
1933
1933
  "data-engineer": {
1934
1934
  "name": "data-engineer",
1935
1935
  "title": "Data Engineer",
1936
- "description": "design, build, and maintain deterministic, high-throughput lakehouse layers, transactional storage formats, high-performance OLAP columnar engines (ClickHouse, DuckDB), and unified semantic metrics so analysts, applications, and autonomous AI agents consume reliable, timely, and governable data products — eliminating uncontracted data slop and cloud warehouse FinOps runaway traps. In 2025–2027, this embodies The Second Data Convergence: enforcing Open Data Contract Standard (ODCS v3.1.0) specifications at producer boundaries, architecting Modern Lakehouses with Apache Iceberg v4 (metadata-only restructuring; never data rewrites) and Iceberg v3 (hardware-accelerated Puffin RoaringBitmap Deletion Vectors, integer spec-id partition evolution), **Variant as the canonical semi-structured path**, and Delta Lake 4.0 UniForm with open REST Catalogs (Apache Polaris, Unity Catalog OSS, Lakekeeper), optimizing OLAP database engines (ClickHouse/DuckDB sparse primary index granules, partition pruning, dictionary joins, streaming micro-batch buffering), mandating S3 object storage prefix hashing (write.object-storage.enabled = true), orchestrating with Dagster Software-Defined Assets and real-time streaming CDC (Apache Flink 2.3 sinks, Debezium, Redpanda), guaranteeing atomic Write-Audit-Publish (WAP) on isolated snapshot branches, deploying structured Dead-Letter Queue (DLQ) quarantine envelopes with mathematical circuit breakers (Q_r > 2.0%, N >= 50) **wired to contract SLA fields**, enforcing **native table encryption (KMS)**, and **OpenLineage explicit lineage facets** across the pipeline, and enforcing 8 immutable Data Guardrail Locks under OWASP ASI03/ASI06.",
1936
+ "description": "design, build, and maintain deterministic, high-throughput lakehouse layers, transactional storage formats, high-performance OLAP columnar engines (ClickHouse, DuckDB), and unified semantic metrics so analysts, applications, and autonomous AI agents consume reliable, timely, and governable data products — eliminating uncontracted data slop and cloud warehouse FinOps runaway traps. In 2025–2027, this embodies The Second Data Convergence: enforcing Open Data Contract Standard (ODCS v3.2.0) specifications at producer boundaries, architecting Modern Lakehouses with Apache Iceberg v3 (the current ratified spec: metadata-only restructuring with no data rewrites, hardware-accelerated Puffin RoaringBitmap Deletion Vectors, integer spec-id partition evolution, and the Variant semi-structured type) while tracking the unratified Iceberg v4 proposals strictly as roadmap, **Variant as the canonical semi-structured path**, and Delta Lake 4.4 UniForm with open REST Catalogs (Apache Polaris, Unity Catalog OSS, Lakekeeper), optimizing OLAP database engines (ClickHouse/DuckDB sparse primary index granules, partition pruning, dictionary joins, streaming micro-batch buffering), mandating S3 object storage prefix hashing (write.object-storage.enabled = true), orchestrating with Dagster Software-Defined Assets and real-time streaming CDC (Apache Flink 2.3 sinks, Debezium, Redpanda), guaranteeing atomic Write-Audit-Publish (WAP) on isolated snapshot branches, deploying structured Dead-Letter Queue (DLQ) quarantine envelopes with mathematical circuit breakers (Q_r > 2.0%, N >= 50) **wired to contract SLA fields**, enforcing **native table encryption (KMS)**, and **OpenLineage explicit lineage facets** across the pipeline, and enforcing 12 immutable Data Guardrail Locks under OWASP ASI03/ASI06.",
1937
1937
  "file": "core/roles/data-engineer.md",
1938
1938
  "skills": [
1939
1939
  "build-data-pipeline",
@@ -2529,7 +2529,7 @@
2529
2529
  "security-engineer": {
2530
2530
  "name": "security-engineer",
2531
2531
  "title": "Security Engineer",
2532
- "description": "reduce security risk early by identifying weaknesses in design, code, configuration, dependencies, and operations before they become incidents. In 2025–2026, this extends to assessing AI/LLM-specific attack surfaces (prompt injection, training data poisoning, model output exploitation), enforcing shift-left security practices (threat modeling before design sign-off, SAST/DAST in CI), and treating AI systems as high-risk trust boundary additions that require explicit security review before deployment.",
2532
+ "description": "reduce security risk early by identifying weaknesses in design, code, configuration, dependencies, and operations before they become incidents. In 2025–2026, this extends to assessing AI/LLM-specific attack surfaces (prompt injection, training data poisoning, model output exploitation), enforcing shift-left security practices (threat modeling before design sign-off, SAST/DAST in CI), treating AI systems as high-risk trust boundary additions that require explicit security review before deployment — and, as of late 2026, covering EU Cyber Resilience Act product readiness and post-quantum cryptography transition review.",
2533
2533
  "file": "core/roles/security-engineer.md",
2534
2534
  "skills": [
2535
2535
  "security-audit",
@@ -2613,7 +2613,7 @@
2613
2613
  "solution-architect": {
2614
2614
  "name": "solution-architect",
2615
2615
  "title": "Solution Architect",
2616
- "description": "translate business goals, stakeholder constraints, and existing capability into a structured solution design that engineering roles can execute without guessing the intent — making build-vs-buy, platform, integration, and vendor trade-offs explicit before requirements are locked or architecture decisions are made. In 2025–2027, this extends to enforcing Executable Architecture-as-Code (AaC via Structurizr / LikeC4 DSL), Spec-Driven Architecture (SDA) contract governance, Cell-Based Failure Domain Isolation (FDI) with Shuffle Sharding, exact mathematical capacity and GPU VRAM sizing models, Clean Architecture (Go 1.25+ Kratos & Dapr Saga orchestration), and automated Policy-as-Code (OPA Rego / Kyverno) before engineering commits.",
2616
+ "description": "translate business goals, stakeholder constraints, and existing capability into a structured solution design that engineering roles can execute without guessing the intent — making build-vs-buy, platform, integration, and vendor trade-offs explicit before requirements are locked or architecture decisions are made. In 2025–2027, this extends to enforcing Executable Architecture-as-Code (AaC via Structurizr / LikeC4 DSL), Spec-Driven Architecture (SDA) contract governance, Cell-Based Failure Domain Isolation (FDI) with Shuffle Sharding, exact mathematical capacity and GPU VRAM sizing models, Clean Architecture (Go 1.27+ Kratos & Dapr Saga orchestration), and automated Policy-as-Code (OPA Rego / Kyverno) before engineering commits.",
2617
2617
  "file": "core/roles/solution-architect.md",
2618
2618
  "skills": [
2619
2619
  "write-tech-radar",
@@ -2951,7 +2951,7 @@
2951
2951
  "ui-ux-designer": {
2952
2952
  "name": "ui-ux-designer",
2953
2953
  "title": "UI/UX Designer",
2954
- "description": "design usable, coherent, and outcome-focused experiences that reduce friction and make product behavior clear. In 2025–2026, this extends to designing for probabilistic AI systems (non-deterministic states, confidence indicators, transparency hooks, human override patterns), governing design systems as living infrastructure with W3C-compliant token architecture and automated design-to-code pipelines, and enforcing Taste-Skill anti-slop frontend and UX design standards (brief inference, three-dial parameterization, anti-default typography and layout discipline, and ruthless copy auditing) to ensure interfaces feel human-crafted, distinct, and free of AI tropes. In 2026, this further extends to designing for agentic AI systems with explicit autonomy tier governance (Trust Ladder), background agent intervention affordances, and GenUI component palette constraints; and to aligning with EU AI Act Article 50 transparency obligations (live 2 August 2026) and MCP 2026-07-28 protocol updates.",
2954
+ "description": "design usable, coherent, and outcome-focused experiences that reduce friction and make product behavior clear. In 2025–2026, this extends to designing for probabilistic AI systems (non-deterministic states, confidence indicators, transparency hooks, human override patterns), governing design systems as living infrastructure with W3C-compliant token architecture and automated design-to-code pipelines, and enforcing Taste-Skill anti-slop frontend and UX design standards (brief inference, three-dial parameterization, anti-default typography and layout discipline, and ruthless copy auditing) to ensure interfaces feel human-crafted, distinct, and free of AI tropes. In 2026, this further extends to designing for agentic AI systems with explicit autonomy tier governance (Trust Ladder), background agent intervention affordances, and GenUI component palette constraints; and to aligning with EU AI Act Article 50 transparency obligations (live 2 August 2026), MCP 2026-07-28 protocol updates, DTCG Design Tokens Format Module 2025.10 conformance, dual-audience operability for AI agents operating the UI alongside humans (Agents-as-Users), and US ADA Title II accessibility deadlines (April 2027–2028).",
2955
2955
  "file": "core/roles/ui-ux-designer.md",
2956
2956
  "skills": [
2957
2957
  "design-ux-flow",
@@ -3218,7 +3218,7 @@
3218
3218
  "category": "ai",
3219
3219
  "type": "core",
3220
3220
  "file": "core/skills/ai/deploy-vllm-inference/SKILL.md",
3221
- "description": "Deploy, configure, scale, and optimize high-throughput LLM inference workloads using vLLM v1 PagedAttention. Use when serving self-hosted open models (DeepSeek-R1, Qwen2.5, Llama 3.3) on Kubernetes with Dynamic Resource Allocation (DRA), NVIDIA MIG slicing, dynamic chunked prefill, prefix caching, and multi-tier KV cache offloading."
3221
+ "description": "Deploy, configure, scale, and optimize high-throughput LLM inference workloads using the vLLM V1 engine (default since 2025, current v0.32+). Use when serving self-hosted open-weight models (GLM-5, DeepSeek-V4, Qwen3.8, Kimi K2/K3, gpt-oss) on Kubernetes with Dynamic Resource Allocation (DRA), NVIDIA MIG slicing, dynamic chunked prefill, prefix caching, and multi-tier KV cache offloading."
3222
3222
  },
3223
3223
  "agent-evaluation": {
3224
3224
  "name": "agent-evaluation",
@@ -4142,7 +4142,7 @@
4142
4142
  "category": "security-data",
4143
4143
  "type": "core",
4144
4144
  "file": "core/skills/security-data/build-data-pipeline/SKILL.md",
4145
- "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."
4145
+ "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."
4146
4146
  },
4147
4147
  "database-maintenance": {
4148
4148
  "name": "database-maintenance",
@@ -4170,7 +4170,7 @@
4170
4170
  "category": "security-data",
4171
4171
  "type": "core",
4172
4172
  "file": "core/skills/security-data/optimize-olap-database/SKILL.md",
4173
- "description": "Design high-throughput OLAP schemas for Iceberg v4/v3, tune ClickHouse/DuckDB columnar engines, configure 8192-row sparse index granules, govern partition key cardinality, enable MinMax data skipping, implement streaming micro-batch buffering, profile query execution plans, enforce native table encryption (KMS), and prepare for Spark 4.1+/Flink 2.3. Use when designing, tuning, or troubleshooting high-throughput columnar databases and analytical storage engines."
4173
+ "description": "Design high-throughput OLAP schemas for Iceberg v3, tune ClickHouse/DuckDB columnar engines, configure 8192-row sparse index granules, govern partition key cardinality, enable MinMax data skipping, implement streaming micro-batch buffering, profile query execution plans, enforce native table encryption (KMS), and prepare for Spark 4.2+/Flink 2.3. Use when designing, tuning, or troubleshooting high-throughput columnar databases and analytical storage engines."
4174
4174
  },
4175
4175
  "prompt-injection-defense": {
4176
4176
  "name": "prompt-injection-defense",
@@ -4184,7 +4184,7 @@
4184
4184
  "category": "security-data",
4185
4185
  "type": "core",
4186
4186
  "file": "core/skills/security-data/query-analytical-engine/SKILL.md",
4187
- "description": "Execute in-process analytical SQL with chDB and DuckDB v1.1+, orchestrate multi-step stateful pipelines via chdb.session, federate queries across S3 Parquet, PostgreSQL, MySQL, and Iceberg without heavy ETL, leverage Apache Arrow C Data Interface, and enforce safe read-only AST validation. Use when conducting fast in-process analytical queries, cross-source federation, or ad-hoc OLAP exploration."
4187
+ "description": "Execute in-process analytical SQL with chDB and DuckDB v1.5+, orchestrate multi-step stateful pipelines via chdb.session, federate queries across S3 Parquet, PostgreSQL, MySQL, and Iceberg without heavy ETL, leverage Apache Arrow C Data Interface, and enforce safe read-only AST validation. Use when conducting fast in-process analytical queries, cross-source federation, or ad-hoc OLAP exploration."
4188
4188
  },
4189
4189
  "security-audit": {
4190
4190
  "name": "security-audit",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use this adapter when running **Claude Code** (`claude` CLI or Claude Code IDE extension) with the agent-skills engineering pack.
4
4
 
5
- Pack version: **5.6.0** | A2A: **1.0** | OWASP ASI: **2026**
5
+ Pack version: **5.7.0** | A2A: **1.0** | OWASP ASI: **2026**
6
6
 
7
7
  ---
8
8
 
@@ -1,186 +1,186 @@
1
- # Cursor / Kiro Adapter — Agent Skills Pack
2
-
3
- ## Files
4
-
5
- | File | Purpose |
6
- |------|---------|
7
- | [`hooks.template.json`](hooks.template.json) | Cursor-format hook template — copy to `.cursor/hooks.json` and adjust paths |
8
- | Pack rules | `.cursor/rules/agent-skills.md` (always-on `.mdc` rule mirror) |
9
-
10
- > **`.cursorrules` is deprecated** as of Cursor late 2025. Migrate to `.cursor/rules/*.mdc` with YAML frontmatter. The static `.cursorrules` file is no longer read by current Cursor versions.
11
-
12
- The pack also ships **Kiro-native hooks** at `.kiro/hooks/` (see Kiro section below).
13
-
14
- ---
15
-
16
- ## `.mdc` Rules Format (2026)
17
-
18
- Rules live in `.cursor/rules/*.mdc` with YAML frontmatter:
19
-
20
- ```markdown
21
- ---
22
- description: "Brief description of when to apply this rule"
23
- globs: ["internal/**/*.go", "api/**/*.proto"]
24
- alwaysApply: false
25
- ---
26
- # Rule content here
27
- ```
28
-
29
- **Activation modes:**
30
-
31
- | Mode | Frontmatter | Behavior |
32
- |------|-------------|----------|
33
- | Always Apply | `alwaysApply: true` | Injected into every chat session |
34
- | Auto Attached | `alwaysApply: false` + `globs:` | Injected when working on matching files |
35
- | Agent Requested | `description:` only (no `globs`) | AI decides to use based on description |
36
- | Manual | None | User invokes with `@rule-name` |
37
-
38
- ---
39
-
40
- ## Cursor Setup
41
-
42
- ```bash
43
- # Already done for agent-skills repo itself:
44
- # .cursor/hooks.json ← instantiated from this template
45
-
46
- # For other projects using this pack:
47
- mkdir -p .cursor
48
- cp adapters/cursor/hooks.template.json .cursor/hooks.json
49
- # Edit AGENT_SKILLS_ROOT to the absolute path of this pack checkout
50
- ```
51
-
52
- ### What the hooks do
53
-
54
- | Hook event | Action | Effect |
55
- |------------|--------|--------|
56
- | `sessionStart` | `echo` reminder | Prompt to load `core/rules/code.md` |
57
- | `beforeReadFile` | `check-policy.py` | Blocks reads on sensitive file patterns (`.env`, `*.pem`, `*.key`) |
58
- | `preToolUse` | `check-policy.py` | Blocks `requires_approval` (exit 2) and `denied` (exit 1) write/delete actions |
59
- | `beforeShellExecution` | `check-policy.py` | Policy check for all shell commands — use instead of `preToolUse` for newer Cursor |
60
- | `beforeMCPExecution` | `check-policy.py` | Same check for MCP tool calls |
61
- | `afterFileEdit` | `log-trace-span.py` | Appends JSONL span for file modifications |
62
- | `beforeSubmitPrompt` | `check-policy.py` | Final policy advisory before prompt submission |
63
- | `postToolUse` | `log-trace-span.py` | Appends JSONL span to `core/observability/spans/` |
64
- | `stop` | `log-trace-span.py` | Flush trace on agent stop |
65
- | `sessionEnd` | `log-trace-span.py` | Final trace flush on session close |
66
-
67
- > **Enforcement note:** Hooks **block** agent actions via non-zero exit codes. `.mdc` rules only suggest — hooks enforce. Keep `check-policy.py` exit-code semantics: 0=allowed, 1=denied, 2=requires_approval.
68
-
69
- ### Environment variables used
70
-
71
- | Variable | Default | Purpose |
72
- |----------|---------|---------|
73
- | `AGENT_SKILLS_ROOT` | auto-detected | Absolute path to this pack |
74
- | `AGENT_ACTIVE_ROLE` | `agent-coordinator` | Current role slug for policy check |
75
- | `AGENT_TRACE_ID` | `""` (auto UUID) | Trace correlation ID for span grouping |
76
- | `OTEL_SEMCONV_STABILITY_OPT_IN` | `genai` | Enable OTel GenAI semantic conventions |
77
-
78
- ---
79
-
80
- ## Kiro Setup
81
-
82
- Kiro hooks live at `.kiro/hooks/*.json` and use Kiro's native hook format.
83
-
84
- The pack ships 3 hooks under `.kiro/hooks/`:
85
-
86
- | File | Trigger | Action |
87
- |------|---------|--------|
88
- | `role-gate.json` | `preTaskExecution` | Remind agent to load rules + role + policy before acting |
89
- | `policy-check.json` | `preToolUse` (write, shell) | Run `check-policy.py` enforcement check |
90
- | `trace-span.json` | `postToolUse` (*) | Append trace span JSONL |
91
-
92
- ```bash
93
- # Copy to your project (or symlink):
94
- mkdir -p /your-project/.kiro/hooks
95
- cp /path/to/agent-skills/.kiro/hooks/*.json /your-project/.kiro/hooks/
96
- # Edit AGENT_SKILLS_ROOT in policy-check.json and trace-span.json
97
- ```
98
-
99
- Or use the Kiro Hook UI (`Open Kiro Hook UI` in command palette) to add individually.
100
-
101
- ---
102
-
103
- ## Policy enforcement logic
104
-
105
- ```
106
- preToolUse / beforeMCPExecution
107
- │
108
- ├── check destructive_patterns (mcp-tool-map.yaml) by command substring
109
- ├── lookup tool name in tool_actions map
110
- └── fallback to keyword inference
111
- │
112
- ├── action in role.denied → exit 1 (POLICY DENIED)
113
- ├── action in role.requires_approval → exit 2 (POLICY APPROVAL REQUIRED)
114
- └── action in role.allowed → silent pass, exit 0
115
- ```
116
-
117
- Script: `core/scripts/hooks/check-policy.py`
118
- Policy: `core/policies/action-boundaries.yaml`
119
- Tool map: `core/policies/mcp-tool-map.yaml`
120
-
121
- ---
122
-
123
- ## A2A + Antigravity + Claude
124
-
125
- Cursor, Kiro, and Claude Code share the same pack contracts. For A2A registry and Antigravity-specific config, also use [`../antigravity/ANTIGRAVITY.md`](../antigravity/ANTIGRAVITY.md). For Claude Code setup, see [`../claude/CLAUDE_ADAPTER.md`](../claude/CLAUDE_ADAPTER.md).
126
-
127
- ```bash
128
- # Antigravity quick setup:
129
- mkdir -p .antigravity
130
- cp adapters/antigravity/rules.template.md .antigravity/rules.md
131
- cp adapters/antigravity/a2a-config.template.yaml .antigravity/a2a-config.yaml
132
- python3 core/scripts/generate-a2a-registry.py
133
- ```
134
-
135
- ---
136
-
137
- ## Verify setup
138
-
139
- ```bash
140
- # Run from the pack root so AGENT_SKILLS_ROOT resolves to it:
141
- # Test check-policy.py directly:
142
- AGENT_SKILLS_ROOT="$PWD" \
143
- AGENT_ACTIVE_ROLE=backend-developer \
144
- CURSOR_TOOL_NAME=write_file \
145
- python3 core/scripts/hooks/check-policy.py
146
-
147
- # Test trace span:
148
- AGENT_SKILLS_ROOT="$PWD" \
149
- AGENT_ACTIVE_ROLE=agent-coordinator \
150
- python3 core/scripts/hooks/log-trace-span.py
151
-
152
- # Run full A2A compliance check:
153
- python3 core/scripts/validate-a2a-compliance.py
154
- ```
155
-
156
- ## Standard 2026 Alignment
157
-
158
- This adapter preserves every parity group in `core/adapter-parity.md`. The
159
- 2026 upgrade pass added Failure Modes, Output Contracts, and Security
160
- Guardrails to match the rest of the pack.
161
-
162
- ### Failure Modes
163
-
164
- - **`.cursorrules` re-introduced by copy-paste**: a developer copies the deprecated `.cursorrules` path back into a project. **Mitigation:** the `.mdc` rules format is the only supported format as of late 2025; surface the deprecation in PR review and reject the change.
165
- - **Hook exit-code semantics regress**: a future Cursor version changes the meaning of non-zero exit codes in `beforeReadFile` or `preToolUse`. **Mitigation:** the `check-policy.py` exit-code contract (0=allowed, 1=denied, 2=requires_approval) is documented in the Enforcement note; downstream scripts must remain consistent.
166
- - **Hook does not call `check-policy.py`**: a hook calls a different script or skips the policy check. **Mitigation:** every state-changing hook (write, delete, shell, MCP) must route through `core/scripts/hooks/check-policy.py`; reject the hook if the script is missing.
167
- - **AGENT_SKILLS_ROOT unresolved**: a hook fires before `AGENT_SKILLS_ROOT` is set, returning a fallback verdict. **Mitigation:** every hook must validate the env var at startup and exit non-zero with a clear error when the pack root is missing.
168
- - **Trace span log drifts from the live OTel GenAI convention**: a `log-trace-span.py` invocation uses deprecated `prompt_tokens` / `completion_tokens` instead of `gen_ai.usage.input_tokens` / `output_tokens`. **Mitigation:** the script follows `core/observability/otel-genai.md`; reject any span attribute that is not in the OTel registry.
169
-
170
- ### Output Contracts
171
-
172
- When this adapter is part of a coordinated multi-role delivery, emit:
173
-
174
- - **`contracts/schemas/implementation-result.json`** for the result of any agent session that touched code, skills, or content.
175
- - **`contracts/schemas/incident-report.json`** when a hook blocks an action.
176
- - **`contracts/schemas/api-contract-spec.json`** for new `.mdc` rules that change the public agent surface.
177
-
178
- ### Security Guardrails (OWASP ASI)
179
-
180
- - **ASI01 Goal Hijack**: hook inputs are untrusted; `beforeSubmitPrompt` must re-validate the prompt against the active role's goal before allowing submission.
181
- - **ASI03 Identity & Privilege Abuse**: `preToolUse` and `beforeMCPExecution` must enforce role-based action boundaries via `action-boundaries.yaml`.
182
- - **ASI05 RCE Guard**: `beforeShellExecution` and `beforeMCPExecution` must schema-validate every command and tool input before dispatch.
183
- - **ASI07 Inter-Agent Communication**: the trace span log is a cross-agent surface; emit `gen_ai.*` attributes per the OTel GenAI semantic conventions.
184
- - **ASI09 Human-Agent Trust Exploitation**: `requires_approval` (exit 2) must pause and surface a clear message; never auto-approve.
185
-
1
+ # Cursor / Kiro Adapter — Agent Skills Pack
2
+
3
+ ## Files
4
+
5
+ | File | Purpose |
6
+ |------|---------|
7
+ | [`hooks.template.json`](hooks.template.json) | Cursor-format hook template — copy to `.cursor/hooks.json` and adjust paths |
8
+ | Pack rules | `.cursor/rules/agent-skills.md` (always-on `.mdc` rule mirror) |
9
+
10
+ > **`.cursorrules` is deprecated** as of Cursor late 2025. Migrate to `.cursor/rules/*.mdc` with YAML frontmatter. The static `.cursorrules` file is no longer read by current Cursor versions.
11
+
12
+ The pack also ships **Kiro-native hooks** at `.kiro/hooks/` (see Kiro section below).
13
+
14
+ ---
15
+
16
+ ## `.mdc` Rules Format (2026)
17
+
18
+ Rules live in `.cursor/rules/*.mdc` with YAML frontmatter:
19
+
20
+ ```markdown
21
+ ---
22
+ description: "Brief description of when to apply this rule"
23
+ globs: ["internal/**/*.go", "api/**/*.proto"]
24
+ alwaysApply: false
25
+ ---
26
+ # Rule content here
27
+ ```
28
+
29
+ **Activation modes:**
30
+
31
+ | Mode | Frontmatter | Behavior |
32
+ |------|-------------|----------|
33
+ | Always Apply | `alwaysApply: true` | Injected into every chat session |
34
+ | Auto Attached | `alwaysApply: false` + `globs:` | Injected when working on matching files |
35
+ | Agent Requested | `description:` only (no `globs`) | AI decides to use based on description |
36
+ | Manual | None | User invokes with `@rule-name` |
37
+
38
+ ---
39
+
40
+ ## Cursor Setup
41
+
42
+ ```bash
43
+ # Already done for agent-skills repo itself:
44
+ # .cursor/hooks.json ← instantiated from this template
45
+
46
+ # For other projects using this pack:
47
+ mkdir -p .cursor
48
+ cp adapters/cursor/hooks.template.json .cursor/hooks.json
49
+ # Edit AGENT_SKILLS_ROOT to the absolute path of this pack checkout
50
+ ```
51
+
52
+ ### What the hooks do
53
+
54
+ | Hook event | Action | Effect |
55
+ |------------|--------|--------|
56
+ | `sessionStart` | `echo` reminder | Prompt to load `core/rules/code.md` |
57
+ | `beforeReadFile` | `check-policy.py` | Blocks reads on sensitive file patterns (`.env`, `*.pem`, `*.key`) |
58
+ | `preToolUse` | `check-policy.py` | Blocks `requires_approval` (exit 2) and `denied` (exit 1) write/delete actions |
59
+ | `beforeShellExecution` | `check-policy.py` | Policy check for all shell commands — use instead of `preToolUse` for newer Cursor |
60
+ | `beforeMCPExecution` | `check-policy.py` | Same check for MCP tool calls |
61
+ | `afterFileEdit` | `log-trace-span.py` | Appends JSONL span for file modifications |
62
+ | `beforeSubmitPrompt` | `check-policy.py` | Final policy advisory before prompt submission |
63
+ | `postToolUse` | `log-trace-span.py` | Appends JSONL span to `core/observability/spans/` |
64
+ | `stop` | `log-trace-span.py` | Flush trace on agent stop |
65
+ | `sessionEnd` | `log-trace-span.py` | Final trace flush on session close |
66
+
67
+ > **Enforcement note:** Hooks **block** agent actions via non-zero exit codes. `.mdc` rules only suggest — hooks enforce. Keep `check-policy.py` exit-code semantics: 0=allowed, 1=denied, 2=requires_approval.
68
+
69
+ ### Environment variables used
70
+
71
+ | Variable | Default | Purpose |
72
+ |----------|---------|---------|
73
+ | `AGENT_SKILLS_ROOT` | auto-detected | Absolute path to this pack |
74
+ | `AGENT_ACTIVE_ROLE` | `agent-coordinator` | Current role slug for policy check |
75
+ | `AGENT_TRACE_ID` | `""` (auto UUID) | Trace correlation ID for span grouping |
76
+ | `OTEL_SEMCONV_STABILITY_OPT_IN` | `genai` | Enable OTel GenAI semantic conventions |
77
+
78
+ ---
79
+
80
+ ## Kiro Setup
81
+
82
+ Kiro hooks live at `.kiro/hooks/*.json` and use Kiro's native hook format.
83
+
84
+ The pack ships 3 hooks under `.kiro/hooks/`:
85
+
86
+ | File | Trigger | Action |
87
+ |------|---------|--------|
88
+ | `role-gate.json` | `preTaskExecution` | Remind agent to load rules + role + policy before acting |
89
+ | `policy-check.json` | `preToolUse` (write, shell) | Run `check-policy.py` enforcement check |
90
+ | `trace-span.json` | `postToolUse` (*) | Append trace span JSONL |
91
+
92
+ ```bash
93
+ # Copy to your project (or symlink):
94
+ mkdir -p /your-project/.kiro/hooks
95
+ cp /path/to/agent-skills/.kiro/hooks/*.json /your-project/.kiro/hooks/
96
+ # Edit AGENT_SKILLS_ROOT in policy-check.json and trace-span.json
97
+ ```
98
+
99
+ Or use the Kiro Hook UI (`Open Kiro Hook UI` in command palette) to add individually.
100
+
101
+ ---
102
+
103
+ ## Policy enforcement logic
104
+
105
+ ```
106
+ preToolUse / beforeMCPExecution
107
+ │
108
+ ├── check destructive_patterns (mcp-tool-map.yaml) by command substring
109
+ ├── lookup tool name in tool_actions map
110
+ └── fallback to keyword inference
111
+ │
112
+ ├── action in role.denied → exit 1 (POLICY DENIED)
113
+ ├── action in role.requires_approval → exit 2 (POLICY APPROVAL REQUIRED)
114
+ └── action in role.allowed → silent pass, exit 0
115
+ ```
116
+
117
+ Script: `core/scripts/hooks/check-policy.py`
118
+ Policy: `core/policies/action-boundaries.yaml`
119
+ Tool map: `core/policies/mcp-tool-map.yaml`
120
+
121
+ ---
122
+
123
+ ## A2A + Antigravity + Claude
124
+
125
+ Cursor, Kiro, and Claude Code share the same pack contracts. For A2A registry and Antigravity-specific config, also use [`../antigravity/ANTIGRAVITY.md`](../antigravity/ANTIGRAVITY.md). For Claude Code setup, see [`../claude/CLAUDE_ADAPTER.md`](../claude/CLAUDE_ADAPTER.md).
126
+
127
+ ```bash
128
+ # Antigravity quick setup:
129
+ mkdir -p .antigravity
130
+ cp adapters/antigravity/rules.template.md .antigravity/rules.md
131
+ cp adapters/antigravity/a2a-config.template.yaml .antigravity/a2a-config.yaml
132
+ python3 core/scripts/generate-a2a-registry.py
133
+ ```
134
+
135
+ ---
136
+
137
+ ## Verify setup
138
+
139
+ ```bash
140
+ # Run from the pack root so AGENT_SKILLS_ROOT resolves to it:
141
+ # Test check-policy.py directly:
142
+ AGENT_SKILLS_ROOT="$PWD" \
143
+ AGENT_ACTIVE_ROLE=backend-developer \
144
+ CURSOR_TOOL_NAME=write_file \
145
+ python3 core/scripts/hooks/check-policy.py
146
+
147
+ # Test trace span:
148
+ AGENT_SKILLS_ROOT="$PWD" \
149
+ AGENT_ACTIVE_ROLE=agent-coordinator \
150
+ python3 core/scripts/hooks/log-trace-span.py
151
+
152
+ # Run full A2A compliance check:
153
+ python3 core/scripts/validate-a2a-compliance.py
154
+ ```
155
+
156
+ ## Standard 2026 Alignment
157
+
158
+ This adapter preserves every parity group in `core/adapter-parity.md`. The
159
+ 2026 upgrade pass added Failure Modes, Output Contracts, and Security
160
+ Guardrails to match the rest of the pack.
161
+
162
+ ### Failure Modes
163
+
164
+ - **`.cursorrules` re-introduced by copy-paste**: a developer copies the deprecated `.cursorrules` path back into a project. **Mitigation:** the `.mdc` rules format is the only supported format as of late 2025; surface the deprecation in PR review and reject the change.
165
+ - **Hook exit-code semantics regress**: a future Cursor version changes the meaning of non-zero exit codes in `beforeReadFile` or `preToolUse`. **Mitigation:** the `check-policy.py` exit-code contract (0=allowed, 1=denied, 2=requires_approval) is documented in the Enforcement note; downstream scripts must remain consistent.
166
+ - **Hook does not call `check-policy.py`**: a hook calls a different script or skips the policy check. **Mitigation:** every state-changing hook (write, delete, shell, MCP) must route through `core/scripts/hooks/check-policy.py`; reject the hook if the script is missing.
167
+ - **AGENT_SKILLS_ROOT unresolved**: a hook fires before `AGENT_SKILLS_ROOT` is set, returning a fallback verdict. **Mitigation:** every hook must validate the env var at startup and exit non-zero with a clear error when the pack root is missing.
168
+ - **Trace span log drifts from the live OTel GenAI convention**: a `log-trace-span.py` invocation uses deprecated `prompt_tokens` / `completion_tokens` instead of `gen_ai.usage.input_tokens` / `output_tokens`. **Mitigation:** the script follows `core/observability/otel-genai.md`; reject any span attribute that is not in the OTel registry.
169
+
170
+ ### Output Contracts
171
+
172
+ When this adapter is part of a coordinated multi-role delivery, emit:
173
+
174
+ - **`contracts/schemas/implementation-result.json`** for the result of any agent session that touched code, skills, or content.
175
+ - **`contracts/schemas/incident-report.json`** when a hook blocks an action.
176
+ - **`contracts/schemas/api-contract-spec.json`** for new `.mdc` rules that change the public agent surface.
177
+
178
+ ### Security Guardrails (OWASP ASI)
179
+
180
+ - **ASI01 Goal Hijack**: hook inputs are untrusted; `beforeSubmitPrompt` must re-validate the prompt against the active role's goal before allowing submission.
181
+ - **ASI03 Identity & Privilege Abuse**: `preToolUse` and `beforeMCPExecution` must enforce role-based action boundaries via `action-boundaries.yaml`.
182
+ - **ASI05 RCE Guard**: `beforeShellExecution` and `beforeMCPExecution` must schema-validate every command and tool input before dispatch.
183
+ - **ASI07 Inter-Agent Communication**: the trace span log is a cross-agent surface; emit `gen_ai.*` attributes per the OTel GenAI semantic conventions.
184
+ - **ASI09 Human-Agent Trust Exploitation**: `requires_approval` (exit 2) must pause and surface a clear message; never auto-approve.
185
+
186
186
  Last updated: 2026-09-01