claude-code-workflow 7.2.20 → 7.2.21

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 (38) hide show
  1. package/.claude/commands/workflow/analyze-with-file.md +25 -12
  2. package/.codex/skills/team-arch-opt/SKILL.md +24 -0
  3. package/.codex/skills/team-arch-opt/roles/coordinator/role.md +22 -0
  4. package/.codex/skills/team-brainstorm/SKILL.md +24 -0
  5. package/.codex/skills/team-brainstorm/roles/coordinator/role.md +20 -0
  6. package/.codex/skills/team-coordinate/SKILL.md +24 -0
  7. package/.codex/skills/team-coordinate/roles/coordinator/role.md +40 -12
  8. package/.codex/skills/team-frontend/SKILL.md +24 -0
  9. package/.codex/skills/team-frontend/roles/coordinator/role.md +20 -0
  10. package/.codex/skills/team-frontend-debug/SKILL.md +24 -0
  11. package/.codex/skills/team-frontend-debug/roles/coordinator/role.md +21 -0
  12. package/.codex/skills/team-issue/SKILL.md +24 -0
  13. package/.codex/skills/team-issue/roles/coordinator/role.md +19 -0
  14. package/.codex/skills/team-iterdev/SKILL.md +24 -0
  15. package/.codex/skills/team-iterdev/roles/coordinator/role.md +20 -0
  16. package/.codex/skills/team-lifecycle-v4/SKILL.md +24 -0
  17. package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +28 -2
  18. package/.codex/skills/team-perf-opt/SKILL.md +24 -0
  19. package/.codex/skills/team-perf-opt/roles/coordinator/role.md +20 -0
  20. package/.codex/skills/team-planex/SKILL.md +24 -0
  21. package/.codex/skills/team-planex/roles/coordinator/role.md +19 -0
  22. package/.codex/skills/team-quality-assurance/SKILL.md +24 -0
  23. package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +21 -0
  24. package/.codex/skills/team-review/SKILL.md +24 -0
  25. package/.codex/skills/team-review/roles/coordinator/role.md +21 -0
  26. package/.codex/skills/team-roadmap-dev/SKILL.md +24 -0
  27. package/.codex/skills/team-roadmap-dev/roles/coordinator/role.md +19 -0
  28. package/.codex/skills/team-tech-debt/SKILL.md +24 -0
  29. package/.codex/skills/team-tech-debt/roles/coordinator/role.md +19 -0
  30. package/.codex/skills/team-testing/SKILL.md +24 -0
  31. package/.codex/skills/team-testing/roles/coordinator/role.md +21 -0
  32. package/.codex/skills/team-uidesign/SKILL.md +24 -0
  33. package/.codex/skills/team-uidesign/roles/coordinator/role.md +20 -0
  34. package/.codex/skills/team-ultra-analyze/SKILL.md +24 -0
  35. package/.codex/skills/team-ultra-analyze/roles/coordinator/role.md +20 -0
  36. package/.codex/skills/team-ux-improve/SKILL.md +24 -0
  37. package/.codex/skills/team-ux-improve/roles/coordinator/role.md +20 -0
  38. package/package.json +1 -1
@@ -6,6 +6,24 @@
6
6
 
7
7
  Orchestrates the analysis pipeline: topic clarification, pipeline mode selection, task dispatch, discussion loop management, and final synthesis. Spawns team_worker agents for all worker roles.
8
8
 
9
+ ## Scope Lock (READ FIRST — overrides all other sections)
10
+
11
+ **You are a dispatcher, not a doer.** Your ONLY outputs are:
12
+ - Session state files (`.workflow/.team/` directory)
13
+ - `spawn_agent` / `wait_agent` / `close_agent` / `send_input` calls
14
+ - Status reports to the user / `request_user_input` prompts
15
+
16
+ **FORBIDDEN** (even if the task seems trivial):
17
+ ```
18
+ WRONG: Read/Grep/Glob on project source code — worker work
19
+ WRONG: Bash("ccw cli ...") — worker work
20
+ WRONG: Edit/Write on project source files — worker work
21
+ ```
22
+
23
+ **Self-check gate**: Before ANY tool call, ask: "Is this orchestration or project work? If project work → STOP → spawn worker."
24
+
25
+ ---
26
+
9
27
  ## Boundaries
10
28
 
11
29
  ### MUST
@@ -16,6 +34,7 @@ Orchestrates the analysis pipeline: topic clarification, pipeline mode selection
16
34
  - Stop after spawning workers -- wait for results via wait_agent
17
35
  - Handle discussion loop with max 5 rounds (Deep mode)
18
36
  - Execute completion action in Phase 5
37
+ - **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
19
38
 
20
39
  ### MUST NOT
21
40
 
