hatch3r 1.3.0 → 1.5.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/README.md +12 -7
- package/agents/hatch3r-a11y-auditor.md +18 -11
- package/agents/hatch3r-architect.md +27 -12
- package/agents/hatch3r-ci-watcher.md +30 -9
- package/agents/hatch3r-context-rules.md +18 -8
- package/agents/hatch3r-dependency-auditor.md +30 -15
- package/agents/hatch3r-devops.md +18 -13
- package/agents/hatch3r-docs-writer.md +33 -12
- package/agents/hatch3r-fixer.md +46 -9
- package/agents/hatch3r-implementer.md +21 -9
- package/agents/hatch3r-learnings-loader.md +24 -7
- package/agents/hatch3r-lint-fixer.md +18 -9
- package/agents/hatch3r-perf-profiler.md +26 -10
- package/agents/hatch3r-researcher.md +57 -919
- package/agents/hatch3r-reviewer.md +29 -10
- package/agents/hatch3r-security-auditor.md +25 -10
- package/agents/hatch3r-test-writer.md +29 -9
- package/agents/modes/architecture.md +1 -0
- package/agents/modes/boundary-analysis.md +2 -1
- package/agents/modes/codebase-impact.md +1 -0
- package/agents/modes/complexity-risk.md +1 -0
- package/agents/modes/coverage-analysis.md +1 -0
- package/agents/modes/current-state.md +1 -0
- package/agents/modes/feature-design.md +1 -0
- package/agents/modes/impact-analysis.md +1 -0
- package/agents/modes/library-docs.md +2 -1
- package/agents/modes/migration-path.md +1 -0
- package/agents/modes/prior-art.md +1 -0
- package/agents/modes/refactoring-strategy.md +1 -0
- package/agents/modes/regression.md +1 -0
- package/agents/modes/requirements-elicitation.md +1 -0
- package/agents/modes/risk-assessment.md +1 -0
- package/agents/modes/risk-prioritization.md +1 -0
- package/agents/modes/root-cause.md +1 -0
- package/agents/modes/similar-implementation.md +2 -1
- package/agents/modes/symptom-trace.md +1 -0
- package/agents/modes/test-pattern.md +2 -1
- package/agents/shared/external-knowledge.md +31 -0
- package/agents/shared/quality-charter.md +96 -0
- package/checks/README.md +1 -0
- package/checks/accessibility.md +55 -0
- package/commands/board/pickup-azure-devops.md +5 -0
- package/commands/board/pickup-delegation-multi.md +9 -1
- package/commands/board/pickup-delegation.md +4 -0
- package/commands/board/pickup-github.md +5 -0
- package/commands/board/pickup-gitlab.md +5 -0
- package/commands/board/pickup-modes.md +1 -0
- package/commands/board/pickup-post-impl.md +9 -1
- package/commands/board/shared-azure-devops.md +14 -3
- package/commands/board/shared-board-overview.md +1 -0
- package/commands/board/shared-github.md +2 -0
- package/commands/board/shared-gitlab.md +10 -2
- package/commands/hatch3r-agent-customize.md +6 -1
- package/commands/hatch3r-api-spec.md +1 -0
- package/commands/hatch3r-benchmark.md +4 -3
- package/commands/hatch3r-board-fill.md +52 -9
- package/commands/hatch3r-board-groom.md +124 -7
- package/commands/hatch3r-board-init.md +7 -3
- package/commands/hatch3r-board-pickup.md +1 -0
- package/commands/hatch3r-board-refresh.md +1 -0
- package/commands/hatch3r-board-shared.md +71 -5
- package/commands/hatch3r-bug-plan.md +2 -1
- package/commands/hatch3r-codebase-map.md +4 -3
- package/commands/hatch3r-command-customize.md +6 -1
- package/commands/hatch3r-context-health.md +1 -0
- package/commands/hatch3r-cost-tracking.md +1 -0
- package/commands/hatch3r-debug.md +4 -3
- package/commands/hatch3r-dep-audit.md +3 -0
- package/commands/hatch3r-feature-plan.md +3 -2
- package/commands/hatch3r-healthcheck.md +1 -0
- package/commands/hatch3r-hooks.md +6 -1
- package/commands/hatch3r-learn.md +1 -0
- package/commands/hatch3r-migration-plan.md +3 -2
- package/commands/hatch3r-onboard.md +2 -1
- package/commands/hatch3r-project-spec.md +4 -3
- package/commands/hatch3r-quick-change.md +31 -3
- package/commands/hatch3r-recipe.md +1 -0
- package/commands/hatch3r-refactor-plan.md +2 -1
- package/commands/hatch3r-release.md +4 -1
- package/commands/hatch3r-revision.md +138 -17
- package/commands/hatch3r-roadmap.md +5 -4
- package/commands/hatch3r-rule-customize.md +5 -0
- package/commands/hatch3r-security-audit.md +1 -0
- package/commands/hatch3r-skill-customize.md +5 -0
- package/commands/hatch3r-test-plan.md +3 -2
- package/commands/hatch3r-workflow.md +15 -1
- package/dist/cli/index.js +7595 -4548
- package/dist/cli/index.js.map +1 -1
- package/hooks/hatch3r-ci-failure.md +1 -0
- package/hooks/hatch3r-file-save.md +1 -0
- package/hooks/hatch3r-post-merge.md +1 -0
- package/hooks/hatch3r-pre-commit.md +1 -0
- package/hooks/hatch3r-pre-push.md +1 -0
- package/hooks/hatch3r-session-start.md +1 -0
- package/package.json +30 -12
- package/rules/hatch3r-accessibility-standards.md +2 -1
- package/rules/hatch3r-accessibility-standards.mdc +1 -1
- package/rules/hatch3r-agent-orchestration-detail.md +207 -0
- package/rules/hatch3r-agent-orchestration-detail.mdc +202 -0
- package/rules/hatch3r-agent-orchestration.md +161 -318
- package/rules/hatch3r-agent-orchestration.mdc +212 -154
- package/rules/hatch3r-api-design.md +2 -1
- package/rules/hatch3r-api-design.mdc +1 -1
- package/rules/hatch3r-browser-verification.md +4 -2
- package/rules/hatch3r-browser-verification.mdc +1 -0
- package/rules/hatch3r-ci-cd.md +2 -1
- package/rules/hatch3r-ci-cd.mdc +1 -1
- package/rules/hatch3r-code-standards.md +15 -2
- package/rules/hatch3r-code-standards.mdc +22 -2
- package/rules/hatch3r-component-conventions.md +2 -1
- package/rules/hatch3r-component-conventions.mdc +1 -1
- package/rules/hatch3r-data-classification.md +2 -1
- package/rules/hatch3r-data-classification.mdc +1 -1
- package/rules/hatch3r-deep-context.md +26 -1
- package/rules/hatch3r-deep-context.mdc +54 -8
- package/rules/hatch3r-dependency-management.md +2 -1
- package/rules/hatch3r-dependency-management.mdc +17 -5
- package/rules/hatch3r-feature-flags.md +2 -0
- package/rules/hatch3r-feature-flags.mdc +1 -0
- package/rules/hatch3r-git-conventions.md +2 -1
- package/rules/hatch3r-git-conventions.mdc +2 -1
- package/rules/hatch3r-i18n.md +2 -1
- package/rules/hatch3r-i18n.mdc +1 -1
- package/rules/hatch3r-learning-consult.md +11 -1
- package/rules/hatch3r-learning-consult.mdc +11 -1
- package/rules/hatch3r-migrations.md +2 -1
- package/rules/hatch3r-migrations.mdc +12 -1
- package/rules/hatch3r-observability-logging.md +34 -0
- package/rules/hatch3r-observability-logging.mdc +30 -0
- package/rules/hatch3r-observability-metrics.md +74 -0
- package/rules/hatch3r-observability-metrics.mdc +70 -0
- package/rules/hatch3r-observability-tracing-detail.md +160 -0
- package/rules/hatch3r-observability-tracing-detail.mdc +63 -0
- package/rules/hatch3r-observability-tracing.md +86 -0
- package/rules/hatch3r-observability-tracing.mdc +77 -0
- package/rules/hatch3r-observability.md +9 -448
- package/rules/hatch3r-observability.mdc +7 -159
- package/rules/hatch3r-performance-budgets.md +2 -0
- package/rules/hatch3r-performance-budgets.mdc +1 -0
- package/rules/hatch3r-secrets-management.md +2 -1
- package/rules/hatch3r-secrets-management.mdc +1 -1
- package/rules/hatch3r-security-patterns.md +3 -2
- package/rules/hatch3r-security-patterns.mdc +12 -1
- package/rules/hatch3r-testing.md +12 -2
- package/rules/hatch3r-testing.mdc +11 -2
- package/rules/hatch3r-theming.md +3 -2
- package/rules/hatch3r-theming.mdc +1 -1
- package/rules/hatch3r-tooling-hierarchy.md +3 -2
- package/rules/hatch3r-tooling-hierarchy.mdc +19 -5
- package/skills/hatch3r-a11y-audit/SKILL.md +11 -4
- package/skills/hatch3r-agent-customize/SKILL.md +5 -72
- package/skills/hatch3r-api-spec/SKILL.md +9 -2
- package/skills/hatch3r-architecture-review/SKILL.md +7 -0
- package/skills/hatch3r-bug-fix/SKILL.md +16 -7
- package/skills/hatch3r-ci-pipeline/SKILL.md +8 -1
- package/skills/hatch3r-command-customize/SKILL.md +5 -62
- package/skills/hatch3r-context-health/SKILL.md +23 -2
- package/skills/hatch3r-cost-tracking/SKILL.md +16 -6
- package/skills/hatch3r-customize/SKILL.md +124 -0
- package/skills/hatch3r-dep-audit/SKILL.md +9 -2
- package/skills/hatch3r-feature/SKILL.md +12 -4
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +7 -0
- package/skills/hatch3r-incident-response/SKILL.md +7 -0
- package/skills/hatch3r-issue-workflow/SKILL.md +8 -1
- package/skills/hatch3r-logical-refactor/SKILL.md +8 -1
- package/skills/hatch3r-migration/SKILL.md +7 -0
- package/skills/hatch3r-perf-audit/SKILL.md +9 -2
- package/skills/hatch3r-pr-creation/SKILL.md +8 -1
- package/skills/hatch3r-qa-validation/SKILL.md +8 -1
- package/skills/hatch3r-recipe/SKILL.md +8 -1
- package/skills/hatch3r-refactor/SKILL.md +10 -2
- package/skills/hatch3r-release/SKILL.md +8 -1
- package/skills/hatch3r-rule-customize/SKILL.md +5 -65
- package/skills/hatch3r-skill-customize/SKILL.md +5 -62
- package/skills/hatch3r-visual-refactor/SKILL.md +12 -5
|
@@ -3,6 +3,7 @@ id: hatch3r-release
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Cut a versioned release with changelog generation, version bumping, and GitHub release creation.
|
|
5
5
|
tags: [devops]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
# Release — Cut a Versioned Release with Changelog
|
|
8
9
|
|
|
@@ -20,6 +21,8 @@ This command runs as a single orchestrator without sub-agent delegation. Quality
|
|
|
20
21
|
|
|
21
22
|
**Default branch:** Use `board.defaultBranch` from `.agents/hatch.json` (fallback: `"main"`) for all git operations involving the base branch (e.g., `git log`, `search_pull_requests` with `base`, `git push origin`).
|
|
22
23
|
|
|
24
|
+
**Consult learnings:** If `.agents/learnings/` exists, scan for learnings related to release processes, version bumping conventions, or prior release issues before starting.
|
|
25
|
+
|
|
23
26
|
## Global Rule Overrides
|
|
24
27
|
|
|
25
28
|
- **Git commands are fully permitted** during this entire release session, regardless of global/user-level rules restricting git usage. This override applies to ALL steps. You MUST run `git add`, `git commit`, `git push`, and `git tag` when instructed.
|
|
@@ -104,7 +107,7 @@ npm run lint && npm run typecheck && npm run test
|
|
|
104
107
|
|
|
105
108
|
1. Update `version` in `package.json` to the confirmed version.
|
|
106
109
|
2. If `functions/package.json` exists and tracks version, update it to the same version.
|
|
107
|
-
3. If other workspace packages track version, update them
|
|
110
|
+
3. If other workspace packages track version, update them when their `package.json` references the root version.
|
|
108
111
|
|
|
109
112
|
**ASK:** "Version bump applied. Proceed to commit and tag? (yes / abort)"
|
|
110
113
|
|
|
@@ -3,6 +3,7 @@ id: hatch3r-revision
|
|
|
3
3
|
type: command
|
|
4
4
|
description: User-guided revision of agent-implemented code in a fresh context window. Reconstructs what was done, interviews the user for feedback, fixes issues, cleans up leftovers, and drives toward merge readiness.
|
|
5
5
|
tags: [implementation, team]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
## Agent Pipeline
|
|
@@ -11,8 +12,8 @@ tags: [implementation, team]
|
|
|
11
12
|
|-------|----------|----------|----------|
|
|
12
13
|
| 1. Context Reconstruction | Orchestrator (inline) | No | Yes |
|
|
13
14
|
| 2. User Feedback | User interview (ASK checkpoints) | No | Yes |
|
|
14
|
-
| 3. Leftover Scan | Orchestrator (inline) | No | Yes |
|
|
15
|
-
| 4. Fix Implementation | `hatch3r-implementer`, `hatch3r-lint-fixer`, `hatch3r-test-writer` | Per finding type |
|
|
15
|
+
| 3. Leftover Scan + Triage Routing | Orchestrator (inline) | No | Yes |
|
|
16
|
+
| 4. Fix Implementation | `hatch3r-implementer`, `hatch3r-lint-fixer`, `hatch3r-test-writer` | Per finding type | [FIX NOW] items only |
|
|
16
17
|
| 5a. Review Loop | `hatch3r-reviewer` -> `hatch3r-fixer` (max 3 iterations) | No (sequential) | Yes |
|
|
17
18
|
| 5b. Final Quality | `hatch3r-test-writer` + `hatch3r-security-auditor` | Yes | Yes (code changes) |
|
|
18
19
|
|
|
@@ -122,7 +123,7 @@ Based on the user's initial response and the diff scope, ask targeted follow-up
|
|
|
122
123
|
|
|
123
124
|
**If UI changes detected** (components, styles, templates in diff):
|
|
124
125
|
- "Any visual mismatches -- spacing, alignment, colors, typography?"
|
|
125
|
-
- "Does it
|
|
126
|
+
- "Does it render and respond as expected at different viewport sizes?"
|
|
126
127
|
- "Any interaction issues -- hover states, focus, transitions, animations?"
|
|
127
128
|
|
|
128
129
|
**If API/backend changes detected** (routes, services, middleware in diff):
|
|
@@ -180,7 +181,7 @@ For each leftover found, record:
|
|
|
180
181
|
|
|
181
182
|
---
|
|
182
183
|
|
|
183
|
-
### Step 5: Findings Consolidation and Triage
|
|
184
|
+
### Step 5: Findings Consolidation and Triage Routing
|
|
184
185
|
|
|
185
186
|
Merge user feedback (Step 3) and proactive scan results (Step 4) into a single prioritized list:
|
|
186
187
|
|
|
@@ -189,35 +190,126 @@ Merge user feedback (Step 3) and proactive scan results (Step 4) into a single p
|
|
|
189
190
|
- **Cleanup**: Leftovers detected by scan -- dead code, TODOs, type issues, error handling gaps
|
|
190
191
|
- **Cosmetic**: Style improvements, naming, comment cleanup, minor readability enhancements
|
|
191
192
|
|
|
192
|
-
|
|
193
|
+
#### 5a. Suggest Routing
|
|
194
|
+
|
|
195
|
+
For each finding, suggest whether it should be fixed in this revision session or deferred to the board for later implementation via `board-fill`.
|
|
196
|
+
|
|
197
|
+
**Routing heuristics:**
|
|
198
|
+
|
|
199
|
+
| Severity | Condition | Default Route |
|
|
200
|
+
|----------|-----------|---------------|
|
|
201
|
+
| Critical | Any | FIX NOW (warn if user overrides) |
|
|
202
|
+
| Important | Affects files already in the diff + matches acceptance criteria | FIX NOW |
|
|
203
|
+
| Important | Outside PR scope / requires new files / architectural change | DEFER |
|
|
204
|
+
| Cleanup | Quick fix in diff files (single line, import cleanup, typo) | FIX NOW |
|
|
205
|
+
| Cleanup | Substantial scope / new files needed / cross-cutting | DEFER |
|
|
206
|
+
| Cosmetic | Any | DEFER |
|
|
207
|
+
|
|
208
|
+
Present the consolidated findings with routing markers:
|
|
193
209
|
|
|
194
210
|
```
|
|
195
211
|
Revision Findings ({N} total):
|
|
196
212
|
|
|
197
213
|
Critical ({n}):
|
|
198
|
-
1. {description} — {file:line}
|
|
214
|
+
1. {description} — {file:line} → [FIX NOW]
|
|
199
215
|
2. ...
|
|
200
216
|
|
|
201
217
|
Important ({n}):
|
|
202
|
-
1. {description} — {file:line}
|
|
203
|
-
|
|
218
|
+
1. {description} — {file:line} → [FIX NOW]
|
|
219
|
+
(in diff files, matches acceptance criteria)
|
|
220
|
+
2. {description} — {file:line} → [DEFER]
|
|
221
|
+
(outside PR scope, requires new files)
|
|
222
|
+
...
|
|
204
223
|
|
|
205
224
|
Cleanup ({n}):
|
|
206
|
-
1. {description} — {file:line}
|
|
207
|
-
|
|
225
|
+
1. {description} — {file:line} → [FIX NOW]
|
|
226
|
+
(quick fix, file already in diff)
|
|
227
|
+
2. {description} — {file:line} → [DEFER]
|
|
228
|
+
(substantial scope, cross-cutting)
|
|
229
|
+
...
|
|
208
230
|
|
|
209
231
|
Cosmetic ({n}):
|
|
210
|
-
1. {description} — {file:line}
|
|
211
|
-
|
|
232
|
+
1. {description} — {file:line} → [DEFER]
|
|
233
|
+
...
|
|
212
234
|
```
|
|
213
235
|
|
|
214
|
-
|
|
236
|
+
#### 5b. Routing ASK
|
|
237
|
+
|
|
238
|
+
**ASK:** "Here are all findings with suggested routing. Review:
|
|
239
|
+
- Change routing by number (e.g., 'defer Important.2', 'fix Cosmetic.3')
|
|
240
|
+
- 'accept' to proceed with suggested routing
|
|
241
|
+
- 'fix all' to implement everything now (skip board deferral)
|
|
242
|
+
- Adjust priorities, remove, or add findings as before
|
|
243
|
+
|
|
244
|
+
(accept / fix all / adjust / add more)"
|
|
245
|
+
|
|
246
|
+
If the user attempts to defer a Critical finding, execute the Critical Deferral Protocol:
|
|
247
|
+
|
|
248
|
+
1. **Structured warning.** Present the specific risk:
|
|
249
|
+
|
|
250
|
+
```
|
|
251
|
+
Critical Deferral Warning:
|
|
252
|
+
Finding: {description}
|
|
253
|
+
Risk: {specific consequence of deferral — e.g., "unvalidated auth tokens may allow unauthorized access"}
|
|
254
|
+
Policy: Critical findings should resolve before merge (CONSTITUTION.md, quality philosophy).
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
2. **Require rationale.** Do not accept a bare "yes" or "defer" — the user must provide a written reason explaining why deferral is acceptable in this context.
|
|
258
|
+
|
|
259
|
+
**ASK:** "To defer this Critical finding, please provide a written rationale explaining why it is safe to merge without resolving it. This will be recorded in todo.md for board-fill triage."
|
|
260
|
+
|
|
261
|
+
3. **Record rationale.** When recording the deferred Critical finding in todo.md (Step 5c), include the user's rationale and a `Critical-deferred` tag:
|
|
262
|
+
|
|
263
|
+
```markdown
|
|
264
|
+
- {finding description} (severity: Critical, file: {file:line}) [Critical-deferred]
|
|
265
|
+
Deferral rationale: {user's stated rationale}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
4. **Flag for triage.** The `Critical-deferred` tag ensures board-fill surfaces this item with elevated visibility during the next triage cycle. Board-fill should treat `Critical-deferred` items as priority:p0 candidates regardless of other signals.
|
|
269
|
+
|
|
270
|
+
The user is never blocked — this protocol adds accountability, not a veto.
|
|
271
|
+
|
|
272
|
+
"fix all" preserves backward compatibility -- zero additional friction for simple revisions where everything should just be fixed.
|
|
273
|
+
|
|
274
|
+
#### 5c. File Deferred Findings to todo.md
|
|
275
|
+
|
|
276
|
+
If any findings are routed to [DEFER]:
|
|
277
|
+
|
|
278
|
+
1. **Append to `todo.md`** as a single epic context block. All deferred findings from this revision session are grouped together regardless of count -- board-fill will create one epic from them.
|
|
279
|
+
|
|
280
|
+
**If a PR exists** (from Step 1b):
|
|
281
|
+
|
|
282
|
+
```markdown
|
|
283
|
+
# Follow-ups from PR #{pr_number} revision ({date})
|
|
284
|
+
# Epic: group all items below into one epic during board-fill
|
|
285
|
+
- {finding description} (severity: {severity}, file: {file:line})
|
|
286
|
+
- {finding description} (severity: {severity}, file: {file:line})
|
|
287
|
+
- ...
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**If no PR exists** (working outside board pipeline):
|
|
291
|
+
|
|
292
|
+
```markdown
|
|
293
|
+
# Follow-ups from {branch} revision ({date})
|
|
294
|
+
# Epic: group all items below into one epic during board-fill
|
|
295
|
+
- {finding description} (severity: {severity}, file: {file:line})
|
|
296
|
+
- ...
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
2. Present summary:
|
|
300
|
+
`"Deferred {N} findings to todo.md. Run /hatch3r-board-fill to triage them into an epic with full dependency analysis."`
|
|
301
|
+
|
|
302
|
+
3. Cache the deferred findings list for use in Steps 8 and 9.
|
|
303
|
+
|
|
304
|
+
If no findings are routed to [DEFER] (including the "fix all" shortcut), skip this sub-step entirely.
|
|
215
305
|
|
|
216
306
|
---
|
|
217
307
|
|
|
218
308
|
### Step 6: Fix Implementation (Sub-Agent Delegation)
|
|
219
309
|
|
|
220
|
-
Delegate
|
|
310
|
+
Delegate [FIX NOW] findings to specialist sub-agents via the Task tool. Group findings by specialist and parallelize where possible. [DEFER] findings have been appended to `todo.md` in Step 5c and are excluded from this step.
|
|
311
|
+
|
|
312
|
+
If all findings were deferred (no [FIX NOW] items), skip Step 6 entirely and proceed to Step 7.
|
|
221
313
|
|
|
222
314
|
#### 6a. Group Findings by Specialist
|
|
223
315
|
|
|
@@ -240,6 +332,7 @@ Each sub-agent prompt MUST include:
|
|
|
240
332
|
- Acceptance criteria from linked issues (if available from Step 1b).
|
|
241
333
|
- Relevant learnings from `.agents/learnings/` (if found in Step 1d).
|
|
242
334
|
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
335
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
243
336
|
|
|
244
337
|
#### 6c. Await and Integrate Results
|
|
245
338
|
|
|
@@ -264,6 +357,8 @@ Run the project's quality checks. Refer to `package.json` scripts, `README.md`,
|
|
|
264
357
|
|
|
265
358
|
Walk through each critical and important finding from Step 5. Verify it is addressed by the changes made in Step 6. If acceptance criteria exist from linked issues, verify each criterion.
|
|
266
359
|
|
|
360
|
+
For each verified finding and acceptance criterion, rate verification confidence: high (fix confirmed via tests or direct observation), medium (code change addresses the issue but edge cases not independently tested), low (fix applied but uncertain of completeness).
|
|
361
|
+
|
|
267
362
|
#### 7c. Review Loop
|
|
268
363
|
|
|
269
364
|
Run an iterative review loop (max 3 iterations) until 0 Critical + 0 Warning findings remain:
|
|
@@ -274,6 +369,7 @@ The reviewer prompt MUST include:
|
|
|
274
369
|
- The diff of all changes made (use `git diff` on the working tree).
|
|
275
370
|
- All `scope: always` rule directives from `.agents/rules/`.
|
|
276
371
|
- Iteration number and previous findings (if not the first iteration).
|
|
372
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
277
373
|
|
|
278
374
|
2. Process reviewer output:
|
|
279
375
|
- If **0 Critical and 0 Warning** findings: review loop is clean. Proceed to Step 7d.
|
|
@@ -281,6 +377,8 @@ The reviewer prompt MUST include:
|
|
|
281
377
|
|
|
282
378
|
3. If 3 iterations complete and findings remain, **ASK** the user whether to proceed or fix manually.
|
|
283
379
|
|
|
380
|
+
After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings.
|
|
381
|
+
|
|
284
382
|
4. After any fixes, re-run quality gates (Step 7a) to verify nothing broke.
|
|
285
383
|
|
|
286
384
|
#### 7d. Final Quality
|
|
@@ -293,13 +391,14 @@ After the review loop is clean, spawn both agents in parallel via the Task tool:
|
|
|
293
391
|
Both prompts MUST include:
|
|
294
392
|
- The diff of all changes made.
|
|
295
393
|
- All `scope: always` rule directives from `.agents/rules/`.
|
|
394
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
296
395
|
|
|
297
396
|
Apply any resulting changes (new tests, security fixes). Re-run quality gates (Step 7a) if changes were made.
|
|
298
397
|
|
|
299
398
|
#### 7e. Handle Failures
|
|
300
399
|
|
|
301
400
|
- If quality checks fail: identify the specific failures, fix them directly (for simple issues) or loop back to Step 6 with specific failures.
|
|
302
|
-
- Max 2 retry loops on quality check failures. After 2 retries, **ASK** the user for guidance.
|
|
401
|
+
- Max 2 retry loops on quality check failures. After 2 retries, **ASK** the user for guidance: "Quality checks still failing. Fix confidence: {high/medium/low — based on whether root cause is identified}."
|
|
303
402
|
- If a user-reported issue was not fully addressed: **ASK** the user whether to attempt another fix or defer.
|
|
304
403
|
|
|
305
404
|
---
|
|
@@ -318,6 +417,16 @@ git push
|
|
|
318
417
|
- Single category: `revision: fix {description}` (e.g., `revision: fix auth token refresh and clean up dead code`)
|
|
319
418
|
- Multiple categories: `revision: address {N} issues from user testing` with a body listing the categories
|
|
320
419
|
- Reference linked issue numbers when available: `revision: fix validation edge cases (#42)`
|
|
420
|
+
- When deferred findings exist, include them in the commit message body:
|
|
421
|
+
```
|
|
422
|
+
revision: address {N} findings, defer {M} to board
|
|
423
|
+
|
|
424
|
+
Fixed:
|
|
425
|
+
- {fixed finding summaries}
|
|
426
|
+
|
|
427
|
+
Deferred to todo.md for board-fill:
|
|
428
|
+
- {deferred finding summaries}
|
|
429
|
+
```
|
|
321
430
|
|
|
322
431
|
If `git push` fails (e.g., remote branch does not exist yet), use `git push -u origin {branch}`.
|
|
323
432
|
|
|
@@ -333,15 +442,24 @@ Evaluate whether the branch is ready to merge.
|
|
|
333
442
|
Merge Readiness:
|
|
334
443
|
[x/·] Quality checks passing (lint, types, tests)
|
|
335
444
|
[x/·] All critical findings addressed
|
|
336
|
-
[x/·] All important findings addressed
|
|
337
|
-
[x/·] Cleanup findings addressed
|
|
445
|
+
[x/·] All important findings addressed or tracked ({N} fixed, {M} deferred)
|
|
446
|
+
[x/·] Cleanup findings addressed or tracked ({N} fixed, {M} deferred)
|
|
338
447
|
[x/·] Acceptance criteria met (if available)
|
|
339
448
|
[x/·] No unresolved TODOs in changed files
|
|
340
449
|
[x/·] No remaining lint/type errors in changed files
|
|
341
450
|
|
|
451
|
+
Deferred to Board ({M} items — in todo.md, pending board-fill):
|
|
452
|
+
- {description} (severity: {severity})
|
|
453
|
+
- ...
|
|
454
|
+
|
|
455
|
+
Overall Revision Confidence: {high/medium/low}
|
|
456
|
+
Highest-risk remaining area: {description or "none"}
|
|
457
|
+
|
|
342
458
|
Verdict: READY / NOT READY ({remaining items})
|
|
343
459
|
```
|
|
344
460
|
|
|
461
|
+
A deferred finding counts as "tracked" not "unaddressed" -- it does not block merge readiness.
|
|
462
|
+
|
|
345
463
|
#### 9b. Present Assessment
|
|
346
464
|
|
|
347
465
|
**ASK:** "Revision complete. {verdict}. Options: (a) ready to merge, (b) run another revision cycle with new feedback, (c) done for now."
|
|
@@ -393,3 +511,6 @@ Capture revision-specific learnings. Focus on patterns that inform future implem
|
|
|
393
511
|
- **One sub-agent per concern.** Delegate to specialist sub-agents based on finding type. Do not ask the implementer to also fix lint issues or write tests.
|
|
394
512
|
- **Git safety.** Never force-push. Never rewrite history. Always create new commits for revision changes.
|
|
395
513
|
- **This command composes existing hatch3r agents** -- it does not replace them. The reviewer, implementer, lint-fixer, and test-writer agents handle the actual work.
|
|
514
|
+
- **Critical findings default to FIX NOW.** If the user overrides this, execute the Critical Deferral Protocol (Step 5b): structured warning with specific risk, require written rationale, record in todo.md with `Critical-deferred` tag, and flag for elevated triage in board-fill. The user is never blocked — rationale adds accountability, not a veto.
|
|
515
|
+
- **Deferred findings go to `todo.md`, not directly to GitHub issues.** The board-fill pipeline handles triage, epic creation, dependency analysis, and readiness assessment. Revision does not shortcut this process.
|
|
516
|
+
- **Always format deferred items as a single epic block** in `todo.md`, regardless of count. This ensures board-fill groups them together during the next run.
|
|
@@ -3,6 +3,7 @@ id: hatch3r-roadmap
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Generate a dual-lens phased roadmap (business milestones + technical milestones) from specs and vision using parallel researcher sub-agents, output to todo.md in the format that hatch3r-board-fill expects.
|
|
5
5
|
tags: [planning, greenfield]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
# Roadmap — Generate Phased Roadmap from Specs & Vision
|
|
8
9
|
|
|
@@ -353,7 +354,7 @@ Business-Critical Path: {biz milestone 1} → {biz milestone 2} → {launch}
|
|
|
353
354
|
|
|
354
355
|
**ASK:** "Here is the proposed dual-lens roadmap with business and technical milestones. Review:
|
|
355
356
|
- Are the business milestones and their timelines realistic?
|
|
356
|
-
- Are the technical prerequisites
|
|
357
|
+
- Are the technical prerequisites mapped with accurate dependency links?
|
|
357
358
|
- Adjust priorities, add/remove items, change grouping?
|
|
358
359
|
(confirm / adjust)"
|
|
359
360
|
|
|
@@ -396,7 +397,7 @@ Write `todo.md` in the exact format that `hatch3r-board-fill` expects, with `[BI
|
|
|
396
397
|
**Format requirements:**
|
|
397
398
|
|
|
398
399
|
- Each item on one line as `- [ ] **[BIZ/TECH/BOTH] {bold title}**: {description}`.
|
|
399
|
-
- Include `Ref:` with source spec/ADR path when the item was derived from a specific document. Use `docs/specs/business/` or `docs/specs/technical/` paths
|
|
400
|
+
- Include `Ref:` with source spec/ADR path when the item was derived from a specific document. Use `docs/specs/business/` or `docs/specs/technical/` paths matching the item's category.
|
|
400
401
|
- For business items: include revenue/conversion/retention impact where known.
|
|
401
402
|
- For technical items: include what business milestone they enable where applicable.
|
|
402
403
|
- For time-sensitive items: include deadline or market window.
|
|
@@ -465,7 +466,7 @@ If yes or review-first: spawn a `hatch3r-docs-writer` sub-agent via the Task too
|
|
|
465
466
|
```markdown
|
|
466
467
|
# {Project Name} — Agent Instructions
|
|
467
468
|
|
|
468
|
-
> Auto-generated by hatch3r-roadmap on {today's date}. Review and adjust
|
|
469
|
+
> Auto-generated by hatch3r-roadmap on {today's date}. Review and adjust before use.
|
|
469
470
|
|
|
470
471
|
## Project Purpose
|
|
471
472
|
|
|
@@ -560,7 +561,7 @@ Hatch3r's breadth across 13+ adapters (Claude, Cursor, Windsurf, Cline, Copilot,
|
|
|
560
561
|
- **Never overwrite todo.md without explicit user confirmation.**
|
|
561
562
|
- **todo.md format must be compatible with board-fill** — markdown checklist with bold titles, priority headers matching `## P{N} — {Label}`, items tagged with `[BIZ]`/`[TECH]`/`[BOTH]`.
|
|
562
563
|
- **Keep items at the right granularity** — epic-level for complex features (XL effort), standalone for simple tasks (S/M effort).
|
|
563
|
-
- **Always reference source documentation** (specs, ADRs) where items were derived from. Use `docs/specs/business/` or `docs/specs/technical/` paths
|
|
564
|
+
- **Always reference source documentation** (specs, ADRs) where items were derived from. Use `docs/specs/business/` or `docs/specs/technical/` paths matching the item's category.
|
|
564
565
|
- **Do not duplicate work already tracked in GitHub issues.**
|
|
565
566
|
- **Effort estimates are rough and clearly labeled as estimates.**
|
|
566
567
|
- **Respect existing priority conventions in the project.**
|
|
@@ -3,6 +3,7 @@ id: hatch3r-rule-customize
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Configure per-rule customization including scope overrides, description changes, enable/disable control, and project-specific markdown instructions
|
|
5
5
|
tags: [customize]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
## Agent Pipeline
|
|
@@ -113,6 +114,10 @@ The rule's canonical definition remains in `.agents/rules/` but no adapter outpu
|
|
|
113
114
|
- Invalid YAML produces warnings but does not prevent rule application (graceful degradation)
|
|
114
115
|
- Customization files should be committed to the repository
|
|
115
116
|
|
|
117
|
+
## Unified Skill
|
|
118
|
+
|
|
119
|
+
This command's workflow is handled by the `hatch3r-customize` skill with `type: rule`. The skill provides root-cause analysis, multi-stakeholder review, and quality gate steps that extend the workflow above.
|
|
120
|
+
|
|
116
121
|
## Related
|
|
117
122
|
|
|
118
123
|
- Agent customization: `hatch3r-agent-customize` command
|
|
@@ -3,6 +3,7 @@ id: hatch3r-skill-customize
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Configure per-skill customization including description overrides, enable/disable control, and project-specific markdown instructions
|
|
5
5
|
tags: [customize]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
## Agent Pipeline
|
|
@@ -92,6 +93,10 @@ enabled: false
|
|
|
92
93
|
- Invalid YAML produces warnings but does not prevent skill execution (graceful degradation)
|
|
93
94
|
- Customization files should be committed to the repository
|
|
94
95
|
|
|
96
|
+
## Unified Skill
|
|
97
|
+
|
|
98
|
+
This command's workflow is handled by the `hatch3r-customize` skill with `type: skill`. The skill provides root-cause analysis, multi-stakeholder review, and quality gate steps that extend the workflow above.
|
|
99
|
+
|
|
95
100
|
## Related
|
|
96
101
|
|
|
97
102
|
- Agent customization: `hatch3r-agent-customize` command
|
|
@@ -3,6 +3,7 @@ id: hatch3r-test-plan
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Plan a comprehensive test strategy -- spawn parallel researchers, produce test plan spec with coverage targets, priority ordering, test case outlines, and structured todo.md entries for board-fill.
|
|
5
5
|
tags: [core, planning]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
## Agent Pipeline
|
|
@@ -58,7 +59,7 @@ Test Planning Brief:
|
|
|
58
59
|
Constraints: {list}
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
**ASK:** "Does this capture the test planning scope
|
|
62
|
+
**ASK:** "Does this capture the test planning scope? Adjust anything before I send this to the research phase."
|
|
62
63
|
|
|
63
64
|
#### Step 1b: Dimension Probing (Test Strategy Elicitation)
|
|
64
65
|
|
|
@@ -76,7 +77,7 @@ After the test planning brief is confirmed, probe for missing requirements acros
|
|
|
76
77
|
- **Flaky test tolerance**: Existing flaky tests? Quarantine process in place? Retry budget in CI?
|
|
77
78
|
3. Skip dimensions that the brief already addresses clearly.
|
|
78
79
|
|
|
79
|
-
**ASK:** "Before research begins, I have {N} questions to
|
|
80
|
+
**ASK:** "Before research begins, I have {N} questions to confirm the test plan covers all relevant dimensions:
|
|
80
81
|
{numbered question list -- each with the dimension label and why the answer matters}
|
|
81
82
|
|
|
82
83
|
Answer these now, or say 'use defaults' for any where you're comfortable with a reasonable default."
|
|
@@ -3,6 +3,7 @@ id: hatch3r-workflow
|
|
|
3
3
|
type: command
|
|
4
4
|
description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
|
|
5
5
|
tags: [core, implementation]
|
|
6
|
+
quality_charter: agents/shared/quality-charter.md
|
|
6
7
|
---
|
|
7
8
|
# Development Workflow -- Guided Lifecycle for Structured Implementation
|
|
8
9
|
|
|
@@ -230,6 +231,7 @@ The implementer sub-agent prompt MUST include:
|
|
|
230
231
|
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
231
232
|
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
|
|
232
233
|
- **Blast radius data** from enhanced `codebase-impact` (Tier 3) — transitive dependency trace and API consumer map.
|
|
234
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
233
235
|
|
|
234
236
|
Await the implementer sub-agent. Collect its structured result.
|
|
235
237
|
|
|
@@ -248,7 +250,7 @@ npm run lint && npm run typecheck && npm run test
|
|
|
248
250
|
|
|
249
251
|
Fix any issues before proceeding. If quality checks fail, loop back and resolve before advancing to Phase 4.
|
|
250
252
|
|
|
251
|
-
**ASK:** "Implementation complete. All quality checks pass. Proceed to Review? (yes / fix issues first)"
|
|
253
|
+
**ASK:** "Implementation complete. All quality checks pass. Confidence in implementation quality: {high/medium/low — based on test coverage depth, edge case handling, and researcher coverage}. Proceed to Review? (yes / fix issues first)"
|
|
252
254
|
|
|
253
255
|
---
|
|
254
256
|
|
|
@@ -266,11 +268,14 @@ Spawn a `hatch3r-reviewer` sub-agent via the Task tool (`subagent_type: "general
|
|
|
266
268
|
4. **Re-review:** After the fixer completes, spawn `hatch3r-reviewer` again to verify fixes.
|
|
267
269
|
5. **Repeat** steps 2-4 for a maximum of **3 iterations**. If still not clean after 3 iterations, **ASK** the user how to proceed (force continue / manual fix / abort).
|
|
268
270
|
|
|
271
|
+
After each reviewer iteration, assess the reviewer's findings confidence: if the reviewer rates any finding as low-confidence, flag it separately in the ASK prompt so the user can prioritize human review of uncertain findings.
|
|
272
|
+
|
|
269
273
|
Each reviewer/fixer sub-agent prompt MUST include:
|
|
270
274
|
- The agent protocol to follow.
|
|
271
275
|
- All `scope: always` rule directives from `.agents/rules/`.
|
|
272
276
|
- The diff or file changes to review/fix.
|
|
273
277
|
- The task's acceptance criteria.
|
|
278
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
274
279
|
|
|
275
280
|
#### 4b. Final Quality (Parallel Specialists)
|
|
276
281
|
|
|
@@ -296,13 +301,20 @@ Each specialist sub-agent prompt MUST include:
|
|
|
296
301
|
- All `scope: always` rule directives from `.agents/rules/`.
|
|
297
302
|
- The diff or file changes to review.
|
|
298
303
|
- The task's acceptance criteria.
|
|
304
|
+
- Confidence expression requirement: rate every recommendation and finding as high/medium/low confidence per the quality charter (`agents/shared/quality-charter.md`). High = verified against current code. Medium = pattern-based, not fully verified. Low = best judgment, recommend human review.
|
|
299
305
|
|
|
300
306
|
Await all specialist sub-agents. Apply their feedback (fixes, additional tests, documentation updates).
|
|
301
307
|
|
|
308
|
+
#### 4b.1. Re-Review After Phase 4 Fixes
|
|
309
|
+
|
|
310
|
+
If any Phase 4 specialist produced fixes (not just findings), run a lightweight re-review to catch regressions introduced by the specialist changes. Spawn `hatch3r-reviewer` with a focused prompt covering only the files modified by Phase 4 specialists. If the re-review finds Critical findings, spawn `hatch3r-fixer` and re-review once more (max 1 additional iteration). This prevents Phase 4 fixes from bypassing the review gate.
|
|
311
|
+
|
|
302
312
|
#### 4c. Verify Against Acceptance Criteria
|
|
303
313
|
|
|
304
314
|
Check each acceptance criterion from the original task or issue. Mark as met or not-met with evidence.
|
|
305
315
|
|
|
316
|
+
For each criterion, rate verification confidence: high (tested and confirmed via code, tests, or browser), medium (logically satisfied but not independently verified), low (uncertain, recommend human testing).
|
|
317
|
+
|
|
306
318
|
#### 4d. Present Review
|
|
307
319
|
|
|
308
320
|
```
|
|
@@ -313,6 +325,8 @@ Review Results:
|
|
|
313
325
|
Test Coverage: {test-writer results}
|
|
314
326
|
Documentation: {docs-writer results / not applicable}
|
|
315
327
|
Performance: {pass/issues}
|
|
328
|
+
Overall Confidence: {high/medium/low}
|
|
329
|
+
Lowest-confidence area: {description or "none"}
|
|
316
330
|
```
|
|
317
331
|
|
|
318
332
|
**ASK:** "Review complete. {summary}. Ready to finalize? (yes / address review issues / request human review)"
|