@harness-engineering/cli 1.2.0 → 1.3.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.
Files changed (52) hide show
  1. package/dist/bin/harness.js +1 -1
  2. package/dist/{chunk-IXT3KLVN.js → chunk-APYEWOCR.js} +355 -19
  3. package/dist/index.js +1 -1
  4. package/package.json +6 -4
  5. package/dist/agents/commands/claude-code/harness/add-component.md +0 -34
  6. package/dist/agents/commands/claude-code/harness/align-documentation.md +0 -33
  7. package/dist/agents/commands/claude-code/harness/architecture-advisor.md +0 -41
  8. package/dist/agents/commands/claude-code/harness/brainstorming.md +0 -42
  9. package/dist/agents/commands/claude-code/harness/check-mechanical-constraints.md +0 -32
  10. package/dist/agents/commands/claude-code/harness/cleanup-dead-code.md +0 -33
  11. package/dist/agents/commands/claude-code/harness/code-review.md +0 -33
  12. package/dist/agents/commands/claude-code/harness/debugging.md +0 -43
  13. package/dist/agents/commands/claude-code/harness/detect-doc-drift.md +0 -32
  14. package/dist/agents/commands/claude-code/harness/diagnostics.md +0 -43
  15. package/dist/agents/commands/claude-code/harness/enforce-architecture.md +0 -32
  16. package/dist/agents/commands/claude-code/harness/execution.md +0 -43
  17. package/dist/agents/commands/claude-code/harness/git-workflow.md +0 -32
  18. package/dist/agents/commands/claude-code/harness/initialize-project.md +0 -33
  19. package/dist/agents/commands/claude-code/harness/onboarding.md +0 -32
  20. package/dist/agents/commands/claude-code/harness/parallel-agents.md +0 -35
  21. package/dist/agents/commands/claude-code/harness/planning.md +0 -41
  22. package/dist/agents/commands/claude-code/harness/pre-commit-review.md +0 -38
  23. package/dist/agents/commands/claude-code/harness/refactoring.md +0 -35
  24. package/dist/agents/commands/claude-code/harness/skill-authoring.md +0 -35
  25. package/dist/agents/commands/claude-code/harness/state-management.md +0 -35
  26. package/dist/agents/commands/claude-code/harness/tdd.md +0 -42
  27. package/dist/agents/commands/claude-code/harness/validate-context-engineering.md +0 -32
  28. package/dist/agents/commands/claude-code/harness/verification.md +0 -38
  29. package/dist/agents/commands/gemini-cli/harness/add-component.toml +0 -240
  30. package/dist/agents/commands/gemini-cli/harness/align-documentation.toml +0 -238
  31. package/dist/agents/commands/gemini-cli/harness/architecture-advisor.toml +0 -469
  32. package/dist/agents/commands/gemini-cli/harness/brainstorming.toml +0 -326
  33. package/dist/agents/commands/gemini-cli/harness/check-mechanical-constraints.toml +0 -249
  34. package/dist/agents/commands/gemini-cli/harness/cleanup-dead-code.toml +0 -258
  35. package/dist/agents/commands/gemini-cli/harness/code-review.toml +0 -461
  36. package/dist/agents/commands/gemini-cli/harness/debugging.toml +0 -436
  37. package/dist/agents/commands/gemini-cli/harness/detect-doc-drift.toml +0 -215
  38. package/dist/agents/commands/gemini-cli/harness/diagnostics.toml +0 -401
  39. package/dist/agents/commands/gemini-cli/harness/enforce-architecture.toml +0 -222
  40. package/dist/agents/commands/gemini-cli/harness/execution.toml +0 -381
  41. package/dist/agents/commands/gemini-cli/harness/git-workflow.toml +0 -325
  42. package/dist/agents/commands/gemini-cli/harness/initialize-project.toml +0 -257
  43. package/dist/agents/commands/gemini-cli/harness/onboarding.toml +0 -316
  44. package/dist/agents/commands/gemini-cli/harness/parallel-agents.toml +0 -221
  45. package/dist/agents/commands/gemini-cli/harness/planning.toml +0 -405
  46. package/dist/agents/commands/gemini-cli/harness/pre-commit-review.toml +0 -294
  47. package/dist/agents/commands/gemini-cli/harness/refactoring.toml +0 -209
  48. package/dist/agents/commands/gemini-cli/harness/skill-authoring.toml +0 -350
  49. package/dist/agents/commands/gemini-cli/harness/state-management.toml +0 -354
  50. package/dist/agents/commands/gemini-cli/harness/tdd.toml +0 -247
  51. package/dist/agents/commands/gemini-cli/harness/validate-context-engineering.toml +0 -186
  52. package/dist/agents/commands/gemini-cli/harness/verification.toml +0 -334
