hatch3r 1.1.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 (146) hide show
  1. package/README.md +109 -364
  2. package/agents/hatch3r-a11y-auditor.md +8 -8
  3. package/agents/hatch3r-architect.md +2 -4
  4. package/agents/hatch3r-ci-watcher.md +2 -4
  5. package/agents/hatch3r-context-rules.md +2 -4
  6. package/agents/hatch3r-dependency-auditor.md +5 -7
  7. package/agents/hatch3r-devops.md +2 -4
  8. package/agents/hatch3r-docs-writer.md +2 -4
  9. package/agents/hatch3r-fixer.md +2 -0
  10. package/agents/hatch3r-implementer.md +32 -0
  11. package/agents/hatch3r-learnings-loader.md +189 -13
  12. package/agents/hatch3r-lint-fixer.md +3 -14
  13. package/agents/hatch3r-perf-profiler.md +2 -4
  14. package/agents/hatch3r-researcher.md +247 -0
  15. package/agents/hatch3r-reviewer.md +76 -7
  16. package/agents/hatch3r-security-auditor.md +4 -7
  17. package/agents/hatch3r-test-writer.md +3 -11
  18. package/agents/modes/architecture.md +44 -0
  19. package/agents/modes/boundary-analysis.md +45 -0
  20. package/agents/modes/codebase-impact.md +81 -0
  21. package/agents/modes/complexity-risk.md +40 -0
  22. package/agents/modes/coverage-analysis.md +44 -0
  23. package/agents/modes/current-state.md +52 -0
  24. package/agents/modes/feature-design.md +39 -0
  25. package/agents/modes/impact-analysis.md +45 -0
  26. package/agents/modes/library-docs.md +31 -0
  27. package/agents/modes/migration-path.md +55 -0
  28. package/agents/modes/prior-art.md +31 -0
  29. package/agents/modes/refactoring-strategy.md +55 -0
  30. package/agents/modes/regression.md +45 -0
  31. package/agents/modes/requirements-elicitation.md +68 -0
  32. package/agents/modes/risk-assessment.md +41 -0
  33. package/agents/modes/risk-prioritization.md +43 -0
  34. package/agents/modes/root-cause.md +39 -0
  35. package/agents/modes/similar-implementation.md +70 -0
  36. package/agents/modes/symptom-trace.md +39 -0
  37. package/agents/modes/test-pattern.md +61 -0
  38. package/agents/shared/external-knowledge.md +11 -0
  39. package/commands/board/pickup-azure-devops.md +81 -0
  40. package/commands/board/pickup-delegation-multi.md +197 -0
  41. package/commands/board/pickup-delegation.md +100 -0
  42. package/commands/board/pickup-github.md +82 -0
  43. package/commands/board/pickup-gitlab.md +81 -0
  44. package/commands/board/pickup-modes.md +143 -0
  45. package/commands/board/pickup-post-impl.md +120 -0
  46. package/commands/board/shared-azure-devops.md +149 -0
  47. package/commands/board/shared-board-overview.md +215 -0
  48. package/commands/board/shared-github.md +169 -0
  49. package/commands/board/shared-gitlab.md +142 -0
  50. package/commands/hatch3r-agent-customize.md +3 -2
  51. package/commands/hatch3r-api-spec.md +1 -0
  52. package/commands/hatch3r-benchmark.md +1 -0
  53. package/commands/hatch3r-board-fill.md +15 -16
  54. package/commands/hatch3r-board-groom.md +50 -10
  55. package/commands/hatch3r-board-init.md +1 -0
  56. package/commands/hatch3r-board-pickup.md +44 -572
  57. package/commands/hatch3r-board-refresh.md +31 -10
  58. package/commands/hatch3r-board-shared.md +87 -439
  59. package/commands/hatch3r-bug-plan.md +1 -0
  60. package/commands/hatch3r-codebase-map.md +1 -0
  61. package/commands/hatch3r-command-customize.md +1 -0
  62. package/commands/hatch3r-context-health.md +23 -2
  63. package/commands/hatch3r-cost-tracking.md +15 -0
  64. package/commands/hatch3r-debug.md +1 -0
  65. package/commands/hatch3r-dep-audit.md +2 -1
  66. package/commands/hatch3r-feature-plan.md +1 -0
  67. package/commands/hatch3r-healthcheck.md +2 -1
  68. package/commands/hatch3r-hooks.md +1 -0
  69. package/commands/hatch3r-learn.md +69 -2
  70. package/commands/hatch3r-migration-plan.md +1 -0
  71. package/commands/hatch3r-onboard.md +1 -0
  72. package/commands/hatch3r-project-spec.md +1 -0
  73. package/commands/hatch3r-quick-change.md +1 -0
  74. package/commands/hatch3r-recipe.md +1 -0
  75. package/commands/hatch3r-refactor-plan.md +1 -0
  76. package/commands/hatch3r-release.md +2 -1
  77. package/commands/hatch3r-revision.md +1 -0
  78. package/commands/hatch3r-roadmap.md +8 -1
  79. package/commands/hatch3r-rule-customize.md +1 -0
  80. package/commands/hatch3r-security-audit.md +2 -1
  81. package/commands/hatch3r-skill-customize.md +1 -0
  82. package/commands/hatch3r-test-plan.md +532 -0
  83. package/commands/hatch3r-workflow.md +1 -0
  84. package/dist/cli/index.js +4735 -1426
  85. package/dist/cli/index.js.map +1 -1
  86. package/github-agents/hatch3r-docs-agent.md +1 -0
  87. package/github-agents/hatch3r-lint-agent.md +1 -0
  88. package/github-agents/hatch3r-security-agent.md +1 -0
  89. package/github-agents/hatch3r-test-agent.md +1 -0
  90. package/hooks/hatch3r-ci-failure.md +1 -0
  91. package/hooks/hatch3r-file-save.md +1 -0
  92. package/hooks/hatch3r-post-merge.md +1 -0
  93. package/hooks/hatch3r-pre-commit.md +1 -0
  94. package/hooks/hatch3r-pre-push.md +1 -0
  95. package/hooks/hatch3r-session-start.md +1 -0
  96. package/package.json +2 -2
  97. package/prompts/hatch3r-bug-triage.md +1 -0
  98. package/prompts/hatch3r-code-review.md +1 -0
  99. package/prompts/hatch3r-pr-description.md +1 -0
  100. package/rules/hatch3r-accessibility-standards.md +1 -0
  101. package/rules/hatch3r-agent-orchestration.md +289 -73
  102. package/rules/hatch3r-api-design.md +1 -0
  103. package/rules/hatch3r-browser-verification.md +1 -0
  104. package/rules/hatch3r-ci-cd.md +1 -0
  105. package/rules/hatch3r-code-standards.md +9 -0
  106. package/rules/hatch3r-component-conventions.md +1 -0
  107. package/rules/hatch3r-data-classification.md +1 -0
  108. package/rules/hatch3r-deep-context.md +1 -0
  109. package/rules/hatch3r-dependency-management.md +13 -0
  110. package/rules/hatch3r-feature-flags.md +1 -0
  111. package/rules/hatch3r-git-conventions.md +1 -0
  112. package/rules/hatch3r-i18n.md +1 -0
  113. package/rules/hatch3r-learning-consult.md +1 -0
  114. package/rules/hatch3r-migrations.md +12 -0
  115. package/rules/hatch3r-observability.md +290 -0
  116. package/rules/hatch3r-performance-budgets.md +1 -0
  117. package/rules/hatch3r-secrets-management.md +1 -0
  118. package/rules/hatch3r-security-patterns.md +12 -0
  119. package/rules/hatch3r-testing.md +1 -0
  120. package/rules/hatch3r-theming.md +1 -0
  121. package/rules/hatch3r-tooling-hierarchy.md +1 -0
  122. package/skills/hatch3r-a11y-audit/SKILL.md +1 -0
  123. package/skills/hatch3r-agent-customize/SKILL.md +1 -0
  124. package/skills/hatch3r-api-spec/SKILL.md +1 -0
  125. package/skills/hatch3r-architecture-review/SKILL.md +1 -0
  126. package/skills/hatch3r-bug-fix/SKILL.md +1 -0
  127. package/skills/hatch3r-ci-pipeline/SKILL.md +1 -0
  128. package/skills/hatch3r-command-customize/SKILL.md +1 -0
  129. package/skills/hatch3r-context-health/SKILL.md +1 -0
  130. package/skills/hatch3r-cost-tracking/SKILL.md +1 -0
  131. package/skills/hatch3r-dep-audit/SKILL.md +2 -1
  132. package/skills/hatch3r-feature/SKILL.md +1 -0
  133. package/skills/hatch3r-gh-agentic-workflows/SKILL.md +1 -0
  134. package/skills/hatch3r-incident-response/SKILL.md +1 -0
  135. package/skills/hatch3r-issue-workflow/SKILL.md +1 -0
  136. package/skills/hatch3r-logical-refactor/SKILL.md +1 -0
  137. package/skills/hatch3r-migration/SKILL.md +1 -0
  138. package/skills/hatch3r-perf-audit/SKILL.md +1 -0
  139. package/skills/hatch3r-pr-creation/SKILL.md +1 -0
  140. package/skills/hatch3r-qa-validation/SKILL.md +1 -0
  141. package/skills/hatch3r-recipe/SKILL.md +1 -0
  142. package/skills/hatch3r-refactor/SKILL.md +1 -0
  143. package/skills/hatch3r-release/SKILL.md +1 -0
  144. package/skills/hatch3r-rule-customize/SKILL.md +1 -0
  145. package/skills/hatch3r-skill-customize/SKILL.md +1 -0
  146. package/skills/hatch3r-visual-refactor/SKILL.md +1 -0
