@vesviet/agent-skills 5.6.0 → 5.6.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 (113) hide show
  1. package/INDEX.md +1 -1
  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 +1 -1
  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/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,241 +1,241 @@
1
- ---
2
- description: Workflow for diagnosing build, startup, runtime, and platform issues in a reusable way
3
- ---
4
-
5
- ## Troubleshooting Workflow
6
-
7
- Use this workflow when a service, toolchain, or rollout behaves unexpectedly and you need a disciplined way to isolate the problem.
8
-
9
- ### Prerequisites
10
-
11
- - the failing command, request, deployment, or user-visible behavior can be described
12
- - access to relevant code, logs, or runtime evidence is available
13
- - the team is willing to test one hypothesis at a time
14
-
15
- ### Quick Diagnostic Tree
16
-
17
- ```text
18
- Issue?
19
- |- Build or generation failure
20
- |- Startup or config failure
21
- |- Runtime correctness failure
22
- |- Dependency or data failure
23
- `- Platform or rollout failure
24
- ```
25
-
26
- ### Workflow Steps
27
-
28
- #### 1. Capture The Symptom
29
-
30
- Role: **SRE**, **Backend Developer**, **Frontend Developer**
31
-
32
- Write down:
33
-
34
- - the exact failing command or user-visible behavior
35
- - the first observed error
36
- - when the issue started
37
- - what changed recently
38
- - whether the issue reproduces consistently
39
-
40
- **Distributed-trace-first**: before reading logs, retrieve the distributed trace for the failing request (Jaeger, Tempo, Zipkin, or OTel-native). The trace span tree reveals the exact failing layer and inter-service call timing without reading thousands of log lines. Only fall back to raw logs when no trace is available or the failure occurs before the trace is emitted.
41
-
42
- For log analysis: AI-assisted log tools (Elastic AI Assistant, Splunk AI, Grafana Sift) can correlate high-volume telemetry and surface anomaly patterns in seconds. Treat AI-suggested root causes as **advisory** — validate with a concrete reproduction before applying a fix.
43
-
44
- #### 2. Determine The Failure Stage
45
-
46
- Role: **SRE**, **Backend Developer**
47
-
48
- Classify the issue first:
49
-
50
- - build or generation
51
- - startup or dependency initialization
52
- - runtime logic
53
- - data or migration
54
- - environment or platform
55
-
56
- Use skill: `navigate-service` if the code path is not familiar yet.
57
-
58
- For Kubernetes targets: use the diagnostic signals triad — `kubectl describe pod`, `kubectl events --namespace`, and `kubectl logs --previous` — before port-forwarding or exec-ing into containers. Check `/health/live` and `/health/ready` probes for pod state.
59
-
60
- #### 3. Check The Simplest Explanations
61
-
62
- Role: **DevOps Engineer**, **SRE**
63
-
64
- Verify:
65
-
66
- - the correct branch, revision, and config are in use
67
- - required dependencies are reachable
68
- - the needed env vars or secrets are present
69
- - generated files or migrations are up to date
70
- - the failing service is actually running the revision you expect
71
-
72
- #### 4. Compare With The Last Known Good State
73
-
74
- Role: **DevOps Engineer**, **Backend Developer**
75
-
76
- Look at:
77
-
78
- - recent commits
79
- - recent config changes
80
- - dependency version changes
81
- - deployment or rollout changes
82
- - migration history
83
-
84
- This often narrows the search faster than reading large parts of the codebase.
85
-
86
- #### 5. Isolate The Layer
87
-
88
- Role: **Backend Developer**, **Frontend Developer**
89
-
90
- Test the smallest meaningful slice:
91
-
92
- - build one package or target
93
- - run a focused test
94
- - call one endpoint or one use case
95
- - validate one query or one migration
96
- - check one dependency at a time
97
-
98
- Use skill: `troubleshoot-service`
99
-
100
- #### 6. Form And Test A Hypothesis
101
-
102
- Role: **Backend Developer**, **SRE**
103
-
104
- For each likely cause:
105
-
106
- - state the hypothesis clearly
107
- - run one check that can confirm or reject it
108
- - record what changed after the check
109
-
110
- Avoid changing multiple things at once while investigating.
111
-
112
- #### 7. Apply The Fix
113
-
114
- Role: **Backend Developer**, **Frontend Developer**
115
-
116
- When the cause is confirmed:
117
-
118
- - make the smallest safe change
119
- - rerun the failing scenario
120
- - rerun nearby verification to catch regressions
121
-
122
- Use skill: `review-code` if the fix touches risky code paths.
123
-
124
- #### 8. Verify Recovery
125
-
126
- Role: **SRE**, **DevOps Engineer**
127
-
128
- Confirm:
129
-
130
- - the original symptom is gone
131
- - no new errors were introduced
132
- - logs and health signals look normal
133
- - dependent flows still work
134
-
135
- #### 9. Capture Follow-Up
136
-
137
- Role: **Technical Lead**, **Technical Writer**
138
-
139
- If the incident exposed a gap, note:
140
-
141
- - missing test coverage
142
- - missing observability
143
- - fragile config assumptions
144
- - missing documentation or runbook steps
145
-
146
- ### Common Failure Areas
147
-
148
- #### Build Or Generation
149
-
150
- - stale generated files
151
- - missing tools
152
- - dependency version drift
153
- - invalid imports or module references
154
-
155
- #### Startup
156
-
157
- - bad config values
158
- - missing env vars or secrets
159
- - dependency connectivity
160
- - bootstrap order problems
161
-
162
- #### Runtime
163
-
164
- - invalid assumptions in business logic
165
- - unhandled edge cases
166
- - timeout or retry behavior
167
- - data shape mismatches
168
-
169
- #### Data
170
-
171
- - migration ordering
172
- - schema drift
173
- - transaction boundaries
174
- - unsafe rollout of destructive changes
175
-
176
- #### Platform
177
-
178
- - wrong revision deployed
179
- - mismatched runtime config
180
- - failed health checks
181
- - dependency not available in the target environment
182
-
183
- ### Escalation Triggers
184
-
185
- Escalate quickly when:
186
-
187
- - the issue affects multiple services
188
- - data integrity is at risk
189
- - customer impact is active
190
- - the rollback path is unclear
191
- - the local team needs a cross-role decision
192
-
193
- Use skill: `meeting-review` when you need structured multi-role analysis.
194
-
195
- ### Checklist
196
-
197
- - [ ] exact symptom captured
198
- - [ ] failure stage classified
199
- - [ ] simplest explanations checked
200
- - [ ] last known good state compared
201
- - [ ] smallest failing layer isolated
202
- - [ ] hypothesis tested with evidence
203
- - [ ] smallest safe fix applied when root cause is known
204
- - [ ] recovery verified
205
- - [ ] follow-up gaps captured
206
-
207
- ### Related Workflows
208
-
209
- - [Build & Deploy](build-deploy.md)
210
- - [Service Review & Release](service-review-release.md)
211
- - [Hotfix Production](hotfix-production.md)
212
-
213
- ### Related Skills
214
-
215
- - **troubleshoot-service**: Diagnose service-level failures
216
- - **navigate-service**: Map unfamiliar code paths before debugging
217
- - **review-code**: Review risky fixes before delivery
218
- - **meeting-review**: Escalate cross-role investigation decisions
219
-
220
- ### Failure Modes
221
-
222
- - **Symptom before change**: a fix is applied before the symptom is captured. **Mitigation:** capture the exact symptom, the first meaningful error, and the recent changes before any change.
223
- - **Multiple layers changed**: build, config, and code are all modified in one incident response. **Mitigation:** isolate one failure layer at a time; avoid unrelated cleanup during incident handling.
224
- - **Fix not verified**: the fix is applied but recovery is not confirmed. **Mitigation:** verify recovery end-to-end; rerun the failing scenario; check for nearby regressions.
225
- - **AI log summary trusted blindly**: an AI log summarization tool returns a root cause that is acted on without verification. **Mitigation:** verify every AI-identified root cause against raw evidence (logs, traces, metrics) before acting.
226
- - **Distributed trace ignored**: the distributed trace shows the failing hop, but the engineer reads only logs. **Mitigation:** distributed-trace-first; let the trace identify the first failure point; require `trace_id` in the incident report.
227
-
228
- ### Output Contracts
229
-
230
- When this workflow produces a structured handoff, emit:
231
-
232
- - **`contracts/schemas/incident-report.json`** — Required fields: symptom, suspected layer, checks performed, root cause, fix applied, verification result, and follow-up items.
233
- - **`contracts/schemas/implementation-result.json`** — For the fix code change; capture change summary, files touched, and the validation run.
234
- - **`contracts/schemas/coordination-plan.json`** — When the troubleshooting cascades to multiple services or requires multi-role review; route through the coordinator.
235
-
236
- ### Security Guardrails (OWASP ASI)
237
-
238
- - **ASI01 Goal Hijack**: a debug session may drift into changing application code outside the incident's scope. **Mitigation:** scope every debug change to the failing layer; open a separate task for unrelated fixes.
239
- - **ASI03 Identity & Privilege Abuse**: production debugging credentials must be scoped to the SRE / on-call role; reject ad-hoc privilege escalation in the debug session.
240
- - **ASI07 Inter-Agent Communication**: the incident report is consumed by SRE and DevOps roles; emit a structured `incident-report.json` so each role can validate the recovery.
241
- - **ASI09 Human-Agent Trust Exploitation**: do not present the fix as "resolved" without end-to-end verification; surface the residual risk and the unverified checks honestly.
1
+ ---
2
+ description: Workflow for diagnosing build, startup, runtime, and platform issues in a reusable way
3
+ ---
4
+
5
+ ## Troubleshooting Workflow
6
+
7
+ Use this workflow when a service, toolchain, or rollout behaves unexpectedly and you need a disciplined way to isolate the problem.
8
+
9
+ ### Prerequisites
10
+
11
+ - the failing command, request, deployment, or user-visible behavior can be described
12
+ - access to relevant code, logs, or runtime evidence is available
13
+ - the team is willing to test one hypothesis at a time
14
+
15
+ ### Quick Diagnostic Tree
16
+
17
+ ```text
18
+ Issue?
19
+ |- Build or generation failure
20
+ |- Startup or config failure
21
+ |- Runtime correctness failure
22
+ |- Dependency or data failure
23
+ `- Platform or rollout failure
24
+ ```
25
+
26
+ ### Workflow Steps
27
+
28
+ #### 1. Capture The Symptom
29
+
30
+ Role: **SRE**, **Backend Developer**, **Frontend Developer**
31
+
32
+ Write down:
33
+
34
+ - the exact failing command or user-visible behavior
35
+ - the first observed error
36
+ - when the issue started
37
+ - what changed recently
38
+ - whether the issue reproduces consistently
39
+
40
+ **Distributed-trace-first**: before reading logs, retrieve the distributed trace for the failing request (Jaeger, Tempo, Zipkin, or OTel-native). The trace span tree reveals the exact failing layer and inter-service call timing without reading thousands of log lines. Only fall back to raw logs when no trace is available or the failure occurs before the trace is emitted.
41
+
42
+ For log analysis: AI-assisted log tools (Elastic AI Assistant, Splunk AI, Grafana Sift) can correlate high-volume telemetry and surface anomaly patterns in seconds. Treat AI-suggested root causes as **advisory** — validate with a concrete reproduction before applying a fix.
43
+
44
+ #### 2. Determine The Failure Stage
45
+
46
+ Role: **SRE**, **Backend Developer**
47
+
48
+ Classify the issue first:
49
+
50
+ - build or generation
51
+ - startup or dependency initialization
52
+ - runtime logic
53
+ - data or migration
54
+ - environment or platform
55
+
56
+ Use skill: `navigate-service` if the code path is not familiar yet.
57
+
58
+ For Kubernetes targets: use the diagnostic signals triad — `kubectl describe pod`, `kubectl events --namespace`, and `kubectl logs --previous` — before port-forwarding or exec-ing into containers. Check `/health/live` and `/health/ready` probes for pod state.
59
+
60
+ #### 3. Check The Simplest Explanations
61
+
62
+ Role: **DevOps Engineer**, **SRE**
63
+
64
+ Verify:
65
+
66
+ - the correct branch, revision, and config are in use
67
+ - required dependencies are reachable
68
+ - the needed env vars or secrets are present
69
+ - generated files or migrations are up to date
70
+ - the failing service is actually running the revision you expect
71
+
72
+ #### 4. Compare With The Last Known Good State
73
+
74
+ Role: **DevOps Engineer**, **Backend Developer**
75
+
76
+ Look at:
77
+
78
+ - recent commits
79
+ - recent config changes
80
+ - dependency version changes
81
+ - deployment or rollout changes
82
+ - migration history
83
+
84
+ This often narrows the search faster than reading large parts of the codebase.
85
+
86
+ #### 5. Isolate The Layer
87
+
88
+ Role: **Backend Developer**, **Frontend Developer**
89
+
90
+ Test the smallest meaningful slice:
91
+
92
+ - build one package or target
93
+ - run a focused test
94
+ - call one endpoint or one use case
95
+ - validate one query or one migration
96
+ - check one dependency at a time
97
+
98
+ Use skill: `troubleshoot-service`
99
+
100
+ #### 6. Form And Test A Hypothesis
101
+
102
+ Role: **Backend Developer**, **SRE**
103
+
104
+ For each likely cause:
105
+
106
+ - state the hypothesis clearly
107
+ - run one check that can confirm or reject it
108
+ - record what changed after the check
109
+
110
+ Avoid changing multiple things at once while investigating.
111
+
112
+ #### 7. Apply The Fix
113
+
114
+ Role: **Backend Developer**, **Frontend Developer**
115
+
116
+ When the cause is confirmed:
117
+
118
+ - make the smallest safe change
119
+ - rerun the failing scenario
120
+ - rerun nearby verification to catch regressions
121
+
122
+ Use skill: `review-code` if the fix touches risky code paths.
123
+
124
+ #### 8. Verify Recovery
125
+
126
+ Role: **SRE**, **DevOps Engineer**
127
+
128
+ Confirm:
129
+
130
+ - the original symptom is gone
131
+ - no new errors were introduced
132
+ - logs and health signals look normal
133
+ - dependent flows still work
134
+
135
+ #### 9. Capture Follow-Up
136
+
137
+ Role: **Technical Lead**, **Technical Writer**
138
+
139
+ If the incident exposed a gap, note:
140
+
141
+ - missing test coverage
142
+ - missing observability
143
+ - fragile config assumptions
144
+ - missing documentation or runbook steps
145
+
146
+ ### Common Failure Areas
147
+
148
+ #### Build Or Generation
149
+
150
+ - stale generated files
151
+ - missing tools
152
+ - dependency version drift
153
+ - invalid imports or module references
154
+
155
+ #### Startup
156
+
157
+ - bad config values
158
+ - missing env vars or secrets
159
+ - dependency connectivity
160
+ - bootstrap order problems
161
+
162
+ #### Runtime
163
+
164
+ - invalid assumptions in business logic
165
+ - unhandled edge cases
166
+ - timeout or retry behavior
167
+ - data shape mismatches
168
+
169
+ #### Data
170
+
171
+ - migration ordering
172
+ - schema drift
173
+ - transaction boundaries
174
+ - unsafe rollout of destructive changes
175
+
176
+ #### Platform
177
+
178
+ - wrong revision deployed
179
+ - mismatched runtime config
180
+ - failed health checks
181
+ - dependency not available in the target environment
182
+
183
+ ### Escalation Triggers
184
+
185
+ Escalate quickly when:
186
+
187
+ - the issue affects multiple services
188
+ - data integrity is at risk
189
+ - customer impact is active
190
+ - the rollback path is unclear
191
+ - the local team needs a cross-role decision
192
+
193
+ Use skill: `meeting-review` when you need structured multi-role analysis.
194
+
195
+ ### Checklist
196
+
197
+ - [ ] exact symptom captured
198
+ - [ ] failure stage classified
199
+ - [ ] simplest explanations checked
200
+ - [ ] last known good state compared
201
+ - [ ] smallest failing layer isolated
202
+ - [ ] hypothesis tested with evidence
203
+ - [ ] smallest safe fix applied when root cause is known
204
+ - [ ] recovery verified
205
+ - [ ] follow-up gaps captured
206
+
207
+ ### Related Workflows
208
+
209
+ - [Build & Deploy](build-deploy.md)
210
+ - [Service Review & Release](service-review-release.md)
211
+ - [Hotfix Production](hotfix-production.md)
212
+
213
+ ### Related Skills
214
+
215
+ - **troubleshoot-service**: Diagnose service-level failures
216
+ - **navigate-service**: Map unfamiliar code paths before debugging
217
+ - **review-code**: Review risky fixes before delivery
218
+ - **meeting-review**: Escalate cross-role investigation decisions
219
+
220
+ ### Failure Modes
221
+
222
+ - **Symptom before change**: a fix is applied before the symptom is captured. **Mitigation:** capture the exact symptom, the first meaningful error, and the recent changes before any change.
223
+ - **Multiple layers changed**: build, config, and code are all modified in one incident response. **Mitigation:** isolate one failure layer at a time; avoid unrelated cleanup during incident handling.
224
+ - **Fix not verified**: the fix is applied but recovery is not confirmed. **Mitigation:** verify recovery end-to-end; rerun the failing scenario; check for nearby regressions.
225
+ - **AI log summary trusted blindly**: an AI log summarization tool returns a root cause that is acted on without verification. **Mitigation:** verify every AI-identified root cause against raw evidence (logs, traces, metrics) before acting.
226
+ - **Distributed trace ignored**: the distributed trace shows the failing hop, but the engineer reads only logs. **Mitigation:** distributed-trace-first; let the trace identify the first failure point; require `trace_id` in the incident report.
227
+
228
+ ### Output Contracts
229
+
230
+ When this workflow produces a structured handoff, emit:
231
+
232
+ - **`contracts/schemas/incident-report.json`** — Required fields: symptom, suspected layer, checks performed, root cause, fix applied, verification result, and follow-up items.
233
+ - **`contracts/schemas/implementation-result.json`** — For the fix code change; capture change summary, files touched, and the validation run.
234
+ - **`contracts/schemas/coordination-plan.json`** — When the troubleshooting cascades to multiple services or requires multi-role review; route through the coordinator.
235
+
236
+ ### Security Guardrails (OWASP ASI)
237
+
238
+ - **ASI01 Goal Hijack**: a debug session may drift into changing application code outside the incident's scope. **Mitigation:** scope every debug change to the failing layer; open a separate task for unrelated fixes.
239
+ - **ASI03 Identity & Privilege Abuse**: production debugging credentials must be scoped to the SRE / on-call role; reject ad-hoc privilege escalation in the debug session.
240
+ - **ASI07 Inter-Agent Communication**: the incident report is consumed by SRE and DevOps roles; emit a structured `incident-report.json` so each role can validate the recovery.
241
+ - **ASI09 Human-Agent Trust Exploitation**: do not present the fix as "resolved" without end-to-end verification; surface the residual risk and the unverified checks honestly.
@@ -1,93 +1,93 @@
1
- # Astro Cloudflare Overlay
2
-
3
- Generic, reusable conventions for any Astro v5/6/7 project deployed to Cloudflare Pages/Workers. This overlay is stack-specific but project-agnostic.
4
-
5
- ## Tech Stack Coverage (2026)
6
-
7
- - **Framework:** Astro v6/v7 (SSG/SSR) — Astro 6 stable, Astro 7 current
8
- - **Styling:** TailwindCSS **v4** (CSS-first config — `tailwind.config.js` removed)
9
- - **Infrastructure:** Cloudflare **Workers** (preferred), Pages (legacy/static-only)
10
- - **Build:** Vite 8 + Rolldown (Rust-based, 10–30× faster builds)
11
- - **Node.js:** 22+ required (Node 18/20 dropped in Astro 6)
12
- - **Email:** Resend API (optional)
13
- - **Anti-Spam:** Cloudflare Turnstile (optional)
14
- - **Linting:** ESLint + Prettier + astro-check
15
-
16
- ## 2026 Decision: Workers vs Pages
17
-
18
- **Default to Cloudflare Workers for all new full-stack apps.**
19
-
20
- | | Workers | Pages |
21
- |---|---|---|
22
- | Static assets | ✅ Native | ✅ |
23
- | Durable Objects | ✅ | ❌ |
24
- | Cron Triggers | ✅ | ❌ |
25
- | Queues | ✅ | ❌ |
26
- | Advanced observability | ✅ | Limited |
27
- | Roadmap investment | ✅ Active | Maintenance |
28
-
29
- Pages remains valid for static-first or legacy Git-push-only deployments.
30
-
31
- ## Astro 5 → 6 Breaking Changes (Action Required)
32
-
33
- 1. **Bindings**: `Astro.locals.runtime.env.MY_BINDING` → **`env.MY_BINDING`** (direct access)
34
- 2. **Content Layer API mandatory** — legacy `/content/` collections removed; migrate to `src/content.config.ts`
35
- 3. **Node.js 22+** required — drop Node 18/20 from CI pipelines
36
- 4. **`Astro.glob()`** → use `import.meta.glob()` instead
37
- 5. **Cloudflare adapter entrypoint** changed to `@astrojs/cloudflare/entrypoints/server`
38
-
39
- ## TailwindCSS v4 Migration (Breaking)
40
-
41
- `tailwind.config.js` is **deleted** in v4 projects:
42
-
43
- ```bash
44
- # 1. Automated migration
45
- npx @tailwindcss/upgrade
46
-
47
- # 2. New install
48
- npm install tailwindcss @tailwindcss/vite
49
- ```
50
-
51
- `astro.config.mjs`:
52
- ```js
53
- import tailwindcss from '@tailwindcss/vite';
54
- export default defineConfig({ vite: { plugins: [tailwindcss()] } });
55
- ```
56
-
57
- `src/styles/global.css`:
58
- ```css
59
- @import "tailwindcss";
60
- @theme { --color-brand: #...; }
61
- ```
62
-
63
- The `@astrojs/tailwind` integration is deprecated for v4 projects.
64
-
65
- ## Included
66
-
67
- - `rules/astro-cloudflare-conventions.md` — Architecture, component patterns, deploy, Wrangler config, TailwindCSS v4
68
-
69
- This overlay should be composed with the global core and optionally with project-specific overlays.
70
-
71
- **Recommended roles:** `cloudflare-engineer` (edge/Wrangler/bindings) + `frontend-developer` (Astro UI).
72
-
73
- ## Standard 2026 Alignment
74
-
75
- This file is part of the agent-skills engineering pack. The 2026 upgrade
76
- pass added this footer so every prose file in the pack carries a
77
- consistent Standard 2026 pointer.
78
-
79
- - **OWASP ASI**: applied as described in `core/roles/role-standard.md`
80
- (ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
81
- - **Failure Modes**: the rule in this file can be violated by drift, missing
82
- context, or untracked exceptions. Concrete failure scenarios belong in the
83
- related skill or workflow's `### Failure Modes` section.
84
- - **Output Contracts**: structured artifacts produced under this file must
85
- conform to schemas in `core/contracts/schemas/`.
86
- - **Skill Toolbox Lock**: this file's rules are enforced by the role that
87
- owns the affected action; the runtime gate is
88
- `core/scripts/hooks/check-policy.py`.
89
- - **Commit / publish gate**: changes that affect user-visible behavior
90
- follow the META-RULE in `core/rules/code.md` — no commit, no push, no
91
- publish without explicit user confirmation.
92
-
93
- Last updated: 2026-09-01
1
+ # Astro Cloudflare Overlay
2
+
3
+ Generic, reusable conventions for any Astro v5/6/7 project deployed to Cloudflare Pages/Workers. This overlay is stack-specific but project-agnostic.
4
+
5
+ ## Tech Stack Coverage (2026)
6
+
7
+ - **Framework:** Astro v6/v7 (SSG/SSR) — Astro 6 stable, Astro 7 current
8
+ - **Styling:** TailwindCSS **v4** (CSS-first config — `tailwind.config.js` removed)
9
+ - **Infrastructure:** Cloudflare **Workers** (preferred), Pages (legacy/static-only)
10
+ - **Build:** Vite 8 + Rolldown (Rust-based, 10–30× faster builds)
11
+ - **Node.js:** 22+ required (Node 18/20 dropped in Astro 6)
12
+ - **Email:** Resend API (optional)
13
+ - **Anti-Spam:** Cloudflare Turnstile (optional)
14
+ - **Linting:** ESLint + Prettier + astro-check
15
+
16
+ ## 2026 Decision: Workers vs Pages
17
+
18
+ **Default to Cloudflare Workers for all new full-stack apps.**
19
+
20
+ | | Workers | Pages |
21
+ |---|---|---|
22
+ | Static assets | ✅ Native | ✅ |
23
+ | Durable Objects | ✅ | ❌ |
24
+ | Cron Triggers | ✅ | ❌ |
25
+ | Queues | ✅ | ❌ |
26
+ | Advanced observability | ✅ | Limited |
27
+ | Roadmap investment | ✅ Active | Maintenance |
28
+
29
+ Pages remains valid for static-first or legacy Git-push-only deployments.
30
+
31
+ ## Astro 5 → 6 Breaking Changes (Action Required)
32
+
33
+ 1. **Bindings**: `Astro.locals.runtime.env.MY_BINDING` → **`env.MY_BINDING`** (direct access)
34
+ 2. **Content Layer API mandatory** — legacy `/content/` collections removed; migrate to `src/content.config.ts`
35
+ 3. **Node.js 22+** required — drop Node 18/20 from CI pipelines
36
+ 4. **`Astro.glob()`** → use `import.meta.glob()` instead
37
+ 5. **Cloudflare adapter entrypoint** changed to `@astrojs/cloudflare/entrypoints/server`
38
+
39
+ ## TailwindCSS v4 Migration (Breaking)
40
+
41
+ `tailwind.config.js` is **deleted** in v4 projects:
42
+
43
+ ```bash
44
+ # 1. Automated migration
45
+ npx @tailwindcss/upgrade
46
+
47
+ # 2. New install
48
+ npm install tailwindcss @tailwindcss/vite
49
+ ```
50
+
51
+ `astro.config.mjs`:
52
+ ```js
53
+ import tailwindcss from '@tailwindcss/vite';
54
+ export default defineConfig({ vite: { plugins: [tailwindcss()] } });
55
+ ```
56
+
57
+ `src/styles/global.css`:
58
+ ```css
59
+ @import "tailwindcss";
60
+ @theme { --color-brand: #...; }
61
+ ```
62
+
63
+ The `@astrojs/tailwind` integration is deprecated for v4 projects.
64
+
65
+ ## Included
66
+
67
+ - `rules/astro-cloudflare-conventions.md` — Architecture, component patterns, deploy, Wrangler config, TailwindCSS v4
68
+
69
+ This overlay should be composed with the global core and optionally with project-specific overlays.
70
+
71
+ **Recommended roles:** `cloudflare-engineer` (edge/Wrangler/bindings) + `frontend-developer` (Astro UI).
72
+
73
+ ## Standard 2026 Alignment
74
+
75
+ This file is part of the agent-skills engineering pack. The 2026 upgrade
76
+ pass added this footer so every prose file in the pack carries a
77
+ consistent Standard 2026 pointer.
78
+
79
+ - **OWASP ASI**: applied as described in `core/roles/role-standard.md`
80
+ (ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
81
+ - **Failure Modes**: the rule in this file can be violated by drift, missing
82
+ context, or untracked exceptions. Concrete failure scenarios belong in the
83
+ related skill or workflow's `### Failure Modes` section.
84
+ - **Output Contracts**: structured artifacts produced under this file must
85
+ conform to schemas in `core/contracts/schemas/`.
86
+ - **Skill Toolbox Lock**: this file's rules are enforced by the role that
87
+ owns the affected action; the runtime gate is
88
+ `core/scripts/hooks/check-policy.py`.
89
+ - **Commit / publish gate**: changes that affect user-visible behavior
90
+ follow the META-RULE in `core/rules/code.md` — no commit, no push, no
91
+ publish without explicit user confirmation.
92
+
93
+ Last updated: 2026-09-01