@@ -1,316 +0,0 @@
1
- # Generated by harness generate-slash-commands. Do not edit.
2
- description = "Onboard a new developer to a harness-managed project"
3
- prompt = """
4
- <context>
5
- Cognitive mode: advisory-guide
6
- Type: flexible
7
- </context>
8
-
9
- <objective>
10
- Onboard a new developer to a harness-managed project
11
- </objective>
12
-
13
- <execution_context>
14
- --- SKILL.md (agents/skills/claude-code/harness-onboarding/SKILL.md) ---
15
- # Harness Onboarding
16
-
17
- > Navigate an existing harness-managed project and generate a structured orientation for new team members. Map the codebase, understand constraints, identify the adoption level, and produce a summary that gets someone productive fast.
18
-
19
- ## When to Use
20
-
21
- - A new developer (human or agent) is joining a harness-managed project for the first time
22
- - Resuming work on a project after extended time away and needing to re-orient
23
- - When `on_project_init` triggers fire in an existing project (agent starting a new session)
24
- - When someone asks "how does this project work?" or "where do I start?"
25
- - NOT when initializing a new project (use initialize-harness-project)
26
- - NOT when the project has no harness configuration (onboard to harness first with initialize-harness-project)
27
- - NOT when deep-diving into a specific module (use standard code exploration — onboarding gives the big picture)
28
-
29
- ## Process
30
-
31
- ### Phase 1: READ — Load Project Configuration
32
-
33
- 1. **Read `AGENTS.md`.** This is the primary source of truth for agent behavior in the project. Note:
34
- - Project description and purpose
35
- - Architecture overview
36
- - Conventions and coding standards
37
- - Constraints and forbidden patterns
38
- - Any special instructions or warnings
39
-
40
- 2. **Read `harness.yaml`.** Extract:
41
- - Project name and stack
42
- - Adoption level (basic, intermediate, advanced)
43
- - Layer definitions and their directory mappings
44
- - Dependency constraints between layers
45
- - Registered skills and their triggers
46
- - Persona configuration (if present)
47
-
48
- 3. **Read `.harness/learnings.md`** if it exists. This contains hard-won insights from previous sessions — decisions made, gotchas discovered, patterns that worked or failed. Summarize the most recent and most important entries.
49
-
50
- 4. **Read `.harness/state.json`** if it exists. This reveals what was happening in the last session — current phase, active task, any blockers that were recorded.
51
-
52
- ### Phase 2: MAP — Understand the Codebase Structure
53
-
54
- 1. **Map the technology stack.** Identify from package files, configuration, and code:
55
- - Language(s) and version(s)
56
- - Framework(s) and major libraries
57
- - Test framework and test runner command
58
- - Build tool and build command
59
- - Package manager
60
- - Database or data stores (if applicable)
61
-
62
- 2. **Map the architecture.** Walk the directory structure and identify:
63
- - Top-level organization pattern (monorepo, single package, workspace)
64
- - Source code location and entry points
65
- - Layer boundaries (from `harness.yaml` and actual directory structure)
66
- - Shared utilities or common modules
67
- - Configuration files and their purposes
68
-
69
- 3. **Map the conventions.** Look for patterns in existing code:
70
- - File naming conventions (kebab-case, camelCase, PascalCase)
71
- - Test file location and naming (co-located, separate directory, `.test.ts` vs `.spec.ts`)
72
- - Import style (relative, aliases, barrel files)
73
- - Error handling patterns
74
- - Logging patterns
75
- - Code formatting (detect from config files: `.prettierrc`, `.eslintrc`, `biome.json`)
76
-
77
- 4. **Map the constraints.** Identify what is restricted:
78
- - Forbidden imports (from `harness.yaml` dependency constraints)
79
- - Layer boundary rules (which layers can import from which)
80
- - Linting rules that encode architectural decisions
81
- - Any constraints documented in `AGENTS.md` that are not yet automated
82
-
83
- 5. **Map the concerns.** Identify areas that need attention:
84
- - Are there TODOs or FIXMEs in the code?
85
- - Does `harness validate` pass cleanly, or are there warnings?
86
- - Are there known blockers in `.harness/state.json`?
87
- - Is documentation up to date with the code?
88
- - Are there tests? What is the approximate coverage?
89
-
90
- ### Phase 3: ORIENT — Identify Adoption Level and Maturity
91
-
92
- 1. **Confirm the adoption level** matches what `harness.yaml` declares:
93
- - Basic: `AGENTS.md` and `harness.yaml` exist but no layers or constraints
94
- - Intermediate: Layers defined, dependency constraints enforced, at least one custom skill
95
- - Advanced: Personas, state management, learnings, CI integration
96
-
97
- 2. **Assess harness health.** Run `harness validate` and note any issues. A project that declares intermediate but fails validation is not truly intermediate.
98
-
99
- 3. **Identify available skills.** List the skills configured for the project. Note which are custom (project-specific) vs. standard (harness-provided). Each skill represents a workflow the team has formalized.
100
-
101
- ### Phase 4: SUMMARIZE — Generate Orientation Output
102
-
103
- 1. **Produce a structured orientation summary.** This is the deliverable. Format:
104
-
105
- ```markdown
106
- # Project Orientation: <project-name>
107
-
108
- ## Overview
109
-
110
- <1-2 sentence project description from AGENTS.md>
111
-
112
- ## Stack
113
-
114
- - Language: <language> <version>
115
- - Framework: <framework>
116
- - Tests: <test framework> (`<test command>`)
117
- - Build: <build tool> (`<build command>`)
118
- - Package manager: <pm>
119
-
120
- ## Architecture
121
-
122
- <Brief description of top-level organization>
123
-
124
- ### Layers
125
-
126
- | Layer | Directories | Can Import From |
127
- | ------- | ----------- | ----------------- |
128
- | <layer> | <dirs> | <allowed imports> |
129
-
130
- ### Key Components
131
-
132
- - <component>: <purpose> (<location>)
133
-
134
- ## Constraints
135
-
136
- - <constraint 1>
137
- - <constraint 2>
138
-
139
- ## Conventions
140
-
141
- - <convention 1>
142
- - <convention 2>
143
-
144
- ## Harness Status
145
-
146
- - Adoption level: <level>
147
- - Validation: <pass/fail with summary>
148
- - Available skills: <list>
149
- - State: <current phase/task if applicable>
150
-
151
- ## Recent Learnings
152
-
153
- - <most relevant learnings from .harness/learnings.md>
154
-
155
- ## Getting Started
156
-
157
- 1. <first thing to do>
158
- 2. <second thing to do>
159
- 3. <third thing to do>
160
- ```
161
-
162
- 2. **Tailor "Getting Started" to the audience.** For a new developer: how to set up the dev environment and run tests. For an agent resuming work: what the current task is and what to do next. For a reviewer: where to look and what constraints to check.
163
-
164
- 3. **Present the summary to the human.** Do not write it to a file unless asked. The orientation is a conversation artifact, not a project artifact.
165
-
166
- ## Harness Integration
167
-
168
- - **`harness validate`** — Run during onboarding to assess project health and identify any configuration issues.
169
- - **`harness skill list`** — List available skills to understand what workflows the team has formalized.
170
- - **`harness check-deps`** — Run to verify dependency constraints are passing, which confirms layer boundaries are respected.
171
- - **`harness state show`** — View current state to understand where the last session left off.
172
- - **`AGENTS.md`** — Primary source of project context and agent instructions.
173
- - **`harness.yaml`** — Source of structural configuration (layers, constraints, skills).
174
- - **`.harness/learnings.md`** — Historical context and institutional knowledge.
175
-
176
- ## Success Criteria
177
-
178
- - All four configuration sources were read (`AGENTS.md`, `harness.yaml`, `.harness/learnings.md`, `.harness/state.json`)
179
- - Technology stack is accurately identified (language, framework, test runner, build tool)
180
- - Architecture is mapped with correct layer boundaries and dependency directions
181
- - Conventions are identified from actual code patterns, not assumed
182
- - Constraints are enumerated from both `harness.yaml` and `AGENTS.md`
183
- - Adoption level is confirmed (not just declared — validated)
184
- - A structured orientation summary is produced with all sections filled
185
- - The "Getting Started" section is actionable and tailored to the audience
186
- - `harness validate` was run and results are reported
187
-
188
- ## Examples
189
-
190
- ### Example: Onboarding to an Intermediate TypeScript Project
191
-
192
- **READ:**
193
-
194
- ```
195
- Read AGENTS.md:
196
- - Project: Widget API — REST service for widget lifecycle management
197
- - Stack: TypeScript, Express, Vitest, PostgreSQL
198
- - Conventions: zod validation, repository pattern, kebab-case files
199
-
200
- Read harness.yaml:
201
- - Level: intermediate
202
- - Layers: presentation (src/routes/), business (src/services/), data (src/repositories/)
203
- - Constraints: presentation → business OK, business → data OK, data → presentation FORBIDDEN
204
-
205
- Read .harness/learnings.md:
206
- - "Date comparison needs UTC normalization — use Date.now()"
207
- - "The notifications table has a unique constraint on (userId, type) — upsert, don't insert"
208
-
209
- Read .harness/state.json:
210
- - Position: Phase execute, Task 4 of 6
211
- - Blocker: none
212
- ```
213
-
214
- **MAP:**
215
-
216
- ```
217
- Stack: TypeScript 5.3, Express 4, Vitest 1.2, pg (node-postgres)
218
- Architecture: Single package, 3 layers, entry point src/index.ts
219
- Conventions: kebab-case files, co-located tests (.test.ts), barrel exports
220
- Constraints: 3 layers with strict downward-only imports
221
- Concerns: harness validate passes, 47 tests all passing
222
- ```
223
-
224
- **ORIENT:**
225
-
226
- ```
227
- Adoption level: intermediate (confirmed — layers defined, constraints enforced)
228
- Skills: harness-tdd, harness-execution, harness-code-review
229
- State: Mid-execution on a 6-task notification feature plan
230
- ```
231
-
232
- **SUMMARIZE:**
233
-
234
- ```
235
- Produce orientation with all sections. Getting Started for this context:
236
- 1. Read the plan at docs/plans/2026-03-14-notifications-plan.md
237
- 2. Resume execution at Task 4 (state shows Tasks 1-3 complete)
238
- 3. Note the UTC normalization gotcha from learnings before working with dates
239
- ```
240
-
241
- ### Example: Onboarding to a Basic Project
242
-
243
- **READ:**
244
-
245
- ```
246
- Read AGENTS.md — exists, minimal content
247
- Read harness.yaml — level: basic, no layers defined
248
- No .harness/learnings.md
249
- No .harness/state.json
250
- ```
251
-
252
- **MAP and SUMMARIZE:**
253
-
254
- ```
255
- Adoption level: basic (confirmed — no layers or constraints)
256
- Getting Started:
257
- 1. Run npm install && npm test to verify the project builds and tests pass
258
- 2. Read AGENTS.md for project context and conventions
259
- 3. Consider migrating to intermediate level to add layer boundaries
260
- (use initialize-harness-project to upgrade)
261
- ```
262
-
263
- ## Adoption Maturity
264
-
265
- A mental model for where a team sits on the harness adoption curve. Not prescriptive — just orientation.
266
-
267
- | Level | Name | Description |
268
- | ----- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
269
- | 1 | **Manual** | Write `CLAUDE.md` by hand, run commands manually. Harness is a reference, not a tool. |
270
- | 2 | **Repeatable** | Skills installed, agent follows conventions consistently. Workflows are codified but enforcement is human-driven. |
271
- | 3 | **Automated** | Mechanical gates in CI. `harness validate` runs on PRs. Failures auto-log to `.harness/failures.md`. The system catches mistakes before humans do. |
272
- | 4 | **Self-improving** | Learnings accumulate in `.harness/learnings.md`. Agents reference past failures before planning. Institutional knowledge compounds across sessions and team members. |
273
-
274
- Most teams start at Level 1 and move up as they see the value. There is no pressure to reach Level 4 — each level delivers real benefits on its own.
275
-
276
-
277
- --- skill.yaml (agents/skills/claude-code/harness-onboarding/skill.yaml) ---
278
- name: harness-onboarding
279
- version: "1.0.0"
280
- description: Onboard a new developer to a harness-managed project
281
- cognitive_mode: advisory-guide
282
- triggers:
283
- - manual
284
- - on_project_init
285
- platforms:
286
- - claude-code
287
- - gemini-cli
288
- tools:
289
- - Bash
290
- - Read
291
- - Glob
292
- cli:
293
- command: harness skill run harness-onboarding
294
- args:
295
- - name: path
296
- description: Project root path
297
- required: false
298
- mcp:
299
- tool: run_skill
300
- input:
301
- skill: harness-onboarding
302
- path: string
303
- type: flexible
304
- state:
305
- persistent: false
306
- files: []
307
- depends_on: []
308
-
309
- </execution_context>
310
-
311
- <process>
312
- 1. Try: invoke mcp__harness__run_skill with skill: "harness-onboarding"
313
- 2. If MCP unavailable: follow the SKILL.md workflow provided above directly
314
- 3. Pass through any arguments provided by the user
315
- </process>
316
- """
@@ -1,221 +0,0 @@
1
- # Generated by harness generate-slash-commands. Do not edit.
2
- description = "Coordinate multiple agents working in parallel on a harness project"
3
- prompt = """
4
- <context>
5
- Cognitive mode: constructive-architect
6
- Type: flexible
7
- </context>
8
-
9
- <objective>
10
- Coordinate multiple agents working in parallel on a harness project
11
- </objective>
12
-
13
- <execution_context>
14
- --- SKILL.md (agents/skills/claude-code/harness-parallel-agents/SKILL.md) ---
15
- # Harness Parallel Agents
16
-
17
- > Dispatch independent tasks to concurrent agents, integrate results, and verify no conflicts. Only for truly independent problems.
18
-
19
- ## When to Use
20
-
21
- - When 3 or more tasks are truly independent (no shared state, no shared files, different subsystems)
22
- - When tasks involve investigation or implementation in separate parts of the codebase
23
- - When parallel execution would meaningfully reduce wall-clock time
24
- - When a plan has tasks explicitly marked as parallelizable
25
- - NOT when failures across tasks might be related (investigate serially to find the common cause)
26
- - NOT when tasks need full system understanding to complete correctly
27
- - NOT when agents would modify the same files or shared state
28
- - NOT when there are fewer than 3 independent tasks (overhead of coordination outweighs parallelism)
29
- - NOT when the tasks are sequential by nature (each depends on the previous)
30
-
31
- ## Process
32
-
33
- ### Step 1: Identify Independent Problem Domains
34
-
35
- Before dispatching anything in parallel, rigorously verify independence:
36
-
37
- 1. **List the candidate tasks.** Pull from the plan, or identify from the current work.
38
-
39
- 2. **Check file overlap.** For each pair of tasks, compare the files they will read and write. Any overlap in WRITE targets means they are NOT independent. Overlap in READ targets is acceptable only if neither task writes to those files.
40
-
41
- 3. **Check state overlap.** Do any tasks share database tables, configuration files, environment variables, or in-memory state? If yes, they are NOT independent.
42
-
43
- 4. **Check import graph overlap.** If Task A modifies module X and Task B imports module X, they are NOT independent — Task B's tests may be affected by Task A's changes.
44
-
45
- 5. **When in doubt, run serially.** The cost of a false parallel dispatch (merge conflicts, subtle bugs, wasted work) far exceeds the cost of running serially.
46
-
47
- ### Step 2: Create Focused Agent Tasks
48
-
49
- For each independent task, write a focused agent brief:
50
-
51
- 1. **Scope.** Exactly what files and directories this agent may touch. Be explicit about boundaries — the agent should not explore outside its scope.
52
-
53
- 2. **Goal.** One sentence: what is the observable outcome when this agent is done?
54
-
55
- 3. **Constraints.** What the agent must NOT do:
56
- - Do not modify files outside your scope
57
- - Do not install new dependencies without approval
58
- - Do not change shared configuration
59
- - Run `harness validate` before your final commit
60
-
61
- 4. **Expected output.** What the agent should produce:
62
- - Commit(s) on the current branch
63
- - Test results (all pass)
64
- - Summary of what was done and any surprises
65
-
66
- 5. **Context.** Give each agent the minimum context it needs. Include relevant file paths, type definitions it will use, and API contracts it must respect. Do not dump the entire codebase context — focused agents work better with focused context.
67
-
68
- ### Step 3: Dispatch Concurrently
69
-
70
- 1. **Launch agents in parallel.** Use subagent dispatch (TaskCreate or platform-specific parallel execution).
71
-
72
- 2. **Do not intervene while agents are running** unless one reports a blocker. Let them complete independently.
73
-
74
- 3. **Collect results.** Wait for all agents to finish. Gather their outputs: commits, test results, and summaries.
75
-
76
- ### Step 4: Integrate Results
77
-
78
- 1. **Check for conflicts.** Even with verified independence, unexpected conflicts can occur:
79
- - Git merge conflicts in any file
80
- - Two agents added the same import or export
81
- - Test names collide
82
- - Shared configuration was modified despite constraints
83
-
84
- 2. **If conflicts exist, resolve them manually.** Do not ask an agent to fix conflicts it does not have full context for. You have the full picture; the agents did not.
85
-
86
- 3. **Run the FULL test suite.** Not just each agent's tests — the complete project test suite. Parallel changes can cause integration failures that individual test runs miss.
87
-
88
- 4. **Run `harness validate`.** Verify project-wide health after integration.
89
-
90
- 5. **If integration fails,** identify which agent's changes caused the failure. Revert that agent's commits, fix the issue serially, and re-integrate.
91
-
92
- ### Step 5: Verify and Commit
93
-
94
- 1. **Verify all observable truths** from the plan are satisfied after integration.
95
-
96
- 2. **If all tests pass and harness validates,** the parallel execution is complete.
97
-
98
- 3. **Write a summary** of what was parallelized, what each agent produced, and any integration issues that were resolved.
99
-
100
- ## Harness Integration
101
-
102
- - **`harness validate`** — Each agent runs this before its final commit. Run again after integration.
103
- - **`harness check-deps`** — Run after integration to verify no cross-boundary violations were introduced by the combined changes.
104
- - **Agent dispatch** — Use platform-specific parallel execution (e.g., Claude Code subagents via TaskCreate, or separate terminal sessions).
105
- - **Test runner** — Full suite must run after integration, not just individual agent tests.
106
-
107
- ## Success Criteria
108
-
109
- - Independence was verified before dispatch (file overlap, state overlap, import graph)
110
- - Each agent had a focused brief with explicit scope, goal, constraints, and expected output
111
- - All agents completed successfully (or blockers were reported)
112
- - Integration produced no merge conflicts (or conflicts were resolved)
113
- - Full test suite passes after integration
114
- - `harness validate` passes after integration
115
- - No agent modified files outside its declared scope
116
-
117
- ## Examples
118
-
119
- ### Example: Parallel Implementation of Three Independent Services
120
-
121
- **Context:** Plan has Tasks 4, 5, and 6 which implement UserService, ProductService, and NotificationService. Each service is in its own directory, has its own types, and has no cross-service dependencies.
122
-
123
- **Step 1: Verify independence**
124
-
125
- ```
126
- Task 4 (UserService): writes src/services/user/*, reads src/types/user.ts
127
- Task 5 (ProductService): writes src/services/product/*, reads src/types/product.ts
128
- Task 6 (NotificationService): writes src/services/notification/*, reads src/types/notification.ts
129
-
130
- File overlap: NONE (different directories, different type files)
131
- State overlap: NONE (different DB tables, no shared config)
132
- Import graph: NONE (no cross-service imports)
133
- Verdict: INDEPENDENT — safe to parallelize
134
- ```
135
-
136
- **Step 2: Create agent briefs**
137
-
138
- ```
139
- Agent A — UserService:
140
- Scope: src/services/user/, src/services/user.test.ts
141
- Goal: UserService with CRUD operations, all tests passing
142
- Constraints: Do not modify files outside src/services/user/. Run harness validate.
143
- Context: User type definition in src/types/user.ts, DB helper in src/utils/db.ts
144
-
145
- Agent B — ProductService:
146
- Scope: src/services/product/, src/services/product.test.ts
147
- Goal: ProductService with CRUD operations, all tests passing
148
- Constraints: Do not modify files outside src/services/product/. Run harness validate.
149
- Context: Product type definition in src/types/product.ts, DB helper in src/utils/db.ts
150
-
151
- Agent C — NotificationService:
152
- Scope: src/services/notification/, src/services/notification.test.ts
153
- Goal: NotificationService with create and list, all tests passing
154
- Constraints: Do not modify files outside src/services/notification/. Run harness validate.
155
- Context: Notification type in src/types/notification.ts, email utility in src/utils/email.ts
156
- ```
157
-
158
- **Step 3-4: Dispatch, integrate**
159
-
160
- ```
161
- All 3 agents complete. No merge conflicts.
162
- Run full test suite: 34 tests, all pass.
163
- Run harness validate: passes.
164
- ```
165
-
166
- ### Example: When NOT to Parallelize
167
-
168
- **Situation:** Tasks 7 and 8 both modify `src/api/routes/index.ts` to add new route handlers.
169
-
170
- ```
171
- Task 7: writes src/api/routes/users.ts, MODIFIES src/api/routes/index.ts
172
- Task 8: writes src/api/routes/products.ts, MODIFIES src/api/routes/index.ts
173
-
174
- File overlap: BOTH WRITE to src/api/routes/index.ts
175
- Verdict: NOT INDEPENDENT — run serially
176
- ```
177
-
178
-
179
- --- skill.yaml (agents/skills/claude-code/harness-parallel-agents/skill.yaml) ---
180
- name: harness-parallel-agents
181
- version: "1.0.0"
182
- description: Coordinate multiple agents working in parallel on a harness project
183
- cognitive_mode: constructive-architect
184
- triggers:
185
- - manual
186
- - on_new_feature
187
- platforms:
188
- - claude-code
189
- - gemini-cli
190
- tools:
191
- - Bash
192
- - Read
193
- - Write
194
- - Edit
195
- - Glob
196
- - Grep
197
- cli:
198
- command: harness skill run harness-parallel-agents
199
- args:
200
- - name: path
201
- description: Project root path
202
- required: false
203
- mcp:
204
- tool: run_skill
205
- input:
206
- skill: harness-parallel-agents
207
- path: string
208
- type: flexible
209
- state:
210
- persistent: false
211
- files: []
212
- depends_on: []
213
-
214
- </execution_context>
215
-
216
- <process>
217
- 1. Try: invoke mcp__harness__run_skill with skill: "harness-parallel-agents"
218
- 2. If MCP unavailable: follow the SKILL.md workflow provided above directly
219
- 3. Pass through any arguments provided by the user
220
- </process>
221
- """