hatch3r 1.8.0 → 2.0.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 +68 -178
- package/dist/cli/index.js +26966 -15942
- package/{agents → dist/content/agents}/hatch3r-architect.md +39 -9
- package/dist/content/agents/hatch3r-brownfield-spec.md +254 -0
- package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +10 -3
- package/{agents → dist/content/agents}/hatch3r-context-rules.md +24 -6
- package/{agents → dist/content/agents}/hatch3r-creator.md +78 -39
- package/dist/content/agents/hatch3r-dependency-drafter.md +162 -0
- package/{agents → dist/content/agents}/hatch3r-devops.md +14 -4
- package/{agents → dist/content/agents}/hatch3r-docs-writer.md +11 -1
- package/dist/content/agents/hatch3r-edge-case-analyst.md +134 -0
- package/dist/content/agents/hatch3r-enhancability.md +192 -0
- package/{agents → dist/content/agents}/hatch3r-fixer.md +61 -10
- package/dist/content/agents/hatch3r-greenfield-spec.md +256 -0
- package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +40 -14
- package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +17 -8
- package/dist/content/agents/hatch3r-implementer.md +409 -0
- package/dist/content/agents/hatch3r-incident-responder.md +96 -0
- package/dist/content/agents/hatch3r-learnings-loader.md +377 -0
- package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +16 -4
- package/dist/content/agents/hatch3r-maintainability.md +183 -0
- package/dist/content/agents/hatch3r-pack-installer.md +113 -0
- package/dist/content/agents/hatch3r-performance.md +179 -0
- package/dist/content/agents/hatch3r-reliability.md +193 -0
- package/{agents → dist/content/agents}/hatch3r-researcher.md +30 -7
- package/dist/content/agents/hatch3r-reviewer.md +364 -0
- package/dist/content/agents/hatch3r-scalability.md +162 -0
- package/dist/content/agents/hatch3r-security.md +197 -0
- package/dist/content/agents/hatch3r-testability.md +204 -0
- package/dist/content/agents/hatch3r-ui.md +175 -0
- package/dist/content/agents/hatch3r-ux.md +160 -0
- package/{agents → dist/content/agents}/modes/requirements-elicitation.md +1 -1
- package/{agents → dist/content/agents}/modes/user-flows.md +2 -2
- package/dist/content/agents/shared/clarification-default-block.md +44 -0
- package/dist/content/agents/shared/confidence-gate.md +42 -0
- package/dist/content/agents/shared/cq-specialist-roster.md +26 -0
- package/{agents → dist/content/agents}/shared/efficiency-patterns.md +32 -1
- package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
- package/{agents → dist/content/agents}/shared/injection-patterns.md +19 -8
- package/dist/content/agents/shared/principles.md +60 -0
- package/{agents → dist/content/agents}/shared/prompt-structure.md +7 -1
- package/{agents → dist/content/agents}/shared/quality-charter.md +73 -9
- package/dist/content/agents/shared/quality-specialist-frame.md +141 -0
- package/dist/content/agents/shared/rigor-contract.md +151 -0
- package/dist/content/agents/shared/severity-mapping.md +92 -0
- package/dist/content/agents/shared/triage-vocabulary.md +46 -0
- package/{agents → dist/content/agents}/shared/user-content-templates.md +40 -14
- package/dist/content/agents/shared/user-question-protocol.md +139 -0
- package/{checks → dist/content/checks}/README.md +5 -0
- package/{checks → dist/content/checks}/accessibility.md +14 -7
- package/{checks → dist/content/checks}/code-quality.md +1 -1
- package/{checks → dist/content/checks}/performance.md +7 -4
- package/{checks → dist/content/checks}/security.md +6 -6
- package/{checks → dist/content/checks}/testing.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +41 -14
- package/{commands → dist/content/commands}/board/pickup-delegation.md +10 -8
- package/{commands → dist/content/commands}/board/pickup-github.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-gitlab.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-modes.md +1 -0
- package/{commands → dist/content/commands}/board/pickup-post-impl.md +2 -2
- package/{commands → dist/content/commands}/board/shared-azure-devops.md +1 -1
- package/{commands → dist/content/commands}/board/shared-github.md +2 -2
- package/{commands → dist/content/commands}/board/shared-gitlab.md +1 -1
- package/{commands → dist/content/commands}/hatch3r-api-spec.md +80 -3
- package/dist/content/commands/hatch3r-auth-scaffold.md +250 -0
- package/{commands → dist/content/commands}/hatch3r-benchmark.md +91 -8
- package/{commands → dist/content/commands}/hatch3r-board-fill.md +104 -18
- package/{commands → dist/content/commands}/hatch3r-board-pickup.md +99 -15
- package/dist/content/commands/hatch3r-bug-pipeline.md +240 -0
- package/{commands → dist/content/commands}/hatch3r-bug-plan.md +84 -8
- package/{commands → dist/content/commands}/hatch3r-codebase-map.md +82 -6
- package/{commands → dist/content/commands}/hatch3r-create.md +116 -18
- package/{commands → dist/content/commands}/hatch3r-debug.md +112 -24
- package/dist/content/commands/hatch3r-diagnose.md +238 -0
- package/{commands → dist/content/commands}/hatch3r-feature-plan.md +130 -10
- package/dist/content/commands/hatch3r-handoff.md +213 -0
- package/{commands → dist/content/commands}/hatch3r-healthcheck.md +106 -6
- package/dist/content/commands/hatch3r-incident-response.md +228 -0
- package/{commands → dist/content/commands}/hatch3r-migration-plan.md +81 -5
- package/{commands → dist/content/commands}/hatch3r-onboard.md +100 -9
- package/dist/content/commands/hatch3r-pack-install.md +243 -0
- package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +114 -31
- package/{commands → dist/content/commands}/hatch3r-project-spec.md +85 -9
- package/{commands → dist/content/commands}/hatch3r-quick-change.md +115 -20
- package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +82 -6
- package/dist/content/commands/hatch3r-release.md +401 -0
- package/{commands → dist/content/commands}/hatch3r-revision.md +104 -18
- package/{commands → dist/content/commands}/hatch3r-roadmap.md +94 -12
- package/{commands → dist/content/commands}/hatch3r-security-audit.md +107 -7
- package/dist/content/commands/hatch3r-slo-scaffold.md +246 -0
- package/dist/content/commands/hatch3r-spec.md +216 -0
- package/{commands → dist/content/commands}/hatch3r-test-plan.md +90 -14
- package/dist/content/commands/hatch3r-workflow.md +628 -0
- package/{commands → dist/content/commands}/revision/revision-delegation.md +8 -7
- package/{commands → dist/content/commands}/revision/revision-modes.md +49 -4
- package/{commands → dist/content/commands}/revision/revision-quality.md +12 -9
- package/dist/content/commands/shared/orchestration-frame.md +119 -0
- package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +22 -2
- package/dist/content/github-agents/hatch3r-lint-agent.md +66 -0
- package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +22 -2
- package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +22 -2
- package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-file-save.md +4 -4
- package/{hooks → dist/content/hooks}/hatch3r-post-merge.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-pre-commit.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-pre-push.md +7 -7
- package/dist/content/hooks/hatch3r-review-loop-cap.md +52 -0
- package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
- package/{mcp → dist/content/mcp}/mcp.json +7 -5
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +16 -3
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +13 -1
- package/dist/content/rules/hatch3r-agent-orchestration-detail.md +250 -0
- package/dist/content/rules/hatch3r-agent-orchestration-detail.mdc +245 -0
- package/dist/content/rules/hatch3r-agent-orchestration.md +250 -0
- package/dist/content/rules/hatch3r-agent-orchestration.mdc +245 -0
- package/{rules → dist/content/rules}/hatch3r-ai-evals.md +7 -5
- package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +5 -4
- package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +7 -3
- package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +4 -1
- package/dist/content/rules/hatch3r-android-patterns.md +107 -0
- package/dist/content/rules/hatch3r-android-patterns.mdc +102 -0
- package/dist/content/rules/hatch3r-anti-duplication.md +115 -0
- package/dist/content/rules/hatch3r-anti-duplication.mdc +115 -0
- package/{rules → dist/content/rules}/hatch3r-api-design.md +5 -1
- package/{rules → dist/content/rules}/hatch3r-api-design.mdc +3 -0
- package/{rules → dist/content/rules}/hatch3r-api-versioning.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +5 -2
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +2 -0
- package/{rules → dist/content/rules}/hatch3r-browser-verification.md +8 -10
- package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +8 -10
- package/dist/content/rules/hatch3r-capability-matrix.md +108 -0
- package/dist/content/rules/hatch3r-capability-matrix.mdc +108 -0
- package/{rules → dist/content/rules}/hatch3r-ci-cd.md +9 -1
- package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +7 -0
- package/dist/content/rules/hatch3r-clarification-default.md +73 -0
- package/dist/content/rules/hatch3r-clarification-default.mdc +73 -0
- package/{rules → dist/content/rules}/hatch3r-code-standards.md +23 -47
- package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +22 -46
- package/{rules → dist/content/rules}/hatch3r-component-conventions.md +4 -1
- package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +3 -0
- package/{rules → dist/content/rules}/hatch3r-container-hardening.md +13 -3
- package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +10 -1
- package/{rules → dist/content/rules}/hatch3r-contract-testing.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
- package/dist/content/rules/hatch3r-cost-visibility.md +135 -0
- package/dist/content/rules/hatch3r-cost-visibility.mdc +135 -0
- package/dist/content/rules/hatch3r-cq-rule-frame.md +54 -0
- package/dist/content/rules/hatch3r-cq-rule-frame.mdc +49 -0
- package/{rules → dist/content/rules}/hatch3r-data-classification.md +5 -2
- package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +3 -1
- package/{rules → dist/content/rules}/hatch3r-deep-context.md +14 -14
- package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +13 -13
- package/{rules → dist/content/rules}/hatch3r-dependency-management.md +18 -4
- package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +16 -3
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +4 -2
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
- package/dist/content/rules/hatch3r-dotnet-patterns.md +104 -0
- package/dist/content/rules/hatch3r-dotnet-patterns.mdc +99 -0
- package/dist/content/rules/hatch3r-edge-case-discipline.md +65 -0
- package/dist/content/rules/hatch3r-edge-case-discipline.mdc +65 -0
- package/dist/content/rules/hatch3r-enhancability.md +147 -0
- package/dist/content/rules/hatch3r-enhancability.mdc +142 -0
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
- package/dist/content/rules/hatch3r-fan-out-discipline.md +91 -0
- package/dist/content/rules/hatch3r-fan-out-discipline.mdc +91 -0
- package/{rules → dist/content/rules}/hatch3r-feature-flags.md +2 -0
- package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +2 -0
- package/dist/content/rules/hatch3r-flutter-patterns.md +88 -0
- package/dist/content/rules/hatch3r-flutter-patterns.mdc +83 -0
- package/{rules → dist/content/rules}/hatch3r-git-conventions.md +5 -2
- package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +2 -0
- package/dist/content/rules/hatch3r-go-patterns.md +98 -0
- package/dist/content/rules/hatch3r-go-patterns.mdc +93 -0
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +14 -4
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +13 -3
- package/{rules → dist/content/rules}/hatch3r-i18n.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-i18n.mdc +2 -0
- package/dist/content/rules/hatch3r-iteration-summary.md +108 -0
- package/dist/content/rules/hatch3r-iteration-summary.mdc +108 -0
- package/dist/content/rules/hatch3r-learning-system.md +202 -0
- package/dist/content/rules/hatch3r-learning-system.mdc +202 -0
- package/dist/content/rules/hatch3r-maintainability.md +157 -0
- package/dist/content/rules/hatch3r-maintainability.mdc +152 -0
- package/{rules → dist/content/rules}/hatch3r-migrations.md +4 -2
- package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-logging.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-tracing.md +46 -36
- package/{rules → dist/content/rules}/hatch3r-observability-tracing.mdc +45 -35
- package/{rules → dist/content/rules}/hatch3r-operability.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-passkey-server.md +4 -2
- package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +3 -1
- package/dist/content/rules/hatch3r-php-laravel-patterns.md +109 -0
- package/dist/content/rules/hatch3r-php-laravel-patterns.mdc +104 -0
- package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +5 -1
- package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +3 -0
- package/dist/content/rules/hatch3r-proof-model.md +131 -0
- package/dist/content/rules/hatch3r-proof-model.mdc +131 -0
- package/dist/content/rules/hatch3r-python-patterns.md +70 -0
- package/dist/content/rules/hatch3r-python-patterns.mdc +65 -0
- package/dist/content/rules/hatch3r-react-native-patterns.md +83 -0
- package/dist/content/rules/hatch3r-react-native-patterns.mdc +78 -0
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
- package/dist/content/rules/hatch3r-reviewer-calibration.md +84 -0
- package/dist/content/rules/hatch3r-reviewer-calibration.mdc +84 -0
- package/dist/content/rules/hatch3r-right-sizing.md +68 -0
- package/dist/content/rules/hatch3r-right-sizing.mdc +66 -0
- package/dist/content/rules/hatch3r-ruby-rails-patterns.md +111 -0
- package/dist/content/rules/hatch3r-ruby-rails-patterns.mdc +106 -0
- package/dist/content/rules/hatch3r-rust-patterns.md +107 -0
- package/dist/content/rules/hatch3r-rust-patterns.mdc +102 -0
- package/dist/content/rules/hatch3r-scalability.md +137 -0
- package/dist/content/rules/hatch3r-scalability.mdc +132 -0
- package/{rules → dist/content/rules}/hatch3r-secrets-management.md +12 -2
- package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +9 -0
- package/{rules → dist/content/rules}/hatch3r-security-patterns.md +38 -35
- package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +36 -34
- package/dist/content/rules/hatch3r-security.md +97 -0
- package/dist/content/rules/hatch3r-security.mdc +92 -0
- package/dist/content/rules/hatch3r-swiftui-patterns.md +98 -0
- package/dist/content/rules/hatch3r-swiftui-patterns.mdc +93 -0
- package/dist/content/rules/hatch3r-testability.md +115 -0
- package/dist/content/rules/hatch3r-testability.mdc +110 -0
- package/{rules → dist/content/rules}/hatch3r-testing.md +6 -2
- package/{rules → dist/content/rules}/hatch3r-testing.mdc +3 -0
- package/{rules → dist/content/rules}/hatch3r-theming.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-theming.mdc +2 -0
- package/dist/content/rules/hatch3r-tool-currency.md +91 -0
- package/dist/content/rules/hatch3r-tool-currency.mdc +86 -0
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +30 -32
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +28 -31
- package/dist/content/rules/hatch3r-typescript-patterns.md +58 -0
- package/dist/content/rules/hatch3r-typescript-patterns.mdc +53 -0
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +13 -5
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +10 -3
- package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +11 -9
- package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +7 -5
- package/dist/content/skills/hatch3r-adhoc-orchestrate/SKILL.md +131 -0
- package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +4 -6
- package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +27 -2
- package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +5 -8
- package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +16 -18
- package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +34 -31
- package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +17 -19
- package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +45 -15
- package/dist/content/skills/hatch3r-browser-verify/SKILL.md +307 -0
- package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +16 -3
- package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +17 -7
- package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +34 -2
- package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +34 -2
- package/dist/content/skills/hatch3r-cli-gh/SKILL.md +139 -0
- package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +43 -9
- package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +36 -4
- package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +376 -0
- package/dist/content/skills/hatch3r-containerize/SKILL.md +157 -0
- package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +27 -9
- package/dist/content/skills/hatch3r-cost-tracking/SKILL.md +164 -0
- package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +9 -13
- package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +29 -9
- package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +4 -8
- package/dist/content/skills/hatch3r-docs-writing/SKILL.md +159 -0
- package/dist/content/skills/hatch3r-enhancability-verify/SKILL.md +152 -0
- package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +54 -4
- package/dist/content/skills/hatch3r-feedback/SKILL.md +103 -0
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +14 -12
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/azure-devops.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/references/gitlab-ci.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-handoff-prepare/SKILL.md +12 -15
- package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +5 -8
- package/{commands/hatch3r-hooks.md → dist/content/skills/hatch3r-hooks/SKILL.md} +59 -148
- package/dist/content/skills/hatch3r-incident-response/SKILL.md +174 -0
- package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +15 -4
- package/dist/content/skills/hatch3r-learn/SKILL.md +317 -0
- package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +6 -7
- package/dist/content/skills/hatch3r-maintainability-verify/SKILL.md +146 -0
- package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +9 -8
- package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +17 -13
- package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +14 -10
- package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +8 -11
- package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +8 -7
- package/dist/content/skills/hatch3r-recipe/SKILL.md +174 -0
- package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +7 -8
- package/dist/content/skills/hatch3r-release/SKILL.md +265 -0
- package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +9 -5
- package/{commands/hatch3r-report.md → dist/content/skills/hatch3r-report/SKILL.md} +21 -18
- package/dist/content/skills/hatch3r-scalability-verify/SKILL.md +145 -0
- package/dist/content/skills/hatch3r-security-verify/SKILL.md +144 -0
- package/dist/content/skills/hatch3r-team-convention-author/SKILL.md +126 -0
- package/dist/content/skills/hatch3r-testability-verify/SKILL.md +147 -0
- package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +20 -12
- package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +12 -8
- package/package.json +53 -46
- package/agents/hatch3r-a11y-auditor.md +0 -159
- package/agents/hatch3r-dependency-auditor.md +0 -219
- package/agents/hatch3r-implementer.md +0 -278
- package/agents/hatch3r-learnings-loader.md +0 -343
- package/agents/hatch3r-perf-profiler.md +0 -166
- package/agents/hatch3r-reviewer.md +0 -314
- package/agents/hatch3r-security-auditor.md +0 -180
- package/agents/hatch3r-test-writer.md +0 -171
- package/agents/shared/user-question-protocol.md +0 -95
- package/commands/hatch3r-agent-customize.md +0 -201
- package/commands/hatch3r-command-customize.md +0 -113
- package/commands/hatch3r-context-health.md +0 -147
- package/commands/hatch3r-cost-tracking.md +0 -163
- package/commands/hatch3r-dep-audit.md +0 -188
- package/commands/hatch3r-handoff.md +0 -133
- package/commands/hatch3r-learn.md +0 -312
- package/commands/hatch3r-recipe.md +0 -194
- package/commands/hatch3r-release.md +0 -350
- package/commands/hatch3r-rule-customize.md +0 -133
- package/commands/hatch3r-skill-customize.md +0 -112
- package/commands/hatch3r-workflow.md +0 -504
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js.map +0 -1
- package/github-agents/hatch3r-lint-agent.md +0 -46
- package/prompts/hatch3r-bug-triage.md +0 -158
- package/prompts/hatch3r-code-review.md +0 -134
- package/prompts/hatch3r-pr-description.md +0 -176
- package/rules/hatch3r-agent-orchestration-detail.md +0 -211
- package/rules/hatch3r-agent-orchestration-detail.mdc +0 -206
- package/rules/hatch3r-agent-orchestration.md +0 -376
- package/rules/hatch3r-agent-orchestration.mdc +0 -371
- package/rules/hatch3r-iteration-summary.md +0 -90
- package/rules/hatch3r-iteration-summary.mdc +0 -85
- package/rules/hatch3r-learning-consult.md +0 -42
- package/rules/hatch3r-learning-consult.mdc +0 -38
- package/rules/hatch3r-observability-tracing-detail.md +0 -20
- package/rules/hatch3r-observability-tracing-detail.mdc +0 -14
- package/rules/hatch3r-observability.md +0 -20
- package/rules/hatch3r-observability.mdc +0 -14
- package/skills/hatch3r-agent-customize/SKILL.md +0 -23
- package/skills/hatch3r-cli-aichat/SKILL.md +0 -84
- package/skills/hatch3r-cli-ast-grep/SKILL.md +0 -85
- package/skills/hatch3r-cli-az-devops/SKILL.md +0 -89
- package/skills/hatch3r-cli-bat/SKILL.md +0 -85
- package/skills/hatch3r-cli-comby/SKILL.md +0 -85
- package/skills/hatch3r-cli-csvkit/SKILL.md +0 -84
- package/skills/hatch3r-cli-delta/SKILL.md +0 -86
- package/skills/hatch3r-cli-difftastic/SKILL.md +0 -84
- package/skills/hatch3r-cli-docker/SKILL.md +0 -89
- package/skills/hatch3r-cli-duckdb/SKILL.md +0 -84
- package/skills/hatch3r-cli-gh/SKILL.md +0 -90
- package/skills/hatch3r-cli-glab/SKILL.md +0 -89
- package/skills/hatch3r-cli-lazygit/SKILL.md +0 -78
- package/skills/hatch3r-cli-llm/SKILL.md +0 -84
- package/skills/hatch3r-cli-miller/SKILL.md +0 -84
- package/skills/hatch3r-cli-mods/SKILL.md +0 -84
- package/skills/hatch3r-cli-overview/SKILL.md +0 -60
- package/skills/hatch3r-cli-playwright/SKILL.md +0 -89
- package/skills/hatch3r-cli-podman/SKILL.md +0 -84
- package/skills/hatch3r-cli-qsv/SKILL.md +0 -91
- package/skills/hatch3r-cli-rtk/SKILL.md +0 -91
- package/skills/hatch3r-cli-sd/SKILL.md +0 -85
- package/skills/hatch3r-cli-stagehand/SKILL.md +0 -111
- package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
- package/skills/hatch3r-cli-yq/SKILL.md +0 -85
- package/skills/hatch3r-cli-zstd/SKILL.md +0 -85
- package/skills/hatch3r-command-customize/SKILL.md +0 -23
- package/skills/hatch3r-cost-tracking/SKILL.md +0 -92
- package/skills/hatch3r-incident-response/SKILL.md +0 -115
- package/skills/hatch3r-recipe/SKILL.md +0 -91
- package/skills/hatch3r-release/SKILL.md +0 -120
- package/skills/hatch3r-rule-customize/SKILL.md +0 -23
- package/skills/hatch3r-skill-customize/SKILL.md +0 -23
- /package/{agents → dist/content/agents}/modes/architecture.md +0 -0
- /package/{agents → dist/content/agents}/modes/boundary-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/codebase-impact.md +0 -0
- /package/{agents → dist/content/agents}/modes/complexity-risk.md +0 -0
- /package/{agents → dist/content/agents}/modes/coverage-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/current-state.md +0 -0
- /package/{agents → dist/content/agents}/modes/feature-design.md +0 -0
- /package/{agents → dist/content/agents}/modes/impact-analysis.md +0 -0
- /package/{agents → dist/content/agents}/modes/library-docs.md +0 -0
- /package/{agents → dist/content/agents}/modes/migration-path.md +0 -0
- /package/{agents → dist/content/agents}/modes/prior-art.md +0 -0
- /package/{agents → dist/content/agents}/modes/refactoring-strategy.md +0 -0
- /package/{agents → dist/content/agents}/modes/regression.md +0 -0
- /package/{agents → dist/content/agents}/modes/risk-assessment.md +0 -0
- /package/{agents → dist/content/agents}/modes/risk-prioritization.md +0 -0
- /package/{agents → dist/content/agents}/modes/root-cause.md +0 -0
- /package/{agents → dist/content/agents}/modes/similar-implementation.md +0 -0
- /package/{agents → dist/content/agents}/modes/symptom-trace.md +0 -0
- /package/{agents → dist/content/agents}/modes/test-pattern.md +0 -0
- /package/{commands → dist/content/commands}/board/shared-board-overview.md +0 -0
- /package/{commands → dist/content/commands}/revision/revision-board-integration.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
|
@@ -1,504 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: hatch3r-workflow
|
|
3
|
-
type: command
|
|
4
|
-
orchestrator: true
|
|
5
|
-
agentPipeline: [hatch3r-researcher, hatch3r-implementer, hatch3r-reviewer, hatch3r-fixer, hatch3r-test-writer, hatch3r-security-auditor, hatch3r-docs-writer, hatch3r-lint-fixer, hatch3r-a11y-auditor, hatch3r-perf-profiler]
|
|
6
|
-
description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
|
|
7
|
-
tags: [core, implementation]
|
|
8
|
-
quality_charter: agents/shared/quality-charter.md
|
|
9
|
-
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
-
cache_friendly: true
|
|
11
|
-
parallel_tool_default: true
|
|
12
|
-
triage_tiers: [1, 2, 3]
|
|
13
|
-
sub_agents_spawned:
|
|
14
|
-
count: 10
|
|
15
|
-
rationale: Full 4-phase delivery pipeline — researcher (Phase 1), implementer (one per independent module, Phase 3), reviewer ↔ fixer review loop (Phase 4a), then a parallel Phase-4b final-quality batch (test-writer, security-auditor, docs-writer, lint-fixer, a11y-auditor, perf-profiler) bounded by max_phase4_parallel.
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## §0 Detect Ambiguity (P8 B1)
|
|
19
|
-
|
|
20
|
-
Before any action, scan the user's request and provided context for unresolved questions in scope, acceptance criteria, irreversibility, or constraint conflicts (contradictory inputs, missing target, unknown convention). If any are found, ask the user via the platform-native question tool per `agents/shared/user-question-protocol.md` — do not proceed under silent assumption. This is the default path, not an exception. Acceptable to proceed without asking ONLY when scope is single-target, single-concern, and the brief alone is testable. Any residual ambiguity discovered mid-workflow invokes the same protocol.
|
|
21
|
-
|
|
22
|
-
# Development Workflow -- Guided Lifecycle for Structured Implementation
|
|
23
|
-
|
|
24
|
-
Optional guided development lifecycle command that walks through structured phases — Analyze, Plan, Implement, Review — using hatch3r's existing agents and skills. Includes a Quick Mode that collapses phases for small tasks. Scale-adaptive: detects task complexity and recommends the appropriate mode. Works standalone or when invoked from `hatch3r-board-pickup`.
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Agent Pipeline
|
|
29
|
-
|
|
30
|
-
| Stage | Agent(s) | Parallel | Required |
|
|
31
|
-
|-------|----------|----------|----------|
|
|
32
|
-
| 1. Research | `hatch3r-researcher` (modes by task type) | Per focus area | Yes (skip for trivial edits) |
|
|
33
|
-
| 2. Implementation | `hatch3r-implementer` (one per module) | Yes (independent modules) | Yes |
|
|
34
|
-
| 3a. Review Loop | `hatch3r-reviewer` -> `hatch3r-fixer` (max 3 iterations until clean) | No (sequential loop) | Yes |
|
|
35
|
-
| 3b. Final Quality — Testing | `hatch3r-test-writer` | Yes | Yes (code changes) |
|
|
36
|
-
| 3c. Final Quality — Security | `hatch3r-security-auditor` | Yes | Yes (code changes) |
|
|
37
|
-
| 3d. Final Quality — Docs | `hatch3r-docs-writer` | Yes | When APIs/architecture/UX affected |
|
|
38
|
-
| 3e. Final Quality — Conditional | `hatch3r-lint-fixer`, `hatch3r-a11y-auditor`, `hatch3r-perf-profiler` | Yes | When triggered |
|
|
39
|
-
|
|
40
|
-
## Browser Automation
|
|
41
|
-
|
|
42
|
-
At the start of this command, ask the user once:
|
|
43
|
-
|
|
44
|
-
> "Would you like to enable browser verification for this session? This uses Playwright to test changes in the running application."
|
|
45
|
-
|
|
46
|
-
If **yes**: implementation (Phase 3) and review (Phase 4) stages include browser verification steps — navigate to affected pages, interact with changed elements, check console for errors, capture screenshots.
|
|
47
|
-
|
|
48
|
-
If **no**: all browser verification steps are skipped silently throughout the entire command.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Shared Context
|
|
53
|
-
|
|
54
|
-
**Read the `hatch3r-board-shared` command at the start of the run.** It contains Board Configuration, GitHub Context, Project Reference, Projects v2 sync procedure, and tooling directives. Cache all values for the duration of this run.
|
|
55
|
-
|
|
56
|
-
## Global Rule Overrides
|
|
57
|
-
|
|
58
|
-
- **Git commands are fully permitted** during Phase 3 (Implement), including `git add`, `git commit`, and `git push`. This override applies to delegated skills and sub-agents invoked during implementation.
|
|
59
|
-
|
|
60
|
-
## Token-Saving Directives
|
|
61
|
-
|
|
62
|
-
Follow the **Token-Saving Directives** in `hatch3r-board-shared`.
|
|
63
|
-
|
|
64
|
-
## Confidence Propagation Contract
|
|
65
|
-
|
|
66
|
-
Every sub-agent delegation prompt in this command MUST include the confidence expression requirement below (verbatim). Sub-agents are invoked with the `quality_charter: agents/shared/quality-charter.md` reference in their frontmatter, but the orchestrator repeats the directive to override runtime prompt defaults per the charter §1 rule.
|
|
67
|
-
|
|
68
|
-
> 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.
|
|
69
|
-
|
|
70
|
-
Downstream propagation: every ASK checkpoint that reports verification quality, every gate that evaluates a sub-agent verdict, and every output block that surfaces merge-readiness MUST carry a high/medium/low confidence rating sourced from the upstream sub-agent. Dropping the signal between stages is a gate failure.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Triage
|
|
75
|
-
|
|
76
|
-
Classify the development task before delegating. Detailed mode classification runs in Step 0 (Triage / Scale-Adaptive Mode Selection); this section summarizes the routing:
|
|
77
|
-
|
|
78
|
-
- **Tier 1 (trivial)**: single-line edit, typo, or trivial config change; Quick Mode skips most ASK checkpoints and runs the streamlined 3-step path.
|
|
79
|
-
- **Tier 2 (standard)**: bug fix or small feature in 1–3 files; Quick Mode with full sub-agent delegation (researcher, implementer, reviewer, fixer, test-writer, security-auditor).
|
|
80
|
-
- **Tier 3 (deep)**: multi-module feature, architectural change, or cross-cutting refactor; Full Mode with all 4 phases (Analyze, Plan, Implement, Review) and deep research before mutating files.
|
|
81
|
-
|
|
82
|
-
If Tier 1, take Quick Mode with reduced sub-agent prompts. If Tier 2, take Quick Mode below. If Tier 3, switch to Full Mode and confirm the plan with the user before implementation.
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
|
-
## Workflow
|
|
87
|
-
|
|
88
|
-
Execute these steps in order. **Do not skip any step.** Ask the user at every checkpoint marked with ASK. For every ASK checkpoint, use the platform-native question tool per `agents/shared/user-question-protocol.md`.
|
|
89
|
-
|
|
90
|
-
### Step 0: Triage (Scale-Adaptive Mode Selection)
|
|
91
|
-
|
|
92
|
-
Assess the task to recommend a mode.
|
|
93
|
-
|
|
94
|
-
#### Complexity Signals for Full Mode
|
|
95
|
-
|
|
96
|
-
- Multiple files or modules affected
|
|
97
|
-
- Architectural decisions needed
|
|
98
|
-
- New dependencies or integrations
|
|
99
|
-
- Security-sensitive changes
|
|
100
|
-
- Cross-cutting concerns (database schema, API contracts, event schemas)
|
|
101
|
-
- Estimated effort > 1 day
|
|
102
|
-
- Task is an epic or has sub-issues
|
|
103
|
-
|
|
104
|
-
#### Complexity Signals for Quick Mode
|
|
105
|
-
|
|
106
|
-
- Single file change
|
|
107
|
-
- Bug fix with clear reproduction
|
|
108
|
-
- Small refactor (rename, extract function)
|
|
109
|
-
- Documentation update
|
|
110
|
-
- Test addition for existing code
|
|
111
|
-
- Estimated effort < 2 hours
|
|
112
|
-
|
|
113
|
-
#### Assessment
|
|
114
|
-
|
|
115
|
-
Evaluate the task against both signal sets. Count matching signals to determine recommendation.
|
|
116
|
-
|
|
117
|
-
**ASK:** "Task: {user's task description}. Complexity assessment: {assessment}. Recommended mode: {Full/Quick}. Proceed with {recommended}? (yes / switch to {other} / let me decide per phase)"
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Full Mode
|
|
122
|
-
|
|
123
|
-
### Phase 1: Analyze
|
|
124
|
-
|
|
125
|
-
**Goal:** Fully understand the task, its context, and constraints before writing any code.
|
|
126
|
-
|
|
127
|
-
#### 1a. Parse the Task
|
|
128
|
-
|
|
129
|
-
- **GitHub issue:** Read issue body, acceptance criteria, labels, parent epic context using `gh issue view` (fall back to `issue_read` MCP).
|
|
130
|
-
- **User description:** Extract requirements, scope, constraints from the provided description.
|
|
131
|
-
- **Board-pickup invocation:** Use the issue context already gathered by board-pickup. Skip re-fetching.
|
|
132
|
-
|
|
133
|
-
#### 1b. Complexity Scoring and Deep Context
|
|
134
|
-
|
|
135
|
-
Score the task's complexity per the `hatch3r-deep-context` rule to determine the analysis tier (Light / Standard / Deep). This determines which additional researcher modes run in Step 3a alongside the standard task-type modes.
|
|
136
|
-
|
|
137
|
-
For **Tier 2 and Tier 3** tasks, spawn the tier-appropriate researcher modes now (in parallel with context loading):
|
|
138
|
-
|
|
139
|
-
- **Tier 2**: `requirements-elicitation` at `quick` depth + `similar-implementation` at `quick` depth
|
|
140
|
-
- **Tier 3**: `requirements-elicitation` at `deep` depth + `similar-implementation` at `deep` depth + `codebase-impact` at `deep` depth (with transitive tracing)
|
|
141
|
-
|
|
142
|
-
Cache the researcher outputs for use in Phase 2 and Phase 3.
|
|
143
|
-
|
|
144
|
-
#### 1c. Load Relevant Context
|
|
145
|
-
|
|
146
|
-
1. Read project specs from `docs/specs/` — headers first (~30 lines), expand relevant sections only.
|
|
147
|
-
2. Read ADRs that might constrain the approach.
|
|
148
|
-
3. Scan existing code in the affected area using targeted file reads and searches.
|
|
149
|
-
4. Use **Context7 MCP** (`resolve-library-id` then `query-docs`) for external library documentation referenced by the task.
|
|
150
|
-
5. Use **web research** for current best practices, security advisories, or novel problems not covered by local docs or Context7.
|
|
151
|
-
|
|
152
|
-
#### 1d. Consult Learnings
|
|
153
|
-
|
|
154
|
-
If `.agents/learnings/` exists:
|
|
155
|
-
|
|
156
|
-
1. Search for learnings tagged with relevant areas or technologies.
|
|
157
|
-
2. Surface any applicable past experiences that inform this task.
|
|
158
|
-
|
|
159
|
-
#### 1e. Present Analysis
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
Task Analysis:
|
|
163
|
-
Complexity: Tier {1/2/3} ({Light/Standard/Deep}) — score {N}
|
|
164
|
-
Scope: {what's in / what's out}
|
|
165
|
-
Affected files: {list}
|
|
166
|
-
Blast radius: {N direct + M transitive files at risk} (Tier 3 only)
|
|
167
|
-
Similar implementations found: {reference names} (Tier 2/3 only)
|
|
168
|
-
Constraints: {from specs, ADRs}
|
|
169
|
-
Relevant learnings: {if any}
|
|
170
|
-
Open questions: {if any — including unresolved requirements-elicitation questions}
|
|
171
|
-
Cross-cutting concerns: {list with addressed/unaddressed status} (Tier 2/3 only)
|
|
172
|
-
Risk: {low/med/high}
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
**For Tier 2:** Present the `requirements-elicitation` questions inline and await answers before proceeding.
|
|
176
|
-
|
|
177
|
-
**For Tier 3:** Present a full Pre-Implementation Summary per the `hatch3r-deep-context` rule. Do NOT proceed until all unresolved questions are answered.
|
|
178
|
-
|
|
179
|
-
**ASK:** "Analysis complete. {Unresolved questions list, if any}. Proceed to Plan phase? (yes / clarify questions first / adjust scope)"
|
|
180
|
-
|
|
181
|
-
---
|
|
182
|
-
|
|
183
|
-
### Phase 2: Plan
|
|
184
|
-
|
|
185
|
-
**Goal:** Design the solution before implementing.
|
|
186
|
-
|
|
187
|
-
**Research-completeness directive (P8 B2).** If the Plan phase discovers unknowns not covered by Phase 1 research, spawn additional researcher modes before Phase 3 (Implementation). Do not defer research unknowns to implementation time. Spawning more researcher sub-agents is cheaper than discovered rework.
|
|
188
|
-
|
|
189
|
-
#### 2a. Draft Implementation Plan
|
|
190
|
-
|
|
191
|
-
1. List all files to create or modify.
|
|
192
|
-
2. For each file: describe the specific changes.
|
|
193
|
-
3. Identify test requirements (unit, integration, e2e).
|
|
194
|
-
4. Note any dependency changes needed.
|
|
195
|
-
5. Consider rollback strategy for risky changes.
|
|
196
|
-
6. **Convention alignment** (Tier 2/3 only): If `similar-implementation` output is available from Phase 1, specify which reference implementation's conventions the plan follows for file structure, state management, error handling, data fetching, and testing. Note planned divergences with justification.
|
|
197
|
-
|
|
198
|
-
#### 2b. Select hatch3r Agents and Skills
|
|
199
|
-
|
|
200
|
-
Map the task type to the appropriate skill:
|
|
201
|
-
|
|
202
|
-
| Task Type | Skill |
|
|
203
|
-
| ---------------- | ------------------------------ |
|
|
204
|
-
| Bug report | hatch3r-bug-fix |
|
|
205
|
-
| Feature request | hatch3r-feature |
|
|
206
|
-
| Code refactor | hatch3r-refactor |
|
|
207
|
-
| Logical refactor | hatch3r-logical-refactor |
|
|
208
|
-
| Visual refactor | hatch3r-visual-refactor |
|
|
209
|
-
| QA validation | hatch3r-qa-validation |
|
|
210
|
-
|
|
211
|
-
Identify supporting agents needed: test-writer, docs-writer, reviewer, security-auditor.
|
|
212
|
-
|
|
213
|
-
#### 2c. Identify Risks
|
|
214
|
-
|
|
215
|
-
- Breaking changes? Migration needed?
|
|
216
|
-
- Performance implications?
|
|
217
|
-
- Security implications?
|
|
218
|
-
|
|
219
|
-
#### 2d. Present Plan
|
|
220
|
-
|
|
221
|
-
```
|
|
222
|
-
Implementation Plan:
|
|
223
|
-
Approach: {description}
|
|
224
|
-
Skill: {selected hatch3r skill}
|
|
225
|
-
Convention reference: {reference module name — "following patterns from X"} (Tier 2/3 only)
|
|
226
|
-
Files to modify: {list with change descriptions}
|
|
227
|
-
New files: {list}
|
|
228
|
-
Tests: {what to test}
|
|
229
|
-
Risks: {list with mitigations}
|
|
230
|
-
Resolved requirements: {N}/{M} answered (Tier 2/3 only)
|
|
231
|
-
Estimated effort: {time}
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
**ASK:** "Plan ready. Proceed to Implement? (yes / revise plan / request review of plan first)"
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
### Phase 3: Implement
|
|
239
|
-
|
|
240
|
-
**Goal:** Execute the plan using the selected hatch3r skill, delegating to sub-agents per the Universal Sub-Agent Pipeline.
|
|
241
|
-
|
|
242
|
-
#### 3a. Context Gathering (Researcher Sub-Agent)
|
|
243
|
-
|
|
244
|
-
You MUST spawn a `hatch3r-researcher` sub-agent via the Task tool (`subagent_type: "generalPurpose"`) before implementation. Skip only for trivial single-line edits (typos, comment fixes, single-value config changes).
|
|
245
|
-
|
|
246
|
-
- Select research modes by task type (bug → symptom-trace/root-cause/codebase-impact, feature → codebase-impact/feature-design/architecture, refactor → current-state/refactoring-strategy/migration-path, QA → codebase-impact).
|
|
247
|
-
- Add tier-appropriate modes per the `hatch3r-deep-context` rule if not already run in Phase 1 Step 1b.
|
|
248
|
-
- Use depth `quick` for low-risk, `standard` for medium-risk, `deep` for high-risk. The complexity tier may override depth upward.
|
|
249
|
-
- Await the researcher result. Use its structured output to inform Step 3b.
|
|
250
|
-
|
|
251
|
-
#### 3b. Core Implementation (Implementer Sub-Agent)
|
|
252
|
-
|
|
253
|
-
You MUST spawn a `hatch3r-implementer` sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Do NOT implement inline — always delegate to a dedicated implementer.
|
|
254
|
-
|
|
255
|
-
1. Read the matching hatch3r skill file and include it in the implementer prompt.
|
|
256
|
-
2. Do NOT execute the skill's PR creation steps if invoked from `hatch3r-board-pickup` (board-pickup handles PR creation in its own Steps 7a–8).
|
|
257
|
-
3. For tasks spanning multiple independent parts, spawn one `hatch3r-implementer` per independent module. Launch as many in parallel as the platform supports.
|
|
258
|
-
4. Coordinate changes across files to avoid conflicts.
|
|
259
|
-
|
|
260
|
-
The implementer sub-agent prompt MUST include:
|
|
261
|
-
- The task description, acceptance criteria, and type.
|
|
262
|
-
- The researcher output from Step 3a (if not skipped).
|
|
263
|
-
- The selected hatch3r skill name and instructions.
|
|
264
|
-
- All `scope: always` rule directives from `.agents/rules/`.
|
|
265
|
-
- Relevant learnings from `.agents/learnings/`.
|
|
266
|
-
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
267
|
-
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
268
|
-
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
|
|
269
|
-
- **Blast radius data** from enhanced `codebase-impact` (Tier 3) — transitive dependency trace and API consumer map.
|
|
270
|
-
- 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.
|
|
271
|
-
|
|
272
|
-
Await the implementer sub-agent. Collect its structured result.
|
|
273
|
-
|
|
274
|
-
#### 3c. Track Progress
|
|
275
|
-
|
|
276
|
-
1. Mark completed items from the plan.
|
|
277
|
-
2. Note any deviations from the plan and the reasoning.
|
|
278
|
-
|
|
279
|
-
#### 3d. Run Quality Checks
|
|
280
|
-
|
|
281
|
-
Run the project's quality checks (adapt to project conventions):
|
|
282
|
-
|
|
283
|
-
```bash
|
|
284
|
-
npm run lint && npm run typecheck && npm run test
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
Fix any issues before proceeding. If quality checks fail, loop back and resolve before advancing to Phase 4.
|
|
288
|
-
|
|
289
|
-
**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)"
|
|
290
|
-
|
|
291
|
-
---
|
|
292
|
-
|
|
293
|
-
### Phase 4: Review (Sub-Agent Quality Pipeline)
|
|
294
|
-
|
|
295
|
-
**Goal:** Verify quality and completeness via a two-stage sub-agent pipeline before finalizing. The Review Loop (4a) iterates until code quality is clean, then Final Quality (4b) runs remaining specialists in parallel.
|
|
296
|
-
|
|
297
|
-
#### 4a. Review Loop (Reviewer → Fixer)
|
|
298
|
-
|
|
299
|
-
Spawn a `hatch3r-reviewer` sub-agent via the Task tool (`subagent_type: "generalPurpose"`). Include the diff and acceptance criteria in the prompt.
|
|
300
|
-
|
|
301
|
-
1. **Review:** Await the reviewer result. Extract Critical and Warning findings AND the reviewer's top-level `confidence` field (high/medium/low).
|
|
302
|
-
2. **Confidence-aware gate:**
|
|
303
|
-
- **0 Critical + 0 Warning AND reviewer confidence != low:** Review loop is clean. Proceed to 4b.
|
|
304
|
-
- **0 Critical + 0 Warning AND reviewer confidence == low:** Trigger a second reviewer pass before exiting. Do not proceed to 4b until the second pass returns non-low confidence OR the user explicitly accepts the low-confidence PASS at the ASK checkpoint in step 5.
|
|
305
|
-
3. **If Critical or Warning findings exist:** Spawn a `hatch3r-fixer` sub-agent with the reviewer output. The fixer applies fixes for all Critical and Warning findings.
|
|
306
|
-
4. **Re-review:** After the fixer completes, spawn `hatch3r-reviewer` again to verify fixes.
|
|
307
|
-
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).
|
|
308
|
-
|
|
309
|
-
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. The reviewer sub-agent output MUST include a top-level `confidence: high | medium | low` field (not just per-finding) so step 2 can evaluate it deterministically.
|
|
310
|
-
|
|
311
|
-
Each reviewer/fixer sub-agent prompt MUST include:
|
|
312
|
-
- The agent protocol to follow.
|
|
313
|
-
- All `scope: always` rule directives from `.agents/rules/`.
|
|
314
|
-
- The diff or file changes to review/fix.
|
|
315
|
-
- The task's acceptance criteria.
|
|
316
|
-
- 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.
|
|
317
|
-
|
|
318
|
-
#### 4b. Final Quality (Parallel Specialists)
|
|
319
|
-
|
|
320
|
-
**ONLY after the review loop (4a) reports 0 Critical + 0 Warning findings**, spawn the remaining specialist sub-agents. Use the Task tool with `subagent_type: "generalPurpose"`. Dispatch is bounded by `max_phase4_parallel` (default `3`, env-overridable via `HATCH3R_MAX_PHASE4_PARALLEL`, valid range 1-16) per `rules/hatch3r-agent-orchestration.md` Phase 4 — Final Quality. When the applicable specialists exceed the bound, batch by severity priority `CRITICAL → HIGH → MEDIUM → LOW`; each batch runs to completion before the next.
|
|
321
|
-
|
|
322
|
-
**Always spawn (mandatory for every code change):**
|
|
323
|
-
|
|
324
|
-
1. **`hatch3r-test-writer`** — tests for all code changes. Unit tests for new logic, regression tests for bug fixes, integration tests for cross-module changes.
|
|
325
|
-
2. **`hatch3r-security-auditor`** — security review of all code changes. Audit data flows, access control, input validation, and secret management.
|
|
326
|
-
|
|
327
|
-
**Always evaluate (spawn when applicable):**
|
|
328
|
-
|
|
329
|
-
3. **`hatch3r-docs-writer`** — spawn when changes affect public APIs, architectural patterns, user-facing behavior, or when specs/ADRs need updating. Skip silently if no documentation impact.
|
|
330
|
-
|
|
331
|
-
**Conditional specialists (spawn when triggered):**
|
|
332
|
-
|
|
333
|
-
4. **`hatch3r-lint-fixer`** — when lint or type errors are present after implementation.
|
|
334
|
-
5. **`hatch3r-a11y-auditor`** — when UI or accessibility changes are made.
|
|
335
|
-
6. **`hatch3r-perf-profiler`** — when performance-sensitive changes are made.
|
|
336
|
-
|
|
337
|
-
Each specialist sub-agent prompt MUST include:
|
|
338
|
-
- The agent protocol to follow.
|
|
339
|
-
- All `scope: always` rule directives from `.agents/rules/`.
|
|
340
|
-
- The diff or file changes to review.
|
|
341
|
-
- The task's acceptance criteria.
|
|
342
|
-
- 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.
|
|
343
|
-
|
|
344
|
-
Await all specialist sub-agents. Apply their feedback (fixes, additional tests, documentation updates).
|
|
345
|
-
|
|
346
|
-
#### 4b.1. Re-Review After Phase 4 Fixes
|
|
347
|
-
|
|
348
|
-
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.
|
|
349
|
-
|
|
350
|
-
#### 4c. Verify Against Acceptance Criteria
|
|
351
|
-
|
|
352
|
-
Check each acceptance criterion from the original task or issue. Mark as met or not-met with evidence.
|
|
353
|
-
|
|
354
|
-
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).
|
|
355
|
-
|
|
356
|
-
#### 4d. Present Review
|
|
357
|
-
|
|
358
|
-
```
|
|
359
|
-
Review Results:
|
|
360
|
-
Acceptance Criteria: {N/M met}
|
|
361
|
-
Code Quality: {reviewer findings}
|
|
362
|
-
Security: {security-auditor findings}
|
|
363
|
-
Test Coverage: {test-writer results}
|
|
364
|
-
Documentation: {docs-writer results / not applicable}
|
|
365
|
-
Performance: {pass/issues}
|
|
366
|
-
Overall Confidence: {high/medium/low}
|
|
367
|
-
Lowest-confidence area: {description or "none"}
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
**ASK:** "Review complete. {summary}. Ready to finalize? (yes / address review issues / request human review)"
|
|
371
|
-
|
|
372
|
-
#### 4e. Capture Learnings
|
|
373
|
-
|
|
374
|
-
If `.agents/learnings/` exists:
|
|
375
|
-
|
|
376
|
-
1. Extract learnings from this implementation session (patterns discovered, pitfalls encountered, decisions made).
|
|
377
|
-
2. Store in `.agents/learnings/` with appropriate area tags.
|
|
378
|
-
|
|
379
|
-
---
|
|
380
|
-
|
|
381
|
-
## Quick Mode
|
|
382
|
-
|
|
383
|
-
Collapses the 4 phases into a streamlined flow for small, well-defined tasks. Sub-agent delegation is still mandatory — Quick Mode uses lighter prompts, not fewer sub-agents.
|
|
384
|
-
|
|
385
|
-
### Quick Step 1: Rapid Analysis + Plan (Combined)
|
|
386
|
-
|
|
387
|
-
1. Score complexity per `hatch3r-deep-context`. If the score yields Tier 3, recommend switching to Full Mode.
|
|
388
|
-
2. Spawn `hatch3r-researcher` with depth `quick` for brief context gathering. Skip only for trivial single-line edits. For Tier 2, include `requirements-elicitation` and `similar-implementation` at `quick` depth.
|
|
389
|
-
3. Quick plan: list changes, identify the appropriate hatch3r skill. If `similar-implementation` found a reference, note the convention to follow.
|
|
390
|
-
4. Skip ADR/spec review unless the task touches architecture.
|
|
391
|
-
|
|
392
|
-
**ASK:** "Quick analysis: {scope}, {approach}. {Unresolved questions from elicitation, if any.} Proceed? (yes / switch to Full Mode)"
|
|
393
|
-
|
|
394
|
-
### Quick Step 2: Implement
|
|
395
|
-
|
|
396
|
-
1. Spawn `hatch3r-implementer` sub-agent via the Task tool. Do NOT implement inline.
|
|
397
|
-
2. Run quality checks (lint, typecheck, test).
|
|
398
|
-
3. Fix any issues before proceeding.
|
|
399
|
-
|
|
400
|
-
### Quick Step 3: Quick Review (Sub-Agent Quality Pipeline)
|
|
401
|
-
|
|
402
|
-
Same two-stage pipeline as Full Mode, with lighter prompts:
|
|
403
|
-
|
|
404
|
-
**Stage 1 — Review Loop:**
|
|
405
|
-
|
|
406
|
-
1. Spawn **`hatch3r-reviewer`** with a focused prompt covering correctness and quality.
|
|
407
|
-
2. If Critical or Warning findings exist, spawn **`hatch3r-fixer`**, then re-review. Max 3 iterations.
|
|
408
|
-
|
|
409
|
-
**Stage 2 — Final Quality (after review loop is clean):**
|
|
410
|
-
|
|
411
|
-
3. **`hatch3r-test-writer`** — ALWAYS for code changes.
|
|
412
|
-
4. **`hatch3r-security-auditor`** — ALWAYS for code changes.
|
|
413
|
-
5. **`hatch3r-docs-writer`** — evaluate; spawn when documentation impact exists.
|
|
414
|
-
6. Verify acceptance criteria are met.
|
|
415
|
-
7. Confirm lint/typecheck/test pass.
|
|
416
|
-
|
|
417
|
-
**ASK:** "Changes complete. Quality checks pass. Finalize? (yes / deeper review needed → switch to Full Mode Phase 4)"
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
## Integration with Board Workflow
|
|
422
|
-
|
|
423
|
-
### Invoked from `hatch3r-board-pickup`
|
|
424
|
-
|
|
425
|
-
- Phase 1 uses the issue context already gathered by board-pickup — skip re-fetching.
|
|
426
|
-
- Phase 3 skips PR creation — board-pickup handles it in its own Steps 7a–8.
|
|
427
|
-
- Phase 4 results feed into board-pickup's quality verification (Step 7).
|
|
428
|
-
|
|
429
|
-
When operating with board context, all issue operations MUST follow the Projects v2 Enforcement rules defined in `hatch3r-board-shared`.
|
|
430
|
-
|
|
431
|
-
### Invoked Standalone
|
|
432
|
-
|
|
433
|
-
- All phases run independently with full context loading.
|
|
434
|
-
- User decides whether to create a PR at the end of Phase 4.
|
|
435
|
-
|
|
436
|
-
---
|
|
437
|
-
|
|
438
|
-
## Auto-Advance Mode
|
|
439
|
-
|
|
440
|
-
When invoked with `--auto` or `--unattended`, the workflow operates with reduced human checkpoints for sustained autonomous operation. Compatible with both Full Mode and Quick Mode.
|
|
441
|
-
|
|
442
|
-
### Behavior Changes in Auto Mode
|
|
443
|
-
|
|
444
|
-
| Checkpoint | Normal Mode | Auto Mode |
|
|
445
|
-
|-----------|-------------|-----------|
|
|
446
|
-
| Mode selection (Step 0) | ASK user to confirm | Auto-select based on complexity signals |
|
|
447
|
-
| Analysis review (Phase 1) | ASK user to proceed | Auto-proceed if no open questions |
|
|
448
|
-
| Plan review (Phase 2) | ASK user to approve | Auto-proceed with plan |
|
|
449
|
-
| Implementation review (Phase 3) | ASK user before Review | Auto-proceed if quality checks pass |
|
|
450
|
-
| Review finalization (Phase 4) | ASK user to finalize | Auto-finalize if all AC met |
|
|
451
|
-
|
|
452
|
-
### Safety Guardrails (Always Active)
|
|
453
|
-
|
|
454
|
-
These checkpoints are NEVER skipped, even in auto mode:
|
|
455
|
-
- **Destructive operations**: Database migrations, file deletions, security rule changes always require confirmation
|
|
456
|
-
- **Breaking changes**: API contract changes, public interface modifications always require confirmation
|
|
457
|
-
- **Open questions**: If Phase 1 analysis surfaces unresolvable ambiguity, stop and ASK regardless of mode
|
|
458
|
-
- **Quality gate failures**: If lint/typecheck/test fail after 2 fix attempts, stop and ASK
|
|
459
|
-
- **Cost thresholds**: Stop if estimated token cost exceeds configured limit (default: $10 per task)
|
|
460
|
-
|
|
461
|
-
### Activation
|
|
462
|
-
|
|
463
|
-
```
|
|
464
|
-
/hatch3r workflow --auto
|
|
465
|
-
/hatch3r workflow --auto --mode=full
|
|
466
|
-
/hatch3r workflow --auto --mode=quick
|
|
467
|
-
```
|
|
468
|
-
|
|
469
|
-
### Auto Mode with Board Pickup
|
|
470
|
-
|
|
471
|
-
When invoked from `hatch3r board-pickup --auto`, the workflow inherits the auto flag. All non-safety ASK checkpoints are automatically resolved. The workflow reports its structured result back to board-pickup for PR creation.
|
|
472
|
-
|
|
473
|
-
### Session Report
|
|
474
|
-
|
|
475
|
-
At the end of an auto workflow session, generate a summary:
|
|
476
|
-
- Mode used: {Full/Quick}
|
|
477
|
-
- Phases completed: {list}
|
|
478
|
-
- Quality checks: {pass/fail with details}
|
|
479
|
-
- Acceptance criteria: {N/M met}
|
|
480
|
-
- Learnings captured: {count}
|
|
481
|
-
- Time in auto mode: {duration}
|
|
482
|
-
|
|
483
|
-
---
|
|
484
|
-
|
|
485
|
-
## Error Handling
|
|
486
|
-
|
|
487
|
-
- **Quality check failure in Phase 3:** Loop back and fix before proceeding to Phase 4. Do not advance with failing checks.
|
|
488
|
-
- **Acceptance criteria not met in Phase 4:** Loop back to Phase 3 with specific items to address.
|
|
489
|
-
- **Sub-agent failure:** Retry once, then fall back to direct implementation.
|
|
490
|
-
- **Context degradation (>25 turns):** Suggest starting a fresh chat with a progress summary capturing completed work and remaining items.
|
|
491
|
-
- **Mode switch:** User can switch from Quick to Full (or vice versa) at any ASK checkpoint. State carries forward — no work is lost.
|
|
492
|
-
|
|
493
|
-
## Guardrails
|
|
494
|
-
|
|
495
|
-
- **Never skip ASK checkpoints.**
|
|
496
|
-
- **Never skip Phase 4 (Review) in Full Mode** — even if implementation seems complete.
|
|
497
|
-
- **Quick Mode is opt-in** — user must confirm the mode selection in Step 0.
|
|
498
|
-
- **Always run quality checks** before declaring implementation complete.
|
|
499
|
-
- **Stay within the task scope** — note related work but do not implement it.
|
|
500
|
-
- **Recommend Full Mode** if the task grows beyond Quick Mode complexity during execution.
|
|
501
|
-
- **All phases produce structured output** that can feed into other hatch3r commands.
|
|
502
|
-
- **Respect the project's tooling hierarchy** for knowledge augmentation (Context7 MCP for library docs, web research for current events).
|
|
503
|
-
- **Never force a mode** — user always has final say at every ASK checkpoint.
|
|
504
|
-
- **This command composes existing hatch3r agents and skills** — it does not replace them.
|
package/dist/cli/index.d.ts
DELETED