@@ -2,6 +2,7 @@
2
2
  id: hatch3r-board-refresh
3
3
  type: command
4
4
  description: Regenerate the living board overview dashboard from current board state. Scans all open issues, computes health metrics, and updates the meta:board-overview issue.
5
+ tags: [board, team]
5
6
  ---
6
7
 
7
8
  ## Agent Pipeline
@@ -60,18 +61,21 @@ Execute these steps in order. **Do not skip any step.**
60
61
 
61
62
  Perform ONE comprehensive scan and cache everything for subsequent steps.
62
63
 
63
- #### 2a. Fetch Open Issues / Work Items
64
+ #### 2a. Fetch Open Issues / Work Items & PR Association
64
65
 
65
66
  **Platform-specific: Fetch all open items**
66
67
 
67
68
  **If platform is `github`:**
68
69
  1. Fetch ALL open issues: `gh issue list -R {owner}/{repo} --state open --limit 500 --json number,title,labels,state,createdAt,updatedAt,body`. Paginate if necessary. Fall back to `list_issues` MCP if gh CLI fails.
70
+ 2. Fetch ALL open PRs: `gh pr list -R {owner}/{repo} --state open --json number,title,body`. Build a PR-to-issue association map by parsing `Closes #N`, `Fixes #N`, and `Resolves #N` references from PR bodies. Cache as `pr_association_map`.
69
71
 
