@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.
- package/INDEX.md +5 -5
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +12 -12
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/README.md +1 -1
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/data-pipeline-spec.json +1 -1
- package/core/contracts/schemas/design-tokens-spec.json +19 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/security-audit.json +143 -12
- package/core/contracts/schemas/system-design-spec.json +9 -1
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/contracts/schemas/ux-flow-spec.json +66 -0
- package/core/roles/ai-systems-engineer.md +31 -18
- package/core/roles/aws-engineer.md +33 -29
- package/core/roles/backend-developer.md +6 -4
- package/core/roles/content-manager.md +7 -7
- package/core/roles/data-engineer.md +39 -36
- package/core/roles/qa-engineer.md +18 -18
- package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
- package/core/roles/references/aws-engineer-review-checklist.md +29 -16
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/content-manager-governance-standards.md +2 -2
- package/core/roles/references/content-manager-review-checklist.md +7 -1
- package/core/roles/references/data-engineer-review-checklist.md +11 -3
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/references/qa-engineer-review-checklist.md +10 -5
- package/core/roles/references/security-engineer-review-checklist.md +8 -0
- package/core/roles/references/solution-architect-review-checklist.md +6 -1
- package/core/roles/references/system-engineer-review-checklist.md +11 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
- package/core/roles/security-engineer.md +35 -5
- package/core/roles/solution-architect.md +7 -7
- package/core/roles/system-engineer.md +470 -465
- package/core/roles/ui-ux-designer.md +17 -3
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
- package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -0
- package/core/skills/backend/add-service-client/SKILL.md +1 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
- package/core/skills/backend/implement-auth/SKILL.md +1 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
- package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/content/audit-content/SKILL.md +3 -2
- package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
- package/core/skills/content/design-content-strategy/SKILL.md +6 -5
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
- package/core/skills/content/optimize-seo/SKILL.md +6 -5
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
- package/core/skills/content/repurpose-content/SKILL.md +4 -3
- package/core/skills/content/write-article/SKILL.md +6 -5
- package/core/skills/content/write-copy/SKILL.md +3 -2
- package/core/skills/document/pptx/SKILL.md +1 -0
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/design-review/SKILL.md +11 -1
- package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
- package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/foundation/write-tests/SKILL.md +11 -10
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
- package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
- package/core/skills/platform/system-design/SKILL.md +7 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
- package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
- package/core/skills/security-data/security-audit/SKILL.md +126 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/curriculum-delivery.md +1 -1
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- 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
|