@eddiedao/team-auto 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eddiedao/team-auto",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Claude Code skill: Auto-orchestrate Agent Teams from GitHub issues with planning, implementation, review, and merge workflows.",
|
|
5
5
|
"keywords": ["claude-code", "claude-skill", "agent-teams", "github-issues", "ai-orchestration"],
|
|
6
6
|
"author": "eddy",
|
package/skill/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: team-auto
|
|
3
3
|
description: "Auto-orchestrate Agent Teams from GitHub issues. Spawns lead + dev/reviewer/designer agents in worktrees, plans with opus, implements with sonnet, reviews before merge."
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
argument-hint: "[--devs N] [--reviewers N] [--designers N] [--branch <base>]"
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -40,19 +40,45 @@ Lead decides roles based on issues (minimum team = 1 developer + 1 reviewer):
|
|
|
40
40
|
|
|
41
41
|
Lead model: `claude-opus-4-5-20251101`. Lead NEVER touches code — coordination only.
|
|
42
42
|
|
|
43
|
-
## Step 3: Spawn Teammates
|
|
43
|
+
## Step 3: Create Worktrees + Spawn Teammates
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
**3a. Create git worktrees** (lead runs these BEFORE spawning):
|
|
46
|
+
|
|
47
|
+
For each developer/designer teammate, use the `/ck:worktree` skill's script:
|
|
48
|
+
```bash
|
|
49
|
+
node $HOME/.claude/skills/worktree/scripts/worktree.cjs create "<issue-slug>" --prefix feat --json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Parse the JSON output to get the `worktreePath` and `branch` for each teammate.
|
|
53
|
+
|
|
54
|
+
Reviewers do NOT need worktrees (read-only work).
|
|
55
|
+
|
|
56
|
+
**3b. Spawn teammates** with `mode: "plan"` and `display: "split"`:
|
|
46
57
|
- `model: "claude-opus-4-5-20251101"` (planning phase)
|
|
47
58
|
- Include CK Context Block (see below) + role-specific skills in prompt
|
|
48
59
|
- Each agent gets assigned issue(s)
|
|
60
|
+
- **CRITICAL:** `mode: "plan"` forces teammate into plan-only mode — no file edits until plan is approved
|
|
61
|
+
- **CRITICAL:** Include worktree path from 3a output in spawn prompt: `"Your working directory is: <worktreePath>. Run all commands from this directory."`
|
|
62
|
+
|
|
63
|
+
**NOTE:** `isolation: "worktree"` is a subagent-only feature. Agent Teams teammates need worktree setup via `/ck:worktree` script.
|
|
64
|
+
|
|
65
|
+
## Step 4: Teammate Workflow (INLINE in spawn prompt)
|
|
49
66
|
|
|
50
|
-
|
|
67
|
+
Lead MUST read `references/teammate-workflow.md` and **embed its full content** in each teammate's spawn prompt. Teammates cannot access skill reference files — they only see what's in their prompt.
|
|
51
68
|
|
|
52
|
-
|
|
69
|
+
**Do NOT just reference the file.** Copy-paste the entire workflow into the prompt.
|
|
53
70
|
|
|
54
71
|
**Summary:** Plan (`/ck:plan --hard`, opus) → `/clear` → Implement (`/ck:cook`, sonnet) → Commit → Push → Create PR
|
|
55
72
|
|
|
73
|
+
## Step 4b: Plan Checkpoint (Lead Responsibility)
|
|
74
|
+
|
|
75
|
+
After spawning teammates, lead MUST verify planning completes before implementation:
|
|
76
|
+
1. Wait for teammate to send plan via `ExitPlanMode` (triggers approval request)
|
|
77
|
+
2. Review the plan — check it exists in `plans/` directory
|
|
78
|
+
3. **Approve** → teammate proceeds to implementation
|
|
79
|
+
4. **Reject** → send feedback, teammate revises plan
|
|
80
|
+
5. Do NOT approve if teammate skipped planning and jumped to code changes
|
|
81
|
+
|
|
56
82
|
## Step 5: Review Cycle
|
|
57
83
|
|
|
58
84
|
Reviewer agent reviews each PR using `/ck:code-review`, `/ck:test`, `/ck:web-testing`.
|
|
@@ -70,7 +96,8 @@ Done when all assigned issues complete and no workable issues remain.
|
|
|
70
96
|
- Issues needing human input: label `needs-human` on GitHub
|
|
71
97
|
- Issues too complex without user plan: label `needs-planning` on GitHub
|
|
72
98
|
- Shutdown all teammates via `SendMessage(type: "shutdown_request")`
|
|
73
|
-
-
|
|
99
|
+
- Clean up worktrees: `node $HOME/.claude/skills/worktree/scripts/worktree.cjs remove <worktree-name-or-path>` for each dev/designer
|
|
100
|
+
- Call `TeamDelete`
|
|
74
101
|
|
|
75
102
|
---
|
|
76
103
|
|
|
@@ -80,14 +107,15 @@ Every teammate prompt MUST end with:
|
|
|
80
107
|
|
|
81
108
|
```
|
|
82
109
|
CK Context:
|
|
83
|
-
- Work dir: {CWD}
|
|
110
|
+
- Work dir: {worktree_path or CWD for reviewers}
|
|
84
111
|
- Reports: plans/reports/
|
|
85
112
|
- Plans: plans/
|
|
86
|
-
- Branch: {
|
|
113
|
+
- Branch: team-auto/{issue-number}-{slug}
|
|
87
114
|
- Naming: YYMMDD-HHMM
|
|
88
115
|
- Active plan: none
|
|
89
116
|
- Commits: conventional (feat:, fix:, docs:, refactor:, test:, chore:)
|
|
90
117
|
- Refer to teammates by NAME, not agent ID
|
|
118
|
+
- IMPORTANT: All file operations and commands MUST run from your Work dir above
|
|
91
119
|
```
|
|
92
120
|
|
|
93
121
|
## Lead Behavior Rules
|
|
@@ -28,9 +28,20 @@ Add designer only if issues involve UI/UX work.
|
|
|
28
28
|
|
|
29
29
|
For each issue → create TaskCreate with:
|
|
30
30
|
- `subject`: "Implement #<number>: <title>"
|
|
31
|
-
- `description`: Full issue body + role skills + teammate workflow
|
|
31
|
+
- `description`: Full issue body + role skills + **full inline teammate workflow** (from `references/teammate-workflow.md`)
|
|
32
32
|
- `owner`: assigned teammate name
|
|
33
33
|
|
|
34
|
+
**CRITICAL:** Read `references/teammate-workflow.md` and embed its entire content in the teammate's spawn prompt. Teammates cannot access skill reference files — they only see what's in their prompt.
|
|
35
|
+
|
|
36
|
+
### Plan Verification (MANDATORY)
|
|
37
|
+
|
|
38
|
+
After spawning teammates (spawned with `mode: "plan"`):
|
|
39
|
+
1. Teammate submits plan via `ExitPlanMode` → triggers approval request to lead
|
|
40
|
+
2. Lead reviews plan: check it's saved in `plans/`, covers the issue scope
|
|
41
|
+
3. **Approve** → teammate exits plan mode, proceeds to implementation
|
|
42
|
+
4. **Reject with feedback** → teammate revises, resubmits
|
|
43
|
+
5. **Never approve** if teammate skipped planning or has no plan file
|
|
44
|
+
|
|
34
45
|
### Monitoring Loop
|
|
35
46
|
|
|
36
47
|
Event-driven via hooks:
|
|
@@ -79,5 +90,9 @@ Work done when:
|
|
|
79
90
|
1. Verify all tasks completed
|
|
80
91
|
2. `SendMessage(type: "shutdown_request")` to each teammate
|
|
81
92
|
3. Wait for shutdown confirmations
|
|
82
|
-
4.
|
|
83
|
-
|
|
93
|
+
4. Clean up worktrees for each developer/designer:
|
|
94
|
+
```bash
|
|
95
|
+
node $HOME/.claude/skills/worktree/scripts/worktree.cjs remove <worktree-name-or-path>
|
|
96
|
+
```
|
|
97
|
+
5. `TeamDelete` (no parameters)
|
|
98
|
+
6. Report summary to user: issues completed, PRs merged, issues deferred
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
# Teammate Workflow — Detailed Agent Flow
|
|
2
2
|
|
|
3
|
-
## Phase 1: Planning (model: claude-opus-4-5-20251101)
|
|
3
|
+
## Phase 1: Planning (MANDATORY — model: claude-opus-4-5-20251101)
|
|
4
|
+
|
|
5
|
+
**You are spawned in `mode: "plan"` — you CANNOT edit files until your plan is approved by lead.**
|
|
4
6
|
|
|
5
7
|
1. Receive assigned GitHub issue from lead
|
|
6
8
|
2. Read issue details: `gh issue view <number> --json title,body,labels,comments`
|
|
7
|
-
3.
|
|
8
|
-
4.
|
|
9
|
+
3. Read project README.md and relevant docs in `./docs/` for context
|
|
10
|
+
4. Activate `/ck:plan --hard` skill to create implementation plan
|
|
11
|
+
5. During planning, if questions arise that need user confirmation:
|
|
9
12
|
- Send message to lead agent: `SendMessage(to: "lead", type: "message", content: "Question for user: <question>")`
|
|
10
13
|
- Wait for lead to relay user's answer
|
|
11
|
-
|
|
14
|
+
6. If issue/question cannot be handled by agent:
|
|
12
15
|
- Create GitHub issue: `gh issue create --title "<title>" --body "<details>" --label "needs-human"`
|
|
13
16
|
- Notify lead
|
|
14
|
-
|
|
17
|
+
7. Plan saved to `{plans_path}/` following naming convention
|
|
18
|
+
8. Submit plan via `ExitPlanMode` — this sends plan to lead for approval
|
|
19
|
+
9. **WAIT for lead approval before proceeding to Phase 2**
|
|
20
|
+
|
|
21
|
+
**IMPORTANT:** Do NOT skip this phase. Do NOT attempt code changes during planning. The `mode: "plan"` enforcement will block file edits until approved.
|
|
15
22
|
|
|
16
23
|
## Phase 2: Context Reset
|
|
17
24
|
|
|
18
|
-
After plan is
|
|
25
|
+
After plan is approved by lead (you'll receive approval message):
|
|
19
26
|
1. Use `/clear` to clear context window
|
|
20
27
|
2. This ensures maximum context available for implementation
|
|
21
28
|
|
|
@@ -62,7 +69,8 @@ If lead assigns conflict resolution:
|
|
|
62
69
|
|
|
63
70
|
## Worktree Notes
|
|
64
71
|
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
72
|
+
- Lead creates your worktree BEFORE spawning you — your CK Context tells you the path
|
|
73
|
+
- **All file reads, edits, and shell commands MUST use your worktree path** (provided in spawn prompt)
|
|
74
|
+
- Branch naming: `team-auto/<issue-number>-<slug>` (already checked out in your worktree)
|
|
75
|
+
- You are NOT in the main repo directory — `cd` to your worktree path at the start of every phase
|
|
76
|
+
- On shutdown, lead handles worktree cleanup via `git worktree remove`
|