@@ -23,6 +42,7 @@ Orchestrates the analysis pipeline: topic clarification, pipeline mode selection
23
42
  - Spawn workers without creating tasks first
24
43
  - Skip checkpoints when configured
25
44
  - Force-advance pipeline past failed stages
45
+ - Call CLI tools (ccw cli) — only workers use CLI
26
46
  - Directly call cli-explore-agent, CLI analysis tools, or execute codebase exploration
27
47
 
28
48
  ---
@@ -55,6 +55,30 @@ Parse `$ARGUMENTS`:
55
55
  - Has `--role <name>` → Read `roles/<name>/role.md`, execute Phase 2-4
56
56
  - No `--role` → `roles/coordinator/role.md`, execute entry router
57
57
 
58
+ ## Delegation Lock
59
+
60
+ **Coordinator is a PURE ORCHESTRATOR. It coordinates, it does NOT do.**
61
+
62
+ Before calling ANY tool, apply this check:
63
+
64
+ | Tool Call | Verdict | Reason |
65
+ |-----------|---------|--------|
66
+ | `spawn_agent`, `wait_agent`, `close_agent`, `send_input` | ALLOWED | Orchestration |
67
+ | `request_user_input` | ALLOWED | User interaction |
68
+ | `mcp__ccw-tools__team_msg` | ALLOWED | Message bus |
69
+ | `Read/Write` on `.workflow/.team/` files | ALLOWED | Session state |
70
+ | `Read` on `roles/`, `commands/`, `specs/` | ALLOWED | Loading own instructions |
71
+ | `Read/Grep/Glob` on project source code | BLOCKED | Delegate to worker |
72
+ | `Edit` on any file outside `.workflow/` | BLOCKED | Delegate to worker |
73
+ | `Bash("ccw cli ...")` | BLOCKED | Only workers call CLI |
74
+ | `Bash` running build/test/lint commands | BLOCKED | Delegate to worker |
75
+
76
+ **If a tool call is BLOCKED**: STOP. Create a task, spawn a worker.
77
+
78
+ **No exceptions for "simple" tasks.** Even a single-file read-and-report MUST go through spawn_agent.
79
+
80
+ ---
81
+
58
82
  ## Shared Constants
59
83
 
60
84
  - **Session prefix**: `ux-improve`
@@ -2,6 +2,24 @@
2
2
 
3
3
  UX Improvement Team coordinator. Orchestrate pipeline: analyze -> dispatch -> spawn -> monitor -> report. Systematically discovers and fixes UI/UX interaction issues.
4
4
 
5
+ ## Scope Lock (READ FIRST — overrides all other sections)
6
+
7
+ **You are a dispatcher, not a doer.** Your ONLY outputs are:
8
+ - Session state files (`.workflow/.team/` directory)
9
+ - `spawn_agent` / `wait_agent` / `close_agent` / `send_input` calls
10
+ - Status reports to the user / `request_user_input` prompts
11
+
12
+ **FORBIDDEN** (even if the task seems trivial):
13
+ ```
14
+ WRONG: Read/Grep/Glob on project source code — worker work
15
+ WRONG: Bash("ccw cli ...") — worker work
16
+ WRONG: Edit/Write on project source files — worker work
17
+ ```
18
+
19
+ **Self-check gate**: Before ANY tool call, ask: "Is this orchestration or project work? If project work → STOP → spawn worker."
20
+
21
+ ---
22
+
5
23
  ## Identity
6
24
  - **Name**: coordinator | **Tag**: [coordinator]
7
25
  - **Responsibility**: Analyze task -> Create team -> Dispatch tasks -> Monitor progress -> Report results
@@ -16,6 +34,7 @@ UX Improvement Team coordinator. Orchestrate pipeline: analyze -> dispatch -> sp
16
34
  - Monitor worker progress via message bus and route messages
17
35
  - Handle wisdom initialization and consolidation
18
36
  - Maintain session state persistence
37
+ - **Always proceed through full Phase 1-5 workflow, never skip to direct execution**
19
38
 
20
39
  ### MUST NOT
21
40
  - Execute worker domain logic directly (scanning, diagnosing, designing, implementing, testing)
@@ -23,6 +42,7 @@ UX Improvement Team coordinator. Orchestrate pipeline: analyze -> dispatch -> sp
23
42
  - Skip completion action
24
43
  - Modify source code directly -- delegate to implementer
25
44
  - Omit `[coordinator]` identifier in any output
45
+ - Call CLI tools (ccw cli) — only workers use CLI
26
46
 
27
47
  ## Command Execution Protocol
28
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-workflow",
3
- "version": "7.2.20",
3
+ "version": "7.2.21",
4
4
  "description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
5
5
  "type": "module",
6
6
  "main": "ccw/dist/index.js",