cowork-flow 0.0.5 → 0.0.8

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/README.md CHANGED
@@ -219,4 +219,30 @@ cowork-flow sync . --dry-run
219
219
 
220
220
  ## 发布流程
221
221
 
222
- CI 会运行 Node CLI 测试、npm pack 内容检查和现有 Python 模板测试。发布到 npm 通过 GitHub Actions 的 `Publish npm Package` workflow 完成,需要在仓库 secrets 中配置 `NPM_TOKEN`。
222
+ 发布前先确认本地或 CI 具备 npm 发布凭据,例如已执行 `npm login`,或在 CI 中配置了 `NPM_TOKEN`。
223
+
224
+ 推荐使用 release 脚本发布:
225
+
226
+ ```bash
227
+ npm run release
228
+ ```
229
+
230
+ 默认会升级 patch 版本,执行顺序是:
231
+
232
+ 1. `npm run test:all`
233
+ 2. `npm version patch --no-git-tag-version`
234
+ 3. 将 `package.json` 中的新版本同步写入 `template/.cowork-flow/.version`
235
+ 4. `git add package.json package-lock.json template/.cowork-flow/.version`
236
+ 5. `git commit -m "chore(release): <version>"`
237
+ 6. `git tag v<version>`
238
+ 7. `npm publish`
239
+
240
+ 需要发布其他版本类型时,把 npm 支持的版本类型传给脚本:
241
+
242
+ ```bash
243
+ npm run release -- minor
244
+ npm run release -- major
245
+ npm run release -- prerelease
246
+ ```
247
+
248
+ 脚本会在任一步骤失败时停止后续发布动作。CI 仍会运行 Node CLI 测试、npm pack 内容检查和现有 Python 模板测试;GitHub Actions 的 `Publish npm Package` workflow 仍需要在仓库 secrets 中配置 `NPM_TOKEN`。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cowork-flow",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "description": "CLI for installing and maintaining cowork-flow collaboration templates.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,7 +18,8 @@
18
18
  "test": "node --test",
19
19
  "test:template": "node scripts/run-template-tests.js",
20
20
  "pack:check": "node scripts/pack-check.js",
21
- "test:all": "npm test && npm run test:template && npm run pack:check"
21
+ "test:all": "npm test && npm run test:template && npm run pack:check",
22
+ "release": "sh scripts/release.sh"
22
23
  },
