hatch3r 1.7.5 → 1.9.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 +37 -56
- package/dist/cli/index.js +13554 -13329
- package/dist/cli/index.js.map +1 -1
- package/{agents → dist/content/agents}/hatch3r-a11y-auditor.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-ci-watcher.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-context-rules.md +25 -9
- package/{agents → dist/content/agents}/hatch3r-creator.md +17 -16
- package/{agents → dist/content/agents}/hatch3r-dependency-auditor.md +1 -1
- package/{agents → dist/content/agents}/hatch3r-devops.md +3 -3
- package/{agents → dist/content/agents}/hatch3r-fixer.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-handoff-loader.md +12 -12
- package/{agents → dist/content/agents}/hatch3r-handoff-preparer.md +7 -7
- package/{agents → dist/content/agents}/hatch3r-implementer.md +10 -2
- package/{agents → dist/content/agents}/hatch3r-learnings-loader.md +12 -12
- package/{agents → dist/content/agents}/hatch3r-lint-fixer.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-researcher.md +3 -3
- package/{agents → dist/content/agents}/hatch3r-reviewer.md +6 -4
- package/{agents → dist/content/agents}/hatch3r-security-auditor.md +2 -2
- package/{agents → dist/content/agents}/hatch3r-test-writer.md +2 -2
- package/{agents → dist/content/agents}/shared/external-knowledge.md +1 -1
- package/{agents → dist/content/agents}/shared/injection-patterns.md +1 -1
- package/{agents → dist/content/agents}/shared/quality-charter.md +31 -3
- package/{agents → dist/content/agents}/shared/user-content-templates.md +41 -11
- package/{agents → dist/content/agents}/shared/user-question-protocol.md +2 -0
- package/{commands → dist/content/commands}/board/pickup-azure-devops.md +1 -1
- package/{commands → dist/content/commands}/board/pickup-delegation-multi.md +4 -4
- package/{commands → dist/content/commands}/board/pickup-delegation.md +3 -3
- 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-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 +8 -1
- package/{commands → dist/content/commands}/hatch3r-benchmark.md +8 -1
- package/{commands → dist/content/commands}/hatch3r-board-fill.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-board-pickup.md +14 -6
- package/{commands → dist/content/commands}/hatch3r-bug-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-codebase-map.md +10 -2
- package/{commands → dist/content/commands}/hatch3r-create.md +68 -15
- package/{commands → dist/content/commands}/hatch3r-debug.md +18 -11
- package/{commands → dist/content/commands}/hatch3r-feature-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-handoff.md +16 -9
- package/{commands → dist/content/commands}/hatch3r-healthcheck.md +5 -1
- package/{commands → dist/content/commands}/hatch3r-hooks.md +16 -12
- package/{commands → dist/content/commands}/hatch3r-learn.md +27 -11
- package/{commands → dist/content/commands}/hatch3r-migration-plan.md +9 -2
- package/{commands → dist/content/commands}/hatch3r-onboard.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-pr-resolve.md +16 -9
- package/{commands → dist/content/commands}/hatch3r-project-spec.md +11 -3
- package/{commands → dist/content/commands}/hatch3r-quick-change.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-refactor-plan.md +11 -4
- package/{commands → dist/content/commands}/hatch3r-report.md +1 -1
- package/{commands → dist/content/commands}/hatch3r-revision.md +14 -7
- package/{commands → dist/content/commands}/hatch3r-roadmap.md +10 -2
- package/{commands → dist/content/commands}/hatch3r-security-audit.md +6 -2
- package/{commands → dist/content/commands}/hatch3r-test-plan.md +12 -5
- package/{commands → dist/content/commands}/hatch3r-workflow.md +18 -10
- package/{commands → dist/content/commands}/revision/revision-delegation.md +2 -2
- package/{commands → dist/content/commands}/revision/revision-quality.md +2 -2
- package/{github-agents → dist/content/github-agents}/hatch3r-docs-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-lint-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-security-agent.md +1 -1
- package/{github-agents → dist/content/github-agents}/hatch3r-test-agent.md +1 -1
- package/{hooks → dist/content/hooks}/hatch3r-ci-failure.md +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-file-save.md +3 -3
- 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 +3 -3
- package/{hooks → dist/content/hooks}/hatch3r-session-start.md +3 -3
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-accessibility-standards.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.md +5 -2
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration-detail.mdc +4 -1
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration.md +27 -4
- package/{rules → dist/content/rules}/hatch3r-agent-orchestration.mdc +26 -3
- package/{rules → dist/content/rules}/hatch3r-ai-evals.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-ai-evals.mdc +2 -1
- package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-api-versioning.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-api-versioning.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-auth-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-browser-verification.md +6 -10
- package/{rules → dist/content/rules}/hatch3r-browser-verification.mdc +6 -10
- package/{rules → dist/content/rules}/hatch3r-ci-cd.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-ci-cd.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-code-standards.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-component-conventions.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-container-hardening.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-container-hardening.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-contract-testing.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-contract-testing.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-data-classification.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-data-classification.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-deep-context.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-dependency-management.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-dependency-management.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-design-system-detection.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-event-schema-evolution.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-git-conventions.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.md +4 -4
- package/{rules → dist/content/rules}/hatch3r-handoff-readiness.mdc +3 -3
- package/{rules → dist/content/rules}/hatch3r-i18n.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-iteration-summary.md +3 -1
- package/{rules → dist/content/rules}/hatch3r-iteration-summary.mdc +2 -0
- package/{rules → dist/content/rules}/hatch3r-learning-consult.md +7 -7
- package/{rules → dist/content/rules}/hatch3r-learning-consult.mdc +6 -6
- package/{rules → dist/content/rules}/hatch3r-migrations.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-migrations.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-logging.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-logging.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-observability-metrics.mdc +1 -0
- package/{rules/hatch3r-observability-tracing-detail.md → dist/content/rules/hatch3r-observability-tracing.md} +85 -10
- package/{rules/hatch3r-observability-tracing-detail.mdc → dist/content/rules/hatch3r-observability-tracing.mdc} +84 -9
- package/{rules → dist/content/rules}/hatch3r-operability.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-operability.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-passkey-server.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-passkey-server.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-performance-budgets.mdc +1 -1
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.md +1 -0
- package/{rules → dist/content/rules}/hatch3r-resilience-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-secrets-management.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-secrets-management.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-security-patterns.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-security-patterns.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-testing.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-testing.mdc +1 -0
- package/{rules → dist/content/rules}/hatch3r-theming.md +1 -1
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.md +4 -4
- package/{rules → dist/content/rules}/hatch3r-tooling-hierarchy.mdc +3 -3
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.md +2 -1
- package/{rules → dist/content/rules}/hatch3r-ux-states-and-flows.mdc +1 -0
- package/{skills → dist/content/skills}/hatch3r-a11y-audit/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-ai-feature/SKILL.md +2 -0
- package/{skills → dist/content/skills}/hatch3r-api-spec/SKILL.md +68 -0
- package/{skills → dist/content/skills}/hatch3r-architecture-review/SKILL.md +1 -1
- package/{commands/hatch3r-board-groom.md → dist/content/skills/hatch3r-board-groom/SKILL.md} +7 -16
- package/{commands/hatch3r-board-init.md → dist/content/skills/hatch3r-board-init/SKILL.md} +62 -24
- package/{commands/hatch3r-board-refresh.md → dist/content/skills/hatch3r-board-refresh/SKILL.md} +7 -16
- package/{commands/hatch3r-board-shared.md → dist/content/skills/hatch3r-board-shared/SKILL.md} +13 -20
- package/{skills → dist/content/skills}/hatch3r-bug-fix/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-fd/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-fzf/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-cli-gh/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-cli-jq/SKILL.md +7 -3
- package/{skills → dist/content/skills}/hatch3r-cli-ripgrep/SKILL.md +3 -3
- package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +269 -0
- package/{skills → dist/content/skills}/hatch3r-context-health/SKILL.md +18 -2
- package/{skills → dist/content/skills}/hatch3r-cost-tracking/SKILL.md +59 -7
- package/{skills → dist/content/skills}/hatch3r-customize/SKILL.md +6 -4
- package/{skills → dist/content/skills}/hatch3r-dep-audit/SKILL.md +6 -2
- package/{skills → dist/content/skills}/hatch3r-design-system-detect/SKILL.md +3 -1
- package/{skills → dist/content/skills}/hatch3r-feature/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-gh-agentic-workflows/SKILL.md +4 -4
- 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 +9 -9
- package/{skills → dist/content/skills}/hatch3r-handoff-resume/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-incident-response/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-issue-workflow/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-migration/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-observability-verify/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-perf-audit/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-pr-creation/SKILL.md +4 -4
- package/{skills → dist/content/skills}/hatch3r-qa-validation/SKILL.md +2 -2
- package/{skills → dist/content/skills}/hatch3r-recipe/SKILL.md +82 -2
- package/{skills → dist/content/skills}/hatch3r-refactor/SKILL.md +1 -1
- package/{skills → dist/content/skills}/hatch3r-release/SKILL.md +35 -2
- package/{skills → dist/content/skills}/hatch3r-reliability-verify/SKILL.md +2 -0
- package/{skills → dist/content/skills}/hatch3r-ui-ux-verify/SKILL.md +3 -1
- package/{skills → dist/content/skills}/hatch3r-visual-refactor/SKILL.md +1 -1
- package/package.json +13 -22
- package/commands/hatch3r-agent-customize.md +0 -197
- package/commands/hatch3r-command-customize.md +0 -109
- package/commands/hatch3r-context-health.md +0 -142
- package/commands/hatch3r-cost-tracking.md +0 -163
- package/commands/hatch3r-dep-audit.md +0 -184
- package/commands/hatch3r-recipe.md +0 -190
- package/commands/hatch3r-release.md +0 -345
- package/commands/hatch3r-rule-customize.md +0 -129
- package/commands/hatch3r-skill-customize.md +0 -108
- 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-observability-tracing.md +0 -87
- package/rules/hatch3r-observability-tracing.mdc +0 -82
- package/rules/hatch3r-observability.md +0 -20
- package/rules/hatch3r-observability.mdc +0 -14
- package/skills/hatch3r-agent-customize/SKILL.md +0 -13
- 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-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-rtk/SKILL.md +0 -91
- package/skills/hatch3r-cli-sd/SKILL.md +0 -85
- package/skills/hatch3r-cli-stagehand/SKILL.md +0 -79
- package/skills/hatch3r-cli-taplo/SKILL.md +0 -84
- package/skills/hatch3r-cli-xsv/SKILL.md +0 -89
- 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 -13
- package/skills/hatch3r-rule-customize/SKILL.md +0 -13
- package/skills/hatch3r-skill-customize/SKILL.md +0 -13
- /package/{agents → dist/content/agents}/hatch3r-architect.md +0 -0
- /package/{agents → dist/content/agents}/hatch3r-docs-writer.md +0 -0
- /package/{agents → dist/content/agents}/hatch3r-perf-profiler.md +0 -0
- /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/requirements-elicitation.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/{agents → dist/content/agents}/modes/user-flows.md +0 -0
- /package/{agents → dist/content/agents}/shared/efficiency-patterns.md +0 -0
- /package/{agents → dist/content/agents}/shared/prompt-structure.md +0 -0
- /package/{checks → dist/content/checks}/README.md +0 -0
- /package/{checks → dist/content/checks}/accessibility.md +0 -0
- /package/{checks → dist/content/checks}/code-quality.md +0 -0
- /package/{checks → dist/content/checks}/performance.md +0 -0
- /package/{checks → dist/content/checks}/security.md +0 -0
- /package/{checks → dist/content/checks}/testing.md +0 -0
- /package/{commands → dist/content/commands}/board/pickup-modes.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/{commands → dist/content/commands}/revision/revision-modes.md +0 -0
- /package/{mcp → dist/content/mcp}/mcp.json +0 -0
- /package/{rules → dist/content/rules}/hatch3r-ai-ux-patterns.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-api-design.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-api-design.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-code-standards.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-component-conventions.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-deep-context.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-feature-flags.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-feature-flags.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-git-conventions.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-i18n.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.md +0 -0
- /package/{rules → dist/content/rules}/hatch3r-progressive-delivery.mdc +0 -0
- /package/{rules → dist/content/rules}/hatch3r-theming.mdc +0 -0
- /package/{skills → dist/content/skills}/hatch3r-a11y-audit/references/manual-audit-checklist.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-ci-pipeline/SKILL.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-issue-workflow/references/delegation-patterns.md +0 -0
- /package/{skills → dist/content/skills}/hatch3r-logical-refactor/SKILL.md +0 -0
|
@@ -4,14 +4,21 @@ type: command
|
|
|
4
4
|
orchestrator: true
|
|
5
5
|
agentPipeline: [hatch3r-implementer, hatch3r-lint-fixer, hatch3r-test-writer, hatch3r-reviewer, hatch3r-fixer, hatch3r-security-auditor, hatch3r-docs-writer, hatch3r-a11y-auditor, hatch3r-perf-profiler]
|
|
6
6
|
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. Delegation, quality pipeline, modes, and board integration details are in commands/revision/.
|
|
7
|
-
tags: [implementation, team]
|
|
7
|
+
tags: [implementation, ctx:team-only]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
parallel_tool_default: true
|
|
12
12
|
triage_tiers: [1, 2, 3]
|
|
13
|
+
sub_agents_spawned:
|
|
14
|
+
count: 9
|
|
15
|
+
rationale: Per-revision fanout — implementer, lint-fixer, test-writer (Stage 1 fix group), reviewer ↔ fixer review loop, then parallel Stage 2 final-quality specialists (security-auditor, docs-writer, a11y-auditor, perf-profiler) bounded by max_phase4_parallel.
|
|
13
16
|
---
|
|
14
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
|
+
|
|
15
22
|
## Agent Pipeline
|
|
16
23
|
|
|
17
24
|
| Stage | Agent(s) | Parallel | Required |
|
|
@@ -46,7 +53,7 @@ The user is the reviewer. The agent is the interviewer and fixer.
|
|
|
46
53
|
|
|
47
54
|
## Shared Context
|
|
48
55
|
|
|
49
|
-
**If board context exists** (current branch has an associated PR linked to issues), **read the `hatch3r-board-shared`
|
|
56
|
+
**If board context exists** (current branch has an associated PR linked to issues), **read the `hatch3r-board-shared` skill at the start of the run.** It contains Board Configuration, Platform Detection, Platform Context, Board Sync Procedure, and tooling directives. Cache all values for the duration of this run.
|
|
50
57
|
|
|
51
58
|
If no board context exists (plain instruction, no PR, no linked issues), skip shared context loading and work from the git diff alone.
|
|
52
59
|
|
|
@@ -98,7 +105,7 @@ Rebuild full context in the fresh window. No prior implementation context is ass
|
|
|
98
105
|
#### 1a. Detect Scope of Changes
|
|
99
106
|
|
|
100
107
|
1. Identify the current branch: `git branch --show-current`.
|
|
101
|
-
2. Determine the default branch from `.
|
|
108
|
+
2. Determine the default branch from `.hatch3r/hatch.json` (`board.defaultBranch`). Fall back to `main` if unavailable.
|
|
102
109
|
3. Compute the diff: `git diff {defaultBranch}...HEAD --stat` for a summary, then `git diff {defaultBranch}...HEAD` for the full diff.
|
|
103
110
|
4. Parse the diff summary: files changed, lines added/removed, file types affected.
|
|
104
111
|
5. Identify affected areas from the file paths (e.g., `src/routes/` -> API, `src/components/` -> UI, `tests/` -> testing).
|
|
@@ -107,7 +114,7 @@ Rebuild full context in the fresh window. No prior implementation context is ass
|
|
|
107
114
|
|
|
108
115
|
> Platform-specific CLI commands: see `commands/board/shared-{platform}.md` for PR/issue lookup
|
|
109
116
|
|
|
110
|
-
1. Detect the platform from `.
|
|
117
|
+
1. Detect the platform from `.hatch3r/hatch.json` (`board.platform`). Fall back to GitHub if unavailable.
|
|
111
118
|
2. Search for an open PR on this branch using the platform CLI:
|
|
112
119
|
- **GitHub:** `gh pr list --head {branch} --state open --json number,title,body,url --limit 1`
|
|
113
120
|
- **Azure DevOps:** `az repos pr list --source-branch {branch} --status active --top 1`
|
|
@@ -120,11 +127,11 @@ Rebuild full context in the fresh window. No prior implementation context is ass
|
|
|
120
127
|
|
|
121
128
|
#### 1c. Load Project Rules
|
|
122
129
|
|
|
123
|
-
Read all `scope: always` rules from
|
|
130
|
+
Read all `scope: always` rules from `rules/`. These must be included in every sub-agent prompt in Step 6.
|
|
124
131
|
|
|
125
132
|
#### 1d. Consult Learnings
|
|
126
133
|
|
|
127
|
-
If `.
|
|
134
|
+
If `.hatch3r/learnings/` exists, scan for learnings with matching areas or tags that overlap with the affected areas from Step 1a.5. Cache relevant learnings for Step 6.
|
|
128
135
|
|
|
129
136
|
---
|
|
130
137
|
|
|
@@ -453,7 +460,7 @@ Capture revision-specific learnings. Focus on patterns that inform future implem
|
|
|
453
460
|
- Were there any integration issues between sub-agent outputs?
|
|
454
461
|
|
|
455
462
|
2. If significant learnings are identified:
|
|
456
|
-
- Create learning files in `.
|
|
463
|
+
- Create learning files in `.hatch3r/learnings/` following the `hatch3r-learn` command format.
|
|
457
464
|
- Use category `pitfall` for issues agents commonly miss.
|
|
458
465
|
- Use category `pattern` for revision approaches that worked well.
|
|
459
466
|
- Tag with relevant area labels.
|
|
@@ -4,13 +4,21 @@ type: command
|
|
|
4
4
|
orchestrator: true
|
|
5
5
|
agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
|
|
6
6
|
description: Sequence delivery phases over time into a dependency-ordered milestone plan with business and technical lenses, emitting a todo.md rollout schedule rather than design docs
|
|
7
|
-
tags: [planning, greenfield]
|
|
7
|
+
tags: [planning, ctx:greenfield-only]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
parallel_tool_default: true
|
|
12
12
|
triage_tiers: [1, 2, 3]
|
|
13
|
+
sub_agents_spawned:
|
|
14
|
+
count: 2
|
|
15
|
+
rationale: Two parallel hatch3r-researcher modes (business-priority + technical-readiness) in Step 3 to inform sequencing; one hatch3r-docs-writer in Step 6 assembles todo.md on their merged output (serialized on the research → assembly dependency edge).
|
|
13
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
|
+
|
|
14
22
|
# Roadmap — Generate Phased Roadmap from Specs & Vision
|
|
15
23
|
|
|
16
24
|
Generate a dependency-aware, priority-ordered roadmap with **two parallel dimensions**: business milestones and technical milestones. Spawns parallel researcher sub-agents (business priority, technical readiness) to inform prioritization with market timing, competitive pressure, revenue impact, and production readiness gaps. Outputs to `todo.md` in the exact format that `hatch3r-board-fill` expects, with items tagged as `[BIZ]`, `[TECH]`, or `[BOTH]`. Optionally generates a root-level `AGENTS.md`. Works for both greenfield projects (from `hatch3r-project-spec` output) and brownfield projects (from `hatch3r-codebase-map` output).
|
|
@@ -27,7 +35,7 @@ Generate a dependency-aware, priority-ordered roadmap with **two parallel dimens
|
|
|
27
35
|
|
|
28
36
|
## Shared Context
|
|
29
37
|
|
|
30
|
-
**Read the `hatch3r-board-shared`
|
|
38
|
+
**Read the `hatch3r-board-shared` skill 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.
|
|
31
39
|
|
|
32
40
|
## Token-Saving Directives
|
|
33
41
|
|
|
@@ -3,13 +3,17 @@ id: hatch3r-security-audit
|
|
|
3
3
|
type: command
|
|
4
4
|
orchestrator: false
|
|
5
5
|
description: Open an OWASP ASI security epic reviewing auth boundaries, input validation, and supply-chain risks with one hardening sub-issue per module plus trust-boundary audit
|
|
6
|
-
tags: [maintenance, security]
|
|
6
|
+
tags: [maintenance, floor:security]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
parallel_tool_default: true
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
+
## §0 Detect Ambiguity (P8 B1)
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
13
17
|
## Agent Pipeline
|
|
14
18
|
|
|
15
19
|
This command creates audit issues and epics. It does not spawn implementation sub-agents.
|
|
@@ -30,7 +34,7 @@ Create a security audit epic on **{owner}/{repo}** with one sub-issue per logica
|
|
|
30
34
|
|
|
31
35
|
## Shared Context
|
|
32
36
|
|
|
33
|
-
**Read the project's shared board context at the start of the run** (e.g.,
|
|
37
|
+
**Read the project's shared board context at the start of the run** (e.g., `commands/hatch3r-board-shared/SKILL.md` or equivalent). It contains GitHub Context, Project Reference, Projects v2 sync procedure, and Board Overview template. Cache all values for the duration of this run.
|
|
34
38
|
|
|
35
39
|
## Token-Saving Directives
|
|
36
40
|
|
|
@@ -4,14 +4,21 @@ type: command
|
|
|
4
4
|
orchestrator: true
|
|
5
5
|
agentPipeline: [hatch3r-researcher, hatch3r-docs-writer]
|
|
6
6
|
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.
|
|
7
|
-
tags: [
|
|
7
|
+
tags: [planning, orchestration]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
parallel_tool_default: true
|
|
12
12
|
triage_tiers: [1, 2, 3]
|
|
13
|
+
sub_agents_spawned:
|
|
14
|
+
count: 5
|
|
15
|
+
rationale: Five parallel hatch3r-researcher modes per test-planning brief — coverage-analysis, complexity-and-risk, test-pattern, boundary-analysis, risk-prioritization — dispatched concurrently in Step 3; a docs-writer composes the test plan on their merged output.
|
|
13
16
|
---
|
|
14
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
|
+
|
|
15
22
|
## Agent Pipeline
|
|
16
23
|
|
|
17
24
|
| Stage | Agent(s) | Parallel | Required |
|
|
@@ -28,7 +35,7 @@ Take a test planning scope (feature, module, or codebase area) and produce a com
|
|
|
28
35
|
|
|
29
36
|
## Shared Context
|
|
30
37
|
|
|
31
|
-
**Read the `hatch3r-board-shared`
|
|
38
|
+
**Read the `hatch3r-board-shared` skill at the start of the run** if it exists. While this command does not perform board operations directly, it establishes patterns and context (GitHub owner/repo, tooling directives) that downstream commands like `hatch3r-board-fill` rely on. Cache any values found.
|
|
32
39
|
|
|
33
40
|
## Token-Saving Directives
|
|
34
41
|
|
|
@@ -115,11 +122,11 @@ Answer these now, or say 'use defaults' for any where you're comfortable with a
|
|
|
115
122
|
- `docs/specs/` -- project specifications (read TOC/headers first, expand relevant sections only)
|
|
116
123
|
- `docs/adr/` -- architectural decision records (scan for testing-related decisions)
|
|
117
124
|
- `README.md` -- project overview
|
|
118
|
-
- `.
|
|
125
|
+
- `.hatch3r/hatch.json` -- board configuration
|
|
119
126
|
- Existing `todo.md` -- current backlog (check for overlap or related items)
|
|
120
127
|
- Feature spec -- if mode is feature-scoped, look for the referenced feature spec in `docs/specs/`
|
|
121
128
|
2. Scan GitHub issues via `search_issues` for existing testing-related work. Note duplicates or partial overlaps.
|
|
122
|
-
3. If `.
|
|
129
|
+
3. If `.hatch3r/learnings/` exists, scan for learnings relevant to testing, coverage, or quality.
|
|
123
130
|
4. Present a context summary:
|
|
124
131
|
|
|
125
132
|
```
|
|
@@ -527,7 +534,7 @@ If `hatch3r-board-fill`: instruct the user to invoke `hatch3r-board-fill`. Note
|
|
|
527
534
|
- **Sub-agent failure:** Retry the failed sub-agent once. If it fails again, present partial results from the remaining sub-agents and ask the user how to proceed (continue without that researcher's input / provide the missing information manually / abort).
|
|
528
535
|
- **Conflicting researcher outputs:** Present both options side by side with trade-offs. Ask the user to decide. Do not silently pick one.
|
|
529
536
|
- **File write failure:** Report the error and provide the full file content so the user can create the file manually.
|
|
530
|
-
- **Missing project context:** If no `hatch3r-board-shared` or `.
|
|
537
|
+
- **Missing project context:** If no `hatch3r-board-shared` or `.hatch3r/hatch.json` exists, proceed without board context -- this command does not require board configuration.
|
|
531
538
|
- **No existing tests:** Switch to bootstrapping strategy -- the test plan becomes a greenfield test setup plan. Include infrastructure setup (framework installation, config, CI gates) as P0 items. Warn that coverage baselines will be unavailable.
|
|
532
539
|
- **No coverage tooling:** Recommend coverage setup as a prerequisite. Include coverage tooling installation as a P0 infrastructure item in the test plan. Proceed with estimated coverage from code analysis rather than measured coverage.
|
|
533
540
|
- **Feature spec not found (feature-scoped mode):** Warn that the test plan will be less informed without a feature spec. Recommend running `hatch3r-feature-plan` first for best results. Proceed with what's available from codebase analysis.
|
|
@@ -4,13 +4,21 @@ type: command
|
|
|
4
4
|
orchestrator: true
|
|
5
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
6
|
description: Guided development lifecycle with 4 phases (Analyze, Plan, Implement, Review) and scale-adaptive Quick Mode for small tasks.
|
|
7
|
-
tags: [
|
|
7
|
+
tags: [implementation, orchestration]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
parallel_tool_default: true
|
|
12
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.
|
|
13
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
|
+
|
|
14
22
|
# Development Workflow -- Guided Lifecycle for Structured Implementation
|
|
15
23
|
|
|
16
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`.
|
|
@@ -43,7 +51,7 @@ If **no**: all browser verification steps are skipped silently throughout the en
|
|
|
43
51
|
|
|
44
52
|
## Shared Context
|
|
45
53
|
|
|
46
|
-
**Read the `hatch3r-board-shared`
|
|
54
|
+
**Read the `hatch3r-board-shared` skill 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.
|
|
47
55
|
|
|
48
56
|
## Global Rule Overrides
|
|
49
57
|
|
|
@@ -143,7 +151,7 @@ Cache the researcher outputs for use in Phase 2 and Phase 3.
|
|
|
143
151
|
|
|
144
152
|
#### 1d. Consult Learnings
|
|
145
153
|
|
|
146
|
-
If `.
|
|
154
|
+
If `.hatch3r/learnings/` exists:
|
|
147
155
|
|
|
148
156
|
1. Search for learnings tagged with relevant areas or technologies.
|
|
149
157
|
2. Surface any applicable past experiences that inform this task.
|
|
@@ -253,8 +261,8 @@ The implementer sub-agent prompt MUST include:
|
|
|
253
261
|
- The task description, acceptance criteria, and type.
|
|
254
262
|
- The researcher output from Step 3a (if not skipped).
|
|
255
263
|
- The selected hatch3r skill name and instructions.
|
|
256
|
-
- All `scope: always` rule directives from
|
|
257
|
-
- Relevant learnings from `.
|
|
264
|
+
- All `scope: always` rule directives from `rules/`.
|
|
265
|
+
- Relevant learnings from `.hatch3r/learnings/`.
|
|
258
266
|
- Explicit instruction: do NOT create branches, commits, or PRs.
|
|
259
267
|
- **Reference conventions** from `similar-implementation` output (Tier 2/3) — triggers the implementer's Convention Lock step.
|
|
260
268
|
- **Resolved requirements** from `requirements-elicitation` answers (Tier 2/3) — explicit decisions on ambiguities.
|
|
@@ -302,14 +310,14 @@ After each reviewer iteration, assess the reviewer's findings confidence: if the
|
|
|
302
310
|
|
|
303
311
|
Each reviewer/fixer sub-agent prompt MUST include:
|
|
304
312
|
- The agent protocol to follow.
|
|
305
|
-
- All `scope: always` rule directives from
|
|
313
|
+
- All `scope: always` rule directives from `rules/`.
|
|
306
314
|
- The diff or file changes to review/fix.
|
|
307
315
|
- The task's acceptance criteria.
|
|
308
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.
|
|
309
317
|
|
|
310
318
|
#### 4b. Final Quality (Parallel Specialists)
|
|
311
319
|
|
|
312
|
-
**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"`.
|
|
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.
|
|
313
321
|
|
|
314
322
|
**Always spawn (mandatory for every code change):**
|
|
315
323
|
|
|
@@ -328,7 +336,7 @@ Each reviewer/fixer sub-agent prompt MUST include:
|
|
|
328
336
|
|
|
329
337
|
Each specialist sub-agent prompt MUST include:
|
|
330
338
|
- The agent protocol to follow.
|
|
331
|
-
- All `scope: always` rule directives from
|
|
339
|
+
- All `scope: always` rule directives from `rules/`.
|
|
332
340
|
- The diff or file changes to review.
|
|
333
341
|
- The task's acceptance criteria.
|
|
334
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.
|
|
@@ -363,10 +371,10 @@ Review Results:
|
|
|
363
371
|
|
|
364
372
|
#### 4e. Capture Learnings
|
|
365
373
|
|
|
366
|
-
If `.
|
|
374
|
+
If `.hatch3r/learnings/` exists:
|
|
367
375
|
|
|
368
376
|
1. Extract learnings from this implementation session (patterns discovered, pitfalls encountered, decisions made).
|
|
369
|
-
2. Store in `.
|
|
377
|
+
2. Store in `.hatch3r/learnings/` with appropriate area tags.
|
|
370
378
|
|
|
371
379
|
---
|
|
372
380
|
|
|
@@ -63,9 +63,9 @@ Each sub-agent prompt MUST include:
|
|
|
63
63
|
|
|
64
64
|
1. The specific findings to address (file paths, line numbers, descriptions, expected behavior).
|
|
65
65
|
2. Instruction to follow the corresponding agent protocol (e.g., "Follow the hatch3r-implementer agent protocol").
|
|
66
|
-
3. All `scope: always` rule directives from
|
|
66
|
+
3. All `scope: always` rule directives from `rules/` — sub-agents do not inherit rules automatically.
|
|
67
67
|
4. Acceptance criteria from linked issues (if available from Step 1b).
|
|
68
|
-
5. Relevant learnings from `.
|
|
68
|
+
5. Relevant learnings from `.hatch3r/learnings/` (if found in Step 1d).
|
|
69
69
|
6. Explicit instruction: do NOT create branches, commits, or PRs.
|
|
70
70
|
7. 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.
|
|
71
71
|
8. Revision-specific constraint: "You are fixing existing code, not implementing new features. Stay within the architecture established by the original implementation."
|
|
@@ -38,7 +38,7 @@ Run an iterative review loop (max 3 iterations) until 0 Critical + 0 Warning fin
|
|
|
38
38
|
|
|
39
39
|
The reviewer prompt MUST include:
|
|
40
40
|
- The diff of all changes made (use `git diff` on the working tree).
|
|
41
|
-
- All `scope: always` rule directives from
|
|
41
|
+
- All `scope: always` rule directives from `rules/`.
|
|
42
42
|
- Iteration number and previous findings (if not the first iteration).
|
|
43
43
|
- 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.
|
|
44
44
|
|
|
@@ -82,7 +82,7 @@ After the review loop is clean, spawn specialist agents in parallel via the Task
|
|
|
82
82
|
|
|
83
83
|
Each specialist sub-agent prompt MUST include:
|
|
84
84
|
- The agent protocol to follow (e.g., "Follow the hatch3r-test-writer agent protocol").
|
|
85
|
-
- All `scope: always` rule directives from
|
|
85
|
+
- All `scope: always` rule directives from `rules/` (sub-agents do not inherit rules automatically).
|
|
86
86
|
- The diff or file changes to review.
|
|
87
87
|
- The linked issue's acceptance criteria (if available).
|
|
88
88
|
- 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.
|
|
@@ -3,7 +3,7 @@ name: hatch3r-docs-agent
|
|
|
3
3
|
type: github-agent
|
|
4
4
|
description: Technical writer who maintains specs, ADRs, and documentation
|
|
5
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [devops, ctx:team-only]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
9
|
cache_friendly: true
|
|
@@ -3,7 +3,7 @@ name: hatch3r-lint-agent
|
|
|
3
3
|
type: github-agent
|
|
4
4
|
description: Code quality enforcer who fixes style, formatting, and type issues
|
|
5
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [devops, ctx:team-only]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
9
|
cache_friendly: true
|
|
@@ -3,7 +3,7 @@ name: hatch3r-security-agent
|
|
|
3
3
|
type: github-agent
|
|
4
4
|
description: Security analyst who audits code, rules, and data flows
|
|
5
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [devops, floor:security, ctx:team-only]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
9
|
cache_friendly: true
|
|
@@ -3,7 +3,7 @@ name: hatch3r-test-agent
|
|
|
3
3
|
type: github-agent
|
|
4
4
|
description: QA engineer who writes and maintains tests
|
|
5
5
|
# Simplified agent for GitHub Copilot/Codex
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [review, ctx:team-only]
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
9
|
cache_friendly: true
|
|
@@ -4,7 +4,7 @@ type: hook
|
|
|
4
4
|
event: ci-failure
|
|
5
5
|
agent: ci-watcher
|
|
6
6
|
description: Diagnose CI pipeline failures
|
|
7
|
-
tags: [
|
|
7
|
+
tags: [devops]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
---
|
|
@@ -22,7 +22,7 @@ When this hook fires, the assigned agent should:
|
|
|
22
22
|
4. For test failures: identify the specific failing test(s), expected vs. actual values, and the source file(s) involved.
|
|
23
23
|
5. For build/type errors: extract the compiler error message and the source location.
|
|
24
24
|
6. Produce a root-cause hypothesis with a concrete suggested fix (code change, config change, or retry recommendation for flaky failures).
|
|
25
|
-
7. If the failure matches a known pattern from `.
|
|
25
|
+
7. If the failure matches a known pattern from `.hatch3r/learnings/`, reference the relevant learning.
|
|
26
26
|
|
|
27
27
|
## Expected Output
|
|
28
28
|
|
|
@@ -33,7 +33,7 @@ A structured diagnostic report containing:
|
|
|
33
33
|
- **Root cause**: Concise explanation of why the failure occurred.
|
|
34
34
|
- **Error excerpt**: The relevant log output (truncated to key lines).
|
|
35
35
|
- **Suggested fix**: Specific, actionable remediation steps.
|
|
36
|
-
- **Related learnings**: Links to any matching entries in `.
|
|
36
|
+
- **Related learnings**: Links to any matching entries in `.hatch3r/learnings/` (if applicable).
|
|
37
37
|
|
|
38
38
|
## Configuration
|
|
39
39
|
|
|
@@ -5,7 +5,7 @@ event: file-save
|
|
|
5
5
|
agent: context-rules
|
|
6
6
|
description: Activate context-specific rules on file save
|
|
7
7
|
globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"
|
|
8
|
-
tags: [
|
|
8
|
+
tags: [orchestration]
|
|
9
9
|
quality_charter: agents/shared/quality-charter.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
---
|
|
@@ -17,7 +17,7 @@ Activate context-specific rules when a file is saved, applying relevant coding s
|
|
|
17
17
|
|
|
18
18
|
When this hook fires, the assigned agent should:
|
|
19
19
|
|
|
20
|
-
1. Determine the saved file's path and match it against the project's rule definitions in
|
|
20
|
+
1. Determine the saved file's path and match it against the project's rule definitions in `rules/`.
|
|
21
21
|
2. Load all rules where `scope: always` applies, plus any rules with glob patterns matching the saved file's path.
|
|
22
22
|
3. Evaluate the saved file's contents against the loaded rules — check for convention violations, pattern mismatches, or missing required elements (e.g., missing error handling in API routes, missing accessibility attributes in components).
|
|
23
23
|
4. If violations are found, surface them as inline warnings or suggestions (not blocking — file-save hooks should be non-disruptive).
|
|
@@ -31,5 +31,5 @@ When this hook fires, the assigned agent should:
|
|
|
31
31
|
## Configuration
|
|
32
32
|
|
|
33
33
|
- **Globs**: Controlled by the `globs` frontmatter field. Adjust to match your project's source file extensions.
|
|
34
|
-
- **Rule sources**: Reads from
|
|
34
|
+
- **Rule sources**: Reads from `rules/`. Rules with matching `globs` or `scope: always` are activated.
|
|
35
35
|
- **Debounce**: To avoid excessive processing during rapid saves, the agent debounces with a 2-second window (configurable via `debounceMs`).
|
|
@@ -5,7 +5,7 @@ event: pre-commit
|
|
|
5
5
|
agent: lint-fixer
|
|
6
6
|
description: Auto-fix lint and formatting issues before commit
|
|
7
7
|
globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"
|
|
8
|
-
tags: [
|
|
8
|
+
tags: [implementation]
|
|
9
9
|
quality_charter: agents/shared/quality-charter.md
|
|
10
10
|
cache_friendly: true
|
|
11
11
|
---
|
|
@@ -4,7 +4,7 @@ type: hook
|
|
|
4
4
|
event: pre-push
|
|
5
5
|
agent: security-auditor
|
|
6
6
|
description: Scan for secrets and security issues before push
|
|
7
|
-
tags: [
|
|
7
|
+
tags: [floor:security]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
---
|
|
@@ -29,6 +29,6 @@ When this hook fires, the assigned agent should:
|
|
|
29
29
|
|
|
30
30
|
## Configuration
|
|
31
31
|
|
|
32
|
-
- **Allowlist**: Add known false positives to `.
|
|
33
|
-
- **Pattern extensions**: The agent uses built-in patterns for common secret types. Add project-specific patterns via `.
|
|
32
|
+
- **Allowlist**: Add known false positives to `.hatch3r/security/secret-allowlist.json` (patterns or file paths to ignore).
|
|
33
|
+
- **Pattern extensions**: The agent uses built-in patterns for common secret types. Add project-specific patterns via `.hatch3r/security/custom-patterns.json`.
|
|
34
34
|
- **Scope**: By default, scans only the diff of outgoing commits. Set `scanFullHistory: true` to scan all files (slower, useful for initial audits).
|
|
@@ -4,7 +4,7 @@ type: hook
|
|
|
4
4
|
event: session-start
|
|
5
5
|
agent: learnings-loader
|
|
6
6
|
description: Load relevant learnings at session start
|
|
7
|
-
tags: [
|
|
7
|
+
tags: [orchestration]
|
|
8
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
9
|
cache_friendly: true
|
|
10
10
|
---
|
|
@@ -16,11 +16,11 @@ Activate the learnings-loader agent when a new coding session starts to surface
|
|
|
16
16
|
|
|
17
17
|
When this hook fires, the assigned agent should:
|
|
18
18
|
|
|
19
|
-
1. Read the `.
|
|
19
|
+
1. Read the `.hatch3r/learnings/` directory and index all available learning files by area, tags, and recency.
|
|
20
20
|
2. Identify the most relevant learnings based on recently modified files in the working tree (using `git diff` and `git log` to infer the active work area).
|
|
21
21
|
3. Surface the top 3-5 most relevant learnings as a brief summary, prioritizing: (a) learnings from the last 7 days, (b) learnings matching the current branch's area labels, (c) learnings tagged as high-impact or cross-cutting.
|
|
22
22
|
4. If there are recent architectural decisions or convention changes, highlight them prominently.
|
|
23
|
-
5. If `.
|
|
23
|
+
5. If `.hatch3r/learnings/` does not exist or is empty, skip silently.
|
|
24
24
|
|
|
25
25
|
## Expected Output
|
|
26
26
|
|
|
@@ -3,7 +3,8 @@ id: hatch3r-accessibility-standards
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Accessibility standards covering WCAG 2.2 AA compliance, keyboard navigation, screen readers, and ARIA patterns
|
|
5
5
|
scope: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/components/**,**/*.html,**/*a11y*,**/*accessibility*"
|
|
6
|
-
tags: [a11y]
|
|
6
|
+
tags: [floor:ui-ux, a11y]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
description: Accessibility standards covering WCAG 2.2 AA compliance, keyboard navigation, screen readers, and ARIA patterns
|
|
3
3
|
globs: ["**/*.vue", "**/*.jsx", "**/*.tsx", "**/*.svelte", "**/components/**", "**/*.html", "**/*a11y*", "**/*accessibility*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: high
|
|
5
6
|
---
|
|
6
7
|
# Accessibility Standards
|
|
7
8
|
|
|
@@ -3,10 +3,13 @@ id: hatch3r-agent-orchestration-detail
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Extended orchestration reference — PipelineContext schemas, resilience protocols, observability integration, and auto-mode guardrails
|
|
5
5
|
scope: conditional
|
|
6
|
-
globs: "**/.
|
|
7
|
-
tags: [
|
|
6
|
+
globs: "**/.hatch3r/**,**/pipeline/**,**/*orchestrat*,**/*agent*"
|
|
7
|
+
tags: [orchestration, floor:protocol]
|
|
8
|
+
precedence: normal
|
|
8
9
|
quality_charter: agents/shared/quality-charter.md
|
|
9
10
|
cache_friendly: true
|
|
11
|
+
detail_rule: true
|
|
12
|
+
consumed_by: hatch3r-agent-orchestration
|
|
10
13
|
---
|
|
11
14
|
# Agent Orchestration — Extended Reference
|
|
12
15
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Extended orchestration reference — PipelineContext schemas, resilience protocols, observability integration, and auto-mode guardrails
|
|
3
|
-
globs: ["**/.
|
|
3
|
+
globs: ["**/.hatch3r/**", "**/pipeline/**", "**/*orchestrat*", "**/*agent*"]
|
|
4
4
|
alwaysApply: false
|
|
5
|
+
precedence: normal
|
|
6
|
+
detail_rule: true
|
|
7
|
+
consumed_by: hatch3r-agent-orchestration
|
|
5
8
|
---
|
|
6
9
|
# Agent Orchestration — Extended Reference
|
|
7
10
|
|
|
@@ -3,7 +3,8 @@ id: hatch3r-agent-orchestration
|
|
|
3
3
|
type: rule
|
|
4
4
|
description: Mandatory agent delegation, skill loading, and subagent usage directives for ALL tasks in ALL contexts
|
|
5
5
|
scope: always
|
|
6
|
-
tags: [
|
|
6
|
+
tags: [orchestration, floor:protocol]
|
|
7
|
+
precedence: high
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
8
9
|
cache_friendly: true
|
|
9
10
|
---
|
|
@@ -103,6 +104,28 @@ Examples:
|
|
|
103
104
|
|
|
104
105
|
A missing header on a tracked Tier >= 2 task is a self-detectable drift signal — the user may halt the turn and request re-grounding. The header also functions as a per-reply cache prime: rendering it forces the orchestrator to re-resolve which phase it is in before choosing tools. Tier 1 tasks, read-only answers, and chat-only iterations do NOT require the header.
|
|
105
106
|
|
|
107
|
+
### End-of-Turn Delegation Attestation
|
|
108
|
+
|
|
109
|
+
When the turn is on a tracked task at Tier >= 2 AND caused at least one file mutation, the orchestrator MUST emit a closing block immediately before the Iteration Summary. The block enumerates every file mutated this turn, the spawning sub-agent invocation, and the `delegation_proof_id` returned by that sub-agent.
|
|
110
|
+
|
|
111
|
+
Format:
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
[hatch3r-delegation-attestation]
|
|
115
|
+
files_mutated_this_turn:
|
|
116
|
+
- <relative path>: via <agent-name> (proof: <delegation_proof_id>)
|
|
117
|
+
mutating_subagent_invocations: <integer>
|
|
118
|
+
inline_edits_by_orchestrator: none | <carve-out: hatch3r-quick-change Tier-1 + queued re-delegation>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Rules:
|
|
122
|
+
|
|
123
|
+
- Each `files_mutated_this_turn` row MUST cite the spawning sub-agent invocation and quote the `delegation_proof_id` returned by that sub-agent verbatim. Unattributable rows are self-declared P8 B2 violations and the orchestrator MUST queue re-delegation in the next turn.
|
|
124
|
+
- `inline_edits_by_orchestrator: none` is the only acceptable value outside the `hatch3r-quick-change` Tier-1 carve-out declared in the "Inline implementation" definition above.
|
|
125
|
+
- Tier 1 read-only and chat-only turns are exempt — same scope as the Per-Turn Pipeline-State Header.
|
|
126
|
+
- Missing block on a Tier >= 2 mutating turn is a self-detectable drift signal — the user may halt the turn and re-ground per the same protocol as the missing-header signal.
|
|
127
|
+
- The block is consumed by reviewers and the next orchestrator turn; it sits beside the Iteration Summary, not inside it, preserving the existing 5-field iteration-summary contract verbatim.
|
|
128
|
+
|
|
106
129
|
### Mandatory Delegation Directive (No Inline Implementation)
|
|
107
130
|
|
|
108
131
|
Restating with maximum clarity for sub-agent prompt inclusion: the orchestrator MUST NOT call `Edit`, `Write`, `MultiEdit`, `NotebookEdit`, `replace_string_in_file`, `multi_replace_string_in_file`, `create_file`, `str_replace_based_edit_tool`, `apply_patch`, or any platform-equivalent code-writing tool from its own turn. The only path for code mutation is the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3). Carve-out: `hatch3r-quick-change` Tier 1 trivial items per its declared scope. No other carve-out exists. Violations are bypass mode (see issue #73) — surface them by halting the turn and re-delegating.
|
|
@@ -132,14 +155,14 @@ For multi-sub-task implementations, the implementer performs a lightweight mini-
|
|
|
132
155
|
|
|
133
156
|
1. Spawn `hatch3r-reviewer` with diff and acceptance criteria. Reviewer includes blast radius summary.
|
|
134
157
|
2. Critical/Warning findings: spawn `hatch3r-fixer` with full reviewer output.
|
|
135
|
-
3. Re-review after fixes. Repeat until 0 Critical + 0 Warning, or max
|
|
158
|
+
3. Re-review after fixes. Repeat until 0 Critical + 0 Warning, or max 4 iterations (matches `DEFAULT_MAX_REVIEW_ITERATIONS` in `src/pipeline/reviewLoop.ts`; raised from 3 to 4 in Cycle 7.5 W2B2 finding H26 so the oscillation detector becomes reachable in default config). The rule default and the code constant are kept in sync by `src/__tests__/pipeline/reviewLoop.test.ts` (CI-enforced).
|
|
136
159
|
4. **Confirmation pass** after clean review: lightweight re-review for fix-driven regressions and acceptance criteria completeness. The confirmation pass checks only: (a) no new test failures compared to Phase 2 baseline, (b) no type errors introduced, (c) acceptance criteria from the issue are still met. It does not re-run the full review checklist.
|
|
137
160
|
5. Max iterations reached: surface to user with a structured summary: iteration count, remaining Critical findings (with file:line), remaining Warning findings, and a recommendation (fix manually vs. accept risk). Never present raw reviewer output without summarization.
|
|
138
161
|
6. **Review gate confidence signal:** When the review loop exits with a clean verdict, record the iteration count in `PipelineContext.reviewResult.iterations`. Clean-on-first-pass (iteration 1) signals higher confidence than clean-after-multiple-iterations (iteration 2-3). Phase 4 specialists and the orchestrator should factor this into their risk assessment.
|
|
139
162
|
|
|
140
163
|
**Phase 4 — Final Quality** (after review loop is clean):
|
|
141
164
|
|
|
142
|
-
Launch parallel
|
|
165
|
+
Launch Phase 4 specialists in parallel, bounded by `max_phase4_parallel` (default `3`, override via `HATCH3R_MAX_PHASE4_PARALLEL` env var; valid range 1-16, values outside the range fall back to default with a logged warning). The bound exists to cap per-orchestrator concurrent context cost — it does not soften the P8 B2 directive that fan-out scales with task decomposition. When the number of applicable specialists exceeds `max_phase4_parallel`, batch them by severity-descending priority: `CRITICAL → HIGH → MEDIUM → LOW` (severity is the worst-case finding class the specialist is expected to surface, per the `hatch3r-test-writer` / `hatch3r-security-auditor` always-on baseline → CRITICAL, conditional UI/security/perf → HIGH, docs/lint → MEDIUM, low-impact specialists → LOW). Within the same severity bucket, dispatch order is the trigger-table order in the table above. Each batch runs to completion (all specialists return SUCCESS/PARTIAL/FAILED) before the next batch starts; the validation pass below runs once after the final batch.
|
|
143
166
|
|
|
144
167
|
- **Always** (except when Phase Skip Criteria applies — see below)**:** `hatch3r-test-writer`, `hatch3r-security-auditor`
|
|
145
168
|
- **Evaluate:** `hatch3r-docs-writer` (when APIs/architecture/UX affected)
|
|
@@ -348,6 +371,6 @@ All `scope: always` rules apply to every task including subagent work. Include r
|
|
|
348
371
|
- `hatch3r-dependency-management` -- dependency-auditor
|
|
349
372
|
|
|
350
373
|
**Tier 3 -- On-demand:**
|
|
351
|
-
- `hatch3r-api-design`, `hatch3r-secrets-management`, `hatch3r-data-classification`, `hatch3r-performance-budgets`, `hatch3r-browser-verification`, `hatch3r-component-conventions`, `hatch3r-i18n`, `hatch3r-theming`, `hatch3r-migrations`, `hatch3r-feature-flags`, `hatch3r-observability-logging`, `hatch3r-observability-metrics`, `hatch3r-observability-tracing
|
|
374
|
+
- `hatch3r-api-design`, `hatch3r-secrets-management`, `hatch3r-data-classification`, `hatch3r-performance-budgets`, `hatch3r-browser-verification`, `hatch3r-component-conventions`, `hatch3r-i18n`, `hatch3r-theming`, `hatch3r-migrations`, `hatch3r-feature-flags`, `hatch3r-observability-logging`, `hatch3r-observability-metrics`, `hatch3r-observability-tracing`
|
|
352
375
|
|
|
353
376
|
For limited context windows, Tier 1 is mandatory. Tier 2/3 included selectively by agent role and task scope.
|