omgkit 2.12.0 → 2.15.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/README.md +97 -12
- package/package.json +2 -2
- package/plugin/agents/api-designer.md +5 -0
- package/plugin/agents/architect.md +8 -0
- package/plugin/agents/brainstormer.md +4 -0
- package/plugin/agents/cicd-manager.md +6 -0
- package/plugin/agents/code-reviewer.md +6 -0
- package/plugin/agents/copywriter.md +2 -0
- package/plugin/agents/data-engineer.md +255 -0
- package/plugin/agents/database-admin.md +10 -0
- package/plugin/agents/debugger.md +10 -0
- package/plugin/agents/devsecops.md +314 -0
- package/plugin/agents/docs-manager.md +4 -0
- package/plugin/agents/domain-decomposer.md +181 -0
- package/plugin/agents/embedded-systems.md +397 -0
- package/plugin/agents/fullstack-developer.md +12 -0
- package/plugin/agents/game-systems-designer.md +375 -0
- package/plugin/agents/git-manager.md +10 -0
- package/plugin/agents/journal-writer.md +2 -0
- package/plugin/agents/ml-engineer.md +284 -0
- package/plugin/agents/observability-engineer.md +353 -0
- package/plugin/agents/oracle.md +9 -0
- package/plugin/agents/performance-engineer.md +290 -0
- package/plugin/agents/pipeline-architect.md +6 -0
- package/plugin/agents/planner.md +12 -0
- package/plugin/agents/platform-engineer.md +325 -0
- package/plugin/agents/project-manager.md +3 -0
- package/plugin/agents/researcher.md +5 -0
- package/plugin/agents/scientific-computing.md +426 -0
- package/plugin/agents/scout.md +3 -0
- package/plugin/agents/security-auditor.md +7 -0
- package/plugin/agents/sprint-master.md +17 -0
- package/plugin/agents/tester.md +10 -0
- package/plugin/agents/ui-ux-designer.md +12 -0
- package/plugin/agents/vulnerability-scanner.md +6 -0
- package/plugin/commands/data/pipeline.md +47 -0
- package/plugin/commands/data/quality.md +49 -0
- package/plugin/commands/domain/analyze.md +34 -0
- package/plugin/commands/domain/map.md +41 -0
- package/plugin/commands/game/balance.md +56 -0
- package/plugin/commands/game/optimize.md +62 -0
- package/plugin/commands/iot/provision.md +58 -0
- package/plugin/commands/ml/evaluate.md +47 -0
- package/plugin/commands/ml/train.md +48 -0
- package/plugin/commands/perf/benchmark.md +54 -0
- package/plugin/commands/perf/profile.md +49 -0
- package/plugin/commands/platform/blueprint.md +56 -0
- package/plugin/commands/security/audit.md +54 -0
- package/plugin/commands/security/scan.md +55 -0
- package/plugin/commands/sre/dashboard.md +53 -0
- package/plugin/registry.yaml +711 -0
- package/plugin/skills/ai-ml/experiment-tracking/SKILL.md +338 -0
- package/plugin/skills/ai-ml/feature-stores/SKILL.md +340 -0
- package/plugin/skills/ai-ml/llm-ops/SKILL.md +454 -0
- package/plugin/skills/ai-ml/ml-pipelines/SKILL.md +390 -0
- package/plugin/skills/ai-ml/model-monitoring/SKILL.md +398 -0
- package/plugin/skills/ai-ml/model-serving/SKILL.md +386 -0
- package/plugin/skills/event-driven/cqrs-patterns/SKILL.md +348 -0
- package/plugin/skills/event-driven/event-sourcing/SKILL.md +334 -0
- package/plugin/skills/event-driven/kafka-deep/SKILL.md +252 -0
- package/plugin/skills/event-driven/saga-orchestration/SKILL.md +335 -0
- package/plugin/skills/event-driven/schema-registry/SKILL.md +328 -0
- package/plugin/skills/event-driven/stream-processing/SKILL.md +313 -0
- package/plugin/skills/game/game-audio/SKILL.md +446 -0
- package/plugin/skills/game/game-networking/SKILL.md +490 -0
- package/plugin/skills/game/godot-patterns/SKILL.md +413 -0
- package/plugin/skills/game/shader-programming/SKILL.md +492 -0
- package/plugin/skills/game/unity-patterns/SKILL.md +488 -0
- package/plugin/skills/iot/device-provisioning/SKILL.md +405 -0
- package/plugin/skills/iot/edge-computing/SKILL.md +369 -0
- package/plugin/skills/iot/industrial-protocols/SKILL.md +438 -0
- package/plugin/skills/iot/mqtt-deep/SKILL.md +418 -0
- package/plugin/skills/iot/ota-updates/SKILL.md +426 -0
- package/plugin/skills/microservices/api-gateway-patterns/SKILL.md +201 -0
- package/plugin/skills/microservices/circuit-breaker-patterns/SKILL.md +246 -0
- package/plugin/skills/microservices/contract-testing/SKILL.md +284 -0
- package/plugin/skills/microservices/distributed-tracing/SKILL.md +246 -0
- package/plugin/skills/microservices/service-discovery/SKILL.md +304 -0
- package/plugin/skills/microservices/service-mesh/SKILL.md +181 -0
- package/plugin/skills/mobile-advanced/mobile-ci-cd/SKILL.md +407 -0
- package/plugin/skills/mobile-advanced/mobile-security/SKILL.md +403 -0
- package/plugin/skills/mobile-advanced/offline-first/SKILL.md +473 -0
- package/plugin/skills/mobile-advanced/push-notifications/SKILL.md +494 -0
- package/plugin/skills/mobile-advanced/react-native-deep/SKILL.md +374 -0
- package/plugin/skills/simulation/numerical-methods/SKILL.md +434 -0
- package/plugin/skills/simulation/parallel-computing/SKILL.md +382 -0
- package/plugin/skills/simulation/physics-engines/SKILL.md +377 -0
- package/plugin/skills/simulation/validation-verification/SKILL.md +479 -0
- package/plugin/skills/simulation/visualization-scientific/SKILL.md +365 -0
- package/plugin/templates/autonomous/archetypes/event-driven-app.yaml +460 -0
- package/plugin/templates/autonomous/archetypes/microservices-app.yaml +431 -0
- package/plugin/templates/autonomous/state-schema.yaml +1 -1
- package/plugin/workflows/ai-engineering/agent-development.md +3 -3
- package/plugin/workflows/ai-engineering/fine-tuning.md +3 -3
- package/plugin/workflows/ai-engineering/model-evaluation.md +3 -3
- package/plugin/workflows/ai-engineering/prompt-engineering.md +2 -2
- package/plugin/workflows/ai-engineering/rag-development.md +4 -4
- package/plugin/workflows/ai-ml/data-pipeline.md +188 -0
- package/plugin/workflows/ai-ml/experiment-cycle.md +203 -0
- package/plugin/workflows/ai-ml/feature-engineering.md +208 -0
- package/plugin/workflows/ai-ml/model-deployment.md +199 -0
- package/plugin/workflows/ai-ml/monitoring-setup.md +227 -0
- package/plugin/workflows/api/api-design.md +1 -1
- package/plugin/workflows/api/api-testing.md +2 -2
- package/plugin/workflows/content/technical-docs.md +1 -1
- package/plugin/workflows/database/migration.md +1 -1
- package/plugin/workflows/database/optimization.md +1 -1
- package/plugin/workflows/database/schema-design.md +3 -3
- package/plugin/workflows/development/bug-fix.md +3 -3
- package/plugin/workflows/development/code-review.md +2 -1
- package/plugin/workflows/development/feature.md +3 -3
- package/plugin/workflows/development/refactor.md +2 -2
- package/plugin/workflows/event-driven/consumer-groups.md +190 -0
- package/plugin/workflows/event-driven/event-storming.md +172 -0
- package/plugin/workflows/event-driven/replay-testing.md +186 -0
- package/plugin/workflows/event-driven/saga-implementation.md +206 -0
- package/plugin/workflows/event-driven/schema-evolution.md +173 -0
- package/plugin/workflows/fullstack/authentication.md +4 -4
- package/plugin/workflows/fullstack/full-feature.md +4 -4
- package/plugin/workflows/game-dev/content-pipeline.md +218 -0
- package/plugin/workflows/game-dev/platform-submission.md +263 -0
- package/plugin/workflows/game-dev/playtesting.md +237 -0
- package/plugin/workflows/game-dev/prototype-to-production.md +205 -0
- package/plugin/workflows/microservices/contract-first.md +151 -0
- package/plugin/workflows/microservices/distributed-tracing.md +166 -0
- package/plugin/workflows/microservices/domain-decomposition.md +123 -0
- package/plugin/workflows/microservices/integration-testing.md +149 -0
- package/plugin/workflows/microservices/service-mesh-setup.md +153 -0
- package/plugin/workflows/microservices/service-scaffolding.md +151 -0
- package/plugin/workflows/omega/1000x-innovation.md +2 -2
- package/plugin/workflows/omega/100x-architecture.md +2 -2
- package/plugin/workflows/omega/10x-improvement.md +2 -2
- package/plugin/workflows/quality/performance-optimization.md +2 -2
- package/plugin/workflows/research/best-practices.md +1 -1
- package/plugin/workflows/research/technology-research.md +1 -1
- package/plugin/workflows/security/penetration-testing.md +3 -3
- package/plugin/workflows/security/security-audit.md +3 -3
- package/plugin/workflows/sprint/sprint-execution.md +2 -2
- package/plugin/workflows/sprint/sprint-retrospective.md +1 -1
- package/plugin/workflows/sprint/sprint-setup.md +1 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Transform game prototype into production-ready code
|
|
3
|
+
triggers:
|
|
4
|
+
- manual
|
|
5
|
+
- game:production
|
|
6
|
+
agents:
|
|
7
|
+
- game-designer
|
|
8
|
+
- fullstack-developer
|
|
9
|
+
- tester
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Prototype to Production Workflow
|
|
13
|
+
|
|
14
|
+
Convert rapid game prototype into maintainable production code.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
- [ ] Working prototype with core mechanics
|
|
18
|
+
- [ ] Game design document
|
|
19
|
+
- [ ] Target platforms defined
|
|
20
|
+
|
|
21
|
+
## Phase 1: Prototype Assessment
|
|
22
|
+
|
|
23
|
+
### Step 1.1: Evaluate Prototype
|
|
24
|
+
```yaml
|
|
25
|
+
agent: game-designer
|
|
26
|
+
action: assess
|
|
27
|
+
evaluation:
|
|
28
|
+
- Core mechanics working
|
|
29
|
+
- Fun factor validated
|
|
30
|
+
- Technical feasibility
|
|
31
|
+
- Performance baseline
|
|
32
|
+
- Technical debt inventory
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Step 1.2: Define Production Requirements
|
|
36
|
+
```yaml
|
|
37
|
+
agent: game-designer
|
|
38
|
+
action: define
|
|
39
|
+
requirements:
|
|
40
|
+
- Target frame rate: 60fps
|
|
41
|
+
- Memory budget: <2GB
|
|
42
|
+
- Load time: <10s
|
|
43
|
+
- Platform requirements
|
|
44
|
+
- Accessibility features
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Phase 2: Architecture Refactoring
|
|
48
|
+
|
|
49
|
+
### Step 2.1: Design Production Architecture
|
|
50
|
+
```yaml
|
|
51
|
+
agent: game-designer
|
|
52
|
+
action: design
|
|
53
|
+
patterns:
|
|
54
|
+
- Component system (ECS or composition)
|
|
55
|
+
- State machine for game states
|
|
56
|
+
- Event system for decoupling
|
|
57
|
+
- Object pooling for performance
|
|
58
|
+
- Asset management system
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Step 2.2: Create Core Systems
|
|
62
|
+
```yaml
|
|
63
|
+
agent: fullstack-developer
|
|
64
|
+
action: implement
|
|
65
|
+
systems:
|
|
66
|
+
- Game loop manager
|
|
67
|
+
- Scene management
|
|
68
|
+
- Input handling
|
|
69
|
+
- Audio manager
|
|
70
|
+
- Save/load system
|
|
71
|
+
- UI framework
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Phase 3: Code Migration
|
|
75
|
+
|
|
76
|
+
### Step 3.1: Extract Reusable Components
|
|
77
|
+
```yaml
|
|
78
|
+
agent: fullstack-developer
|
|
79
|
+
action: refactor
|
|
80
|
+
from_prototype:
|
|
81
|
+
- Identify reusable code
|
|
82
|
+
- Extract to components
|
|
83
|
+
- Add proper interfaces
|
|
84
|
+
- Remove hardcoding
|
|
85
|
+
- Add configuration
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Step 3.2: Implement Production Code
|
|
89
|
+
```yaml
|
|
90
|
+
agent: fullstack-developer
|
|
91
|
+
action: implement
|
|
92
|
+
standards:
|
|
93
|
+
- Clean code principles
|
|
94
|
+
- SOLID for game code
|
|
95
|
+
- Proper error handling
|
|
96
|
+
- Logging and debugging
|
|
97
|
+
- Performance considerations
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Phase 4: Asset Pipeline
|
|
101
|
+
|
|
102
|
+
### Step 4.1: Setup Asset Pipeline
|
|
103
|
+
```yaml
|
|
104
|
+
agent: fullstack-developer
|
|
105
|
+
action: configure
|
|
106
|
+
pipeline:
|
|
107
|
+
- Asset import settings
|
|
108
|
+
- Compression configuration
|
|
109
|
+
- LOD generation
|
|
110
|
+
- Texture atlasing
|
|
111
|
+
- Audio compression
|
|
112
|
+
- Localization support
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Step 4.2: Asset Organization
|
|
116
|
+
```yaml
|
|
117
|
+
agent: fullstack-developer
|
|
118
|
+
action: organize
|
|
119
|
+
structure:
|
|
120
|
+
- /Assets
|
|
121
|
+
- /Art
|
|
122
|
+
- /Audio
|
|
123
|
+
- /Prefabs
|
|
124
|
+
- /Scripts
|
|
125
|
+
- /Scenes
|
|
126
|
+
- /UI
|
|
127
|
+
- Naming conventions
|
|
128
|
+
- Folder structure guidelines
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Phase 5: Testing Infrastructure
|
|
132
|
+
|
|
133
|
+
### Step 5.1: Unit Testing
|
|
134
|
+
```yaml
|
|
135
|
+
agent: tester
|
|
136
|
+
action: implement
|
|
137
|
+
tests:
|
|
138
|
+
- Core mechanics
|
|
139
|
+
- State machines
|
|
140
|
+
- Calculations
|
|
141
|
+
- Utility functions
|
|
142
|
+
- Data validation
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Step 5.2: Integration Testing
|
|
146
|
+
```yaml
|
|
147
|
+
agent: tester
|
|
148
|
+
action: implement
|
|
149
|
+
tests:
|
|
150
|
+
- Scene loading
|
|
151
|
+
- Save/load cycle
|
|
152
|
+
- Input handling
|
|
153
|
+
- Audio playback
|
|
154
|
+
- UI navigation
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Step 5.3: Playtest Framework
|
|
158
|
+
```yaml
|
|
159
|
+
agent: tester
|
|
160
|
+
action: configure
|
|
161
|
+
framework:
|
|
162
|
+
- Automated playthroughs
|
|
163
|
+
- Metrics collection
|
|
164
|
+
- Bug reproduction
|
|
165
|
+
- Performance profiling
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Phase 6: Performance Optimization
|
|
169
|
+
|
|
170
|
+
### Step 6.1: Profile and Optimize
|
|
171
|
+
```yaml
|
|
172
|
+
agent: fullstack-developer
|
|
173
|
+
action: optimize
|
|
174
|
+
areas:
|
|
175
|
+
- Draw call batching
|
|
176
|
+
- Object pooling
|
|
177
|
+
- Memory management
|
|
178
|
+
- Physics optimization
|
|
179
|
+
- Script optimization
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Step 6.2: Platform Optimization
|
|
183
|
+
```yaml
|
|
184
|
+
agent: fullstack-developer
|
|
185
|
+
action: optimize
|
|
186
|
+
per_platform:
|
|
187
|
+
- PC settings
|
|
188
|
+
- Console optimizations
|
|
189
|
+
- Mobile considerations
|
|
190
|
+
- Quality settings system
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Outputs
|
|
194
|
+
- [ ] Production architecture
|
|
195
|
+
- [ ] Refactored codebase
|
|
196
|
+
- [ ] Asset pipeline
|
|
197
|
+
- [ ] Test suite
|
|
198
|
+
- [ ] Performance profile
|
|
199
|
+
|
|
200
|
+
## Quality Gates
|
|
201
|
+
- 60fps on target hardware
|
|
202
|
+
- Memory within budget
|
|
203
|
+
- All tests passing
|
|
204
|
+
- No critical bugs
|
|
205
|
+
- Code review passed
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Develop APIs using contract-first methodology with consumer-driven contracts
|
|
3
|
+
triggers:
|
|
4
|
+
- manual
|
|
5
|
+
- api:new
|
|
6
|
+
agents:
|
|
7
|
+
- api-designer
|
|
8
|
+
- fullstack-developer
|
|
9
|
+
- tester
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Contract-First Development Workflow
|
|
13
|
+
|
|
14
|
+
Design and implement APIs starting from contracts.
|
|
15
|
+
|
|
16
|
+
## Prerequisites
|
|
17
|
+
- [ ] Consumer requirements documented
|
|
18
|
+
- [ ] API style guide established
|
|
19
|
+
- [ ] Contract testing infrastructure
|
|
20
|
+
|
|
21
|
+
## Phase 1: Contract Design
|
|
22
|
+
|
|
23
|
+
### Step 1.1: Gather Consumer Needs
|
|
24
|
+
```yaml
|
|
25
|
+
agent: api-designer
|
|
26
|
+
action: gather_requirements
|
|
27
|
+
sources:
|
|
28
|
+
- consumer_teams
|
|
29
|
+
- existing_integrations
|
|
30
|
+
- product_requirements
|
|
31
|
+
outputs:
|
|
32
|
+
- consumer_expectations
|
|
33
|
+
- use_case_scenarios
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Step 1.2: Draft Contract
|
|
37
|
+
```yaml
|
|
38
|
+
agent: api-designer
|
|
39
|
+
action: design
|
|
40
|
+
format: openapi_3.1
|
|
41
|
+
sections:
|
|
42
|
+
- info
|
|
43
|
+
- servers
|
|
44
|
+
- paths
|
|
45
|
+
- components
|
|
46
|
+
- security
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Step 1.3: Review and Iterate
|
|
50
|
+
```yaml
|
|
51
|
+
agent: api-designer
|
|
52
|
+
action: review
|
|
53
|
+
with:
|
|
54
|
+
- consumer_teams
|
|
55
|
+
- security_team
|
|
56
|
+
- platform_team
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Phase 2: Contract Validation
|
|
60
|
+
|
|
61
|
+
### Step 2.1: Generate Mock Server
|
|
62
|
+
```yaml
|
|
63
|
+
agent: fullstack-developer
|
|
64
|
+
action: generate_mock
|
|
65
|
+
from: openapi_spec
|
|
66
|
+
tools:
|
|
67
|
+
- Prism
|
|
68
|
+
- WireMock
|
|
69
|
+
- MockServer
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Step 2.2: Consumer Testing
|
|
73
|
+
```yaml
|
|
74
|
+
agent: tester
|
|
75
|
+
action: test_against_mock
|
|
76
|
+
tests:
|
|
77
|
+
- consumer_expectations
|
|
78
|
+
- error_scenarios
|
|
79
|
+
- edge_cases
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Phase 3: Provider Implementation
|
|
83
|
+
|
|
84
|
+
### Step 3.1: Generate Server Stubs
|
|
85
|
+
```yaml
|
|
86
|
+
agent: fullstack-developer
|
|
87
|
+
action: generate
|
|
88
|
+
from: openapi_spec
|
|
89
|
+
framework: framework_of_choice
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Step 3.2: Implement Handlers
|
|
93
|
+
```yaml
|
|
94
|
+
agent: fullstack-developer
|
|
95
|
+
action: implement
|
|
96
|
+
following:
|
|
97
|
+
- contract_spec
|
|
98
|
+
- business_rules
|
|
99
|
+
- validation_requirements
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Phase 4: Contract Testing
|
|
103
|
+
|
|
104
|
+
### Step 4.1: Pact Contract Tests
|
|
105
|
+
```yaml
|
|
106
|
+
agent: tester
|
|
107
|
+
action: create_pact_tests
|
|
108
|
+
coverage:
|
|
109
|
+
- all_endpoints
|
|
110
|
+
- error_responses
|
|
111
|
+
- edge_cases
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Step 4.2: Run Provider Verification
|
|
115
|
+
```yaml
|
|
116
|
+
agent: tester
|
|
117
|
+
action: verify_provider
|
|
118
|
+
using: pact_broker
|
|
119
|
+
reports:
|
|
120
|
+
- verification_results
|
|
121
|
+
- compatibility_matrix
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Phase 5: Documentation
|
|
125
|
+
|
|
126
|
+
### Step 5.1: Generate API Docs
|
|
127
|
+
```yaml
|
|
128
|
+
agent: api-designer
|
|
129
|
+
action: generate_docs
|
|
130
|
+
tools:
|
|
131
|
+
- Redoc
|
|
132
|
+
- Swagger UI
|
|
133
|
+
- Stoplight
|
|
134
|
+
outputs:
|
|
135
|
+
- interactive_docs
|
|
136
|
+
- sdk_generation
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Outputs
|
|
140
|
+
- [ ] OpenAPI specification
|
|
141
|
+
- [ ] Mock server configuration
|
|
142
|
+
- [ ] Contract tests (Pact)
|
|
143
|
+
- [ ] Provider implementation
|
|
144
|
+
- [ ] API documentation
|
|
145
|
+
|
|
146
|
+
## Quality Gates
|
|
147
|
+
- Contract passes linting
|
|
148
|
+
- All consumer tests pass against mock
|
|
149
|
+
- Provider verifies all contracts
|
|
150
|
+
- Documentation is accurate
|
|
151
|
+
- Breaking changes detected
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Implement distributed tracing across microservices
|
|
3
|
+
triggers:
|
|
4
|
+
- manual
|
|
5
|
+
- observability:tracing
|
|
6
|
+
agents:
|
|
7
|
+
- site-reliability-engineer
|
|
8
|
+
- fullstack-developer
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Distributed Tracing Workflow
|
|
12
|
+
|
|
13
|
+
Set up end-to-end request tracing across services.
|
|
14
|
+
|
|
15
|
+
## Prerequisites
|
|
16
|
+
- [ ] Services identified for instrumentation
|
|
17
|
+
- [ ] Tracing backend selected
|
|
18
|
+
- [ ] Sampling strategy defined
|
|
19
|
+
|
|
20
|
+
## Phase 1: Infrastructure Setup
|
|
21
|
+
|
|
22
|
+
### Step 1.1: Deploy Tracing Backend
|
|
23
|
+
```yaml
|
|
24
|
+
agent: site-reliability-engineer
|
|
25
|
+
action: deploy
|
|
26
|
+
options:
|
|
27
|
+
- Jaeger
|
|
28
|
+
- Zipkin
|
|
29
|
+
- Tempo
|
|
30
|
+
- AWS X-Ray
|
|
31
|
+
configuration:
|
|
32
|
+
- collector
|
|
33
|
+
- storage_backend
|
|
34
|
+
- query_service
|
|
35
|
+
- ui
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Step 1.2: Configure Sampling
|
|
39
|
+
```yaml
|
|
40
|
+
agent: site-reliability-engineer
|
|
41
|
+
action: configure
|
|
42
|
+
sampling:
|
|
43
|
+
type: probabilistic # or rate_limiting, adaptive
|
|
44
|
+
rate: 0.1 # 10% of traces
|
|
45
|
+
rules:
|
|
46
|
+
- service: payment
|
|
47
|
+
rate: 1.0 # 100% for critical
|
|
48
|
+
- path: /health
|
|
49
|
+
rate: 0.0 # Don't trace health checks
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Phase 2: Service Instrumentation
|
|
53
|
+
|
|
54
|
+
### Step 2.1: Add Tracing Libraries
|
|
55
|
+
```yaml
|
|
56
|
+
agent: fullstack-developer
|
|
57
|
+
action: instrument
|
|
58
|
+
libraries:
|
|
59
|
+
- opentelemetry-sdk
|
|
60
|
+
- opentelemetry-auto-instrumentation
|
|
61
|
+
configuration:
|
|
62
|
+
- service_name
|
|
63
|
+
- environment
|
|
64
|
+
- version
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Step 2.2: Propagate Context
|
|
68
|
+
```yaml
|
|
69
|
+
agent: fullstack-developer
|
|
70
|
+
action: implement
|
|
71
|
+
context_propagation:
|
|
72
|
+
- HTTP_headers:
|
|
73
|
+
- traceparent
|
|
74
|
+
- tracestate
|
|
75
|
+
- gRPC_metadata
|
|
76
|
+
- message_queue_headers
|
|
77
|
+
formats:
|
|
78
|
+
- W3C_Trace_Context
|
|
79
|
+
- B3
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Phase 3: Custom Instrumentation
|
|
83
|
+
|
|
84
|
+
### Step 3.1: Add Custom Spans
|
|
85
|
+
```yaml
|
|
86
|
+
agent: fullstack-developer
|
|
87
|
+
action: instrument
|
|
88
|
+
custom_spans:
|
|
89
|
+
- database_queries
|
|
90
|
+
- external_api_calls
|
|
91
|
+
- cache_operations
|
|
92
|
+
- business_logic
|
|
93
|
+
attributes:
|
|
94
|
+
- user_id
|
|
95
|
+
- order_id
|
|
96
|
+
- operation_type
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Step 3.2: Add Events and Exceptions
|
|
100
|
+
```yaml
|
|
101
|
+
agent: fullstack-developer
|
|
102
|
+
action: instrument
|
|
103
|
+
additions:
|
|
104
|
+
- span_events: significant_operations
|
|
105
|
+
- exception_recording: all_errors
|
|
106
|
+
- baggage: cross_cutting_data
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Phase 4: Correlation
|
|
110
|
+
|
|
111
|
+
### Step 4.1: Log Correlation
|
|
112
|
+
```yaml
|
|
113
|
+
agent: fullstack-developer
|
|
114
|
+
action: configure
|
|
115
|
+
log_correlation:
|
|
116
|
+
- inject_trace_id_in_logs
|
|
117
|
+
- inject_span_id_in_logs
|
|
118
|
+
- structured_logging_format
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Step 4.2: Metrics Correlation
|
|
122
|
+
```yaml
|
|
123
|
+
agent: site-reliability-engineer
|
|
124
|
+
action: configure
|
|
125
|
+
metrics_correlation:
|
|
126
|
+
- exemplars: trace_id_in_metrics
|
|
127
|
+
- dashboards: trace_links
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Phase 5: Analysis and Alerts
|
|
131
|
+
|
|
132
|
+
### Step 5.1: Create Dashboards
|
|
133
|
+
```yaml
|
|
134
|
+
agent: site-reliability-engineer
|
|
135
|
+
action: create
|
|
136
|
+
dashboards:
|
|
137
|
+
- service_latency_breakdown
|
|
138
|
+
- error_trace_analysis
|
|
139
|
+
- dependency_graph
|
|
140
|
+
- critical_path_analysis
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Step 5.2: Configure Alerts
|
|
144
|
+
```yaml
|
|
145
|
+
agent: site-reliability-engineer
|
|
146
|
+
action: configure
|
|
147
|
+
alerts:
|
|
148
|
+
- high_latency_traces
|
|
149
|
+
- error_rate_spikes
|
|
150
|
+
- missing_spans
|
|
151
|
+
- trace_completeness
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Outputs
|
|
155
|
+
- [ ] Tracing backend deployment
|
|
156
|
+
- [ ] Instrumented services
|
|
157
|
+
- [ ] Context propagation
|
|
158
|
+
- [ ] Correlated logs/metrics
|
|
159
|
+
- [ ] Analysis dashboards
|
|
160
|
+
|
|
161
|
+
## Quality Gates
|
|
162
|
+
- Traces flow end-to-end
|
|
163
|
+
- Context propagated correctly
|
|
164
|
+
- Sampling rate appropriate
|
|
165
|
+
- No performance degradation
|
|
166
|
+
- Alerts configured
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Decompose monolith into bounded contexts using DDD principles
|
|
3
|
+
triggers:
|
|
4
|
+
- manual
|
|
5
|
+
- archetype:microservices
|
|
6
|
+
agents:
|
|
7
|
+
- domain-decomposer
|
|
8
|
+
- architect
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Domain Decomposition Workflow
|
|
12
|
+
|
|
13
|
+
Break down a domain into bounded contexts for microservices.
|
|
14
|
+
|
|
15
|
+
## Prerequisites
|
|
16
|
+
- [ ] Business domain documentation
|
|
17
|
+
- [ ] Existing codebase (if migrating)
|
|
18
|
+
- [ ] Stakeholder access for clarification
|
|
19
|
+
|
|
20
|
+
## Phase 1: Domain Discovery
|
|
21
|
+
|
|
22
|
+
### Step 1.1: Gather Domain Knowledge
|
|
23
|
+
```yaml
|
|
24
|
+
agent: domain-decomposer
|
|
25
|
+
action: analyze
|
|
26
|
+
inputs:
|
|
27
|
+
- business_requirements
|
|
28
|
+
- existing_codebase
|
|
29
|
+
outputs:
|
|
30
|
+
- domain_terms_glossary
|
|
31
|
+
- business_capabilities_map
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Step 1.2: Identify Core Domains
|
|
35
|
+
```yaml
|
|
36
|
+
agent: domain-decomposer
|
|
37
|
+
action: categorize
|
|
38
|
+
criteria:
|
|
39
|
+
- core: Competitive advantage
|
|
40
|
+
- supporting: Necessary but not differentiating
|
|
41
|
+
- generic: Commodity, can buy
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Phase 2: Context Mapping
|
|
45
|
+
|
|
46
|
+
### Step 2.1: Draw Bounded Contexts
|
|
47
|
+
```yaml
|
|
48
|
+
agent: domain-decomposer
|
|
49
|
+
action: draw_contexts
|
|
50
|
+
patterns:
|
|
51
|
+
- Shared Kernel
|
|
52
|
+
- Customer-Supplier
|
|
53
|
+
- Conformist
|
|
54
|
+
- Anti-Corruption Layer
|
|
55
|
+
- Open Host Service
|
|
56
|
+
- Published Language
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Step 2.2: Define Context Relationships
|
|
60
|
+
```yaml
|
|
61
|
+
agent: architect
|
|
62
|
+
action: define_relationships
|
|
63
|
+
artifacts:
|
|
64
|
+
- context_map_diagram
|
|
65
|
+
- integration_contracts
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Phase 3: Aggregate Design
|
|
69
|
+
|
|
70
|
+
### Step 3.1: Identify Aggregates
|
|
71
|
+
```yaml
|
|
72
|
+
agent: domain-decomposer
|
|
73
|
+
action: identify_aggregates
|
|
74
|
+
rules:
|
|
75
|
+
- Single transaction boundary
|
|
76
|
+
- Consistency boundary
|
|
77
|
+
- Minimal aggregate size
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Step 3.2: Define Aggregate Roots
|
|
81
|
+
```yaml
|
|
82
|
+
agent: domain-decomposer
|
|
83
|
+
action: define_roots
|
|
84
|
+
outputs:
|
|
85
|
+
- aggregate_specifications
|
|
86
|
+
- invariant_rules
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Phase 4: Service Boundaries
|
|
90
|
+
|
|
91
|
+
### Step 4.1: Map Contexts to Services
|
|
92
|
+
```yaml
|
|
93
|
+
agent: architect
|
|
94
|
+
action: map_services
|
|
95
|
+
considerations:
|
|
96
|
+
- Team ownership
|
|
97
|
+
- Deployment independence
|
|
98
|
+
- Data ownership
|
|
99
|
+
- Communication patterns
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Step 4.2: Define APIs
|
|
103
|
+
```yaml
|
|
104
|
+
agent: architect
|
|
105
|
+
action: define_apis
|
|
106
|
+
style: contract-first
|
|
107
|
+
artifacts:
|
|
108
|
+
- openapi_specs
|
|
109
|
+
- async_api_specs
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Outputs
|
|
113
|
+
- [ ] Domain glossary
|
|
114
|
+
- [ ] Context map diagram
|
|
115
|
+
- [ ] Aggregate specifications
|
|
116
|
+
- [ ] Service boundary definitions
|
|
117
|
+
- [ ] API contracts
|
|
118
|
+
|
|
119
|
+
## Quality Gates
|
|
120
|
+
- All contexts have clear ownership
|
|
121
|
+
- No cyclic dependencies between contexts
|
|
122
|
+
- Aggregates are transaction-consistent
|
|
123
|
+
- APIs follow organization standards
|