@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.
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -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 -410
- package/src/agents/compiler.ts +0 -424
- 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
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use when a PR has been merged, a ticket is complete, or development work is finished. Cleans up the git worktree created for parallel agent work. Typically used by the Engineering Manager after merge.
|
|
3
|
-
argument-hint: TICKET-XX or worktree path
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Worktree Cleanup
|
|
7
|
-
|
|
8
|
-
You are cleaning up the worktree for: **$ARGUMENTS**
|
|
9
|
-
|
|
10
|
-
## When to Use
|
|
11
|
-
|
|
12
|
-
- PR has been merged to main
|
|
13
|
-
- Ticket is marked as Done
|
|
14
|
-
- Development work is complete and no longer needed
|
|
15
|
-
|
|
16
|
-
## Cleanup Steps
|
|
17
|
-
|
|
18
|
-
### 1. Identify Worktree to Remove
|
|
19
|
-
|
|
20
|
-
List all active worktrees:
|
|
21
|
-
```bash
|
|
22
|
-
cd {{PROJECT_ROOT}}
|
|
23
|
-
git worktree list
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Expected output:**
|
|
27
|
-
```
|
|
28
|
-
{{PROJECT_ROOT}} abc1234 [main]
|
|
29
|
-
{{PROJECT_ROOT}}/../{{PROJECT_NAME}}-agent1-{{JIRA_PROJECT}}-123 def5678 [feature/{{JIRA_PROJECT}}-123-description]
|
|
30
|
-
{{PROJECT_ROOT}}/../{{PROJECT_NAME}}-agent2-{{JIRA_PROJECT}}-456 ghi9012 [feature/{{JIRA_PROJECT}}-456-description]
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### 2. Verify PR is Merged
|
|
34
|
-
|
|
35
|
-
Before removing, confirm the PR is merged:
|
|
36
|
-
```bash
|
|
37
|
-
gh pr list --state merged --search "{{JIRA_PROJECT}}-XX"
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Or check if the branch exists on remote:
|
|
41
|
-
```bash
|
|
42
|
-
git ls-remote --heads origin feature/{{JIRA_PROJECT}}-XX-description
|
|
43
|
-
# Empty output = branch deleted (PR merged)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### 3. Remove Worktree
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# From the main repository
|
|
50
|
-
cd {{PROJECT_ROOT}}
|
|
51
|
-
|
|
52
|
-
# Remove the worktree
|
|
53
|
-
git worktree remove ../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### 4. Delete Local Branch (if exists)
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
git branch -d feature/{{JIRA_PROJECT}}-XX-description
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
If branch wasn't merged (force delete with caution):
|
|
63
|
-
```bash
|
|
64
|
-
git branch -D feature/{{JIRA_PROJECT}}-XX-description
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### 5. Prune Stale Worktrees
|
|
68
|
-
|
|
69
|
-
Clean up any stale worktree references:
|
|
70
|
-
```bash
|
|
71
|
-
git worktree prune
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### 6. Verify Cleanup
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
git worktree list
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Confirm the worktree no longer appears.
|
|
81
|
-
|
|
82
|
-
## Batch Cleanup
|
|
83
|
-
|
|
84
|
-
To clean up multiple worktrees at once:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# List all worktrees
|
|
88
|
-
git worktree list
|
|
89
|
-
|
|
90
|
-
# Remove each one
|
|
91
|
-
git worktree remove ../{{PROJECT_NAME}}-agent1-{{JIRA_PROJECT}}-XXX
|
|
92
|
-
git worktree remove ../{{PROJECT_NAME}}-agent2-{{JIRA_PROJECT}}-YYY
|
|
93
|
-
|
|
94
|
-
# Prune all stale references
|
|
95
|
-
git worktree prune
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Error Handling
|
|
99
|
-
|
|
100
|
-
**If worktree has uncommitted changes:**
|
|
101
|
-
```
|
|
102
|
-
error: '<path>' contains modified or untracked files, use --force to delete it
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Options:
|
|
106
|
-
1. **If changes are needed:** Commit and push first, then remove
|
|
107
|
-
2. **If changes can be discarded:** `git worktree remove --force ../path`
|
|
108
|
-
|
|
109
|
-
**If worktree directory doesn't exist but git tracks it:**
|
|
110
|
-
```bash
|
|
111
|
-
git worktree prune
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**If branch is not fully merged:**
|
|
115
|
-
```bash
|
|
116
|
-
# Check if branch was merged
|
|
117
|
-
git branch --merged main | grep feature/{{JIRA_PROJECT}}-XX
|
|
118
|
-
|
|
119
|
-
# If not merged but PR is closed/merged on GitHub, force delete
|
|
120
|
-
git branch -D feature/{{JIRA_PROJECT}}-XX-description
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Update Jira (Optional)
|
|
124
|
-
|
|
125
|
-
If the ticket isn't already Done, transition it:
|
|
126
|
-
- Use `/jira-transition` to move to "Done"
|
|
127
|
-
- Or use Atlassian MCP directly
|
|
128
|
-
|
|
129
|
-
## Completion
|
|
130
|
-
|
|
131
|
-
After cleanup, report:
|
|
132
|
-
```
|
|
133
|
-
Worktree Cleanup Complete
|
|
134
|
-
|
|
135
|
-
Removed:
|
|
136
|
-
- Worktree: {{PROJECT_ROOT}}/../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
137
|
-
- Branch: feature/{{JIRA_PROJECT}}-XX-description
|
|
138
|
-
|
|
139
|
-
Active Worktrees:
|
|
140
|
-
<output of git worktree list>
|
|
141
|
-
|
|
142
|
-
Ticket {{JIRA_PROJECT}}-XX is ready to be marked as Done (if not already).
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Bulk Cleanup After Sprint
|
|
146
|
-
|
|
147
|
-
To clean up all worktrees from a completed sprint:
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
# List all worktrees
|
|
151
|
-
git worktree list
|
|
152
|
-
|
|
153
|
-
# Remove all agent worktrees (keep main)
|
|
154
|
-
for dir in ../{{PROJECT_NAME}}-*-{{JIRA_PROJECT}}-*; do
|
|
155
|
-
if [ -d "$dir" ]; then
|
|
156
|
-
git worktree remove "$dir" --force
|
|
157
|
-
fi
|
|
158
|
-
done
|
|
159
|
-
|
|
160
|
-
# Prune
|
|
161
|
-
git worktree prune
|
|
162
|
-
|
|
163
|
-
# Clean up merged branches
|
|
164
|
-
git branch --merged main | grep -E "feature/{{JIRA_PROJECT}}-" | xargs -r git branch -d
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
Now proceed with the worktree cleanup.
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Use when starting work on a ticket, implementing a feature, fixing a bug, or beginning any development task. Sets up an isolated git worktree for parallel agent work, preventing conflicts when multiple agents work simultaneously.
|
|
3
|
-
argument-hint: TICKET-XX [short-description]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Worktree Setup for Parallel Development
|
|
7
|
-
|
|
8
|
-
You are setting up an isolated git worktree to work on: **$ARGUMENTS**
|
|
9
|
-
|
|
10
|
-
## Why Worktrees?
|
|
11
|
-
|
|
12
|
-
Multiple agents can work on different tickets simultaneously without conflicts. Each agent gets its own working directory with its own branch, completely isolated from other agents.
|
|
13
|
-
|
|
14
|
-
## Setup Steps
|
|
15
|
-
|
|
16
|
-
### 1. Parse Arguments
|
|
17
|
-
|
|
18
|
-
Extract from `$ARGUMENTS`:
|
|
19
|
-
- **Ticket ID:** {{JIRA_PROJECT}}-XX (required)
|
|
20
|
-
- **Description:** Short description for branch name (optional, derive from ticket if not provided)
|
|
21
|
-
|
|
22
|
-
### 2. Determine Your Agent Name
|
|
23
|
-
|
|
24
|
-
Identify which agent you are (e.g., `backend-engineer`, `frontend-engineer`). This is used in the worktree path.
|
|
25
|
-
|
|
26
|
-
### 3. Fetch Latest Main
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
cd {{PROJECT_ROOT}}
|
|
30
|
-
git fetch origin main
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### 4. Create Worktree
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Pattern: ../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
37
|
-
git worktree add ../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX -b feature/{{JIRA_PROJECT}}-XX-[description] origin/main
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Example:**
|
|
41
|
-
```bash
|
|
42
|
-
git worktree add ../{{PROJECT_NAME}}-backend-engineer-{{JIRA_PROJECT}}-123 -b feature/{{JIRA_PROJECT}}-123-feature-name origin/main
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 5. Verify Worktree
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
git worktree list
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Confirm your new worktree appears in the list.
|
|
52
|
-
|
|
53
|
-
### 6. Set Working Directory
|
|
54
|
-
|
|
55
|
-
**CRITICAL:** All subsequent work must happen in the worktree directory:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
{{PROJECT_ROOT}}/../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX/
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Announce to the user:
|
|
62
|
-
```
|
|
63
|
-
Worktree created. Working directory is now:
|
|
64
|
-
{{PROJECT_ROOT}}/../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
65
|
-
|
|
66
|
-
All code changes will be made in this isolated directory.
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### 7. Update Jira (if not already done)
|
|
70
|
-
|
|
71
|
-
If the ticket is not already "In Progress":
|
|
72
|
-
- Transition ticket to "In Progress"
|
|
73
|
-
- Add comment: "Starting work. Branch: `feature/{{JIRA_PROJECT}}-XX-[description]`"
|
|
74
|
-
|
|
75
|
-
## Important Notes
|
|
76
|
-
|
|
77
|
-
- **Never work in the main repository** when a worktree is active for your ticket
|
|
78
|
-
- **One worktree per ticket** - if you already have a worktree for this ticket, use it instead of creating a new one
|
|
79
|
-
- **Worktree cleanup** is handled by the Engineering Manager after PR merge via `/worktree-cleanup`
|
|
80
|
-
|
|
81
|
-
## Error Handling
|
|
82
|
-
|
|
83
|
-
**If worktree already exists:**
|
|
84
|
-
```bash
|
|
85
|
-
# Check existing worktrees
|
|
86
|
-
git worktree list
|
|
87
|
-
|
|
88
|
-
# If your worktree exists, just use it
|
|
89
|
-
cd ../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**If branch already exists:**
|
|
93
|
-
```bash
|
|
94
|
-
# Use existing branch in new worktree
|
|
95
|
-
git worktree add ../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX feature/{{JIRA_PROJECT}}-XX-[description]
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Completion
|
|
99
|
-
|
|
100
|
-
After setup, announce:
|
|
101
|
-
```
|
|
102
|
-
Worktree ready for {{JIRA_PROJECT}}-XX
|
|
103
|
-
|
|
104
|
-
Directory: {{PROJECT_ROOT}}/../{{PROJECT_NAME}}-[agent-name]-{{JIRA_PROJECT}}-XX
|
|
105
|
-
Branch: feature/{{JIRA_PROJECT}}-XX-[description]
|
|
106
|
-
|
|
107
|
-
Ready to begin implementation.
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Now proceed with the worktree setup.
|
package/eslint.config.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import eslint from '@eslint/js';
|
|
2
|
-
import tseslint from 'typescript-eslint';
|
|
3
|
-
import prettier from 'eslint-plugin-prettier/recommended';
|
|
4
|
-
|
|
5
|
-
export default tseslint.config(
|
|
6
|
-
eslint.configs.recommended,
|
|
7
|
-
...tseslint.configs.strict,
|
|
8
|
-
...tseslint.configs.stylistic,
|
|
9
|
-
prettier,
|
|
10
|
-
{
|
|
11
|
-
languageOptions: {
|
|
12
|
-
parserOptions: {
|
|
13
|
-
project: true,
|
|
14
|
-
tsconfigRootDir: import.meta.dirname,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
rules: {
|
|
18
|
-
'@typescript-eslint/no-unused-vars': [
|
|
19
|
-
'error',
|
|
20
|
-
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
21
|
-
],
|
|
22
|
-
'@typescript-eslint/consistent-type-imports': 'error',
|
|
23
|
-
'@typescript-eslint/no-import-type-side-effects': 'error',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
ignores: ['dist/**', 'node_modules/**', '*.js'],
|
|
28
|
-
}
|
|
29
|
-
);
|
package/jest.config.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/** @type {import('ts-jest').JestConfigWithTsJest} */
|
|
2
|
-
export default {
|
|
3
|
-
preset: 'ts-jest/presets/default-esm',
|
|
4
|
-
testEnvironment: 'node',
|
|
5
|
-
roots: ['<rootDir>/src'],
|
|
6
|
-
testMatch: ['**/*.test.ts'],
|
|
7
|
-
moduleNameMapper: {
|
|
8
|
-
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
9
|
-
},
|
|
10
|
-
transform: {
|
|
11
|
-
'^.+\\.tsx?$': [
|
|
12
|
-
'ts-jest',
|
|
13
|
-
{
|
|
14
|
-
useESM: true,
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
extensionsToTreatAsEsm: ['.ts'],
|
|
19
|
-
collectCoverageFrom: ['src/**/*.ts', '!src/**/*.test.ts', '!src/**/*.d.ts'],
|
|
20
|
-
coverageDirectory: 'coverage',
|
|
21
|
-
coverageReporters: ['text', 'lcov', 'html'],
|
|
22
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# Knowledge Library
|
|
2
|
-
|
|
3
|
-
Shared context and agent communication hub for the development team.
|
|
4
|
-
|
|
5
|
-
## Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
knowledge-library/
|
|
9
|
-
├── README.md # This file
|
|
10
|
-
├── context.txt # Overall project state (EM updates)
|
|
11
|
-
├── architecture.txt # Architecture decisions (EM updates)
|
|
12
|
-
├── prd.txt # Product requirements (PM/EM updates)
|
|
13
|
-
├── workflows.md # Symlink or copy of ../WORKFLOWS.md
|
|
14
|
-
│
|
|
15
|
-
├── [agent-name]/ # Per-agent directories
|
|
16
|
-
│ ├── inbox/ # Messages received from other agents
|
|
17
|
-
│ │ └── processed/ # Completed messages (archived)
|
|
18
|
-
│ ├── outbox/ # Copies of sent messages
|
|
19
|
-
│ ├── context/ # Agent's current state
|
|
20
|
-
│ │ └── current.txt # Current context file
|
|
21
|
-
│ ├── history/ # Archived context files
|
|
22
|
-
│ ├── tech/ # Technical docs, specs, designs
|
|
23
|
-
│ └── control/ # Objectives, decisions, dependencies
|
|
24
|
-
│ ├── objectives.txt
|
|
25
|
-
│ ├── decisions.txt
|
|
26
|
-
│ └── dependencies.txt
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Shared Context Files
|
|
30
|
-
|
|
31
|
-
### context.txt
|
|
32
|
-
Overall project state updated by Engineering Manager:
|
|
33
|
-
- Current sprint and priorities
|
|
34
|
-
- Active work and blockers
|
|
35
|
-
- Recent decisions
|
|
36
|
-
- Team status
|
|
37
|
-
|
|
38
|
-
### architecture.txt
|
|
39
|
-
Technical architecture decisions:
|
|
40
|
-
- System design
|
|
41
|
-
- Technology choices
|
|
42
|
-
- Data models
|
|
43
|
-
- Integration patterns
|
|
44
|
-
|
|
45
|
-
### prd.txt
|
|
46
|
-
Product requirements:
|
|
47
|
-
- Feature specifications
|
|
48
|
-
- User stories
|
|
49
|
-
- Acceptance criteria
|
|
50
|
-
- Priorities
|
|
51
|
-
|
|
52
|
-
## Agent Directories
|
|
53
|
-
|
|
54
|
-
Each agent has their own directory for:
|
|
55
|
-
|
|
56
|
-
| Directory | Purpose | Who Updates |
|
|
57
|
-
|-----------|---------|-------------|
|
|
58
|
-
| `inbox/` | Receive tasks and messages | Other agents write here |
|
|
59
|
-
| `inbox/processed/` | Archive of completed messages | Owner moves here |
|
|
60
|
-
| `outbox/` | Copies of sent messages | Owner writes here |
|
|
61
|
-
| `context/current.txt` | Agent's current state | Owner updates |
|
|
62
|
-
| `history/` | Archived context snapshots | Owner archives |
|
|
63
|
-
| `tech/` | Technical docs, specs | Owner creates |
|
|
64
|
-
| `control/` | Objectives, decisions | Owner maintains |
|
|
65
|
-
|
|
66
|
-
## Message File Naming
|
|
67
|
-
|
|
68
|
-
### Inbox (received)
|
|
69
|
-
```
|
|
70
|
-
YYYYMMDD_HHMM-[from-agent]-[topic].md
|
|
71
|
-
Example: 20260105_1430-engineering-manager-SUR-70-assignment.md
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Inbox Processed (archived)
|
|
75
|
-
```
|
|
76
|
-
PROCESSED_YYYYMMDD_HHMM_[original-filename].md
|
|
77
|
-
Example: PROCESSED_20260105_1600_20260105_1430-engineering-manager-SUR-70-assignment.md
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Outbox (sent copies)
|
|
81
|
-
```
|
|
82
|
-
YYYYMMDD_HHMM-to-[recipient]-[topic].md
|
|
83
|
-
Example: 20260105_1430-to-wearos-engineer-SUR-70-assignment.md
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Usage Rules
|
|
87
|
-
|
|
88
|
-
1. **Root files** (context.txt, architecture.txt, prd.txt) - Only EM updates
|
|
89
|
-
2. **All agents read** root files at startup
|
|
90
|
-
3. **All agents update** their own context before finishing
|
|
91
|
-
4. **All agents send** completion summaries to EM inbox
|
|
92
|
-
5. **Move processed messages** to `inbox/processed/` to prevent duplicate work
|
|
93
|
-
|
|
94
|
-
## Permissions Matrix
|
|
95
|
-
|
|
96
|
-
| Agent | Create Tickets | Update Root Files | Own Directory |
|
|
97
|
-
|-------|:--------------:|:-----------------:|:-------------:|
|
|
98
|
-
| engineering-manager | ✅ | ✅ | ✅ |
|
|
99
|
-
| solutions-architect | ✅ | ❌ | ✅ |
|
|
100
|
-
| security-engineer | ✅ | ❌ | ✅ |
|
|
101
|
-
| qa-engineer | ✅ | ❌ | ✅ |
|
|
102
|
-
| product-manager | ✅ | ✅ (prd.txt) | ✅ |
|
|
103
|
-
| backend-engineer | ❌ | ❌ | ✅ |
|
|
104
|
-
| android-engineer | ❌ | ❌ | ✅ |
|
|
105
|
-
| wearos-engineer | ❌ | ❌ | ✅ |
|
|
106
|
-
| devops-engineer | ❌ | ❌ | ✅ |
|
|
107
|
-
|
|
108
|
-
## External Integration
|
|
109
|
-
|
|
110
|
-
This Knowledge Library works alongside:
|
|
111
|
-
- **Jira** - Primary ticket tracking (MCP access)
|
|
112
|
-
- **Confluence** - Primary documentation (MCP access)
|
|
113
|
-
- **GitHub** - Code and PRs (gh CLI)
|
|
114
|
-
|
|
115
|
-
Local files serve as:
|
|
116
|
-
- Async communication between agents
|
|
117
|
-
- Fallback when external services unavailable
|
|
118
|
-
- Context persistence between sessions
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# [Agent Name] - Current Context
|
|
2
|
-
|
|
3
|
-
> **Last Updated:** [YYYY-MM-DD HH:MM]
|
|
4
|
-
|
|
5
|
-
## Current Focus
|
|
6
|
-
|
|
7
|
-
[What you're currently working on]
|
|
8
|
-
|
|
9
|
-
## Active Tasks
|
|
10
|
-
|
|
11
|
-
| Ticket | Status | Branch | PR |
|
|
12
|
-
|--------|--------|--------|-----|
|
|
13
|
-
| [KEY-XX] | [in-progress/pr-created/in-review] | [branch] | [#XX or -] |
|
|
14
|
-
|
|
15
|
-
## Work in Progress
|
|
16
|
-
|
|
17
|
-
### [KEY-XX] - [Title]
|
|
18
|
-
- **Status:** [status]
|
|
19
|
-
- **Branch:** [branch name]
|
|
20
|
-
- **Progress:**
|
|
21
|
-
- [x] Completed item
|
|
22
|
-
- [ ] Pending item
|
|
23
|
-
- **Blockers:** [None or description]
|
|
24
|
-
|
|
25
|
-
## Pending Reviews
|
|
26
|
-
|
|
27
|
-
| PR | Ticket | Requested By | Status |
|
|
28
|
-
|----|--------|--------------|--------|
|
|
29
|
-
| #XX | [KEY-XX] | [agent] | [pending/done] |
|
|
30
|
-
|
|
31
|
-
## Technical Notes
|
|
32
|
-
|
|
33
|
-
[Any technical context to remember]
|
|
34
|
-
|
|
35
|
-
## Next Actions
|
|
36
|
-
|
|
37
|
-
1. [ ] [Action 1]
|
|
38
|
-
2. [ ] [Action 2]
|
|
39
|
-
|
|
40
|
-
## Questions/Blockers
|
|
41
|
-
|
|
42
|
-
- [Any questions for EM or other agents]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# [Agent Name] - Dependencies
|
|
2
|
-
|
|
3
|
-
## Waiting On
|
|
4
|
-
|
|
5
|
-
| Dependency | From | Ticket | Status |
|
|
6
|
-
|------------|------|--------|--------|
|
|
7
|
-
| [what you need] | [agent] | [KEY-XX] | [waiting/resolved] |
|
|
8
|
-
|
|
9
|
-
## Providing To
|
|
10
|
-
|
|
11
|
-
| Deliverable | To | Ticket | Status |
|
|
12
|
-
|-------------|-----|--------|--------|
|
|
13
|
-
| [what you're providing] | [agent] | [KEY-XX] | [pending/delivered] |
|
|
14
|
-
|
|
15
|
-
## External Dependencies
|
|
16
|
-
|
|
17
|
-
| Dependency | Type | Status |
|
|
18
|
-
|------------|------|--------|
|
|
19
|
-
| [e.g., API access] | [service/data/approval] | [status] |
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# [Agent Name] - Objectives
|
|
2
|
-
|
|
3
|
-
## Primary Objectives
|
|
4
|
-
|
|
5
|
-
1. [Primary objective based on role]
|
|
6
|
-
2. [Primary objective based on role]
|
|
7
|
-
|
|
8
|
-
## Current Sprint Objectives
|
|
9
|
-
|
|
10
|
-
- [ ] [Objective 1]
|
|
11
|
-
- [ ] [Objective 2]
|
|
12
|
-
|
|
13
|
-
## Quality Standards
|
|
14
|
-
|
|
15
|
-
- [ ] All code has tests
|
|
16
|
-
- [ ] Lint checks pass
|
|
17
|
-
- [ ] Static analysis passes
|
|
18
|
-
- [ ] Acceptance criteria met
|
|
19
|
-
|
|
20
|
-
## Workflow Responsibilities
|
|
21
|
-
|
|
22
|
-
- Move ticket to "In Progress" when starting
|
|
23
|
-
- Create branch with correct naming
|
|
24
|
-
- Run quality checks before PR
|
|
25
|
-
- Move ticket to "In Review" after PR
|
|
26
|
-
- Send completion report to EM
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Architecture Context
|
|
2
|
-
|
|
3
|
-
> **Last Updated:** [YYYY-MM-DD HH:MM]
|
|
4
|
-
> **Updated By:** engineering-manager (with solutions-architect input)
|
|
5
|
-
|
|
6
|
-
## System Overview
|
|
7
|
-
|
|
8
|
-
[High-level description of the system architecture]
|
|
9
|
-
|
|
10
|
-
## Components
|
|
11
|
-
|
|
12
|
-
### [Component 1]
|
|
13
|
-
- **Purpose:** [description]
|
|
14
|
-
- **Technology:** [tech stack]
|
|
15
|
-
- **Owner:** [agent]
|
|
16
|
-
|
|
17
|
-
### [Component 2]
|
|
18
|
-
- **Purpose:** [description]
|
|
19
|
-
- **Technology:** [tech stack]
|
|
20
|
-
- **Owner:** [agent]
|
|
21
|
-
|
|
22
|
-
## Technology Stack
|
|
23
|
-
|
|
24
|
-
| Layer | Technology | Notes |
|
|
25
|
-
|-------|------------|-------|
|
|
26
|
-
| [Layer] | [Tech] | [Notes] |
|
|
27
|
-
|
|
28
|
-
## Architecture Principles
|
|
29
|
-
|
|
30
|
-
1. **[Principle 1]** - [description]
|
|
31
|
-
2. **[Principle 2]** - [description]
|
|
32
|
-
3. **[Principle 3]** - [description]
|
|
33
|
-
|
|
34
|
-
## Key Decisions
|
|
35
|
-
|
|
36
|
-
| Date | Decision | Status | ADR |
|
|
37
|
-
|------|----------|--------|-----|
|
|
38
|
-
| [YYYY-MM-DD] | [decision] | [Active/Superseded] | [link] |
|
|
39
|
-
|
|
40
|
-
## Data Model
|
|
41
|
-
|
|
42
|
-
### Core Entities
|
|
43
|
-
- **[Entity 1]:** [description]
|
|
44
|
-
- **[Entity 2]:** [description]
|
|
45
|
-
|
|
46
|
-
## Integration Points
|
|
47
|
-
|
|
48
|
-
| System | Integration Type | Owner |
|
|
49
|
-
|--------|-----------------|-------|
|
|
50
|
-
| [System] | [API/Event/etc] | [agent] |
|
|
51
|
-
|
|
52
|
-
## Constraints
|
|
53
|
-
|
|
54
|
-
- [Constraint 1]
|
|
55
|
-
- [Constraint 2]
|
|
56
|
-
|
|
57
|
-
## References
|
|
58
|
-
|
|
59
|
-
- [Link to detailed architecture docs]
|
|
60
|
-
- [Link to ADRs]
|
|
61
|
-
- [Link to diagrams]
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# [Agent Name] - Current Context
|
|
2
|
-
|
|
3
|
-
> **Last Updated:** [YYYY-MM-DD HH:MM]
|
|
4
|
-
|
|
5
|
-
## Current Focus
|
|
6
|
-
|
|
7
|
-
[What you're currently working on]
|
|
8
|
-
|
|
9
|
-
## Active Tasks
|
|
10
|
-
|
|
11
|
-
| Ticket | Status | Branch | PR |
|
|
12
|
-
|--------|--------|--------|-----|
|
|
13
|
-
| [KEY-XX] | [in-progress/pr-created/in-review] | [branch] | [#XX or -] |
|
|
14
|
-
|
|
15
|
-
## Work in Progress
|
|
16
|
-
|
|
17
|
-
### [KEY-XX] - [Title]
|
|
18
|
-
- **Status:** [status]
|
|
19
|
-
- **Branch:** [branch name]
|
|
20
|
-
- **Progress:**
|
|
21
|
-
- [x] Completed item
|
|
22
|
-
- [ ] Pending item
|
|
23
|
-
- **Blockers:** [None or description]
|
|
24
|
-
|
|
25
|
-
## Pending Reviews
|
|
26
|
-
|
|
27
|
-
| PR | Ticket | Requested By | Status |
|
|
28
|
-
|----|--------|--------------|--------|
|
|
29
|
-
| #XX | [KEY-XX] | [agent] | [pending/done] |
|
|
30
|
-
|
|
31
|
-
## Technical Notes
|
|
32
|
-
|
|
33
|
-
[Any technical context to remember]
|
|
34
|
-
|
|
35
|
-
## Next Actions
|
|
36
|
-
|
|
37
|
-
1. [ ] [Action 1]
|
|
38
|
-
2. [ ] [Action 2]
|
|
39
|
-
|
|
40
|
-
## Questions/Blockers
|
|
41
|
-
|
|
42
|
-
- [Any questions for EM or other agents]
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# [Agent Name] - Dependencies
|
|
2
|
-
|
|
3
|
-
## Waiting On
|
|
4
|
-
|
|
5
|
-
| Dependency | From | Ticket | Status |
|
|
6
|
-
|------------|------|--------|--------|
|
|
7
|
-
| [what you need] | [agent] | [KEY-XX] | [waiting/resolved] |
|
|
8
|
-
|
|
9
|
-
## Providing To
|
|
10
|
-
|
|
11
|
-
| Deliverable | To | Ticket | Status |
|
|
12
|
-
|-------------|-----|--------|--------|
|
|
13
|
-
| [what you're providing] | [agent] | [KEY-XX] | [pending/delivered] |
|
|
14
|
-
|
|
15
|
-
## External Dependencies
|
|
16
|
-
|
|
17
|
-
| Dependency | Type | Status |
|
|
18
|
-
|------------|------|--------|
|
|
19
|
-
| [e.g., API access] | [service/data/approval] | [status] |
|