@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
@@ -88,25 +88,28 @@ async function listMarkdown(dir, exclude) {
88
88
  if (!(await fileExists(dir))) return [];
89
89
  const entries = await readdir(dir, { withFileTypes: true });
90
90
  return entries
91
- .filter((e) => e.isFile() && e.name.endsWith(".md") && !exclude.includes(e.name))
91
+ .filter((e) => e.isFile() && e.name.endsWith(".md"))
92
92
  .map((e) => e.name.replace(/\.md$/, ""))
93
+ .filter((name) => !exclude.includes(name))
93
94
  .sort();
94
95
  }
95
96
 
96
97
  function parseArgs(argv) {
97
- const [command, ...rest] = argv;
98
+ let command;
98
99
  const flags = {};
99
- for (let i = 0; i < rest.length; i += 1) {
100
- const arg = rest[i];
101
- if (arg === "--json" || arg === "--help") {
102
- flags[arg] = true;
103
- } else if (["--taxonomy", "--skill", "--target", "--path"].includes(arg)) {
104
- const value = rest[i + 1];
100
+ for (let i = 0; i < argv.length; i += 1) {
101
+ const arg = argv[i];
102
+ if (["--taxonomy", "--skill", "--target", "--path"].includes(arg)) {
103
+ const value = argv[i + 1];
105
104
  if (value === undefined || value.startsWith("--")) {
106
105
  throw new UsageError(`missing value for ${arg}`);
107
106
  }
108
107
  flags[arg] = value;
109
108
  i += 1;
109
+ } else if (arg === "--json" || arg === "--help" || arg === "--version") {
110
+ flags[arg] = true;
111
+ } else if (command === undefined && !arg.startsWith("--")) {
112
+ command = arg;
110
113
  } else {
111
114
  throw new UsageError(`unknown argument: ${arg}`);
112
115
  }
@@ -124,8 +127,8 @@ async function cmdList(flags) {
124
127
  const skills = (await listSkills()).filter(
125
128
  (s) => !taxonomies || taxonomies.includes(s.taxonomy) || taxonomies.includes(s.source)
126
129
  );
127
- const roles = taxonomies ? [] : await listMarkdown(ROLES_DIR, ["README", "role-standard"]);
128
- const workflows = taxonomies ? [] : await listMarkdown(WORKFLOWS_DIR, ["README"]);
130
+ const roles = taxonomies ? [] : await listMarkdown(ROLES_DIR, ["README", "role-standard", "INDEX"]);
131
+ const workflows = taxonomies ? [] : await listMarkdown(WORKFLOWS_DIR, ["README", "INDEX"]);
129
132
 
130
133
  if (flags["--json"]) {
131
134
  process.stdout.write(
@@ -213,14 +216,14 @@ async function cmdInstall(flags) {
213
216
 
214
217
  async function main() {
215
218
  const { command, flags } = parseArgs(process.argv.slice(2));
216
- if (flags["--help"] || command === "help" || command === undefined) {
217
- process.stdout.write(USAGE);
218
- return command === undefined && !flags["--help"] ? 2 : 0;
219
- }
220
219
  if (flags["--version"] || command === "version") {
221
220
  process.stdout.write(`${await packVersion()}\n`);
222
221
  return 0;
223
222
  }
223
+ if (flags["--help"] || command === "help" || command === undefined) {
224
+ process.stdout.write(USAGE);
225
+ return command === undefined && !flags["--help"] ? 2 : 0;
226
+ }
224
227
  if (command === "list") return cmdList(flags);
225
228
  if (command === "install") return cmdInstall(flags);
226
229
  throw new UsageError(`unknown command: ${command}`);
@@ -44,7 +44,7 @@ solution-brief.json ← Solution Architect (when solution scoping prece
44
44
  - `system-design-spec.json` — System Engineer topology, capacity, and AI-infra design
45
45
  - `aws-infra-spec.json` — AWS Engineer managed-service and IAM infrastructure spec
46
46
  - `pull-request-spec.json` — Pull Request specification with blast radius, mutation score, execution proof, and review attestations
47
- - `data-pipeline-spec.json` — Data Pipeline Specification (ODCS v3.1.0 compatible data contract, freshness SLA, quality gates, quarantine policy, and compute budget)
47
+ - `data-pipeline-spec.json` — Data Pipeline Specification (ODCS v3.2.0 compatible data contract, freshness SLA, quality gates, quarantine policy, and compute budget)
48
48
 
49
49
  ### Quality & Review
50
50
  - `agent-eval-report.json` — Agent evaluation benchmark report with rubrics, scoring, failure taxonomies, and release gates
@@ -1,191 +1,191 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "api-contract-spec",
4
- "title": "API Contract Specification",
5
- "description": "Structured output defining an API endpoint contract. Used for backend-to-frontend handoff and A2A delegation.",
6
- "type": "object",
7
- "properties": {
8
- "contract_type": {
9
- "type": "string",
10
- "const": "api-contract-spec",
11
- "description": "Machine-readable contract discriminator."
12
- },
13
- "endpoint": {
14
- "type": "string",
15
- "description": "The route path (e.g., /api/v1/orders/{id})."
16
- },
17
- "method": {
18
- "type": "string",
19
- "enum": [
20
- "GET",
21
- "POST",
22
- "PUT",
23
- "PATCH",
24
- "DELETE",
25
- "OPTIONS"
26
- ]
27
- },
28
- "description": {
29
- "type": "string",
30
- "description": "What this endpoint does and its business logic."
31
- },
32
- "auth_required": {
33
- "type": "boolean",
34
- "description": "Whether authentication/authorization is required."
35
- },
36
- "request_payload": {
37
- "type": "object",
38
- "description": "JSON Schema or definition of the expected request body/query parameters."
39
- },
40
- "response_success": {
41
- "type": "object",
42
- "description": "Expected successful response shape and status code."
43
- },
44
- "response_errors": {
45
- "type": "array",
46
- "items": {
47
- "type": "object",
48
- "properties": {
49
- "status_code": {
50
- "type": "integer"
51
- },
52
- "error_code": {
53
- "type": "string"
54
- },
55
- "description": {
56
- "type": "string"
57
- }
58
- },
59
- "required": [
60
- "status_code",
61
- "error_code"
62
- ]
63
- },
64
- "description": "Expected failure responses."
65
- },
66
- "side_effects": {
67
- "type": "array",
68
- "items": {
69
- "type": "string"
70
- },
71
- "description": "Events fired, database mutations, or cache invalidations."
72
- },
73
- "blast_radius_assessment": {
74
- "type": "object",
75
- "description": "Assessment of endpoint blast radius, failure domain, and resiliency policy.",
76
- "properties": {
77
- "failure_domain": {
78
- "type": "string"
79
- },
80
- "circuit_breaker_policy": {
81
- "type": "string"
82
- },
83
- "slo_impact": {
84
- "type": "string"
85
- }
86
- },
87
- "required": [
88
- "failure_domain"
89
- ]
90
- },
91
- "sandbox_isolation_tier": {
92
- "type": "string",
93
- "enum": [
94
- "tier_0_ephemeral_container",
95
- "tier_1_isolated_microvm",
96
- "tier_2_airgapped_sandbox",
97
- "local_dev_workspace"
98
- ],
99
- "description": "Required execution environment isolation tier for testing this endpoint."
100
- },
101
- "mutation_score_threshold": {
102
- "type": "number",
103
- "minimum": 0,
104
- "maximum": 100,
105
- "description": "Target mutation test kill score percentage (e.g., 75.0) for tests exercising this endpoint."
106
- },
107
- "idempotency_guarantee": {
108
- "type": "string",
109
- "enum": [
110
- "idempotent_header_required",
111
- "naturally_idempotent",
112
- "non_idempotent_strictly_guarded"
113
- ],
114
- "description": "Idempotency behavior and client header guarantee."
115
- }
116
- },
117
- "required": [
118
- "contract_type",
119
- "endpoint",
120
- "method",
121
- "response_success",
122
- "response_errors"
123
- ],
124
- "examples": [
125
- {
126
- "contract_type": "api-contract-spec",
127
- "endpoint": "/api/v1/orders/{id}/assign-courier",
128
- "method": "POST",
129
- "description": "Assign a courier to a COD order. Triggers COD store routing if store_id is set.",
130
- "auth_required": true,
131
- "request_payload": {
132
- "type": "object",
133
- "properties": {
134
- "order_id": {
135
- "type": "integer"
136
- },
137
- "store_id": {
138
- "type": [
139
- "integer",
140
- "null"
141
- ]
142
- },
143
- "payment_method": {
144
- "type": "string",
145
- "enum": [
146
- "cod",
147
- "bank_transfer",
148
- "cash"
149
- ]
150
- }
151
- },
152
- "required": [
153
- "order_id",
154
- "payment_method"
155
- ]
156
- },
157
- "response_success": {
158
- "status_code": 200,
159
- "body": {
160
- "assignment_id": "integer",
161
- "courier_id": "integer",
162
- "routed_to": "string"
163
- }
164
- },
165
- "response_errors": [
166
- {
167
- "status_code": 404,
168
- "error_code": "ORDER_NOT_FOUND",
169
- "description": "Order ID does not exist"
170
- },
171
- {
172
- "status_code": 503,
173
- "error_code": "STORE_SERVICE_UNAVAILABLE",
174
- "description": "Store courier lookup failed; retry or use fallback"
175
- }
176
- ],
177
- "side_effects": [
178
- "order.assignment.created event published",
179
- "warehouse_courier_pool updated if fallback triggered"
180
- ],
181
- "blast_radius_assessment": {
182
- "failure_domain": "order_fulfillment",
183
- "circuit_breaker_policy": "trip_at_50pct_failures_in_10s_fallback_warehouse",
184
- "slo_impact": "critical_path_order_processing"
185
- },
186
- "sandbox_isolation_tier": "tier_0_ephemeral_container",
187
- "mutation_score_threshold": 75.0,
188
- "idempotency_guarantee": "idempotent_header_required"
189
- }
190
- ]
191
- }
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "api-contract-spec",
4
+ "title": "API Contract Specification",
5
+ "description": "Structured output defining an API endpoint contract. Used for backend-to-frontend handoff and A2A delegation.",
6
+ "type": "object",
7
+ "properties": {
8
+ "contract_type": {
9
+ "type": "string",
10
+ "const": "api-contract-spec",
11
+ "description": "Machine-readable contract discriminator."
12
+ },
13
+ "endpoint": {
14
+ "type": "string",
15
+ "description": "The route path (e.g., /api/v1/orders/{id})."
16
+ },
17
+ "method": {
18
+ "type": "string",
19
+ "enum": [
20
+ "GET",
21
+ "POST",
22
+ "PUT",
23
+ "PATCH",
24
+ "DELETE",
25
+ "OPTIONS"
26
+ ]
27
+ },
28
+ "description": {
29
+ "type": "string",
30
+ "description": "What this endpoint does and its business logic."
31
+ },
32
+ "auth_required": {
33
+ "type": "boolean",
34
+ "description": "Whether authentication/authorization is required."
35
+ },
36
+ "request_payload": {
37
+ "type": "object",
38
+ "description": "JSON Schema or definition of the expected request body/query parameters."
39
+ },
40
+ "response_success": {
41
+ "type": "object",
42
+ "description": "Expected successful response shape and status code."
43
+ },
44
+ "response_errors": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "status_code": {
50
+ "type": "integer"
51
+ },
52
+ "error_code": {
53
+ "type": "string"
54
+ },
55
+ "description": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "status_code",
61
+ "error_code"
62
+ ]
63
+ },
64
+ "description": "Expected failure responses."
65
+ },
66
+ "side_effects": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "description": "Events fired, database mutations, or cache invalidations."
72
+ },
73
+ "blast_radius_assessment": {
74
+ "type": "object",
75
+ "description": "Assessment of endpoint blast radius, failure domain, and resiliency policy.",
76
+ "properties": {
77
+ "failure_domain": {
78
+ "type": "string"
79
+ },
80
+ "circuit_breaker_policy": {
81
+ "type": "string"
82
+ },
83
+ "slo_impact": {
84
+ "type": "string"
85
+ }
86
+ },
87
+ "required": [
88
+ "failure_domain"
89
+ ]
90
+ },
91
+ "sandbox_isolation_tier": {
92
+ "type": "string",
93
+ "enum": [
94
+ "tier_0_ephemeral_container",
95
+ "tier_1_isolated_microvm",
96
+ "tier_2_airgapped_sandbox",
97
+ "local_dev_workspace"
98
+ ],
99
+ "description": "Required execution environment isolation tier for testing this endpoint."
100
+ },
101
+ "mutation_score_threshold": {
102
+ "type": "number",
103
+ "minimum": 0,
104
+ "maximum": 100,
105
+ "description": "Target mutation test kill score percentage (e.g., 75.0) for tests exercising this endpoint."
106
+ },
107
+ "idempotency_guarantee": {
108
+ "type": "string",
109
+ "enum": [
110
+ "idempotent_header_required",
111
+ "naturally_idempotent",
112
+ "non_idempotent_strictly_guarded"
113
+ ],
114
+ "description": "Idempotency behavior and client header guarantee."
115
+ }
116
+ },
117
+ "required": [
118
+ "contract_type",
119
+ "endpoint",
120
+ "method",
121
+ "response_success",
122
+ "response_errors"
123
+ ],
124
+ "examples": [
125
+ {
126
+ "contract_type": "api-contract-spec",
127
+ "endpoint": "/api/v1/orders/{id}/assign-courier",
128
+ "method": "POST",
129
+ "description": "Assign a courier to a COD order. Triggers COD store routing if store_id is set.",
130
+ "auth_required": true,
131
+ "request_payload": {
132
+ "type": "object",
133
+ "properties": {
134
+ "order_id": {
135
+ "type": "integer"
136
+ },
137
+ "store_id": {
138
+ "type": [
139
+ "integer",
140
+ "null"
141
+ ]
142
+ },
143
+ "payment_method": {
144
+ "type": "string",
145
+ "enum": [
146
+ "cod",
147
+ "bank_transfer",
148
+ "cash"
149
+ ]
150
+ }
151
+ },
152
+ "required": [
153
+ "order_id",
154
+ "payment_method"
155
+ ]
156
+ },
157
+ "response_success": {
158
+ "status_code": 200,
159
+ "body": {
160
+ "assignment_id": "integer",
161
+ "courier_id": "integer",
162
+ "routed_to": "string"
163
+ }
164
+ },
165
+ "response_errors": [
166
+ {
167
+ "status_code": 404,
168
+ "error_code": "ORDER_NOT_FOUND",
169
+ "description": "Order ID does not exist"
170
+ },
171
+ {
172
+ "status_code": 503,
173
+ "error_code": "STORE_SERVICE_UNAVAILABLE",
174
+ "description": "Store courier lookup failed; retry or use fallback"
175
+ }
176
+ ],
177
+ "side_effects": [
178
+ "order.assignment.created event published",
179
+ "warehouse_courier_pool updated if fallback triggered"
180
+ ],
181
+ "blast_radius_assessment": {
182
+ "failure_domain": "order_fulfillment",
183
+ "circuit_breaker_policy": "trip_at_50pct_failures_in_10s_fallback_warehouse",
184
+ "slo_impact": "critical_path_order_processing"
185
+ },
186
+ "sandbox_isolation_tier": "tier_0_ephemeral_container",
187
+ "mutation_score_threshold": 75.0,
188
+ "idempotency_guarantee": "idempotent_header_required"
189
+ }
190
+ ]
191
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "data-pipeline-spec",
4
4
  "title": "Data Pipeline Specification",
5
- "description": "Open Data Contract Standard (ODCS v3.1.0) compatible specification for engineered data pipelines, lakehouse datasets, quality gates, quarantine policies, and compute budgets.",
5
+ "description": "Open Data Contract Standard (ODCS v3.2.0) compatible specification for engineered data pipelines, lakehouse datasets, quality gates, quarantine policies, and compute budgets.",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "contract_type": {
@@ -43,6 +43,25 @@
43
43
  "enum": ["two-tier", "three-tier"],
44
44
  "description": "Token tier architecture standard (Tier 1 Primitives, Tier 2 Semantics, optional Tier 3 Component tokens)."
45
45
  },
46
+ "dtcg_format": {
47
+ "type": "object",
48
+ "description": "DTCG Design Tokens Format Module conformance (first stable release: 2025.10).",
49
+ "properties": {
50
+ "format_version": {
51
+ "type": "string",
52
+ "const": "2025.10",
53
+ "description": "DTCG Design Tokens Format Module version this token set conforms to."
54
+ },
55
+ "value_type_syntax": {
56
+ "type": "boolean",
57
+ "description": "True when token files use the DTCG $value/$type syntax (Style Dictionary v4 DTCG mode, Tokens Studio, Terrazzo compatible)."
58
+ },
59
+ "interchange_validated": {
60
+ "type": "boolean",
61
+ "description": "True when token files validate against the DTCG format before pipeline adoption."
62
+ }
63
+ }
64
+ },
46
65
  "color_palette": {
47
66
  "type": "object",
48
67
  "description": "Two-tier color system specifying Tier 1 primitives and Tier 2 semantic role assignments.",