@deimoscloud/coreai 0.1.9 → 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.
Files changed (196) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/cli/index.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/package.json +6 -1
  6. package/.prettierrc +0 -9
  7. package/AGENT_SPEC.md +0 -347
  8. package/ARCHITECTURE.md +0 -547
  9. package/DRAFT_PRD.md +0 -1440
  10. package/IMPLEMENTATION_PLAN.md +0 -256
  11. package/PRODUCT.md +0 -473
  12. package/WORKFLOWS.md +0 -295
  13. package/commands/core/check-inbox.md +0 -34
  14. package/commands/core/delegate.md +0 -30
  15. package/commands/core/git-commit.md +0 -144
  16. package/commands/core/pr-create.md +0 -193
  17. package/commands/core/review.md +0 -56
  18. package/commands/core/sprint-status.md +0 -65
  19. package/commands/optional/docs-update.md +0 -200
  20. package/commands/optional/jira-create.md +0 -200
  21. package/commands/optional/jira-transition.md +0 -184
  22. package/commands/optional/worktree-cleanup.md +0 -167
  23. package/commands/optional/worktree-setup.md +0 -110
  24. package/eslint.config.js +0 -29
  25. package/jest.config.js +0 -22
  26. package/knowledge-library/README.md +0 -118
  27. package/knowledge-library/android-engineer/context/current.txt +0 -42
  28. package/knowledge-library/android-engineer/control/decisions.txt +0 -9
  29. package/knowledge-library/android-engineer/control/dependencies.txt +0 -19
  30. package/knowledge-library/android-engineer/control/objectives.txt +0 -26
  31. package/knowledge-library/android-engineer/history/.gitkeep +0 -0
  32. package/knowledge-library/android-engineer/inbox/processed/.gitkeep +0 -0
  33. package/knowledge-library/android-engineer/outbox/.gitkeep +0 -0
  34. package/knowledge-library/android-engineer/tech/.gitkeep +0 -0
  35. package/knowledge-library/architecture.txt +0 -61
  36. package/knowledge-library/backend-engineer/context/current.txt +0 -42
  37. package/knowledge-library/backend-engineer/control/decisions.txt +0 -9
  38. package/knowledge-library/backend-engineer/control/dependencies.txt +0 -19
  39. package/knowledge-library/backend-engineer/control/objectives.txt +0 -26
  40. package/knowledge-library/backend-engineer/history/.gitkeep +0 -0
  41. package/knowledge-library/backend-engineer/inbox/processed/.gitkeep +0 -0
  42. package/knowledge-library/backend-engineer/outbox/.gitkeep +0 -0
  43. package/knowledge-library/backend-engineer/tech/.gitkeep +0 -0
  44. package/knowledge-library/context.txt +0 -52
  45. package/knowledge-library/devops-engineer/context/current.txt +0 -42
  46. package/knowledge-library/devops-engineer/control/decisions.txt +0 -9
  47. package/knowledge-library/devops-engineer/control/dependencies.txt +0 -19
  48. package/knowledge-library/devops-engineer/control/objectives.txt +0 -26
  49. package/knowledge-library/devops-engineer/history/.gitkeep +0 -0
  50. package/knowledge-library/devops-engineer/inbox/processed/.gitkeep +0 -0
  51. package/knowledge-library/devops-engineer/outbox/.gitkeep +0 -0
  52. package/knowledge-library/devops-engineer/tech/.gitkeep +0 -0
  53. package/knowledge-library/engineering-manager/context/current.txt +0 -40
  54. package/knowledge-library/engineering-manager/control/decisions.txt +0 -9
  55. package/knowledge-library/engineering-manager/control/objectives.txt +0 -27
  56. package/knowledge-library/engineering-manager/history/.gitkeep +0 -0
  57. package/knowledge-library/engineering-manager/inbox/processed/.gitkeep +0 -0
  58. package/knowledge-library/engineering-manager/outbox/.gitkeep +0 -0
  59. package/knowledge-library/engineering-manager/tech/.gitkeep +0 -0
  60. package/knowledge-library/prd.txt +0 -81
  61. package/knowledge-library/product-manager/context/current.txt +0 -42
  62. package/knowledge-library/product-manager/control/decisions.txt +0 -9
  63. package/knowledge-library/product-manager/control/dependencies.txt +0 -19
  64. package/knowledge-library/product-manager/control/objectives.txt +0 -26
  65. package/knowledge-library/product-manager/history/.gitkeep +0 -0
  66. package/knowledge-library/product-manager/inbox/processed/.gitkeep +0 -0
  67. package/knowledge-library/product-manager/outbox/.gitkeep +0 -0
  68. package/knowledge-library/product-manager/tech/.gitkeep +0 -0
  69. package/knowledge-library/qa-engineer/context/current.txt +0 -42
  70. package/knowledge-library/qa-engineer/control/decisions.txt +0 -9
  71. package/knowledge-library/qa-engineer/control/dependencies.txt +0 -19
  72. package/knowledge-library/qa-engineer/control/objectives.txt +0 -26
  73. package/knowledge-library/qa-engineer/history/.gitkeep +0 -0
  74. package/knowledge-library/qa-engineer/inbox/processed/.gitkeep +0 -0
  75. package/knowledge-library/qa-engineer/outbox/.gitkeep +0 -0
  76. package/knowledge-library/qa-engineer/tech/.gitkeep +0 -0
  77. package/knowledge-library/security-engineer/context/current.txt +0 -42
  78. package/knowledge-library/security-engineer/control/decisions.txt +0 -9
  79. package/knowledge-library/security-engineer/control/dependencies.txt +0 -19
  80. package/knowledge-library/security-engineer/control/objectives.txt +0 -26
  81. package/knowledge-library/security-engineer/history/.gitkeep +0 -0
  82. package/knowledge-library/security-engineer/inbox/processed/.gitkeep +0 -0
  83. package/knowledge-library/security-engineer/outbox/.gitkeep +0 -0
  84. package/knowledge-library/security-engineer/tech/.gitkeep +0 -0
  85. package/knowledge-library/solutions-architect/context/current.txt +0 -42
  86. package/knowledge-library/solutions-architect/control/decisions.txt +0 -9
  87. package/knowledge-library/solutions-architect/control/dependencies.txt +0 -19
  88. package/knowledge-library/solutions-architect/control/objectives.txt +0 -26
  89. package/knowledge-library/solutions-architect/history/.gitkeep +0 -0
  90. package/knowledge-library/solutions-architect/inbox/processed/.gitkeep +0 -0
  91. package/knowledge-library/solutions-architect/outbox/.gitkeep +0 -0
  92. package/knowledge-library/solutions-architect/tech/.gitkeep +0 -0
  93. package/knowledge-library/wearos-engineer/context/current.txt +0 -42
  94. package/knowledge-library/wearos-engineer/control/decisions.txt +0 -9
  95. package/knowledge-library/wearos-engineer/control/dependencies.txt +0 -19
  96. package/knowledge-library/wearos-engineer/control/objectives.txt +0 -26
  97. package/knowledge-library/wearos-engineer/history/.gitkeep +0 -0
  98. package/knowledge-library/wearos-engineer/inbox/processed/.gitkeep +0 -0
  99. package/knowledge-library/wearos-engineer/outbox/.gitkeep +0 -0
  100. package/knowledge-library/wearos-engineer/tech/.gitkeep +0 -0
  101. package/scripts/add-agent.sh +0 -323
  102. package/scripts/install.sh +0 -354
  103. package/src/adapters/factory.test.ts +0 -386
  104. package/src/adapters/factory.ts +0 -305
  105. package/src/adapters/index.ts +0 -113
  106. package/src/adapters/interfaces.ts +0 -268
  107. package/src/adapters/mcp/client.test.ts +0 -130
  108. package/src/adapters/mcp/client.ts +0 -451
  109. package/src/adapters/mcp/discovery.test.ts +0 -315
  110. package/src/adapters/mcp/discovery.ts +0 -340
  111. package/src/adapters/mcp/index.ts +0 -66
  112. package/src/adapters/mcp/mapper.test.ts +0 -218
  113. package/src/adapters/mcp/mapper.ts +0 -536
  114. package/src/adapters/mcp/registry.test.ts +0 -433
  115. package/src/adapters/mcp/registry.ts +0 -550
  116. package/src/adapters/mcp/types.ts +0 -258
  117. package/src/adapters/native/filesystem.test.ts +0 -350
  118. package/src/adapters/native/filesystem.ts +0 -393
  119. package/src/adapters/native/github.test.ts +0 -173
  120. package/src/adapters/native/github.ts +0 -627
  121. package/src/adapters/native/index.ts +0 -22
  122. package/src/adapters/native/selector.test.ts +0 -224
  123. package/src/adapters/native/selector.ts +0 -150
  124. package/src/adapters/types.ts +0 -270
  125. package/src/agents/compiler.test.ts +0 -410
  126. package/src/agents/compiler.ts +0 -424
  127. package/src/agents/index.ts +0 -37
  128. package/src/agents/loader.test.ts +0 -319
  129. package/src/agents/loader.ts +0 -143
  130. package/src/agents/resolver.test.ts +0 -282
  131. package/src/agents/resolver.ts +0 -262
  132. package/src/agents/types.ts +0 -97
  133. package/src/cache/index.ts +0 -38
  134. package/src/cache/interfaces.ts +0 -283
  135. package/src/cache/manager.test.ts +0 -266
  136. package/src/cache/manager.ts +0 -388
  137. package/src/cache/provider.test.ts +0 -485
  138. package/src/cache/provider.ts +0 -745
  139. package/src/cache/types.test.ts +0 -192
  140. package/src/cache/types.ts +0 -313
  141. package/src/cli/commands/build.test.ts +0 -248
  142. package/src/cli/commands/build.ts +0 -284
  143. package/src/cli/commands/cache.test.ts +0 -221
  144. package/src/cli/commands/cache.ts +0 -229
  145. package/src/cli/commands/index.ts +0 -63
  146. package/src/cli/commands/init.test.ts +0 -173
  147. package/src/cli/commands/init.ts +0 -296
  148. package/src/cli/commands/skills.test.ts +0 -272
  149. package/src/cli/commands/skills.ts +0 -348
  150. package/src/cli/commands/status.test.ts +0 -392
  151. package/src/cli/commands/status.ts +0 -332
  152. package/src/cli/commands/sync.test.ts +0 -213
  153. package/src/cli/commands/sync.ts +0 -251
  154. package/src/cli/commands/validate.test.ts +0 -216
  155. package/src/cli/commands/validate.ts +0 -340
  156. package/src/cli/index.test.ts +0 -190
  157. package/src/cli/index.ts +0 -493
  158. package/src/commands/context.test.ts +0 -163
  159. package/src/commands/context.ts +0 -111
  160. package/src/commands/index.ts +0 -56
  161. package/src/commands/loader.test.ts +0 -273
  162. package/src/commands/loader.ts +0 -355
  163. package/src/commands/registry.test.ts +0 -384
  164. package/src/commands/registry.ts +0 -248
  165. package/src/commands/runner.test.ts +0 -297
  166. package/src/commands/runner.ts +0 -222
  167. package/src/commands/types.ts +0 -361
  168. package/src/config/index.ts +0 -19
  169. package/src/config/loader.test.ts +0 -262
  170. package/src/config/loader.ts +0 -188
  171. package/src/config/types.ts +0 -154
  172. package/src/context/index.ts +0 -14
  173. package/src/context/loader.test.ts +0 -334
  174. package/src/context/loader.ts +0 -357
  175. package/src/index.test.ts +0 -13
  176. package/src/index.ts +0 -268
  177. package/src/knowledge-library/index.ts +0 -44
  178. package/src/knowledge-library/manager.test.ts +0 -536
  179. package/src/knowledge-library/manager.ts +0 -804
  180. package/src/knowledge-library/types.ts +0 -432
  181. package/src/skills/generator.test.ts +0 -602
  182. package/src/skills/generator.ts +0 -491
  183. package/src/skills/index.ts +0 -27
  184. package/src/skills/templates.ts +0 -520
  185. package/src/skills/types.ts +0 -251
  186. package/templates/completion-report.md +0 -72
  187. package/templates/feedback.md +0 -56
  188. package/templates/project-files/CLAUDE.md.template +0 -109
  189. package/templates/project-files/coreai.json.example +0 -47
  190. package/templates/project-files/mcp.json.template +0 -20
  191. package/templates/review-complete.md +0 -64
  192. package/templates/review-request.md +0 -67
  193. package/templates/task-assignment.md +0 -51
  194. package/tsconfig.build.json +0 -4
  195. package/tsconfig.json +0 -26
  196. 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.