@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,214 +1,214 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Workflow for bootstrapping a new service or bounded component in a reusable way
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Setup New Service Workflow
|
|
6
|
-
|
|
7
|
-
Use this workflow when creating a new service, worker, or bounded component from scratch.
|
|
8
|
-
|
|
9
|
-
### Prerequisites
|
|
10
|
-
|
|
11
|
-
- the service name and purpose are clear
|
|
12
|
-
- ownership and dependency boundaries are known
|
|
13
|
-
- repo-local templates and architectural conventions have been located
|
|
14
|
-
|
|
15
|
-
### Workflow Steps
|
|
16
|
-
|
|
17
|
-
#### 1. Define Scope
|
|
18
|
-
|
|
19
|
-
Role: **Technical Architect**, **Technical Lead**, **Product Manager**
|
|
20
|
-
|
|
21
|
-
Write down:
|
|
22
|
-
|
|
23
|
-
- what the service owns
|
|
24
|
-
- what contracts it exposes
|
|
25
|
-
- what data it manages
|
|
26
|
-
- what dependencies it needs
|
|
27
|
-
- what should stay outside its boundary
|
|
28
|
-
|
|
29
|
-
#### 2. Choose The Starting Point
|
|
30
|
-
|
|
31
|
-
Role: **Technical Lead**, **Technical Architect**
|
|
32
|
-
|
|
33
|
-
Prefer one of these, in order:
|
|
34
|
-
|
|
35
|
-
- an official repo template
|
|
36
|
-
- a local scaffold command
|
|
37
|
-
- a nearby service that already matches the desired shape
|
|
38
|
-
|
|
39
|
-
If copying an existing service:
|
|
40
|
-
|
|
41
|
-
- remove generated files that should be regenerated
|
|
42
|
-
- remove transient artifacts
|
|
43
|
-
- rename imports, module paths, and service identifiers carefully
|
|
44
|
-
|
|
45
|
-
#### 3. Create The Initial Structure
|
|
46
|
-
|
|
47
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
48
|
-
|
|
49
|
-
Create only the directories the repo actually uses.
|
|
50
|
-
|
|
51
|
-
Common examples:
|
|
52
|
-
|
|
53
|
-
- public contract or API definitions
|
|
54
|
-
- command or entrypoint packages
|
|
55
|
-
- domain or business logic
|
|
56
|
-
- persistence or adapters
|
|
57
|
-
- configuration
|
|
58
|
-
- tests
|
|
59
|
-
- docs
|
|
60
|
-
|
|
61
|
-
Do not invent extra folders if the local template already defines the right structure.
|
|
62
|
-
|
|
63
|
-
#### 4. Define Contracts And Data
|
|
64
|
-
|
|
65
|
-
Role: **Backend Developer**, **Technical Lead**
|
|
66
|
-
|
|
67
|
-
If the service exposes an API or event contract:
|
|
68
|
-
|
|
69
|
-
- define the initial contract using the repo's normal schema format
|
|
70
|
-
- generate any derived code with the repo's standard command
|
|
71
|
-
- keep the first contract intentionally small
|
|
72
|
-
|
|
73
|
-
If the service owns persistent data:
|
|
74
|
-
|
|
75
|
-
- create an initial migration using the local migration tool
|
|
76
|
-
- keep the first schema narrow and easy to evolve
|
|
77
|
-
- document any ordering or rollout constraints
|
|
78
|
-
|
|
79
|
-
Use skill: `create-migration` when schema work is involved.
|
|
80
|
-
|
|
81
|
-
#### 5. Implement The Core Flow
|
|
82
|
-
|
|
83
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
84
|
-
|
|
85
|
-
Set up the smallest end-to-end path that proves the service shape:
|
|
86
|
-
|
|
87
|
-
- boundary or handler
|
|
88
|
-
- core use case
|
|
89
|
-
- persistence or dependency adapter
|
|
90
|
-
- basic configuration
|
|
91
|
-
- health or readiness behavior if the repo uses it
|
|
92
|
-
|
|
93
|
-
Use the repo's existing DI, bootstrap, and config patterns rather than inventing new ones.
|
|
94
|
-
|
|
95
|
-
#### 6. Add Tests
|
|
96
|
-
|
|
97
|
-
Role: **Backend Developer**, **QA Engineer**
|
|
98
|
-
|
|
99
|
-
Use skill: `write-tests`
|
|
100
|
-
|
|
101
|
-
Cover:
|
|
102
|
-
|
|
103
|
-
- one core happy path
|
|
104
|
-
- one validation or failure path
|
|
105
|
-
- migration or persistence basics if applicable
|
|
106
|
-
|
|
107
|
-
Run the repo's normal test, build, and lint commands.
|
|
108
|
-
|
|
109
|
-
#### 7. Add Documentation
|
|
110
|
-
|
|
111
|
-
Role: **Technical Writer**, **Backend Developer**
|
|
112
|
-
|
|
113
|
-
Document at least:
|
|
114
|
-
|
|
115
|
-
- service purpose
|
|
116
|
-
- key dependencies
|
|
117
|
-
- local setup steps
|
|
118
|
-
- how to run verification
|
|
119
|
-
- rollout or environment notes if they are needed
|
|
120
|
-
|
|
121
|
-
Use repo-local README or service-doc templates when they exist.
|
|
122
|
-
|
|
123
|
-
#### 8. Wire It Into Delivery
|
|
124
|
-
|
|
125
|
-
Role: **DevOps Engineer**
|
|
126
|
-
|
|
127
|
-
Add the minimum delivery plumbing the repo expects, such as:
|
|
128
|
-
|
|
129
|
-
- CI checks with Sigstore provenance attestation (cosign) so every build artifact is cryptographically signed from the start
|
|
130
|
-
- deployment manifests (GitOps source of truth: Argo CD ApplicationSet or Flux HelmRelease)
|
|
131
|
-
- package publishing metadata
|
|
132
|
-
- ownership or alerting metadata
|
|
133
|
-
|
|
134
|
-
If the org uses a **Platform Engineering** IDP (Backstage, Port, or Cortex): register the new service in the software catalog with owner, tier, lifecycle, and dependency links — this enables self-service environment provisioning, scorecards, and dependency graph visibility.
|
|
135
|
-
|
|
136
|
-
If the service uses feature flags: wire the **OpenFeature SDK** from the first deploy rather than adding it later — decoupling flag evaluation from deployment from the start avoids brittle big-bang feature activations.
|
|
137
|
-
|
|
138
|
-
Follow the source of truth already used by the repo.
|
|
139
|
-
|
|
140
|
-
#### 9. Verify Locally
|
|
141
|
-
|
|
142
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
143
|
-
|
|
144
|
-
Before handing off:
|
|
145
|
-
|
|
146
|
-
- run the service locally if possible
|
|
147
|
-
- exercise the core path
|
|
148
|
-
- verify config loading
|
|
149
|
-
- confirm generated files are current
|
|
150
|
-
|
|
151
|
-
#### 10. Prepare The Initial Delivery
|
|
152
|
-
|
|
153
|
-
Role: **Backend Developer**, **Technical Lead**
|
|
154
|
-
|
|
155
|
-
Use skill: `commit-code`
|
|
156
|
-
|
|
157
|
-
Before committing:
|
|
158
|
-
|
|
159
|
-
- remove transient files
|
|
160
|
-
- confirm templates were fully renamed
|
|
161
|
-
- confirm docs and ownership info are present
|
|
162
|
-
- confirm the repo-local release path is understood
|
|
163
|
-
|
|
164
|
-
Do not create a commit until the user explicitly confirms that commit action.
|
|
165
|
-
Do not push, tag, or publish until the user explicitly confirms that specific action.
|
|
166
|
-
|
|
167
|
-
### Checklist
|
|
168
|
-
|
|
169
|
-
- [ ] service name and scope defined
|
|
170
|
-
- [ ] local template or scaffold chosen
|
|
171
|
-
- [ ] initial structure created
|
|
172
|
-
- [ ] contracts defined if needed
|
|
173
|
-
- [ ] initial schema or migration added if needed
|
|
174
|
-
- [ ] core flow implemented
|
|
175
|
-
- [ ] tests added
|
|
176
|
-
- [ ] docs added
|
|
177
|
-
- [ ] delivery plumbing connected
|
|
178
|
-
- [ ] local verification completed
|
|
179
|
-
|
|
180
|
-
### Related Workflows
|
|
181
|
-
|
|
182
|
-
- [Add New Feature](add-new-feature.md)
|
|
183
|
-
- [Service Review & Release](service-review-release.md)
|
|
184
|
-
- [Build & Deploy](build-deploy.md)
|
|
185
|
-
|
|
186
|
-
### Related Skills
|
|
187
|
-
|
|
188
|
-
- **navigate-service**: Inspect local service patterns before scaffolding
|
|
189
|
-
- **create-migration**: Add initial schema changes safely
|
|
190
|
-
- **write-tests**: Add coverage for the first working flow
|
|
191
|
-
- **review-service**: Check readiness before broader rollout
|
|
192
|
-
- **commit-code**: Prepare approved service setup changes for delivery
|
|
193
|
-
|
|
194
|
-
### Failure Modes
|
|
195
|
-
|
|
196
|
-
- **Scaffold without policy review**: a new service is scaffolded without checking `action-boundaries.yaml` for the service's owner role. **Mitigation:** the service profile is added to `action-boundaries.yaml` and the SLO is declared before any deploy.
|
|
197
|
-
- **Scaffolding without observability**: a new service is created without OTel, health probes, or audit-trail wiring. **Mitigation:** enforce the OTel + health + audit contract in the scaffolding template; reject a service that ships without instrumentation.
|
|
198
|
-
- **Migration runs out of order**: a new service's first migration runs before the schema it depends on. **Mitigation:** enforce the migration order via a sequencing tool; reject out-of-order migrations.
|
|
199
|
-
- **Secret in scaffold**: a token or key is committed to the new service's source. **Mitigation:** use the platform secret store; run secret scanning in CI; rotate the affected credential on detection.
|
|
200
|
-
|
|
201
|
-
### Output Contracts
|
|
202
|
-
|
|
203
|
-
When this workflow produces a structured handoff, emit:
|
|
204
|
-
|
|
205
|
-
- **`contracts/schemas/implementation-result.json`** — capture the change summary, the files touched, and the validation run that proves the scaffold builds and tests.
|
|
206
|
-
- **`contracts/schemas/edge-deployment-spec.json`** (or local equivalent) — when the service is deployed; capture the bindings, the deploy command, and the rollback strategy.
|
|
207
|
-
|
|
208
|
-
### Security Guardrails (OWASP ASI)
|
|
209
|
-
|
|
210
|
-
- **ASI03 Identity & Privilege Abuse**: the new service must declare a verified role profile in `action-boundaries.yaml` before any deploy; reject services that ship without an auth profile.
|
|
211
|
-
- **ASI05 RCE Guard**: never construct scaffolding code, config, or scripts from external or user-supplied content without strict schema validation; reject string-concatenated scaffolding.
|
|
212
|
-
- **ASI07 Inter-Agent Communication**: the implementation result is consumed by Cloudflare Engineer and DevOps roles; emit a structured contract so each role can validate the rollout.
|
|
213
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present a new service as "production-ready" without the actual smoke test evidence; surface the residual risk honestly.
|
|
214
|
-
|
|
1
|
+
---
|
|
2
|
+
description: Workflow for bootstrapping a new service or bounded component in a reusable way
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Setup New Service Workflow
|
|
6
|
+
|
|
7
|
+
Use this workflow when creating a new service, worker, or bounded component from scratch.
|
|
8
|
+
|
|
9
|
+
### Prerequisites
|
|
10
|
+
|
|
11
|
+
- the service name and purpose are clear
|
|
12
|
+
- ownership and dependency boundaries are known
|
|
13
|
+
- repo-local templates and architectural conventions have been located
|
|
14
|
+
|
|
15
|
+
### Workflow Steps
|
|
16
|
+
|
|
17
|
+
#### 1. Define Scope
|
|
18
|
+
|
|
19
|
+
Role: **Technical Architect**, **Technical Lead**, **Product Manager**
|
|
20
|
+
|
|
21
|
+
Write down:
|
|
22
|
+
|
|
23
|
+
- what the service owns
|
|
24
|
+
- what contracts it exposes
|
|
25
|
+
- what data it manages
|
|
26
|
+
- what dependencies it needs
|
|
27
|
+
- what should stay outside its boundary
|
|
28
|
+
|
|
29
|
+
#### 2. Choose The Starting Point
|
|
30
|
+
|
|
31
|
+
Role: **Technical Lead**, **Technical Architect**
|
|
32
|
+
|
|
33
|
+
Prefer one of these, in order:
|
|
34
|
+
|
|
35
|
+
- an official repo template
|
|
36
|
+
- a local scaffold command
|
|
37
|
+
- a nearby service that already matches the desired shape
|
|
38
|
+
|
|
39
|
+
If copying an existing service:
|
|
40
|
+
|
|
41
|
+
- remove generated files that should be regenerated
|
|
42
|
+
- remove transient artifacts
|
|
43
|
+
- rename imports, module paths, and service identifiers carefully
|
|
44
|
+
|
|
45
|
+
#### 3. Create The Initial Structure
|
|
46
|
+
|
|
47
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
48
|
+
|
|
49
|
+
Create only the directories the repo actually uses.
|
|
50
|
+
|
|
51
|
+
Common examples:
|
|
52
|
+
|
|
53
|
+
- public contract or API definitions
|
|
54
|
+
- command or entrypoint packages
|
|
55
|
+
- domain or business logic
|
|
56
|
+
- persistence or adapters
|
|
57
|
+
- configuration
|
|
58
|
+
- tests
|
|
59
|
+
- docs
|
|
60
|
+
|
|
61
|
+
Do not invent extra folders if the local template already defines the right structure.
|
|
62
|
+
|
|
63
|
+
#### 4. Define Contracts And Data
|
|
64
|
+
|
|
65
|
+
Role: **Backend Developer**, **Technical Lead**
|
|
66
|
+
|
|
67
|
+
If the service exposes an API or event contract:
|
|
68
|
+
|
|
69
|
+
- define the initial contract using the repo's normal schema format
|
|
70
|
+
- generate any derived code with the repo's standard command
|
|
71
|
+
- keep the first contract intentionally small
|
|
72
|
+
|
|
73
|
+
If the service owns persistent data:
|
|
74
|
+
|
|
75
|
+
- create an initial migration using the local migration tool
|
|
76
|
+
- keep the first schema narrow and easy to evolve
|
|
77
|
+
- document any ordering or rollout constraints
|
|
78
|
+
|
|
79
|
+
Use skill: `create-migration` when schema work is involved.
|
|
80
|
+
|
|
81
|
+
#### 5. Implement The Core Flow
|
|
82
|
+
|
|
83
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
84
|
+
|
|
85
|
+
Set up the smallest end-to-end path that proves the service shape:
|
|
86
|
+
|
|
87
|
+
- boundary or handler
|
|
88
|
+
- core use case
|
|
89
|
+
- persistence or dependency adapter
|
|
90
|
+
- basic configuration
|
|
91
|
+
- health or readiness behavior if the repo uses it
|
|
92
|
+
|
|
93
|
+
Use the repo's existing DI, bootstrap, and config patterns rather than inventing new ones.
|
|
94
|
+
|
|
95
|
+
#### 6. Add Tests
|
|
96
|
+
|
|
97
|
+
Role: **Backend Developer**, **QA Engineer**
|
|
98
|
+
|
|
99
|
+
Use skill: `write-tests`
|
|
100
|
+
|
|
101
|
+
Cover:
|
|
102
|
+
|
|
103
|
+
- one core happy path
|
|
104
|
+
- one validation or failure path
|
|
105
|
+
- migration or persistence basics if applicable
|
|
106
|
+
|
|
107
|
+
Run the repo's normal test, build, and lint commands.
|
|
108
|
+
|
|
109
|
+
#### 7. Add Documentation
|
|
110
|
+
|
|
111
|
+
Role: **Technical Writer**, **Backend Developer**
|
|
112
|
+
|
|
113
|
+
Document at least:
|
|
114
|
+
|
|
115
|
+
- service purpose
|
|
116
|
+
- key dependencies
|
|
117
|
+
- local setup steps
|
|
118
|
+
- how to run verification
|
|
119
|
+
- rollout or environment notes if they are needed
|
|
120
|
+
|
|
121
|
+
Use repo-local README or service-doc templates when they exist.
|
|
122
|
+
|
|
123
|
+
#### 8. Wire It Into Delivery
|
|
124
|
+
|
|
125
|
+
Role: **DevOps Engineer**
|
|
126
|
+
|
|
127
|
+
Add the minimum delivery plumbing the repo expects, such as:
|
|
128
|
+
|
|
129
|
+
- CI checks with Sigstore provenance attestation (cosign) so every build artifact is cryptographically signed from the start
|
|
130
|
+
- deployment manifests (GitOps source of truth: Argo CD ApplicationSet or Flux HelmRelease)
|
|
131
|
+
- package publishing metadata
|
|
132
|
+
- ownership or alerting metadata
|
|
133
|
+
|
|
134
|
+
If the org uses a **Platform Engineering** IDP (Backstage, Port, or Cortex): register the new service in the software catalog with owner, tier, lifecycle, and dependency links — this enables self-service environment provisioning, scorecards, and dependency graph visibility.
|
|
135
|
+
|
|
136
|
+
If the service uses feature flags: wire the **OpenFeature SDK** from the first deploy rather than adding it later — decoupling flag evaluation from deployment from the start avoids brittle big-bang feature activations.
|
|
137
|
+
|
|
138
|
+
Follow the source of truth already used by the repo.
|
|
139
|
+
|
|
140
|
+
#### 9. Verify Locally
|
|
141
|
+
|
|
142
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
143
|
+
|
|
144
|
+
Before handing off:
|
|
145
|
+
|
|
146
|
+
- run the service locally if possible
|
|
147
|
+
- exercise the core path
|
|
148
|
+
- verify config loading
|
|
149
|
+
- confirm generated files are current
|
|
150
|
+
|
|
151
|
+
#### 10. Prepare The Initial Delivery
|
|
152
|
+
|
|
153
|
+
Role: **Backend Developer**, **Technical Lead**
|
|
154
|
+
|
|
155
|
+
Use skill: `commit-code`
|
|
156
|
+
|
|
157
|
+
Before committing:
|
|
158
|
+
|
|
159
|
+
- remove transient files
|
|
160
|
+
- confirm templates were fully renamed
|
|
161
|
+
- confirm docs and ownership info are present
|
|
162
|
+
- confirm the repo-local release path is understood
|
|
163
|
+
|
|
164
|
+
Do not create a commit until the user explicitly confirms that commit action.
|
|
165
|
+
Do not push, tag, or publish until the user explicitly confirms that specific action.
|
|
166
|
+
|
|
167
|
+
### Checklist
|
|
168
|
+
|
|
169
|
+
- [ ] service name and scope defined
|
|
170
|
+
- [ ] local template or scaffold chosen
|
|
171
|
+
- [ ] initial structure created
|
|
172
|
+
- [ ] contracts defined if needed
|
|
173
|
+
- [ ] initial schema or migration added if needed
|
|
174
|
+
- [ ] core flow implemented
|
|
175
|
+
- [ ] tests added
|
|
176
|
+
- [ ] docs added
|
|
177
|
+
- [ ] delivery plumbing connected
|
|
178
|
+
- [ ] local verification completed
|
|
179
|
+
|
|
180
|
+
### Related Workflows
|
|
181
|
+
|
|
182
|
+
- [Add New Feature](add-new-feature.md)
|
|
183
|
+
- [Service Review & Release](service-review-release.md)
|
|
184
|
+
- [Build & Deploy](build-deploy.md)
|
|
185
|
+
|
|
186
|
+
### Related Skills
|
|
187
|
+
|
|
188
|
+
- **navigate-service**: Inspect local service patterns before scaffolding
|
|
189
|
+
- **create-migration**: Add initial schema changes safely
|
|
190
|
+
- **write-tests**: Add coverage for the first working flow
|
|
191
|
+
- **review-service**: Check readiness before broader rollout
|
|
192
|
+
- **commit-code**: Prepare approved service setup changes for delivery
|
|
193
|
+
|
|
194
|
+
### Failure Modes
|
|
195
|
+
|
|
196
|
+
- **Scaffold without policy review**: a new service is scaffolded without checking `action-boundaries.yaml` for the service's owner role. **Mitigation:** the service profile is added to `action-boundaries.yaml` and the SLO is declared before any deploy.
|
|
197
|
+
- **Scaffolding without observability**: a new service is created without OTel, health probes, or audit-trail wiring. **Mitigation:** enforce the OTel + health + audit contract in the scaffolding template; reject a service that ships without instrumentation.
|
|
198
|
+
- **Migration runs out of order**: a new service's first migration runs before the schema it depends on. **Mitigation:** enforce the migration order via a sequencing tool; reject out-of-order migrations.
|
|
199
|
+
- **Secret in scaffold**: a token or key is committed to the new service's source. **Mitigation:** use the platform secret store; run secret scanning in CI; rotate the affected credential on detection.
|
|
200
|
+
|
|
201
|
+
### Output Contracts
|
|
202
|
+
|
|
203
|
+
When this workflow produces a structured handoff, emit:
|
|
204
|
+
|
|
205
|
+
- **`contracts/schemas/implementation-result.json`** — capture the change summary, the files touched, and the validation run that proves the scaffold builds and tests.
|
|
206
|
+
- **`contracts/schemas/edge-deployment-spec.json`** (or local equivalent) — when the service is deployed; capture the bindings, the deploy command, and the rollback strategy.
|
|
207
|
+
|
|
208
|
+
### Security Guardrails (OWASP ASI)
|
|
209
|
+
|
|
210
|
+
- **ASI03 Identity & Privilege Abuse**: the new service must declare a verified role profile in `action-boundaries.yaml` before any deploy; reject services that ship without an auth profile.
|
|
211
|
+
- **ASI05 RCE Guard**: never construct scaffolding code, config, or scripts from external or user-supplied content without strict schema validation; reject string-concatenated scaffolding.
|
|
212
|
+
- **ASI07 Inter-Agent Communication**: the implementation result is consumed by Cloudflare Engineer and DevOps roles; emit a structured contract so each role can validate the rollout.
|
|
213
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a new service as "production-ready" without the actual smoke test evidence; surface the residual risk honestly.
|
|
214
|
+
|