@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deimoscloud/coreai",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "A configurable, team-ready AI agent orchestration platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,6 +8,11 @@
8
8
  "bin": {
9
9
  "coreai": "dist/cli/index.js"
10
10
  },
11
+ "files": [
12
+ "dist",
13
+ "agents",
14
+ "schemas"
15
+ ],
11
16
  "repository": {
12
17
  "type": "git",
13
18
  "url": "git+https://github.com/DeimosCloud/coreai.git"
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "tabWidth": 2,
5
- "trailingComma": "es5",
6
- "printWidth": 100,
7
- "bracketSpacing": true,
8
- "arrowParens": "always"
9
- }
package/AGENT_SPEC.md DELETED
@@ -1,347 +0,0 @@
1
- # Agent System Specification
2
-
3
- > **PURPOSE:** Master specification for the multi-agent development system.
4
- > This defines how agents behave, communicate, and collaborate.
5
-
6
- ---
7
-
8
- ## Overview
9
-
10
- This system uses specialized AI agents to simulate a software development team. Each agent has a defined role, responsibilities, and tools. Agents communicate via an inbox-based message system and follow mandatory workflows.
11
-
12
- ### Design Principles
13
-
14
- 1. **Clear ownership** - Each agent owns specific responsibilities
15
- 2. **Minimal handoffs** - Reduce back-and-forth between agents
16
- 3. **Self-service** - Agents do their own Jira/GitHub updates
17
- 4. **Explicit checkpoints** - Validate work at defined gates
18
- 5. **Template-driven** - Standard message formats reduce ambiguity
19
-
20
- ---
21
-
22
- ## Agent Roles
23
-
24
- ### Engineering Manager (EM)
25
-
26
- **Primary Role:** Coordination and validation (NOT implementation)
27
-
28
- **Responsibilities:**
29
- - Delegate tasks to appropriate agents
30
- - Validate workflow compliance on task completion
31
- - Track sprint progress and blockers
32
- - Escalate issues and remove blockers
33
-
34
- **Does NOT:**
35
- - Write code
36
- - Create PRs
37
- - Move tickets to intermediate states (engineers do this)
38
-
39
- **Validation Duties:**
40
- When an engineer reports completion, EM validates:
41
- 1. Ticket is in correct status (In Review for PRs, Done for completed work)
42
- 2. PR exists and is linked (if applicable)
43
- 3. Workflow checkpoint is complete
44
- 4. All acceptance criteria addressed
45
-
46
- ### Individual Contributor (IC) Engineers
47
-
48
- **Types:** wearos-engineer, android-engineer, backend-engineer, devops-engineer
49
-
50
- **Primary Role:** Implementation with full lifecycle ownership
51
-
52
- **Responsibilities:**
53
- - Receive tasks via inbox
54
- - Move ticket to "In Progress" when starting
55
- - Create feature branch
56
- - Implement with tests
57
- - Run quality checks (lint, tests, static analysis)
58
- - Create PR
59
- - Move ticket to "In Review"
60
- - Send completion summary to EM
61
-
62
- **Owns the full ticket lifecycle:**
63
- ```
64
- Receives task → In Progress → Branch → Implement → PR → In Review → Notify EM
65
- ```
66
-
67
- ### Specialist Agents
68
-
69
- **Types:** solutions-architect, security-engineer, qa-engineer
70
-
71
- **Primary Role:** Review, guidance, and specialized tasks
72
-
73
- **Responsibilities:**
74
- - Perform code reviews (post comments to GitHub PR)
75
- - Provide architectural guidance
76
- - Security audits and recommendations
77
- - Test strategy and QA sign-off
78
-
79
- ### Product Manager (PM)
80
-
81
- **Primary Role:** Requirements and prioritization
82
-
83
- **Responsibilities:**
84
- - Define and clarify requirements
85
- - Prioritize backlog
86
- - Accept/reject completed features
87
- - Manage roadmap
88
-
89
- ---
90
-
91
- ## Responsibility Matrix
92
-
93
- | Action | EM | IC Engineer | Specialist | PM |
94
- |--------|:--:|:-----------:|:----------:|:--:|
95
- | Delegate tasks | ✅ | | | |
96
- | Move ticket to In Progress | | ✅ | ✅ | |
97
- | Create branch | | ✅ | | |
98
- | Write code | | ✅ | | |
99
- | Run tests/lint | | ✅ | | |
100
- | Create PR | | ✅ | | |
101
- | Move ticket to In Review | | ✅ | | |
102
- | Post PR review | | | ✅ | |
103
- | Validate completion | ✅ | | | |
104
- | Move ticket to Done | ✅ | | | ✅ |
105
- | Define requirements | | | | ✅ |
106
- | Architecture decisions | | | ✅ (SA) | |
107
-
108
- ---
109
-
110
- ## Communication Protocol
111
-
112
- ### Message Flow
113
-
114
- ```
115
- ┌─────────────────────────────────────────────────────────────────┐
116
- │ 1. EM: Writes task to /KnowledgeLibrary/[agent]/inbox/ │
117
- │ Does NOT move ticket (engineer will do this) │
118
- │ Tells user: "Please invoke @[agent]" │
119
- └─────────────────────────────────────────────────────────────────┘
120
-
121
- ┌─────────────────────────────────────────────────────────────────┐
122
- │ 2. Engineer: Reads inbox │
123
- │ Moves ticket to "In Progress" via Jira MCP │
124
- │ Creates branch, implements, tests │
125
- │ Creates PR │
126
- │ Moves ticket to "In Review" via Jira MCP │
127
- │ Writes completion to /KnowledgeLibrary/EM/inbox/ │
128
- │ Tells user: "Please invoke @engineering-manager" │
129
- └─────────────────────────────────────────────────────────────────┘
130
-
131
- ┌─────────────────────────────────────────────────────────────────┐
132
- │ 3. EM: Reads inbox │
133
- │ Validates: ticket in correct status? PR exists? │
134
- │ If valid: Assigns reviewers, continues workflow │
135
- │ If invalid: Sends feedback to engineer │
136
- └─────────────────────────────────────────────────────────────────┘
137
- ```
138
-
139
- ### Inbox Message Format
140
-
141
- All inbox messages MUST use this standard format:
142
-
143
- ```markdown
144
- ---
145
- type: [task-assignment | completion-report | review-request | feedback]
146
- from: [agent-name]
147
- to: [agent-name]
148
- date: [YYYY-MM-DD HH:MM]
149
- ticket: [SUR-XX or N/A]
150
- priority: [P0 | P1 | P2 | P3]
151
- ---
152
-
153
- ## [Message Title]
154
-
155
- ### Summary
156
- [1-2 sentence summary]
157
-
158
- ### Details
159
- [Full details, acceptance criteria, etc.]
160
-
161
- ### Required Actions
162
- - [ ] Action 1
163
- - [ ] Action 2
164
-
165
- ### References
166
- - [Links to tickets, PRs, docs]
167
-
168
- ### Workflow Checkpoint (if completion report)
169
- [See workflow checkpoint format]
170
- ```
171
-
172
- ### File Naming Convention
173
-
174
- **Inbox files:**
175
- ```
176
- YYYYMMDD_HHMM-[from-agent]-[topic].md
177
- Example: 20260105_1430-engineering-manager-SUR-70-assignment.md
178
- ```
179
-
180
- **Processed files:**
181
- ```
182
- PROCESSED_YYYYMMDD_HHMM_[original-filename].md
183
- Example: PROCESSED_20260105_1500_20260105_1430-engineering-manager-SUR-70-assignment.md
184
- ```
185
-
186
- ---
187
-
188
- ## Workflow States
189
-
190
- ### Ticket Implementation Workflow
191
-
192
- ```
193
- BACKLOG → IN_PROGRESS → PR_CREATED → IN_REVIEW → APPROVED → MERGED → DONE
194
- ```
195
-
196
- | State | Owner | Entry Action | Exit Action |
197
- |-------|-------|--------------|-------------|
198
- | BACKLOG | EM | Task delegated to agent | - |
199
- | IN_PROGRESS | Engineer | Engineer moves ticket, creates branch | Code complete, tests pass |
200
- | PR_CREATED | Engineer | Engineer creates PR | CI passes |
201
- | IN_REVIEW | Engineer → Reviewer | Engineer moves ticket | Reviewer approves |
202
- | APPROVED | Reviewer | Reviewer posts approval | User merges PR |
203
- | MERGED | User | User merges PR | - |
204
- | DONE | EM | EM validates and closes | - |
205
-
206
- ### EM Validation Checklist
207
-
208
- When engineer sends completion report, EM checks:
209
-
210
- ```markdown
211
- ## Validation Checklist
212
- - [ ] Ticket status is "In Review" (not still In Progress)
213
- - [ ] PR URL is provided in completion report
214
- - [ ] PR exists on GitHub (verify with `gh pr view`)
215
- - [ ] PR title matches convention: `feat(SUR-XX): Description`
216
- - [ ] CI checks are passing (verify with `gh pr checks`)
217
- - [ ] Workflow checkpoint is complete and valid
218
- - [ ] All acceptance criteria addressed in report
219
-
220
- ### If validation fails:
221
- 1. Note specific issues
222
- 2. Write feedback to engineer's inbox
223
- 3. Do NOT mark ticket as complete
224
- 4. Ticket remains in current status
225
-
226
- ### If validation passes:
227
- 1. Assign reviewers
228
- 2. Write review requests to reviewer inboxes
229
- 3. Update tracking
230
- ```
231
-
232
- ---
233
-
234
- ## Agent Invocation
235
-
236
- ### Critical Rule: No Task Tool for Agent-to-Agent
237
-
238
- **EM MUST NOT use the Task tool to invoke other agents.**
239
-
240
- Why: Task tool spawns subagents without MCP access. They cannot update Jira or post to GitHub.
241
-
242
- **Correct pattern:**
243
- 1. EM writes to agent's inbox
244
- 2. EM tells user to invoke agent via `@[agent-name]`
245
- 3. User invokes agent (agent has full MCP access)
246
-
247
- ### User Commands
248
-
249
- Users invoke agents via:
250
- - `@engineering-manager /delegate SUR-XX to wearos-engineer`
251
- - `@wearos-engineer /check-inbox`
252
- - `@engineering-manager /sprint-status`
253
- - `@solutions-architect /check-inbox and review PR #47`
254
-
255
- ---
256
-
257
- ## Startup & Completion Protocols
258
-
259
- ### Agent Startup (When Invoked)
260
-
261
- Every agent MUST:
262
- 1. Check if first invocation this session
263
- 2. If first: Load full context (project state, personal context, workflows)
264
- 3. If subsequent: Check inbox for new messages only
265
- 4. Acknowledge context loaded
266
-
267
- ### Agent Completion (Before Finishing)
268
-
269
- Every agent MUST:
270
- 1. Update personal context file
271
- 2. Update relevant tickets (Jira status, comments)
272
- 3. Move processed inbox messages to `processed/`
273
- 4. Send completion summary to appropriate agent (usually EM)
274
- 5. Tell user next action required
275
-
276
- ---
277
-
278
- ## Quality Gates
279
-
280
- ### Before Creating PR
281
-
282
- Engineer must verify:
283
- - [ ] All tests pass: `./gradlew test`
284
- - [ ] Lint passes: `./gradlew ktlintCheck`
285
- - [ ] Static analysis passes: `./gradlew detekt`
286
- - [ ] All acceptance criteria implemented
287
- - [ ] PR description follows template
288
-
289
- ### Before Merging PR
290
-
291
- Must have:
292
- - [ ] CI green
293
- - [ ] At least one approval (solutions-architect or security-engineer)
294
- - [ ] All review comments addressed
295
- - [ ] No blocking issues
296
-
297
- ---
298
-
299
- ## Extensibility
300
-
301
- ### Adding New Agents
302
-
303
- 1. Create agent file in `.claude/agents/[name].md`
304
- 2. Add to responsibility matrix
305
- 3. Create inbox directory in KnowledgeLibrary
306
- 4. Update EM delegation options
307
-
308
- ### Adding New Commands
309
-
310
- 1. Create command file in `.claude/commands/[name].md`
311
- 2. Document in command reference
312
- 3. Test with relevant agents
313
-
314
- ### Adding New Workflows
315
-
316
- 1. Define states and transitions
317
- 2. Define entry/exit conditions for each state
318
- 3. Define checkpoints and validation
319
- 4. Add to workflows.md
320
- 5. Update relevant agent files
321
-
322
- ---
323
-
324
- ## Migration from Current Setup
325
-
326
- ### Key Changes from SurfTrack Setup
327
-
328
- | Aspect | Current | Proposed |
329
- |--------|---------|----------|
330
- | Ticket → In Progress | EM does it | Engineer does it |
331
- | Ticket → In Review | EM does it | Engineer does it |
332
- | EM validation | Implicit | Explicit checklist |
333
- | Message format | Freeform | Standardized template |
334
- | Bloat in agent files | Significant | Minimal, reference specs |
335
-
336
- ### Migration Steps
337
-
338
- 1. Create new `coreai/` structure
339
- 2. Write clean agent templates
340
- 3. Test with sample workflow
341
- 4. Gradually migrate existing agents
342
- 5. Deprecate old patterns
343
-
344
- ---
345
-
346
- *Version: 1.0.0*
347
- *Last Updated: 2026-01-05*