70
72
  **If platform is `azure-devops`:**
71
73
  1. Fetch ALL active work items: `az boards query --org https://dev.azure.com/{namespace} --project {project} --wiql "SELECT [System.Id], [System.Title], [System.State], [System.Tags], [System.CreatedDate], [System.ChangedDate], [System.Description] FROM WorkItems WHERE [System.State] <> 'Closed' AND [System.State] <> 'Removed'"`. Fall back to `list_work_items` MCP.
74
+ 2. Fetch ALL active PRs: `az repos pr list --org https://dev.azure.com/{namespace} --project {project} --status active`. Build PR-to-work-item association map from linked work items.
72
75
 
73
76
  **If platform is `gitlab`:**
74
77
  1. Fetch ALL open issues: `glab issue list -R {namespace}/{project} --state opened --per-page 100`. Paginate if necessary.
78
+ 2. Fetch ALL open MRs: `glab mr list -R {namespace}/{project} --state opened`. Build MR-to-issue association map from `Closes #N` references in MR descriptions.
75
79
 
76
80
  2. For each issue/work item, extract labels/tags from the response.
77
81
  3. Check for sub-issues/child work items:
@@ -135,7 +139,23 @@ Flag open issues that are potentially stale:
135
139
 
136
140
  #### 3e. Lane Computation & Dependency-Waiting Partition
137
141
 
