@deimoscloud/coreai 0.1.8 → 0.1.10
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/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/.prettierrc +0 -9
- package/AGENT_SPEC.md +0 -347
- package/ARCHITECTURE.md +0 -547
- package/DRAFT_PRD.md +0 -1440
- package/IMPLEMENTATION_PLAN.md +0 -256
- package/PRODUCT.md +0 -473
- package/WORKFLOWS.md +0 -295
- package/commands/core/check-inbox.md +0 -34
- package/commands/core/delegate.md +0 -30
- package/commands/core/git-commit.md +0 -144
- package/commands/core/pr-create.md +0 -193
- package/commands/core/review.md +0 -56
- package/commands/core/sprint-status.md +0 -65
- package/commands/optional/docs-update.md +0 -200
- package/commands/optional/jira-create.md +0 -200
- package/commands/optional/jira-transition.md +0 -184
- package/commands/optional/worktree-cleanup.md +0 -167
- package/commands/optional/worktree-setup.md +0 -110
- package/eslint.config.js +0 -29
- package/jest.config.js +0 -22
- package/knowledge-library/README.md +0 -118
- package/knowledge-library/android-engineer/context/current.txt +0 -42
- package/knowledge-library/android-engineer/control/decisions.txt +0 -9
- package/knowledge-library/android-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/android-engineer/control/objectives.txt +0 -26
- package/knowledge-library/android-engineer/history/.gitkeep +0 -0
- package/knowledge-library/android-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/android-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/android-engineer/tech/.gitkeep +0 -0
- package/knowledge-library/architecture.txt +0 -61
- package/knowledge-library/backend-engineer/context/current.txt +0 -42
- package/knowledge-library/backend-engineer/control/decisions.txt +0 -9
- package/knowledge-library/backend-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/backend-engineer/control/objectives.txt +0 -26
- package/knowledge-library/backend-engineer/history/.gitkeep +0 -0
- package/knowledge-library/backend-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/backend-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/backend-engineer/tech/.gitkeep +0 -0
- package/knowledge-library/context.txt +0 -52
- package/knowledge-library/devops-engineer/context/current.txt +0 -42
- package/knowledge-library/devops-engineer/control/decisions.txt +0 -9
- package/knowledge-library/devops-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/devops-engineer/control/objectives.txt +0 -26
- package/knowledge-library/devops-engineer/history/.gitkeep +0 -0
- package/knowledge-library/devops-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/devops-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/devops-engineer/tech/.gitkeep +0 -0
- package/knowledge-library/engineering-manager/context/current.txt +0 -40
- package/knowledge-library/engineering-manager/control/decisions.txt +0 -9
- package/knowledge-library/engineering-manager/control/objectives.txt +0 -27
- package/knowledge-library/engineering-manager/history/.gitkeep +0 -0
- package/knowledge-library/engineering-manager/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/engineering-manager/outbox/.gitkeep +0 -0
- package/knowledge-library/engineering-manager/tech/.gitkeep +0 -0
- package/knowledge-library/prd.txt +0 -81
- package/knowledge-library/product-manager/context/current.txt +0 -42
- package/knowledge-library/product-manager/control/decisions.txt +0 -9
- package/knowledge-library/product-manager/control/dependencies.txt +0 -19
- package/knowledge-library/product-manager/control/objectives.txt +0 -26
- package/knowledge-library/product-manager/history/.gitkeep +0 -0
- package/knowledge-library/product-manager/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/product-manager/outbox/.gitkeep +0 -0
- package/knowledge-library/product-manager/tech/.gitkeep +0 -0
- package/knowledge-library/qa-engineer/context/current.txt +0 -42
- package/knowledge-library/qa-engineer/control/decisions.txt +0 -9
- package/knowledge-library/qa-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/qa-engineer/control/objectives.txt +0 -26
- package/knowledge-library/qa-engineer/history/.gitkeep +0 -0
- package/knowledge-library/qa-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/qa-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/qa-engineer/tech/.gitkeep +0 -0
- package/knowledge-library/security-engineer/context/current.txt +0 -42
- package/knowledge-library/security-engineer/control/decisions.txt +0 -9
- package/knowledge-library/security-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/security-engineer/control/objectives.txt +0 -26
- package/knowledge-library/security-engineer/history/.gitkeep +0 -0
- package/knowledge-library/security-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/security-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/security-engineer/tech/.gitkeep +0 -0
- package/knowledge-library/solutions-architect/context/current.txt +0 -42
- package/knowledge-library/solutions-architect/control/decisions.txt +0 -9
- package/knowledge-library/solutions-architect/control/dependencies.txt +0 -19
- package/knowledge-library/solutions-architect/control/objectives.txt +0 -26
- package/knowledge-library/solutions-architect/history/.gitkeep +0 -0
- package/knowledge-library/solutions-architect/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/solutions-architect/outbox/.gitkeep +0 -0
- package/knowledge-library/solutions-architect/tech/.gitkeep +0 -0
- package/knowledge-library/wearos-engineer/context/current.txt +0 -42
- package/knowledge-library/wearos-engineer/control/decisions.txt +0 -9
- package/knowledge-library/wearos-engineer/control/dependencies.txt +0 -19
- package/knowledge-library/wearos-engineer/control/objectives.txt +0 -26
- package/knowledge-library/wearos-engineer/history/.gitkeep +0 -0
- package/knowledge-library/wearos-engineer/inbox/processed/.gitkeep +0 -0
- package/knowledge-library/wearos-engineer/outbox/.gitkeep +0 -0
- package/knowledge-library/wearos-engineer/tech/.gitkeep +0 -0
- package/scripts/add-agent.sh +0 -323
- package/scripts/install.sh +0 -354
- package/src/adapters/factory.test.ts +0 -386
- package/src/adapters/factory.ts +0 -305
- package/src/adapters/index.ts +0 -113
- package/src/adapters/interfaces.ts +0 -268
- package/src/adapters/mcp/client.test.ts +0 -130
- package/src/adapters/mcp/client.ts +0 -451
- package/src/adapters/mcp/discovery.test.ts +0 -315
- package/src/adapters/mcp/discovery.ts +0 -340
- package/src/adapters/mcp/index.ts +0 -66
- package/src/adapters/mcp/mapper.test.ts +0 -218
- package/src/adapters/mcp/mapper.ts +0 -536
- package/src/adapters/mcp/registry.test.ts +0 -433
- package/src/adapters/mcp/registry.ts +0 -550
- package/src/adapters/mcp/types.ts +0 -258
- package/src/adapters/native/filesystem.test.ts +0 -350
- package/src/adapters/native/filesystem.ts +0 -393
- package/src/adapters/native/github.test.ts +0 -173
- package/src/adapters/native/github.ts +0 -627
- package/src/adapters/native/index.ts +0 -22
- package/src/adapters/native/selector.test.ts +0 -224
- package/src/adapters/native/selector.ts +0 -150
- package/src/adapters/types.ts +0 -270
- package/src/agents/compiler.test.ts +0 -399
- package/src/agents/compiler.ts +0 -422
- package/src/agents/index.ts +0 -37
- package/src/agents/loader.test.ts +0 -319
- package/src/agents/loader.ts +0 -143
- package/src/agents/resolver.test.ts +0 -282
- package/src/agents/resolver.ts +0 -262
- package/src/agents/types.ts +0 -97
- package/src/cache/index.ts +0 -38
- package/src/cache/interfaces.ts +0 -283
- package/src/cache/manager.test.ts +0 -266
- package/src/cache/manager.ts +0 -388
- package/src/cache/provider.test.ts +0 -485
- package/src/cache/provider.ts +0 -745
- package/src/cache/types.test.ts +0 -192
- package/src/cache/types.ts +0 -313
- package/src/cli/commands/build.test.ts +0 -248
- package/src/cli/commands/build.ts +0 -284
- package/src/cli/commands/cache.test.ts +0 -221
- package/src/cli/commands/cache.ts +0 -229
- package/src/cli/commands/index.ts +0 -63
- package/src/cli/commands/init.test.ts +0 -173
- package/src/cli/commands/init.ts +0 -296
- package/src/cli/commands/skills.test.ts +0 -272
- package/src/cli/commands/skills.ts +0 -348
- package/src/cli/commands/status.test.ts +0 -392
- package/src/cli/commands/status.ts +0 -332
- package/src/cli/commands/sync.test.ts +0 -213
- package/src/cli/commands/sync.ts +0 -251
- package/src/cli/commands/validate.test.ts +0 -216
- package/src/cli/commands/validate.ts +0 -340
- package/src/cli/index.test.ts +0 -190
- package/src/cli/index.ts +0 -493
- package/src/commands/context.test.ts +0 -163
- package/src/commands/context.ts +0 -111
- package/src/commands/index.ts +0 -56
- package/src/commands/loader.test.ts +0 -273
- package/src/commands/loader.ts +0 -355
- package/src/commands/registry.test.ts +0 -384
- package/src/commands/registry.ts +0 -248
- package/src/commands/runner.test.ts +0 -297
- package/src/commands/runner.ts +0 -222
- package/src/commands/types.ts +0 -361
- package/src/config/index.ts +0 -19
- package/src/config/loader.test.ts +0 -262
- package/src/config/loader.ts +0 -188
- package/src/config/types.ts +0 -154
- package/src/context/index.ts +0 -14
- package/src/context/loader.test.ts +0 -334
- package/src/context/loader.ts +0 -357
- package/src/index.test.ts +0 -13
- package/src/index.ts +0 -268
- package/src/knowledge-library/index.ts +0 -44
- package/src/knowledge-library/manager.test.ts +0 -536
- package/src/knowledge-library/manager.ts +0 -804
- package/src/knowledge-library/types.ts +0 -432
- package/src/skills/generator.test.ts +0 -602
- package/src/skills/generator.ts +0 -491
- package/src/skills/index.ts +0 -27
- package/src/skills/templates.ts +0 -520
- package/src/skills/types.ts +0 -251
- package/templates/completion-report.md +0 -72
- package/templates/feedback.md +0 -56
- package/templates/project-files/CLAUDE.md.template +0 -109
- package/templates/project-files/coreai.json.example +0 -47
- package/templates/project-files/mcp.json.template +0 -20
- package/templates/review-complete.md +0 -64
- package/templates/review-request.md +0 -67
- package/templates/task-assignment.md +0 -51
- package/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -26
- package/tsup.config.ts +0 -23
package/WORKFLOWS.md
DELETED
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
# Workflow Definitions
|
|
2
|
-
|
|
3
|
-
> **PURPOSE:** Defines mandatory workflows as state machines.
|
|
4
|
-
> All agents MUST follow these workflows. Each state has required outputs.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Workflow 1: Ticket Implementation
|
|
9
|
-
|
|
10
|
-
**Applies to:** Any Jira ticket being implemented
|
|
11
|
-
|
|
12
|
-
### State Machine
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
BACKLOG → IN_PROGRESS → PR_CREATED → IN_REVIEW → APPROVED → MERGED → DONE
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
### State Definitions
|
|
19
|
-
|
|
20
|
-
#### BACKLOG
|
|
21
|
-
- **Entry:** Ticket exists, not yet assigned
|
|
22
|
-
- **Owner:** EM
|
|
23
|
-
- **Exit to IN_PROGRESS:** EM delegates to engineer via inbox
|
|
24
|
-
|
|
25
|
-
#### IN_PROGRESS
|
|
26
|
-
- **Entry conditions:**
|
|
27
|
-
- Engineer received task via inbox
|
|
28
|
-
- Engineer moves ticket to "In Progress" via Jira
|
|
29
|
-
- Engineer adds Jira comment: "Starting work. Branch: `feature/SUR-XX-description`"
|
|
30
|
-
- **Owner:** Engineer
|
|
31
|
-
- **Required outputs before exit:**
|
|
32
|
-
- [ ] Code changes complete
|
|
33
|
-
- [ ] Unit tests written and passing
|
|
34
|
-
- [ ] Lint checks pass
|
|
35
|
-
- [ ] Static analysis passes
|
|
36
|
-
- [ ] All acceptance criteria addressed
|
|
37
|
-
- **Exit to PR_CREATED:** Engineer creates PR
|
|
38
|
-
|
|
39
|
-
#### PR_CREATED
|
|
40
|
-
- **Entry conditions:**
|
|
41
|
-
- Branch pushed to origin
|
|
42
|
-
- PR created with correct title format
|
|
43
|
-
- **Owner:** Engineer
|
|
44
|
-
- **Required outputs:**
|
|
45
|
-
- PR URL logged in completion report
|
|
46
|
-
- Jira comment: "PR created: [URL]"
|
|
47
|
-
- **Exit to IN_REVIEW:** Engineer moves ticket to "In Review"
|
|
48
|
-
|
|
49
|
-
#### IN_REVIEW
|
|
50
|
-
- **Entry conditions:**
|
|
51
|
-
- Ticket status is "In Review"
|
|
52
|
-
- CI checks passing
|
|
53
|
-
- Completion report sent to EM inbox
|
|
54
|
-
- **Owner:** Engineer → EM → Reviewers
|
|
55
|
-
- **EM validation:**
|
|
56
|
-
- [ ] Ticket status correct
|
|
57
|
-
- [ ] PR exists
|
|
58
|
-
- [ ] CI passing
|
|
59
|
-
- [ ] Completion report valid
|
|
60
|
-
- **Required outputs:**
|
|
61
|
-
- EM assigns reviewers via inbox
|
|
62
|
-
- Reviewers post approval/feedback on PR
|
|
63
|
-
- **Exit to APPROVED:** Reviewer posts APPROVED decision
|
|
64
|
-
|
|
65
|
-
#### APPROVED
|
|
66
|
-
- **Entry conditions:**
|
|
67
|
-
- At least one approval posted on PR
|
|
68
|
-
- All review comments addressed
|
|
69
|
-
- CI still passing
|
|
70
|
-
- **Owner:** User (human)
|
|
71
|
-
- **Required action:** User merges PR
|
|
72
|
-
- **Exit to MERGED:** PR merged to main
|
|
73
|
-
|
|
74
|
-
#### MERGED
|
|
75
|
-
- **Entry conditions:**
|
|
76
|
-
- PR merged to main
|
|
77
|
-
- CI passes on main
|
|
78
|
-
- **Owner:** EM
|
|
79
|
-
- **Required outputs:**
|
|
80
|
-
- Jira comment: "Merged to main: [commit SHA]"
|
|
81
|
-
- Ticket moved to "Done"
|
|
82
|
-
- **Exit to DONE:** Verification complete
|
|
83
|
-
|
|
84
|
-
#### DONE
|
|
85
|
-
- **Entry conditions:**
|
|
86
|
-
- Jira ticket is "Done"
|
|
87
|
-
- All documentation updated
|
|
88
|
-
- **Owner:** EM
|
|
89
|
-
- **Workflow complete**
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## Workflow 2: Code Review
|
|
94
|
-
|
|
95
|
-
**Applies to:** Any PR assigned for review
|
|
96
|
-
|
|
97
|
-
### State Machine
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
ASSIGNED → REVIEWING → DECISION_POSTED
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### State Definitions
|
|
104
|
-
|
|
105
|
-
#### ASSIGNED
|
|
106
|
-
- **Entry:** Reviewer receives request via inbox
|
|
107
|
-
- **Owner:** Reviewer (solutions-architect, security-engineer, etc.)
|
|
108
|
-
- **Exit to REVIEWING:** Reviewer begins review
|
|
109
|
-
|
|
110
|
-
#### REVIEWING
|
|
111
|
-
- **Required checks:**
|
|
112
|
-
- [ ] Code follows development standards
|
|
113
|
-
- [ ] Tests are adequate for changes
|
|
114
|
-
- [ ] No security vulnerabilities
|
|
115
|
-
- [ ] Architecture aligns with design
|
|
116
|
-
- [ ] Performance implications considered
|
|
117
|
-
- **Exit to DECISION_POSTED:** Review complete
|
|
118
|
-
|
|
119
|
-
#### DECISION_POSTED
|
|
120
|
-
- **Required outputs:**
|
|
121
|
-
- Review comment posted on GitHub PR (via `gh pr comment`)
|
|
122
|
-
- Completion report sent to EM inbox
|
|
123
|
-
- **Review comment format:**
|
|
124
|
-
|
|
125
|
-
```markdown
|
|
126
|
-
## Code Review: SUR-XX
|
|
127
|
-
|
|
128
|
-
### Summary
|
|
129
|
-
[Brief description of what was reviewed]
|
|
130
|
-
|
|
131
|
-
### Checklist
|
|
132
|
-
- [x] Code follows development standards
|
|
133
|
-
- [x] Tests are adequate
|
|
134
|
-
- [x] No security vulnerabilities
|
|
135
|
-
- [x] Architecture aligns with design
|
|
136
|
-
- [x] Performance considered
|
|
137
|
-
|
|
138
|
-
### Findings
|
|
139
|
-
- [Positive/concern/blocking items]
|
|
140
|
-
|
|
141
|
-
### **DECISION: APPROVED** | **DECISION: CHANGES REQUESTED**
|
|
142
|
-
|
|
143
|
-
[If APPROVED]: Ready for merge by repository owner.
|
|
144
|
-
[If CHANGES REQUESTED]: Please address the issues marked above.
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
*Review by: [agent-name]*
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## Workflow 3: Release Process
|
|
153
|
-
|
|
154
|
-
**Applies to:** Creating a new release for deployment
|
|
155
|
-
|
|
156
|
-
### State Machine
|
|
157
|
-
|
|
158
|
-
```
|
|
159
|
-
PLANNING → VERSION_BUMPED → TAGGED → BUILD_VERIFIED → DEPLOYED
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### State Definitions
|
|
163
|
-
|
|
164
|
-
#### PLANNING
|
|
165
|
-
- **Entry:** Release scope defined
|
|
166
|
-
- **Required:** All included tickets merged to main
|
|
167
|
-
- **Exit:** Version numbers updated
|
|
168
|
-
|
|
169
|
-
#### VERSION_BUMPED
|
|
170
|
-
- **Required outputs:**
|
|
171
|
-
- versionCode incremented
|
|
172
|
-
- versionName updated
|
|
173
|
-
- Version bump commit pushed
|
|
174
|
-
- **Exit:** Git tag created
|
|
175
|
-
|
|
176
|
-
#### TAGGED
|
|
177
|
-
- **Required outputs:**
|
|
178
|
-
- Annotated tag: `watch-vX.Y.Z` or `phone-vX.Y.Z`
|
|
179
|
-
- Tag message includes release notes
|
|
180
|
-
- Release workflow triggered
|
|
181
|
-
- **Exit:** Build completes
|
|
182
|
-
|
|
183
|
-
#### BUILD_VERIFIED
|
|
184
|
-
- **Required outputs:**
|
|
185
|
-
- GitHub Release created with artifacts
|
|
186
|
-
- ProGuard mapping attached
|
|
187
|
-
- **Exit:** Deployed to testing track
|
|
188
|
-
|
|
189
|
-
#### DEPLOYED
|
|
190
|
-
- **Required outputs:**
|
|
191
|
-
- Deployed to Play Console track
|
|
192
|
-
- Installation verified
|
|
193
|
-
- Notification sent
|
|
194
|
-
|
|
195
|
-
---
|
|
196
|
-
|
|
197
|
-
## Workflow 4: Hotfix Process
|
|
198
|
-
|
|
199
|
-
**Applies to:** Critical bugs requiring immediate fix
|
|
200
|
-
|
|
201
|
-
### State Machine
|
|
202
|
-
|
|
203
|
-
```
|
|
204
|
-
IDENTIFIED → HOTFIX_BRANCH → FIX_IMPLEMENTED → EXPEDITED_REVIEW → DEPLOYED
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### State Definitions
|
|
208
|
-
|
|
209
|
-
#### IDENTIFIED
|
|
210
|
-
- **Entry:** Critical bug confirmed
|
|
211
|
-
- **Required:** HOTFIX label on ticket, team notified
|
|
212
|
-
- **Exit:** Hotfix branch created
|
|
213
|
-
|
|
214
|
-
#### HOTFIX_BRANCH
|
|
215
|
-
- **Required:** Branch from affected release or main
|
|
216
|
-
- **Naming:** `hotfix/SUR-XX-description`
|
|
217
|
-
- **Exit:** Fix coding started
|
|
218
|
-
|
|
219
|
-
#### FIX_IMPLEMENTED
|
|
220
|
-
- **Required outputs:**
|
|
221
|
-
- Minimal fix (no feature creep)
|
|
222
|
-
- Regression test added
|
|
223
|
-
- All checks passing
|
|
224
|
-
- **Exit:** PR created
|
|
225
|
-
|
|
226
|
-
#### EXPEDITED_REVIEW
|
|
227
|
-
- **Required:** Single reviewer, focused on fix correctness
|
|
228
|
-
- **Exit:** Approved and merged
|
|
229
|
-
|
|
230
|
-
#### DEPLOYED
|
|
231
|
-
- **Required outputs:**
|
|
232
|
-
- Version bumped to patch release
|
|
233
|
-
- Deployed directly to production
|
|
234
|
-
- Post-mortem scheduled
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Checkpoint Reporting Format
|
|
239
|
-
|
|
240
|
-
When completing any workflow state, report using this format:
|
|
241
|
-
|
|
242
|
-
```markdown
|
|
243
|
-
## Workflow Checkpoint
|
|
244
|
-
**Workflow:** [Ticket Implementation | Code Review | Release | Hotfix]
|
|
245
|
-
**Ticket:** SUR-XX
|
|
246
|
-
**Previous State:** [state name]
|
|
247
|
-
**Current State:** [state name]
|
|
248
|
-
**Timestamp:** [YYYY-MM-DD HH:MM]
|
|
249
|
-
|
|
250
|
-
### Entry Conditions Verified
|
|
251
|
-
- [x] Condition 1
|
|
252
|
-
- [x] Condition 2
|
|
253
|
-
|
|
254
|
-
### Required Outputs Completed
|
|
255
|
-
- [x] Output 1: [details/link]
|
|
256
|
-
- [x] Output 2: [details/link]
|
|
257
|
-
|
|
258
|
-
### Next State
|
|
259
|
-
**Target:** [next state name]
|
|
260
|
-
**Blockers:** [None | list blockers]
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
---
|
|
264
|
-
|
|
265
|
-
## Workflow Violations
|
|
266
|
-
|
|
267
|
-
If unable to complete a required output:
|
|
268
|
-
|
|
269
|
-
1. **STOP** - Do not proceed to next state
|
|
270
|
-
2. **Report blocker** - Document what's missing
|
|
271
|
-
3. **Escalate** - Notify appropriate agent
|
|
272
|
-
4. **Wait** - Do not skip the step
|
|
273
|
-
|
|
274
|
-
**Common violations to catch:**
|
|
275
|
-
- Creating PR before tests pass
|
|
276
|
-
- Merging without CI green
|
|
277
|
-
- Skipping Jira status updates
|
|
278
|
-
- Not posting review to GitHub PR
|
|
279
|
-
- Missing workflow checkpoint in completion report
|
|
280
|
-
|
|
281
|
-
---
|
|
282
|
-
|
|
283
|
-
## Quick Reference
|
|
284
|
-
|
|
285
|
-
| Workflow | When to Use | Final State |
|
|
286
|
-
|----------|-------------|-------------|
|
|
287
|
-
| Ticket Implementation | Implementing a Jira ticket | DONE |
|
|
288
|
-
| Code Review | Reviewing a PR | DECISION_POSTED |
|
|
289
|
-
| Release | Creating a scheduled release | DEPLOYED |
|
|
290
|
-
| Hotfix | Critical production bug | DEPLOYED |
|
|
291
|
-
|
|
292
|
-
---
|
|
293
|
-
|
|
294
|
-
*Version: 1.0.0*
|
|
295
|
-
*Last Updated: 2026-01-05*
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Check your inbox for new tasks and process them
|
|
3
|
-
argument-hint: [optional: and work on ticket]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Check Inbox
|
|
7
|
-
|
|
8
|
-
You have been invoked to check your inbox and process any pending tasks.
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
1. **Read your inbox directory:** `/KnowledgeLibrary/[your-agent-name]/inbox/`
|
|
13
|
-
- Ignore the `processed/` subdirectory
|
|
14
|
-
- Look for `.md` files from other agents (especially engineering-manager)
|
|
15
|
-
|
|
16
|
-
2. **For each unprocessed message:**
|
|
17
|
-
- Read the task details
|
|
18
|
-
- If it's a task assignment, begin work following the workflow in `WORKFLOWS.md`
|
|
19
|
-
- If it's a review request, perform the review
|
|
20
|
-
|
|
21
|
-
3. **When you complete work:**
|
|
22
|
-
- Move processed inbox messages to `inbox/processed/` with prefix `PROCESSED_YYYYMMDD_HHMM_`
|
|
23
|
-
- Write completion summary to the sender's inbox (usually engineering-manager)
|
|
24
|
-
- End with "Please invoke @[next-agent]" instruction for the user
|
|
25
|
-
|
|
26
|
-
4. **If inbox is empty:**
|
|
27
|
-
- Report "No pending tasks in inbox"
|
|
28
|
-
- Check Jira for any assigned tickets you should be working on
|
|
29
|
-
|
|
30
|
-
## Additional Context
|
|
31
|
-
|
|
32
|
-
$ARGUMENTS
|
|
33
|
-
|
|
34
|
-
Now check your inbox and proceed.
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Delegate a task to an agent using inbox-based delegation (NOT Task tool)
|
|
3
|
-
argument-hint: <ticket-or-task> to <agent-name>
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Delegation Request
|
|
7
|
-
|
|
8
|
-
You are the Engineering Manager. Delegate this task: **$ARGUMENTS**
|
|
9
|
-
|
|
10
|
-
## CRITICAL RULES - READ FIRST
|
|
11
|
-
|
|
12
|
-
1. **DO NOT USE THE TASK TOOL** - You must NOT invoke agents directly
|
|
13
|
-
2. **USE INBOX FILES ONLY** - Write task details to the agent's inbox directory
|
|
14
|
-
3. **TELL USER TO INVOKE** - End your response telling the user which agent(s) to invoke
|
|
15
|
-
|
|
16
|
-
## Delegation Steps
|
|
17
|
-
|
|
18
|
-
1. Look up the ticket/PR details (use Jira MCP or `gh pr view`)
|
|
19
|
-
2. Update Jira status if applicable (to "In Progress" or add review comment)
|
|
20
|
-
3. Write task file to `/KnowledgeLibrary/[agent-name]/inbox/YYYYMMDD_HHMM-engineering-manager-[topic].md`
|
|
21
|
-
4. Save copy to your outbox
|
|
22
|
-
5. End with: "Please invoke: `@[agent-name] check your inbox`"
|
|
23
|
-
|
|
24
|
-
## Remember
|
|
25
|
-
|
|
26
|
-
- You have MCP access - use it to update Jira directly
|
|
27
|
-
- Agents will have MCP access when the USER invokes them via @[agent-name]
|
|
28
|
-
- If you invoke them via Task tool, they lose MCP access - DON'T DO THIS
|
|
29
|
-
|
|
30
|
-
Now proceed with the delegation.
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use when committing code changes, pushing to remote, or saving work. This is a GATED commit that enforces quality checks - all configured checks must pass before the commit proceeds.
|
|
3
|
-
argument-hint: [commit message or ticket reference]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Gated Git Commit
|
|
7
|
-
|
|
8
|
-
You are committing changes for: **$ARGUMENTS**
|
|
9
|
-
|
|
10
|
-
## CRITICAL: Quality Gate
|
|
11
|
-
|
|
12
|
-
**NO COMMIT will proceed until ALL checks pass.** This is non-negotiable.
|
|
13
|
-
|
|
14
|
-
## Pre-Commit Checks (MANDATORY)
|
|
15
|
-
|
|
16
|
-
Run these checks IN ORDER. If ANY fail, STOP and fix before proceeding.
|
|
17
|
-
|
|
18
|
-
### 1. Code Formatting
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
{{LINT_CMD}}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**If fails:**
|
|
25
|
-
- Run the format/fix command if available
|
|
26
|
-
- Review changes
|
|
27
|
-
- Re-run the check
|
|
28
|
-
|
|
29
|
-
### 2. Static Analysis
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
{{STATIC_ANALYSIS_CMD}}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**If fails:**
|
|
36
|
-
- Review the report
|
|
37
|
-
- Fix code smells and issues
|
|
38
|
-
- Re-run the check
|
|
39
|
-
|
|
40
|
-
### 3. Unit Tests
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
{{TEST_CMD}}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**If fails:**
|
|
47
|
-
- Review test failures
|
|
48
|
-
- Fix failing tests or update tests for new behavior
|
|
49
|
-
- Re-run tests
|
|
50
|
-
|
|
51
|
-
### 4. Build Verification
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
{{BUILD_CMD}}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**If fails:**
|
|
58
|
-
- Fix compilation errors
|
|
59
|
-
- Re-run build
|
|
60
|
-
|
|
61
|
-
## All Checks Passed?
|
|
62
|
-
|
|
63
|
-
Only proceed to commit if you see **BUILD SUCCESSFUL** (or equivalent) for ALL checks above.
|
|
64
|
-
|
|
65
|
-
## Commit Process
|
|
66
|
-
|
|
67
|
-
### 1. Stage Changes
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
git add -A
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Or stage specific files:
|
|
74
|
-
```bash
|
|
75
|
-
git add [specific files]
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### 2. Commit with Proper Format
|
|
79
|
-
|
|
80
|
-
**Commit message format:**
|
|
81
|
-
```
|
|
82
|
-
<type>(<scope>): <description> [{{JIRA_PROJECT}}-XX]
|
|
83
|
-
|
|
84
|
-
[optional body with details]
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**Types:** `feat`, `fix`, `refactor`, `test`, `docs`, `chore`, `style`, `perf`
|
|
88
|
-
|
|
89
|
-
**Examples:**
|
|
90
|
-
```bash
|
|
91
|
-
git commit -m "feat(core): add new feature [{{JIRA_PROJECT}}-123]"
|
|
92
|
-
git commit -m "fix(sync): resolve connection timeout [{{JIRA_PROJECT}}-456]"
|
|
93
|
-
git commit -m "test(core): add unit tests for filtering [{{JIRA_PROJECT}}-789]"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### 3. Push to Remote
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
git push -u origin $(git branch --show-current)
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Commit Checklist
|
|
103
|
-
|
|
104
|
-
Before committing, verify:
|
|
105
|
-
- [ ] All quality checks passed
|
|
106
|
-
- [ ] Commit message includes ticket number [{{JIRA_PROJECT}}-XX]
|
|
107
|
-
- [ ] Commit message follows type(scope): description format
|
|
108
|
-
- [ ] No debug code or commented-out blocks
|
|
109
|
-
- [ ] No secrets or API keys in code
|
|
110
|
-
- [ ] Changes are related to the ticket being worked on
|
|
111
|
-
|
|
112
|
-
## Error Recovery
|
|
113
|
-
|
|
114
|
-
**If checks fail repeatedly:**
|
|
115
|
-
1. Report which specific check is failing
|
|
116
|
-
2. Show the error output
|
|
117
|
-
3. Ask for guidance if the fix is unclear
|
|
118
|
-
|
|
119
|
-
**If push fails:**
|
|
120
|
-
```bash
|
|
121
|
-
# If remote has new commits, rebase first
|
|
122
|
-
git fetch origin
|
|
123
|
-
git rebase origin/main
|
|
124
|
-
# Then push again
|
|
125
|
-
git push -u origin $(git branch --show-current)
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Completion
|
|
129
|
-
|
|
130
|
-
After successful commit and push, report:
|
|
131
|
-
```
|
|
132
|
-
Commit successful
|
|
133
|
-
|
|
134
|
-
Branch: feature/{{JIRA_PROJECT}}-XX-description
|
|
135
|
-
Commit: [short SHA] <commit message>
|
|
136
|
-
Pushed to: origin/feature/{{JIRA_PROJECT}}-XX-description
|
|
137
|
-
|
|
138
|
-
Quality checks passed:
|
|
139
|
-
- [List of checks that passed]
|
|
140
|
-
|
|
141
|
-
Ready for PR creation when implementation is complete.
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
Now proceed with the gated commit process.
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use when creating a pull request, opening a PR, or when code is ready for review. Creates PR with proper format, links to Jira ticket, and automatically transitions the ticket to "In Review" status.
|
|
3
|
-
argument-hint: [ticket reference or PR title]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Create Pull Request
|
|
7
|
-
|
|
8
|
-
You are creating a PR for: **$ARGUMENTS**
|
|
9
|
-
|
|
10
|
-
## Pre-PR Checklist
|
|
11
|
-
|
|
12
|
-
Before creating a PR, verify:
|
|
13
|
-
|
|
14
|
-
### 1. All Commits Pushed
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
git status
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Ensure no uncommitted changes. If there are changes, use `/git-commit` first.
|
|
21
|
-
|
|
22
|
-
### 2. Branch is Up-to-Date
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
git fetch origin main
|
|
26
|
-
git log origin/main..HEAD --oneline
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
If behind main, rebase:
|
|
30
|
-
```bash
|
|
31
|
-
git rebase origin/main
|
|
32
|
-
git push --force-with-lease
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 3. CI Checks Ready
|
|
36
|
-
|
|
37
|
-
All local checks should have passed during `/git-commit`.
|
|
38
|
-
|
|
39
|
-
## Extract Ticket Information
|
|
40
|
-
|
|
41
|
-
### From Branch Name
|
|
42
|
-
```bash
|
|
43
|
-
git branch --show-current
|
|
44
|
-
# Expected format: feature/{{JIRA_PROJECT}}-XX-description
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### From Jira (if available)
|
|
48
|
-
Use MCP to get ticket details:
|
|
49
|
-
- Title
|
|
50
|
-
- Description
|
|
51
|
-
- Acceptance criteria
|
|
52
|
-
|
|
53
|
-
## Create Pull Request
|
|
54
|
-
|
|
55
|
-
### PR Title Format
|
|
56
|
-
```
|
|
57
|
-
[{{JIRA_PROJECT}}-XX] <Brief description>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Examples:**
|
|
61
|
-
- `[{{JIRA_PROJECT}}-123] Add feature state machine`
|
|
62
|
-
- `[{{JIRA_PROJECT}}-456] Fix connection timeout handling`
|
|
63
|
-
|
|
64
|
-
### PR Body Template
|
|
65
|
-
|
|
66
|
-
```markdown
|
|
67
|
-
## Summary
|
|
68
|
-
|
|
69
|
-
Brief description of what this PR does.
|
|
70
|
-
|
|
71
|
-
## Changes
|
|
72
|
-
|
|
73
|
-
- Change 1
|
|
74
|
-
- Change 2
|
|
75
|
-
- Change 3
|
|
76
|
-
|
|
77
|
-
## Ticket
|
|
78
|
-
|
|
79
|
-
[{{JIRA_PROJECT}}-XX]({{JIRA_URL}}/browse/{{JIRA_PROJECT}}-XX)
|
|
80
|
-
|
|
81
|
-
## Testing
|
|
82
|
-
|
|
83
|
-
- [ ] Unit tests added/updated
|
|
84
|
-
- [ ] Manual testing completed
|
|
85
|
-
- [ ] Tested on [device/emulator]
|
|
86
|
-
|
|
87
|
-
## Checklist
|
|
88
|
-
|
|
89
|
-
- [ ] Code follows development standards
|
|
90
|
-
- [ ] All quality checks pass
|
|
91
|
-
- [ ] No debug code or TODOs left
|
|
92
|
-
- [ ] Documentation updated (if applicable)
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Create PR with GitHub CLI
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
gh pr create \
|
|
99
|
-
--title "[{{JIRA_PROJECT}}-XX] <description>" \
|
|
100
|
-
--body "$(cat <<'EOF'
|
|
101
|
-
## Summary
|
|
102
|
-
|
|
103
|
-
<description>
|
|
104
|
-
|
|
105
|
-
## Changes
|
|
106
|
-
|
|
107
|
-
- <change 1>
|
|
108
|
-
- <change 2>
|
|
109
|
-
|
|
110
|
-
## Ticket
|
|
111
|
-
|
|
112
|
-
[{{JIRA_PROJECT}}-XX]({{JIRA_URL}}/browse/{{JIRA_PROJECT}}-XX)
|
|
113
|
-
|
|
114
|
-
## Testing
|
|
115
|
-
|
|
116
|
-
- [ ] Unit tests added/updated
|
|
117
|
-
- [ ] Manual testing completed
|
|
118
|
-
|
|
119
|
-
## Checklist
|
|
120
|
-
|
|
121
|
-
- [ ] Code follows development standards
|
|
122
|
-
- [ ] All quality checks pass
|
|
123
|
-
- [ ] No debug code or TODOs left
|
|
124
|
-
EOF
|
|
125
|
-
)"
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Update Jira Ticket
|
|
129
|
-
|
|
130
|
-
**MANDATORY:** After PR is created, transition the Jira ticket to "In Review".
|
|
131
|
-
|
|
132
|
-
### Using Atlassian MCP
|
|
133
|
-
|
|
134
|
-
1. Transition ticket to "In Review" status
|
|
135
|
-
2. Add comment with PR link:
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
PR created: <PR URL>
|
|
139
|
-
|
|
140
|
-
Changes:
|
|
141
|
-
- <summary of changes>
|
|
142
|
-
|
|
143
|
-
Ready for code review.
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Fallback (if MCP unavailable)
|
|
147
|
-
|
|
148
|
-
Report to user:
|
|
149
|
-
```
|
|
150
|
-
Please manually update Jira ticket {{JIRA_PROJECT}}-XX:
|
|
151
|
-
- Status: In Review
|
|
152
|
-
- Add comment with PR link: <URL>
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## Request Review
|
|
156
|
-
|
|
157
|
-
If you know who should review:
|
|
158
|
-
```bash
|
|
159
|
-
gh pr edit <PR_NUMBER> --add-reviewer <github-username>
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
## Completion
|
|
163
|
-
|
|
164
|
-
After PR creation, report:
|
|
165
|
-
```
|
|
166
|
-
Pull Request Created
|
|
167
|
-
|
|
168
|
-
PR: #<number> - [{{JIRA_PROJECT}}-XX] <title>
|
|
169
|
-
URL: <github PR URL>
|
|
170
|
-
Branch: feature/{{JIRA_PROJECT}}-XX-description -> main
|
|
171
|
-
|
|
172
|
-
Jira Updated:
|
|
173
|
-
- Ticket {{JIRA_PROJECT}}-XX transitioned to "In Review"
|
|
174
|
-
- Comment added with PR link
|
|
175
|
-
|
|
176
|
-
Next Steps:
|
|
177
|
-
- CI checks will run automatically
|
|
178
|
-
- Await code review
|
|
179
|
-
- Address any feedback
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
## Error Handling
|
|
183
|
-
|
|
184
|
-
**If PR creation fails:**
|
|
185
|
-
- Check if branch is pushed: `git push -u origin $(git branch --show-current)`
|
|
186
|
-
- Check if PR already exists: `gh pr list --head $(git branch --show-current)`
|
|
187
|
-
- Check GitHub CLI auth: `gh auth status`
|
|
188
|
-
|
|
189
|
-
**If Jira transition fails:**
|
|
190
|
-
- Note the failure in your completion report
|
|
191
|
-
- Ask user to manually update Jira
|
|
192
|
-
|
|
193
|
-
Now proceed with PR creation.
|