23
24
  "engines": {
24
25
  "node": ">=20"
@@ -1,66 +1,27 @@
1
1
  ---
2
2
  name: start
3
- description: Use when beginning a development session in a project that uses the cowork-flow template
3
+ description: Use when starting or resuming work in a project that uses the cowork-flow template, after context compression, or before any request that may modify repository files. Initialize session context and route work into the L0/L1/L2 workflow.
4
4
  ---
5
5
 
6
6
  # Start Session
7
7
 
8
- Initialize your AI development session and begin working on tasks.
8
+ Use this skill as the entrypoint for cowork-flow projects.
9
9
 
10
- <HARD-GATE>
11
- Any request that changes repository files MUST go through this skill's task workflow.
12
- Questions may be answered directly, but file edits are at least `L0` and require a task,
13
- PRD, context initialization, task activation, verification, and session recording.
14
- Do not use a direct-edit shortcut unless the user explicitly tells you not to use
15
- cowork-flow for this task.
16
- </HARD-GATE>
10
+ Any request that changes repository files MUST first be classified as `L0`, `L1`, or `L2`, then follow the matching workflow in `.cowork-flow/workflow.md`.
11
+ Do not use direct-edit shortcuts unless the user explicitly tells you not to use cowork-flow for this task.
17
12
 
18
- ---
19
-
20
- ## Operation Types
21
-
22
- | Marker | Meaning | Executor |
23
- |--------|---------|----------|
24
- | `[AI]` | Bash scripts or tool calls executed by AI | You (AI) |
25
- | `[USER]` | Skills executed by user | User |
26
-
27
- ---
13
+ ## Start
28
14
 
29
- ## Initialization `[AI]`
30
-
31
- ### Step 1: Understand Development Workflow
32
-
33
- First, read the workflow guide and the project-level collaboration rules:
15
+ 1. Read `AGENTS.md` and `.cowork-flow/workflow.md`.
16
+ 2. Run `./.cowork-flow/run resume`.
17
+ 3. If developer identity is missing, run:
34
18
 
35
19
  ```bash
36
- cat .cowork-flow/workflow.md
37
- cat AGENTS.md
20
+ ./.cowork-flow/run get-developer
21
+ ./.cowork-flow/run init-developer <developer-name>
38
22
  ```
39
23
 
40
- **Follow the instructions in `workflow.md` and `AGENTS.md`** - they contain:
41
- - Core principles (Read Before Write, Follow Standards, etc.)
42
- - File system structure
43
- - Development process
44
- - Best practices
45
- - Project-specific collaboration and documentation rules
46
-
47
- Command examples use macOS / Linux / Git Bash / WSL syntax. In native Windows
48
- cmd or PowerShell, replace `./.cowork-flow/run <command>` with
49
- `.\.cowork-flow\run.cmd <command>`.
50
-
51
- > **Important**:
52
- > Reusable skills are already part of the template. During project onboarding, put project-specific facts in `AGENTS.md`, `.cowork-flow/workflow.md`, `.cowork-flow/config.yaml`, and `.cowork-flow/spec/` rather than editing `SKILL.md`.
53
-
54
- ### Step 2: Get Current Context
55
-
56
- ```bash
57
- ./.cowork-flow/run resume
58
- ```
59
-
60
- This shows: developer identity, git status, current task (if any), active tasks, and
61
- the minimal `RESUME CHECKLIST` for loading task details on demand.
62
-
63
- ### Step 3: Read Guidelines Index
24
+ 4. Read only the spec index files:
64
25
 
65
26
  ```bash
66
27
  for f in .cowork-flow/spec/frontend/index.md .cowork-flow/spec/backend/index.md .cowork-flow/spec/guides/index.md; do
@@ -68,361 +29,55 @@ for f in .cowork-flow/spec/frontend/index.md .cowork-flow/spec/backend/index.md
68
29
  done
69
30
  ```
70
31
 
71
- > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
72
- > At this step, just read the indexes to understand what's available.
73
- > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
74
-
75
- ### Step 4: Report and Ask
76
-
77
- Report what you learned and ask: "What would you like to work on?"
32
+ 5. Report current context:
33
+ - current developer
34
+ - current task
35
+ - active tasks
36
+ - worktree state
37
+ - anything that may affect the next step
78
38
 
79
- ---
80
-
81
- ## Task Classification
82
-
83
- When user describes a task, classify it:
84
-
85
- | Type | Criteria | Workflow |
86
- |------|----------|----------|
87
- | **Question** | User asks about code, architecture, or how something works, and no repository files need to change | Answer directly after session context is loaded |
88
- | **L0 Change** | Docs, tests, comments, config, small refactors, or any file change without external behavior change | Task Workflow, no Behavior Change Gate |
89
- | **L1 Change** | Bounded behavior change in one module or one interface | Behavior Change Gate → Task Workflow |
90
- | **L2 Change** | Cross-layer, architectural, migration, permission, compatibility, release, or security-impacting change | Behavior Change Gate + `design.md` → Task Workflow |
91
- | **Unclear / Complex** | Vague goal, multiple possible interpretations, or architectural decisions | **Brainstorm → classify L0/L1/L2 → gated workflow** |
92
-
93
- ### Decision Rule
39
+ Command examples use macOS / Linux / Git Bash / WSL syntax. In native Windows cmd or PowerShell, replace `./.cowork-flow/run <command>` with `.\.cowork-flow\run.cmd <command>`.
94
40
 
95
- > **Any file change must enter L0 / L1 / L2 workflow.**
96
- >
97
- > A typo, comment, one-line fix, or "quick" change is still a repository change.
98
- > Do not treat small size as permission to skip PRD, context, verification, or session recording.
99
- >
100
- > **If in doubt, use Brainstorm + Task Workflow.**
101
- >
102
- > Task Workflow ensures code-specs are injected to the right context, resulting in higher quality code.
103
- > The overhead is minimal, but the benefit is significant.
41
+ ## Route The Request
104
42
 
105
- > **Subtask Decomposition**: If brainstorm reveals multiple independent work items,
106
- > consider creating subtasks using `--parent` flag or `add-subtask` command.
107
- > See the brainstorm skill's Step 8 for details.
43
+ After context is loaded, choose exactly one path.
108
44
 
109
- ### Behavior Change Gate
45
+ ### Question Only
110
46
 
111
- Before entering Task Workflow, classify the change as `L0` / `L1` / `L2` using `.cowork-flow/workflow.md`.
47
+ Use this path when the user only wants explanation, analysis, or review, and no repository files need to change.
112
48
 
113
- - `L0`: No external behavior change. Continue with the existing Task Workflow.
114
- - `L1`: Behavior change in a bounded module. Do **not** go straight to PRD/Research. First run:
115
- 1. `./.cowork-flow/run change create <slug>`
116
- 2. `superpowers:brainstorming` to create or complete `proposal/spec`
117
- 3. `./.cowork-flow/run change validate <slug>`
118
- 4. `superpowers:writing-plans` to produce the implementation plan
119
- - `L2`: Same as `L1`, plus required `design.md`. Multi-perspective review happens after implementation in the review gate.
49
+ - Answer directly.
50
+ - If the request turns into a file change, stop and reclassify it as `L0`, `L1`, or `L2`.
120
51
 
121
- Only return to the task workflow after the spec and plan gates are complete.
52
+ ### Repository Change
122
53
 
123
- Before Phase 2, always complete this task handoff:
124
-
125
- 1. Create or update `.cowork-flow/plans/YYYY-MM-DD-<slug>.md` with the execution checklist
126
- 2. Create or bind a task directory
127
- 3. Ensure `prd.md` summarizes the approved `proposal/spec/design/plan`
128
- 4. Add the approved change artifacts and plan into task context
129
- 5. Treat the plan file as a living execution artifact: keep checkbox state and current execution status synced during implementation, not only at the end
130
-
131
- - If the task came from **Simple Task**, resume with **Path B Step 2 (Create Task Directory)** and **Step 3 (Write PRD)**, then do the task handoff above and continue to Phase 2.
132
- - If the task came from **Brainstorm**, reuse the brainstorm-created task directory and PRD, then do the same task handoff and continue with **Path A / Phase 2**.
133
-
134
- ---
54
+ Use this path for any repository edit, including small docs, comments, tests, refactors, or behavior changes.
135
55
 
136
- ## Question Only
56
+ 1. Classify the task using `.cowork-flow/workflow.md`:
57
+ - `L0`: no external behavior change
58
+ - `L1`: bounded behavior change
59
+ - `L2`: cross-layer or important behavior change
60
+ 2. Follow the matching workflow in `.cowork-flow/workflow.md`:
61
+ - `L0`: section 6
62
+ - `L1` / `L2`: section 7
63
+ 3. Before editing files, ensure task context exists under `.cowork-flow/tasks/<task>/`.
64
+ 4. Before handoff, follow workflow verification, state sync, and session recording requirements.
137
65
 
138
- For questions that do not modify repository files, work directly:
139
-
140
- 1. Answer the question.
141
- 2. If the answer reveals that files should change, stop and re-enter Task Classification.
142
- 3. Do not modify files from this section.
143
-
144
- ---
145
-
146
- ## L0 / Simple Task
147
-
148
- For simple, well-defined tasks that modify files without external behavior change:
149
-
150
- 1. Clarify only if the goal, scope, or verification method is unclear.
151
- 2. Determine whether the task is `L0`, `L1`, or `L2`.
152
- 3. **If it is `L1/L2`, complete the Behavior Change Gate first. After that, execute Path B Step 2 and Step 3, complete the task handoff, then continue with Phase 2.**
153
- 4. **If it is `L0`, execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps. Do NOT switch to ad hoc direct editing.**
154
- - Create task directory (Phase 1 Path B, Step 2)
155
- - Write PRD (Step 3)
156
- - Research codebase (Phase 2, Step 5)
157
- - Configure context (Step 6)
158
- - Activate task (Step 7)
159
- - Implement (Phase 3, Step 8)
160
- - Check quality (Step 9)
161
- - Complete (Step 10)
162
-
163
- ---
66
+ Do not maintain a second implementation checklist in this skill.
164
67
 
165
- ## Complex Task - Brainstorm First
68
+ ## Required Routing Rules
166
69
 
167
- For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
168
-
169
- See `$brainstorm` for the full process. Summary:
170
-
171
- 1. **Acknowledge and classify** - State your understanding
172
- 2. **Create task directory** - Track evolving requirements in `prd.md`
173
- 3. **Ask questions one at a time** - Update PRD after each answer
174
- 4. **Propose approaches** - For architectural decisions
175
- 5. **Confirm final requirements** - Get explicit approval
176
- 6. **If behavior changes are involved, complete the Behavior Change Gate**
177
- 7. **Proceed to Task Workflow** - Reuse the brainstorm-created task directory/PRD, complete the task handoff, then continue from Phase 2 with clear requirements and plan
178
-
179
- ---
180
-
181
- ## Task Workflow (Development Tasks)
182
-
183
- **Why this workflow?**
184
- - Run a dedicated research pass before coding
185
- - Configure specs in jsonl context files
186
- - Implement using injected context
187
- - Verify with a separate check pass
188
- - Result: Code that follows project conventions automatically
189
-
190
- ### Overview: Two Entry Points
191
-
192
- ```
193
- From Brainstorm (Complex Task):
194
- PRD confirmed → Research → Configure Context → Activate → Implement → Check → Complete
195
-
196
- From Simple Task:
197
- Confirm → Create Task → Write PRD → Research → Configure Context → Activate → Implement → Check → Complete
198
- ```
199
-
200
- **Key principle: Research happens AFTER requirements are clear (PRD exists).**
201
-
202
- ---
203
-
204
- ### Phase 1: Establish Requirements
205
-
206
- #### Path A: From Brainstorm (skip to Phase 2)
207
-
208
- PRD and task directory already exist from brainstorm. Skip directly to Phase 2.
209
-
210
- #### Path B: From Simple Task
211
-
212
- **Step 1: Confirm Understanding** `[AI]`
213
-
214
- Quick confirm:
215
- - What is the goal?
216
- - What type of development? (frontend / backend / fullstack)
217
- - Any specific requirements or constraints?
218
-
219
- If unclear, ask clarifying questions.
220
-
221
- **Step 2: Create Task Directory** `[AI]`
222
-
223
- ```bash
224
- TASK_DIR=$(./.cowork-flow/run task create "<title>" --slug <name>)
225
- ```
226
-
227
- **Step 3: Write PRD** `[AI]`
228
-
229
- Create `prd.md` in the task directory with:
230
-
231
- ```markdown
232
- # <Task Title>
233
-
234
- ## Goal
235
- <What we're trying to achieve>
236
-
237
- ## Requirements
238
- - <Requirement 1>
239
- - <Requirement 2>
240
-
241
- ## Acceptance Criteria
242
- - [ ] <Criterion 1>
243
- - [ ] <Criterion 2>
244
-
245
- ## Technical Notes
246
- <Any technical decisions or constraints>
247
- ```
248
-
249
- ---
250
-
251
- ### Phase 2: Prepare for Implementation (shared)
252
-
253
- > Both paths converge here. PRD and task directory must exist before proceeding.
254
-
255
- **Step 4: Code-Spec Depth Check** `[AI]`
256
-
257
- If the task touches infra or cross-layer contracts, do not start implementation until code-spec depth is defined.
258
-
259
- Trigger this requirement when the change includes any of:
260
- - New or changed command/API signatures
261
- - Database schema or migration changes
262
- - Infra integrations (storage, queue, cache, secrets, env contracts)
263
- - Cross-layer payload transformations
264
-
265
- Must-have before proceeding:
266
- - [ ] Target code-spec files to update are identified
267
- - [ ] Concrete contract is defined (signature, fields, env keys)
268
- - [ ] Validation and error matrix is defined
269
- - [ ] At least one Good/Base/Bad case is defined
270
-
271
- **Step 5: Research the Codebase** `[AI]`
272
-
273
- Based on the confirmed PRD, run a focused research pass and produce:
274
-
275
- 1. Relevant spec files in `.cowork-flow/spec/`
276
- 2. Existing code patterns to follow (2-3 examples)
277
- 3. Files that will likely need modification
278
-
279
- Use this output format:
280
-
281
- ```markdown
282
- ## Relevant Specs
283
- - <path>: <why it's relevant>
284
-
285
- ## Code Patterns Found
286
- - <pattern>: <example file path>
287
-
288
- ## Files to Modify
289
- - <path>: <what change>
290
- ```
291
-
292
- **Step 6: Configure Context** `[AI]`
293
-
294
- Initialize default context:
295
-
296
- ```bash
297
- ./.cowork-flow/run task init-context "$TASK_DIR" <type>
298
- # type: backend | frontend | fullstack
299
- ```
300
-
301
- Add specs found in your research pass:
302
-
303
- ```bash
304
- # For each relevant spec and code pattern:
305
- ./.cowork-flow/run task add-context "$TASK_DIR" implement "<path>" "<reason>"
306
- ./.cowork-flow/run task add-context "$TASK_DIR" check "<path>" "<reason>"
307
- ```
308
-
309
- If this task came through the Behavior Change Gate, add the approved artifacts before coding:
310
-
311
- ```bash
312
- ./.cowork-flow/run task add-context "$TASK_DIR" implement ".cowork-flow/changes/<slug>/proposal.md" "Approved change proposal"
313
- ./.cowork-flow/run task add-context "$TASK_DIR" implement ".cowork-flow/changes/<slug>/spec.md" "Approved behavior spec"
314
- ./.cowork-flow/run task add-context "$TASK_DIR" implement ".cowork-flow/changes/<slug>/design.md" "Approved design for L2 changes"
315
- ./.cowork-flow/run task add-context "$TASK_DIR" implement ".cowork-flow/plans/YYYY-MM-DD-<slug>.md" "Approved implementation plan"
316
- ./.cowork-flow/run task add-context "$TASK_DIR" check ".cowork-flow/changes/<slug>/spec.md" "Check implementation against approved spec"
317
- ./.cowork-flow/run task add-context "$TASK_DIR" check ".cowork-flow/plans/YYYY-MM-DD-<slug>.md" "Check implementation against approved plan"
318
- ```
319
-
320
- **Step 7: Activate Task** `[AI]`
321
-
322
- ```bash
323
- ./.cowork-flow/run task start "$TASK_DIR"
324
- ```
325
-
326
- This sets `.current-task` so hooks can inject context.
327
-
328
- ---
329
-
330
- ### Phase 3: Execute (shared)
331
-
332
- **Step 8: Implement** `[AI]`
333
-
334
- Implement the task described in `prd.md`.
335
-
336
- - Follow all specs injected into implement context
337
- - Keep changes scoped to requirements
338
- - Run the project verification commands from `AGENTS.md` or `.cowork-flow/config.yaml` before finishing
339
- - If executing an approved plan with independent work, use `agent-team-execution`: run `agent-team prepare`, review the dispatch plan, use `agent-team next` for ready assignments, and finish with `agent-team complete`.
340
-
341
- **Step 9: Check Quality** `[AI]`
342
-
343
- Run a quality pass against check context:
344
-
345
- - Review all code changes against the specs
346
- - Fix issues directly
347
- - Ensure lint and typecheck pass
348
-
349
- **Step 10: Complete** `[AI]`
350
-
351
- 1. Verify lint and typecheck pass
352
- 2. Report what was implemented
353
- 3. Follow the current session convention for completion:
354
- - Test the changes
355
- - Have the agreed executor handle business-code changes according to project policy
356
- - Run `$record-session` to record this session
357
-
358
- ---
359
-
360
- ## Continuing Existing Task
361
-
362
- If `resume.py` shows a current task:
363
-
364
- 1. Read the task's `prd.md` to understand the goal
365
- 2. Check `task.json` for current status
366
- 3. Ask user: "Continue working on <task-name>?"
367
-
368
- If yes, resume from the appropriate step (usually Step 7 or 8).
369
-
370
- ---
70
+ - If the task is vague, complex, or has multiple possible interpretations, use the project brainstorming flow before implementation.
71
+ - If the task changes behavior, do not skip `change -> spec -> plan`; for `L2`, do not skip `design.md`.
72
+ - If an approved plan has independent work and `.cowork-flow/config.yaml` enables agent teams, use `agent-team-execution` and finish that path with `agent-team complete`.
73
+ - If context was compressed or the task is being resumed, use the minimal recovery path below instead of bulk-reading the repo.
371
74
 
372
75
  ## Resume / Context Compression
373
76
 
374
- When a conversation has many rounds, a task runs for a long time, or context was
375
- compressed, resume with the smallest useful context:
77
+ When resuming after a long task, a new session, or context compression:
376
78
 
377
79
  1. Run `./.cowork-flow/run resume`.
378
- 2. Follow the `RESUME CHECKLIST` section.
379
- 3. Read the current task `prd.md`.
380
- 4. Run `./.cowork-flow/run task list-context <task-dir>` and read only the jsonl references needed for the current phase.
381
- 5. If a plan is listed, read its current execution status before continuing implementation.
382
-
383
- Do not bulk-read `.cowork-flow/spec/`, all plans, all tasks, or workspace journals
384
- just because context was compressed. Use the checklist as the minimal recovery
385
- anchor, then load details on demand.
386
-
387
- ---
388
-
389
- ## Skills Reference
390
-
391
- ### User Skills `[USER]`
392
-
393
- | Skill | When to Use |
394
- |---------|-------------|
395
- | `$start` | Begin a session (this skill) |
396
- | `$finish-work` | Final verification before handoff or commit |
397
- | `$record-session` | After task completion and project commit/handoff policy is satisfied |
398
-
399
- ### AI Scripts `[AI]`
400
-
401
- | Script | Purpose |
402
- |--------|---------|
403
- | `./.cowork-flow/run resume` | Resume session with minimal context checklist |
404
- | `./.cowork-flow/run get-context` | Get session context |
405
- | `./.cowork-flow/run task create` | Create task directory |
406
- | `./.cowork-flow/run task init-context` | Initialize jsonl files |
407
- | `./.cowork-flow/run task add-context` | Add spec to jsonl |
408
- | `./.cowork-flow/run task start` | Set current task |
409
- | `./.cowork-flow/run task finish` | Clear current task |
410
- | `./.cowork-flow/run task archive` | Archive completed task |
411
-
412
- ### Workflow Phases `[AI]`
413
-
414
- | Phase | Purpose | Context Source |
415
- |-------|---------|----------------|
416
- | research | Analyze codebase | direct repo inspection |
417
- | implement | Write code | `implement.jsonl` |
418
- | check | Review & fix | `check.jsonl` |
419
- | debug | Fix specific issues | `debug.jsonl` |
420
-
421
- ---
422
-
423
- ## Key Principle
80
+ 2. Follow `RESUME CHECKLIST` from `resume.py`.
81
+ 3. Read only the current PRD, current plan status, and the jsonl references needed for the current phase.
82
+ 4. Do not bulk-read `.cowork-flow/spec/`, all plans, all tasks, or workspace journals.
424
83
 
425
- > **Code-spec context is injected, not remembered.**
426
- >
427
- > The Task Workflow ensures agents receive relevant code-spec context automatically.
428
- > This is more reliable than hoping the AI "remembers" conventions.
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.8
@@ -5,7 +5,7 @@ default_adapter: codex
5
5
 
6
6
  agents:
7
7
  implementer:
8
- codex_type: worker
8
+ agent_type: worker
9
9
  capabilities:
10
10
  - implementation
11
11
  - test-writing
@@ -19,9 +19,51 @@ agents:
19
19
  - "test/**"
20
20
  risk_limits:
21
21
  max_parallel_write_conflicts: 0
22
+ prompt: |
23
+ Implement the smallest change that satisfies the approved plan and tests.
24
+ Write or update focused regression tests first, keep edits scoped, and report exact verification commands.
25
+
26
+ tester:
27
+ agent_type: worker
28
+ capabilities:
29
+ - test-writing
30
+ - verification
31
+ preferred_task_types:
32
+ - test
33
+ - verification
34
+ file_patterns:
35
+ - "tests/**"
36
+ - "test/**"
37
+ - "src/**"
38
+ - "template/**"
39
+ risk_limits:
40
+ max_parallel_write_conflicts: 0
41
+ prompt: |
42
+ Design tests that fail for the broken behavior and pass for the intended behavior.
43
+ Prefer clear behavior assertions over implementation details, and include the command that proves the result.
44
+
45
+ debugger:
46
+ agent_type: worker
47
+ capabilities:
48
+ - debugging
49
+ - implementation
50
+ - verification
51
+ preferred_task_types:
52
+ - bugfix
53
+ - code
54
+ file_patterns:
55
+ - "src/**"
56
+ - "template/**"
57
+ - "tests/**"
58
+ - "test/**"
59
+ risk_limits:
60
+ max_parallel_write_conflicts: 0
61
+ prompt: |
62
+ Find the root cause before changing code. Reproduce the failure, compare with nearby working patterns,
63
+ then make the smallest fix and verify the original symptom.
22
64
 
23
65
  spec-reviewer:
24
- codex_type: default
66
+ agent_type: default
25
67
  capabilities:
26
68
  - spec-review
27
69
  - acceptance-check
@@ -35,12 +77,16 @@ agents:
35
77
  - "template/**"
36
78
  risk_limits:
37
79
  max_parallel_write_conflicts: 0
80
+ prompt: |
81
+ Review the proposal, spec, plan, and task PRD for contradictions, missing acceptance criteria,
82
+ unclear scope, and behavior that is not covered by verification.
38
83
 
39
84
  quality-reviewer:
40
- codex_type: default
85
+ agent_type: default
41
86
  capabilities:
42
87
  - code-quality-review
43
88
  - test-review
89
+ - verification
44
90
  preferred_task_types:
45
91
  - review
46
92
  - verification
@@ -51,14 +97,18 @@ agents:
51
97
  - "test/**"
52
98
  risk_limits:
53
99
  max_parallel_write_conflicts: 0
100
+ prompt: |
101
+ Review the diff for correctness, maintainability, focused scope, and meaningful tests.
102
+ Check that verification evidence matches the behavior being claimed.
54
103
 
55
104
  docs-agent:
56
- codex_type: worker
105
+ agent_type: worker
57
106
  capabilities:
58
107
  - documentation
59
108
  - workflow-writing
60
109
  preferred_task_types:
61
110
  - docs
111
+ - documentation
62
112
  file_patterns:
63
113
  - "README.md"
64
114
  - "AGENTS.md"
@@ -66,3 +116,27 @@ agents:
66
116
  - ".agent/skills/**"
67
117
  risk_limits:
68
118
  max_parallel_write_conflicts: 0
119
+ prompt: |
120
+ Write concise project documentation that reflects actual commands, files, and workflow behavior.
121
+ Avoid aspirational text that is not backed by the implementation.
122
+
123
+ release-reviewer:
124
+ agent_type: default
125
+ capabilities:
126
+ - release-review
127
+ - acceptance-check
128
+ - verification
129
+ preferred_task_types:
130
+ - release
131
+ - review
132
+ file_patterns:
133
+ - "package.json"
134
+ - "package-lock.json"
135
+ - "scripts/**"
136
+ - "README.md"
137
+ - ".cowork-flow/changes/**"
138
+ risk_limits:
139
+ max_parallel_write_conflicts: 0
140
+ prompt: |
141
+ Review release-facing changes for versioning, packaging, documentation, and command safety.
142
+ Confirm that generated artifacts and publish steps are intentional.