138
- Compute Implementation Lanes and the Waiting on Dependencies list for all `status:ready` issues using the **Lane Computation Algorithm** from `hatch3r-board-shared`. Use the dependency graph built in Step 3c as input. The algorithm partitions ready issues into available (all blockers satisfied) and dependency-waiting (unsatisfied blockers), then computes lanes only from available issues.
142
+ Compute Implementation Lanes and the Waiting on Dependencies list for all `status:ready` issues using the **Lane Computation Algorithm** (steps 1-12) from `hatch3r-board-shared`. Use the dependency graph built in Step 3c as input. The algorithm partitions ready issues into available (all blockers satisfied) and dependency-waiting (unsatisfied blockers), computes lanes from available issues, then computes inter-lane dependency edges, lane phases, and the Lane Dependency Map (steps 10-12).
143
+
144
+ #### 3f. PR Linkage Gaps
145
+
146
+ Using the `pr_association_map` from Step 2a, identify `status:in-progress` and `status:in-review` issues that have no open PR referencing them. These represent active work with no visible code contribution and should be flagged in Board Health.
147
+
148
+ #### 3g. Unlinked Sub-Issue Detection
149
+
150
+ For each epic, compare the sub-issue references in the epic body (checklist items, `> Parent:` references) against the native sub-issue list from `issue_read` with `method: get_sub_issues`. Flag sub-issues that appear in the body but are not natively linked.
151
+
152
+ #### 3h. Board Sync Drift Detection
153
+
154
+ If `board.projectNumber` is configured, compare label-based status (`status:*` labels) against board column status via `gh project item-list {board.projectNumber} --owner {board.owner} --format json`. Flag issues where the label status and board column status diverge (e.g., label says `status:ready` but board shows "In Progress").
155
+
156
+ #### 3i. Dependency Format Inconsistencies
157
+
158
+ Scan all `## Dependencies` sections for `Depends on #N` references (legacy format). Flag these for normalization to `Blocked by #N` (canonical format per the Dependency Data Model in `hatch3r-board-shared`).
139
159
 
140
160
  ---
141
161
 
@@ -152,13 +172,14 @@ For each open issue, assign a recommended model using the **Model Selection Heur
152
172
  Assemble the dashboard using the **Board Overview Issue Format** template from `hatch3r-board-shared`. Populate it with:
153
173
 
154
174
  1. **Status Summary** from Step 3a counts.
155
- 2. **In Progress** and **In Review** from cached issues with the corresponding status labels.
156
- 3. **Implementation Lanes** from Step 3e lane computation results (available issues only).
175
+ 2. **In Progress** and **In Review** from cached issues with the corresponding status labels. Include the `PR` column using `pr_association_map` from Step 2a — show `#{pr_number}` if an open PR references the issue, `--` if none.
176
+ 3. **Implementation Lanes** from Step 3e lane computation results (available issues only). Include the Lane Dependency Map, phase annotations in lane headers, `> After:` prerequisite lines for Phase 2+ lanes, and Cross-Lane Dependencies table.
157
177
  4. **Cross-Epic Dependencies** from Step 3c cross-epic dependency scan (omit if none).
158
- 5. **Waiting on Dependencies** from Step 3e partition results (dependency-waiting issues: `status:ready` with unsatisfied hard blockers).
159
- 6. **Externally Blocked** from cached issues with `status:blocked`.
160
- 7. **Backlog / Triage** from cached issues with `status:triage`.
161
- 8. **Board Health** from Steps 3b (missing metadata), 3d (stale issues), 3c (blocked chains, epic ordering discrepancies).
178
+ 5. **Cross-Lane Dependencies** from Step 3e inter-lane edge computation (omit if none).
179
+ 6. **Waiting on Dependencies** from Step 3e partition results (dependency-waiting issues: `status:ready` with unsatisfied hard blockers).
180
+ 7. **Externally Blocked** from cached issues with `status:blocked`.
181
+ 8. **Backlog / Triage** from cached issues with `status:triage`.
182
+ 9. **Board Health** from Steps 3b (missing metadata), 3d (stale issues), 3c (blocked chains, epic ordering discrepancies), 3e (lane sequencing warnings), 3f (PR linkage gaps), 3g (unlinked sub-issues), 3h (board sync drift), 3i (dependency format inconsistencies).
162
183
 
163
184
  ---
164
185
 
@@ -222,8 +243,8 @@ Board Refresh Complete:
222
243
  Overview issue: #{number} (updated / created)
223
244
  Open issues: {total} ({epics} epics, {sub} sub-issues, {standalone} standalone)
224
245
  Status: {ready} ready ({available} available, {depWaiting} waiting on deps), {inProgress} in progress, {inReview} in review, {blocked} ext. blocked, {triage} triage
225
- Lanes: {laneCount} parallel lanes ({available} available issues)
226
- Health: {N} issues missing metadata, {M} stale, {K} blocked chains
246
+ Lanes: {laneCount} lanes across {phaseCount} phases ({available} available issues)
247
+ Health: {N} missing metadata, {M} stale, {K} blocked chains, {P} PR linkage gaps, {L} unlinked sub-issues, {D} sync drift, {F} dep format issues
227
248
  ```
228
249
 
229
250
  ---