hatch3r 1.9.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 +52 -143
- package/dist/cli/index.js +28453 -15831
- package/dist/content/agents/hatch3r-architect.md +39 -9
- package/dist/content/agents/hatch3r-brownfield-spec.md +254 -0
- package/dist/content/agents/hatch3r-ci-watcher.md +8 -1
- package/dist/content/agents/hatch3r-context-rules.md +19 -1
- package/dist/content/agents/hatch3r-creator.md +65 -26
- package/dist/content/agents/hatch3r-dependency-drafter.md +162 -0
- package/dist/content/agents/hatch3r-devops.md +11 -1
- package/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/dist/content/agents/hatch3r-fixer.md +59 -8
- package/dist/content/agents/hatch3r-greenfield-spec.md +256 -0
- package/dist/content/agents/hatch3r-handoff-loader.md +29 -3
- package/dist/content/agents/hatch3r-handoff-preparer.md +10 -1
- package/dist/content/agents/hatch3r-implementer.md +139 -8
- package/dist/content/agents/hatch3r-incident-responder.md +96 -0
- package/dist/content/agents/hatch3r-learnings-loader.md +122 -88
- package/dist/content/agents/hatch3r-lint-fixer.md +15 -3
- 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/dist/content/agents/hatch3r-researcher.md +27 -4
- package/dist/content/agents/hatch3r-reviewer.md +153 -103
- 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/dist/content/agents/modes/requirements-elicitation.md +1 -1
- package/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/dist/content/agents/shared/efficiency-patterns.md +32 -1
- package/dist/content/agents/shared/injection-patterns.md +18 -7
- package/dist/content/agents/shared/principles.md +60 -0
- package/dist/content/agents/shared/prompt-structure.md +7 -1
- package/dist/content/agents/shared/quality-charter.md +48 -12
- 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/dist/content/agents/shared/user-content-templates.md +34 -8
- package/dist/content/agents/shared/user-question-protocol.md +45 -3
- package/dist/content/checks/README.md +5 -0
- package/dist/content/checks/accessibility.md +14 -7
- package/dist/content/checks/code-quality.md +1 -1
- package/dist/content/checks/performance.md +7 -4
- package/dist/content/checks/security.md +6 -6
- package/dist/content/checks/testing.md +1 -1
- package/dist/content/commands/board/pickup-delegation-multi.md +37 -10
- package/dist/content/commands/board/pickup-delegation.md +7 -5
- package/dist/content/commands/board/pickup-modes.md +1 -0
- package/dist/content/commands/board/pickup-post-impl.md +1 -1
- package/dist/content/commands/hatch3r-api-spec.md +79 -2
- package/dist/content/commands/hatch3r-auth-scaffold.md +250 -0
- package/dist/content/commands/hatch3r-benchmark.md +90 -7
- package/dist/content/commands/hatch3r-board-fill.md +97 -11
- package/dist/content/commands/hatch3r-board-pickup.md +93 -9
- package/dist/content/commands/hatch3r-bug-pipeline.md +240 -0
- package/dist/content/commands/hatch3r-bug-plan.md +79 -3
- package/dist/content/commands/hatch3r-codebase-map.md +80 -4
- package/dist/content/commands/hatch3r-create.md +105 -7
- package/dist/content/commands/hatch3r-debug.md +102 -14
- package/dist/content/commands/hatch3r-diagnose.md +238 -0
- package/dist/content/commands/hatch3r-feature-plan.md +125 -5
- package/dist/content/commands/hatch3r-handoff.md +83 -3
- package/dist/content/commands/hatch3r-healthcheck.md +105 -5
- package/dist/content/commands/hatch3r-incident-response.md +228 -0
- package/dist/content/commands/hatch3r-migration-plan.md +79 -3
- package/dist/content/commands/hatch3r-onboard.md +94 -3
- package/dist/content/commands/hatch3r-pack-install.md +243 -0
- package/dist/content/commands/hatch3r-pr-resolve.md +106 -23
- package/dist/content/commands/hatch3r-project-spec.md +82 -6
- package/dist/content/commands/hatch3r-quick-change.md +108 -13
- package/dist/content/commands/hatch3r-refactor-plan.md +78 -2
- package/dist/content/commands/hatch3r-release.md +401 -0
- package/dist/content/commands/hatch3r-revision.md +98 -12
- package/dist/content/commands/hatch3r-roadmap.md +92 -10
- package/dist/content/commands/hatch3r-security-audit.md +105 -5
- package/dist/content/commands/hatch3r-slo-scaffold.md +246 -0
- package/dist/content/commands/hatch3r-spec.md +216 -0
- package/dist/content/commands/hatch3r-test-plan.md +85 -9
- package/dist/content/commands/hatch3r-workflow.md +165 -41
- package/dist/content/commands/revision/revision-delegation.md +6 -5
- package/dist/content/commands/revision/revision-modes.md +49 -4
- package/dist/content/commands/revision/revision-quality.md +10 -7
- package/dist/content/commands/shared/orchestration-frame.md +119 -0
- package/dist/content/github-agents/hatch3r-docs-agent.md +21 -1
- package/dist/content/github-agents/hatch3r-lint-agent.md +21 -1
- package/dist/content/github-agents/hatch3r-security-agent.md +21 -1
- package/dist/content/github-agents/hatch3r-test-agent.md +21 -1
- package/dist/content/hooks/hatch3r-file-save.md +1 -1
- package/dist/content/hooks/hatch3r-pre-push.md +4 -4
- package/dist/content/hooks/hatch3r-review-loop-cap.md +52 -0
- package/dist/content/mcp/mcp.json +7 -5
- package/dist/content/rules/hatch3r-accessibility-standards.md +14 -2
- package/dist/content/rules/hatch3r-accessibility-standards.mdc +12 -1
- package/dist/content/rules/hatch3r-agent-orchestration-detail.md +58 -19
- package/dist/content/rules/hatch3r-agent-orchestration-detail.mdc +58 -19
- package/dist/content/rules/hatch3r-agent-orchestration.md +87 -213
- package/dist/content/rules/hatch3r-agent-orchestration.mdc +87 -213
- package/dist/content/rules/hatch3r-ai-evals.md +5 -4
- package/dist/content/rules/hatch3r-ai-evals.mdc +3 -3
- package/dist/content/rules/hatch3r-ai-ux-patterns.md +6 -2
- package/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/dist/content/rules/hatch3r-api-design.md +5 -1
- package/dist/content/rules/hatch3r-api-design.mdc +3 -0
- package/dist/content/rules/hatch3r-api-versioning.md +2 -1
- package/dist/content/rules/hatch3r-auth-patterns.md +3 -1
- package/dist/content/rules/hatch3r-auth-patterns.mdc +1 -0
- package/dist/content/rules/hatch3r-browser-verification.md +2 -0
- package/dist/content/rules/hatch3r-browser-verification.mdc +2 -0
- package/dist/content/rules/hatch3r-capability-matrix.md +108 -0
- package/dist/content/rules/hatch3r-capability-matrix.mdc +108 -0
- package/dist/content/rules/hatch3r-ci-cd.md +8 -1
- package/dist/content/rules/hatch3r-ci-cd.mdc +6 -0
- package/dist/content/rules/hatch3r-clarification-default.md +73 -0
- package/dist/content/rules/hatch3r-clarification-default.mdc +73 -0
- package/dist/content/rules/hatch3r-code-standards.md +23 -47
- package/dist/content/rules/hatch3r-code-standards.mdc +22 -46
- package/dist/content/rules/hatch3r-component-conventions.md +3 -0
- package/dist/content/rules/hatch3r-component-conventions.mdc +3 -0
- package/dist/content/rules/hatch3r-container-hardening.md +11 -2
- package/dist/content/rules/hatch3r-container-hardening.mdc +9 -1
- package/dist/content/rules/hatch3r-contract-testing.md +2 -1
- 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/dist/content/rules/hatch3r-data-classification.md +3 -1
- package/dist/content/rules/hatch3r-data-classification.mdc +2 -1
- package/dist/content/rules/hatch3r-deep-context.md +13 -13
- package/dist/content/rules/hatch3r-deep-context.mdc +13 -13
- package/dist/content/rules/hatch3r-dependency-management.md +16 -3
- package/dist/content/rules/hatch3r-dependency-management.mdc +15 -3
- package/dist/content/rules/hatch3r-design-system-detection.md +2 -1
- 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/dist/content/rules/hatch3r-event-schema-evolution.md +2 -1
- package/dist/content/rules/hatch3r-fan-out-discipline.md +91 -0
- package/dist/content/rules/hatch3r-fan-out-discipline.mdc +91 -0
- package/dist/content/rules/hatch3r-feature-flags.md +2 -0
- package/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/dist/content/rules/hatch3r-git-conventions.md +4 -1
- package/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/dist/content/rules/hatch3r-handoff-readiness.md +10 -0
- package/dist/content/rules/hatch3r-handoff-readiness.mdc +10 -0
- package/dist/content/rules/hatch3r-i18n.md +2 -0
- package/dist/content/rules/hatch3r-i18n.mdc +2 -0
- package/dist/content/rules/hatch3r-iteration-summary.md +75 -57
- package/dist/content/rules/hatch3r-iteration-summary.mdc +77 -54
- 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/dist/content/rules/hatch3r-migrations.md +2 -1
- package/dist/content/rules/hatch3r-observability-logging.md +1 -1
- package/dist/content/rules/hatch3r-observability-metrics.md +1 -1
- package/dist/content/rules/hatch3r-observability-tracing.md +45 -36
- package/dist/content/rules/hatch3r-observability-tracing.mdc +44 -35
- package/dist/content/rules/hatch3r-operability.md +2 -1
- package/dist/content/rules/hatch3r-passkey-server.md +2 -1
- package/dist/content/rules/hatch3r-performance-budgets.md +2 -0
- package/dist/content/rules/hatch3r-performance-budgets.mdc +2 -0
- package/dist/content/rules/hatch3r-php-laravel-patterns.md +109 -0
- package/dist/content/rules/hatch3r-php-laravel-patterns.mdc +104 -0
- package/dist/content/rules/hatch3r-progressive-delivery.md +5 -1
- package/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/dist/content/rules/hatch3r-resilience-patterns.md +2 -1
- 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/dist/content/rules/hatch3r-secrets-management.md +10 -1
- package/dist/content/rules/hatch3r-secrets-management.mdc +8 -0
- package/dist/content/rules/hatch3r-security-patterns.md +36 -34
- package/dist/content/rules/hatch3r-security-patterns.mdc +35 -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/dist/content/rules/hatch3r-testing.md +4 -1
- package/dist/content/rules/hatch3r-testing.mdc +2 -0
- package/dist/content/rules/hatch3r-theming.md +2 -0
- package/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/dist/content/rules/hatch3r-tooling-hierarchy.md +29 -31
- package/dist/content/rules/hatch3r-tooling-hierarchy.mdc +27 -30
- package/dist/content/rules/hatch3r-typescript-patterns.md +58 -0
- package/dist/content/rules/hatch3r-typescript-patterns.mdc +53 -0
- package/dist/content/rules/hatch3r-ux-states-and-flows.md +11 -4
- package/dist/content/rules/hatch3r-ux-states-and-flows.mdc +9 -3
- package/dist/content/skills/hatch3r-a11y-audit/SKILL.md +10 -8
- package/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/dist/content/skills/hatch3r-ai-feature/SKILL.md +4 -6
- package/dist/content/skills/hatch3r-api-spec/SKILL.md +27 -2
- package/dist/content/skills/hatch3r-architecture-review/SKILL.md +4 -7
- package/dist/content/skills/hatch3r-board-groom/SKILL.md +11 -0
- package/dist/content/skills/hatch3r-board-init/SKILL.md +17 -1
- package/dist/content/skills/hatch3r-board-refresh/SKILL.md +12 -1
- package/dist/content/skills/hatch3r-board-shared/SKILL.md +38 -1
- package/dist/content/skills/hatch3r-browser-verify/SKILL.md +307 -0
- package/dist/content/skills/hatch3r-bug-fix/SKILL.md +15 -2
- package/dist/content/skills/hatch3r-ci-pipeline/SKILL.md +17 -7
- package/dist/content/skills/hatch3r-cli-fd/SKILL.md +33 -1
- package/dist/content/skills/hatch3r-cli-fzf/SKILL.md +33 -1
- package/dist/content/skills/hatch3r-cli-gh/SKILL.md +50 -1
- package/dist/content/skills/hatch3r-cli-jq/SKILL.md +40 -6
- package/dist/content/skills/hatch3r-cli-ripgrep/SKILL.md +33 -1
- package/dist/content/skills/hatch3r-cli-toolbox/SKILL.md +130 -23
- package/dist/content/skills/hatch3r-containerize/SKILL.md +157 -0
- package/dist/content/skills/hatch3r-context-health/SKILL.md +9 -7
- package/dist/content/skills/hatch3r-cost-tracking/SKILL.md +37 -17
- package/dist/content/skills/hatch3r-customize/SKILL.md +5 -8
- package/dist/content/skills/hatch3r-dep-audit/SKILL.md +23 -7
- package/dist/content/skills/hatch3r-design-system-detect/SKILL.md +3 -7
- package/dist/content/skills/hatch3r-docs-writing/SKILL.md +159 -0
- package/dist/content/skills/hatch3r-enhancability-verify/SKILL.md +152 -0
- package/dist/content/skills/hatch3r-feature/SKILL.md +53 -3
- package/dist/content/skills/hatch3r-feedback/SKILL.md +103 -0
- package/dist/content/skills/hatch3r-gh-agentic-workflows/SKILL.md +10 -8
- package/dist/content/skills/hatch3r-handoff-prepare/SKILL.md +4 -7
- package/dist/content/skills/hatch3r-handoff-resume/SKILL.md +4 -7
- package/dist/content/{commands/hatch3r-hooks.md → skills/hatch3r-hooks/SKILL.md} +48 -137
- package/dist/content/skills/hatch3r-incident-response/SKILL.md +66 -7
- package/dist/content/skills/hatch3r-issue-workflow/SKILL.md +11 -0
- package/dist/content/skills/hatch3r-learn/SKILL.md +317 -0
- package/dist/content/skills/hatch3r-logical-refactor/SKILL.md +6 -7
- package/dist/content/skills/hatch3r-maintainability-verify/SKILL.md +146 -0
- package/dist/content/skills/hatch3r-migration/SKILL.md +8 -7
- package/dist/content/skills/hatch3r-observability-verify/SKILL.md +17 -12
- package/dist/content/skills/hatch3r-perf-audit/SKILL.md +13 -9
- package/dist/content/skills/hatch3r-pr-creation/SKILL.md +4 -7
- package/dist/content/skills/hatch3r-qa-validation/SKILL.md +6 -5
- package/dist/content/skills/hatch3r-recipe/SKILL.md +63 -60
- package/dist/content/skills/hatch3r-refactor/SKILL.md +6 -7
- package/dist/content/skills/hatch3r-release/SKILL.md +123 -11
- package/dist/content/skills/hatch3r-reliability-verify/SKILL.md +9 -5
- package/dist/content/{commands/hatch3r-report.md → skills/hatch3r-report/SKILL.md} +20 -17
- 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/dist/content/skills/hatch3r-ui-ux-verify/SKILL.md +19 -11
- package/dist/content/skills/hatch3r-visual-refactor/SKILL.md +11 -7
- package/package.json +50 -31
- package/dist/cli/index.d.ts +0 -2
- package/dist/cli/index.js.map +0 -1
- package/dist/content/agents/hatch3r-a11y-auditor.md +0 -159
- package/dist/content/agents/hatch3r-dependency-auditor.md +0 -219
- package/dist/content/agents/hatch3r-perf-profiler.md +0 -166
- package/dist/content/agents/hatch3r-security-auditor.md +0 -180
- package/dist/content/agents/hatch3r-test-writer.md +0 -171
- package/dist/content/commands/hatch3r-learn.md +0 -312
- package/dist/content/rules/hatch3r-learning-consult.md +0 -42
- package/dist/content/rules/hatch3r-learning-consult.mdc +0 -38
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-adhoc-orchestrate
|
|
3
|
+
name: hatch3r-adhoc-orchestrate
|
|
4
|
+
type: skill
|
|
5
|
+
description: Scaffolds the ad-hoc Tier >= 2 orchestration protocol -- Per-Turn Pipeline-State Header, implementer delegation plan, End-of-Turn Delegation Attestation. Use for a maintainer multi-phase task with no registered command to avoid bypass mode.
|
|
6
|
+
tags: [orchestration]
|
|
7
|
+
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
cache_friendly: true
|
|
10
|
+
parallel_tool_default: true
|
|
11
|
+
sub_agents_spawned:
|
|
12
|
+
count: 0
|
|
13
|
+
rationale: This is a scaffolding skill — it emits the orchestration-protocol blocks for the maintainer's own multi-phase task; the maintainer's task then spawns its own implementer/fixer sub-agents per the plan this skill produces. The skill itself delegates nothing.
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Ad-Hoc Orchestration Scaffold
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
Task Progress:
|
|
22
|
+
- [ ] Step 0: Detect ambiguity (P8 B1)
|
|
23
|
+
- [ ] Step 1: Score the task tier (Tier >= 2 gate)
|
|
24
|
+
- [ ] Step 2: Emit the Per-Turn Pipeline-State Header
|
|
25
|
+
- [ ] Step 3: Build the delegation plan (no inline implementation)
|
|
26
|
+
- [ ] Step 4: Emit the End-of-Turn Delegation Attestation template
|
|
27
|
+
- [ ] Step 5: Verify the bypass-protection checklist
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
A multi-phase task driven by hand — research + implement + review, no registered `/h4tcher-*` command — is still bound by the **Orchestrator Self-Discipline (Bypass Protection)** contract in `CLAUDE.md` and `rules/hatch3r-agent-orchestration.md`. The CHANGELOG #73 failure mode is exactly this: running research and review sub-agents while inlining the implementation, escaping the protocol because no command was invoked. This skill is the turnkey scaffold that closes that loophole — it does not perform the work; it emits the three required protocol blocks so the maintainer's ad-hoc flow stays attributable.
|
|
31
|
+
|
|
32
|
+
Use this skill at the start of any maintainer-side multi-phase task at Tier >= 2 that is NOT already running under a registered command (which carries these blocks itself). When the work matches a registered intent, prefer the command: `/h4tcher-capability-add`, `/h4tcher-capability-refactor`, `/h4tcher-capability-remove` for lifecycle work; `commands/hatch3r-*.md` for end-user content workflows.
|
|
33
|
+
|
|
34
|
+
## Step 0 — Detect Ambiguity (P8 B1)
|
|
35
|
+
|
|
36
|
+
Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target files, or irreversibility. 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. Default path, not an exception. Triggers for THIS skill: the task tier is genuinely uncertain (Tier 1 vs Tier 2 changes whether the protocol even applies), the set of files to mutate is unbounded, or a registered command already covers the intent (route there instead of scaffolding).
|
|
37
|
+
|
|
38
|
+
## Step 1: Score the Task Tier (Tier >= 2 Gate)
|
|
39
|
+
|
|
40
|
+
The protocol binds at Tier 2 and Tier 3 only. Score the task per the `hatch3r-deep-context` rule (deep-context score >= 3 → Tier >= 2):
|
|
41
|
+
|
|
42
|
+
- **Tier 1** — trivial single-file edit, no cross-module reasoning. The header and attestation are NOT required; a single targeted edit is acceptable. State "Tier 1 — protocol not required" and exit the scaffold.
|
|
43
|
+
- **Tier 2** — multi-file or behavior-changing task with bounded scope. Full protocol applies.
|
|
44
|
+
- **Tier 3** — multi-module / high-risk task. Full protocol applies; fan out one sub-agent per independent module per `rules/hatch3r-fan-out-discipline.md` (P8 B2).
|
|
45
|
+
|
|
46
|
+
Record the score and the one-line rationale. The tier is the load-bearing input to every block below.
|
|
47
|
+
|
|
48
|
+
## Step 2: Emit the Per-Turn Pipeline-State Header
|
|
49
|
+
|
|
50
|
+
At the START of every assistant turn that touches the task, emit the single-line header per `rules/hatch3r-agent-orchestration.md` -> Per-Turn Pipeline-State Header:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
[hatch3r-pipeline: phase {1|2|3|4} | last: {agent} → {SUCCESS|PARTIAL|FAILED|BLOCKED|n/a} | next: {agent or "user-confirmation" or "complete"}]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Example first turn: `[hatch3r-pipeline: phase 1 | last: n/a | next: hatch3r-researcher]`
|
|
57
|
+
|
|
58
|
+
Phase mapping for an ad-hoc task (mirror the four-phase pipeline):
|
|
59
|
+
|
|
60
|
+
| Phase | Meaning | Driving agent |
|
|
61
|
+
|-------|---------|---------------|
|
|
62
|
+
| 1 | Research / context gathering | `hatch3r-researcher` |
|
|
63
|
+
| 2 | Implementation | `hatch3r-implementer` |
|
|
64
|
+
| 3 | Review loop | `hatch3r-reviewer` ↔ `hatch3r-fixer` |
|
|
65
|
+
| 4 | Final quality + summary | parallel specialists, then iteration summary |
|
|
66
|
+
|
|
67
|
+
A missing header on a Tier >= 2 turn is a self-detectable drift signal — halt and re-ground rather than continuing blind.
|
|
68
|
+
|
|
69
|
+
## Step 3: Build the Delegation Plan (No Inline Implementation)
|
|
70
|
+
|
|
71
|
+
The hard constraint: the orchestrator turn MUST NOT call any code-writing tool (`Edit`, `Write`, `MultiEdit`) directly. Code mutation flows ONLY through the Task tool spawning `hatch3r-implementer` (Phase 2) or `hatch3r-fixer` (Phase 3) per `rules/hatch3r-agent-orchestration.md` -> Mandatory Delegation Directive (No Inline Implementation). There is no Tier-1 carve-out here — Tier 1 exits at Step 1.
|
|
72
|
+
|
|
73
|
+
Produce a delegation plan before touching any file:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Delegation Plan:
|
|
77
|
+
Phase 1 — research: hatch3r-researcher, modes: {…}, depth: {quick|standard|deep}
|
|
78
|
+
Phase 2 — implement: hatch3r-implementer × {N} ({1 per independent module}; correlation_id: {uuid})
|
|
79
|
+
Phase 3 — review: hatch3r-reviewer ↔ hatch3r-fixer (max 4 iterations)
|
|
80
|
+
Phase 4 — quality: {applicable specialists per the Phase 4 Specialist Trigger Table}
|
|
81
|
+
sub_agents_spawned: { count: {N}, rationale: {one-sentence task-decomposition justification} }
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Fan-out scales with task decomposition, not token budget (P8 B2 dominates P7): N independent modules → N parallel Phase-2 implementers; serialize only on true dependency edges (shared files, ordered handoffs). Every delegation prompt carries the confidence expression requirement and the `correlation_id` per the orchestration rule.
|
|
85
|
+
|
|
86
|
+
## Step 4: Emit the End-of-Turn Delegation Attestation Template
|
|
87
|
+
|
|
88
|
+
Every turn that mutated files at Tier >= 2 emits the attestation block immediately BEFORE the Iteration Summary (beside it, not inside it — the iteration-summary contract stays verbatim), per `rules/hatch3r-agent-orchestration.md` -> End-of-Turn Delegation Attestation:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
[hatch3r-delegation-attestation]
|
|
92
|
+
files_mutated_this_turn:
|
|
93
|
+
- <relative path>: via <hatch3r-implementer | hatch3r-fixer> (proof: <delegation_proof_id>)
|
|
94
|
+
mutating_subagent_invocations: <integer>
|
|
95
|
+
inline_edits_by_orchestrator: none
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Why it is forgery-resistant: the per-file `delegation_proof_id` is returned by `hatch3r-implementer` / `hatch3r-fixer` in their structured results (`agents/hatch3r-implementer.md` -> Return Structured Result; `agents/hatch3r-fixer.md` -> Return Structured Result). Quote it verbatim. A turn that skipped delegation has no `delegation_proof_id` to quote — its row is unattributable, which is a self-declared P8 B2 violation: halt and queue re-delegation next turn. `inline_edits_by_orchestrator: none` is the only accepted value in an ad-hoc flow (the `hatch3r-quick-change` Tier-1 carve-out does not apply outside that command).
|
|
99
|
+
|
|
100
|
+
## Step 5: Bypass-Protection Checklist
|
|
101
|
+
|
|
102
|
+
Before declaring the turn complete, verify every item — a failed item is the CHANGELOG #73 bypass mode:
|
|
103
|
+
|
|
104
|
+
- [ ] Task tier scored; protocol applied iff Tier >= 2 (Step 1).
|
|
105
|
+
- [ ] Per-Turn Pipeline-State Header emitted at the start of every task-touching turn (Step 2).
|
|
106
|
+
- [ ] Zero inline `Edit` / `Write` / `MultiEdit` from the orchestrator turn; every code mutation went through `hatch3r-implementer` or `hatch3r-fixer` (Step 3).
|
|
107
|
+
- [ ] End-of-Turn Delegation Attestation emitted before the Iteration Summary, every mutated file attributed to a sub-agent with its `delegation_proof_id` quoted verbatim (Step 4).
|
|
108
|
+
- [ ] `sub_agents_spawned: { count, rationale }` emitted as a first-class field per `rules/hatch3r-fan-out-discipline.md`.
|
|
109
|
+
- [ ] Iteration Summary follows per `rules/hatch3r-iteration-summary.md`.
|
|
110
|
+
|
|
111
|
+
## Error Handling
|
|
112
|
+
|
|
113
|
+
- **Unattributable mutation row:** a file was mutated but no `delegation_proof_id` exists for it → the orchestrator inlined the edit. This is a P8 B2 violation. Halt the turn, queue re-delegation of that file through `hatch3r-implementer`/`hatch3r-fixer` next turn, and note the bypass in the attestation block.
|
|
114
|
+
- **Tier misclassification surfaces mid-task:** a Tier-1-scored task that grows to touch multiple modules → re-score to Tier >= 2 immediately, begin emitting the header and attestation from the current turn, and re-delegate any already-inlined edits.
|
|
115
|
+
- **Registered command exists for the intent:** if mid-scaffold you recognize the task matches a registered `/h4tcher-*` command or `commands/hatch3r-*.md`, stop scaffolding and route to that command — it carries these blocks natively and avoids hand-maintained drift.
|
|
116
|
+
|
|
117
|
+
## Definition of Done
|
|
118
|
+
|
|
119
|
+
- [ ] Tier scored; protocol applied at Tier >= 2 or skipped at Tier 1.
|
|
120
|
+
- [ ] Header emitted on every task-touching turn.
|
|
121
|
+
- [ ] No inline orchestrator edits; all mutations attributed to a delegated sub-agent.
|
|
122
|
+
- [ ] Attestation block emitted before the Iteration Summary with verbatim `delegation_proof_id`s.
|
|
123
|
+
- [ ] `sub_agents_spawned` count + rationale present.
|
|
124
|
+
|
|
125
|
+
## References
|
|
126
|
+
|
|
127
|
+
- `CLAUDE.md` -> "Orchestrator Self-Discipline (Bypass Protection)" — the three-requirement contract this skill scaffolds; accessed 2026-05-31; trust tier: official-docs (in-repo canonical).
|
|
128
|
+
- `rules/hatch3r-agent-orchestration.md` -> Per-Turn Pipeline-State Header, End-of-Turn Delegation Attestation, Mandatory Delegation Directive (No Inline Implementation) — block formats and rules reproduced here; accessed 2026-05-31; trust tier: official-docs (in-repo canonical).
|
|
129
|
+
- `rules/hatch3r-fan-out-discipline.md` — P8 B2 fan-out scaling, `sub_agents_spawned` first-class field, attestation forgery-resistance rationale; accessed 2026-05-31; trust tier: official-docs (in-repo canonical).
|
|
130
|
+
- `skills/hatch3r-incident-response/SKILL.md` — canonical skill structure (Quick Start + Step pattern + Fan-out Discipline section) modeled here; accessed 2026-05-31; trust tier: official-docs (in-repo canonical).
|
|
131
|
+
- hatch3r governance self-audit analysis — source rationale for the missing ad-hoc Tier >= 2 orchestrator scaffold; accessed 2026-05-31; trust tier: official-docs (in-repo canonical).
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-ai-feature
|
|
3
|
+
name: hatch3r-ai-feature
|
|
3
4
|
type: skill
|
|
4
5
|
description: Eval-driven development workflow for shipping AI features — write eval before prompt, measure, iterate, ship with caching + cost telemetry + model fallback + hallucination SLI
|
|
5
6
|
tags: [implementation, ai]
|
|
@@ -11,6 +12,8 @@ cache_friendly: true
|
|
|
11
12
|
|
|
12
13
|
## Quick Start
|
|
13
14
|
|
|
15
|
+
**Applies when:** the project ships an LLM/AI feature. On a project with no AI feature, skip — do not scaffold AI machinery pre-emptively (per `rules/hatch3r-right-sizing.md`).
|
|
16
|
+
|
|
14
17
|
Run this skill before shipping any LLM-driven feature. It defines the canonical eval-driven loop (write eval, write prompt, measure, iterate) and the production-readiness gates. Skipping any of the 9 steps = the feature is not done.
|
|
15
18
|
|
|
16
19
|
This skill is the implementation counterpart to `rules/hatch3r-ai-evals.md` (backend governance) and `rules/hatch3r-ai-ux-patterns.md` (UI governance). The rules define the bar; this skill defines the route to clearing the bar.
|
|
@@ -21,12 +24,7 @@ Before any work, scan the invocation for unresolved questions in scope, intent,
|
|
|
21
24
|
|
|
22
25
|
## Fan-out Discipline (P8 B2)
|
|
23
26
|
|
|
24
|
-
|
|
25
|
-
- Tier 1 (trivial single-file): inline execution acceptable.
|
|
26
|
-
- Tier 2 (multi-file or multi-concern): spawn parallel sub-agents per concern via the Task tool.
|
|
27
|
-
- Tier 3 (multi-module / high-risk): one fresh sub-agent per independent module or gate; orchestrator integrates only.
|
|
28
|
-
|
|
29
|
-
Never under-fan-out to save tokens. Token cost is dominated by quality and completeness gains. Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
27
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
30
28
|
|
|
31
29
|
## Step 1: Define the task and success criteria
|
|
32
30
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-api-spec
|
|
3
|
+
name: hatch3r-api-spec
|
|
3
4
|
type: skill
|
|
4
|
-
description:
|
|
5
|
+
description: Generates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation.
|
|
5
6
|
tags: [planning]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
7
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
@@ -10,6 +11,16 @@ cache_friendly: true
|
|
|
10
11
|
|
|
11
12
|
# API Specification Workflow
|
|
12
13
|
|
|
14
|
+
## Relationship to `commands/hatch3r-api-spec.md` (Decision 13 handoff)
|
|
15
|
+
|
|
16
|
+
This skill shares the `id: hatch3r-api-spec` with the orchestrator command `commands/hatch3r-api-spec.md`. The two are NOT duplicates — they split the OpenAPI workflow by execution model per CONSTITUTION §6 Decision 13:
|
|
17
|
+
|
|
18
|
+
- **`commands/hatch3r-api-spec.md` (orchestrator entry):** the canonical multi-agent pipeline — researcher scans routes, docs-writer assembles the spec, reviewer validates (`agentPipeline: [hatch3r-researcher, hatch3r-docs-writer, hatch3r-reviewer]`). Use the command when the workflow warrants sub-agent fan-out (Tier 2/3 framework detection, drift detection, breaking-change review).
|
|
19
|
+
- **This skill (inline procedure):** the single-pass reference body the command's docs-writer and reviewer stages follow when assembling and validating the spec. Use the skill directly for Tier 1 single-endpoint spec edits where no fan-out is needed, OR as the step-by-step procedure cited inside the command's Step 5 (OpenAPI Assembly) and Step 6 (Validation).
|
|
20
|
+
- **Unique to this skill:** Step 6 (`oasdiff` breaking-change CI gate wiring) is the inline-procedure detail the command references rather than restates.
|
|
21
|
+
|
|
22
|
+
The merge-candidate review (F16.3-H3) flagged the shared id; this handoff documentation is the explicit workflow-split declaration that disambiguates the pair. A future collapse into a single command appendix requires coordinated edits to the command body, the bundled content inventory (skills count), and the Decision-13 anti-duplicate-id gate in `src/cli/commands/validate.ts`.
|
|
23
|
+
|
|
13
24
|
## Quick Start
|
|
14
25
|
|
|
15
26
|
```
|
|
@@ -69,7 +80,7 @@ Before any work, scan the invocation for unresolved questions in scope, intent,
|
|
|
69
80
|
|
|
70
81
|
## Step 6: Wire `oasdiff` Breaking-Change CI Gate
|
|
71
82
|
|
|
72
|
-
Breaking changes on stable endpoints must trip CI before merge. This step enforces the
|
|
83
|
+
Breaking changes on stable endpoints must trip CI before merge. This step enforces the canonical lean-threshold floor "API breaking-change events on stable endpoints = 0 per release" (see `agents/shared/principles.md`, verified by `oasdiff / buf breaking / graphql-inspector CI gate`).
|
|
73
84
|
|
|
74
85
|
### 6.1 Install `oasdiff`
|
|
75
86
|
|
|
@@ -133,6 +144,15 @@ When a breaking change is deliberate (versioned endpoint cut, deprecated field r
|
|
|
133
144
|
|
|
134
145
|
The gate stays green only because the change is recorded — not because the breaking signal was silenced.
|
|
135
146
|
|
|
147
|
+
## Fan-out Discipline (P8 B2)
|
|
148
|
+
|
|
149
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Tier boundaries for THIS skill:
|
|
150
|
+
- Tier 1 (single service / one spec file): inline.
|
|
151
|
+
- Tier 2 (multiple services or spec + client-codegen + CI-gate concerns): spawn parallel sub-agents per concern via the Task tool.
|
|
152
|
+
- Tier 3 (cross-service contract suite): one fresh sub-agent per service spec; orchestrator integrates only.
|
|
153
|
+
|
|
154
|
+
Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
155
|
+
|
|
136
156
|
## Error Handling
|
|
137
157
|
|
|
138
158
|
- **Route definitions use dynamic or meta-programmed patterns**: If endpoints are generated at runtime or via decorators that resist static analysis, document the gap and manually enumerate the missing endpoints.
|
|
@@ -147,3 +167,8 @@ The gate stays green only because the change is recorded — not because the bre
|
|
|
147
167
|
- [ ] Example requests/responses included
|
|
148
168
|
- [ ] No breaking changes to existing API consumers
|
|
149
169
|
- [ ] `oasdiff breaking` CI gate is wired and fails on any `ERR`-level breaking change on stable endpoints (CONSTITUTION §2 P5: 0 per release)
|
|
170
|
+
|
|
171
|
+
## References
|
|
172
|
+
|
|
173
|
+
- [OpenAPI Specification 3.1.0](https://spec.openapis.org/oas/v3.1.0) — accessed 2026-05-31, official-docs (OpenAPI Initiative). Source for the 3.1 `info`/`components/schemas`/`$ref`/`security` structures and the JSON-Schema-aligned validation keywords used in Steps 2–3.
|
|
174
|
+
- [oasdiff breaking-change detection](https://github.com/Tufin/oasdiff) — accessed 2026-05-31, independent-analysis (Tufin). Source for the `oasdiff breaking --fail-on ERR` CI-gate behavior, `--format githubactions` annotations, and ignore-rules file in Step 6.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-architecture-review
|
|
3
|
-
|
|
3
|
+
name: hatch3r-architecture-review
|
|
4
|
+
type: skill
|
|
5
|
+
description: Evaluates architectural decisions and produce ADRs following the project template. Use when making architectural decisions, evaluating trade-offs, or creating ADRs.
|
|
4
6
|
tags: [review]
|
|
5
7
|
quality_charter: agents/shared/quality-charter.md
|
|
6
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
@@ -27,12 +29,7 @@ Before any work, scan the invocation for unresolved questions in scope, intent,
|
|
|
27
29
|
|
|
28
30
|
## Fan-out Discipline (P8 B2)
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
- Tier 1 (trivial single-file): inline execution acceptable.
|
|
32
|
-
- Tier 2 (multi-file or multi-concern): spawn parallel sub-agents per concern via the Task tool.
|
|
33
|
-
- Tier 3 (multi-module / high-risk): one fresh sub-agent per independent module or gate; orchestrator integrates only.
|
|
34
|
-
|
|
35
|
-
Never under-fan-out to save tokens. Token cost is dominated by quality and completeness gains. Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
32
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
36
33
|
|
|
37
34
|
## Step 1: Read Existing ADRs and Template
|
|
38
35
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-board-groom
|
|
3
|
+
name: hatch3r-board-groom
|
|
4
|
+
type: skill
|
|
3
5
|
description: Ongoing backlog refinement for existing board items. Re-prioritize, reclassify, re-scope, archive stale items, decompose oversized issues, merge duplicates, refresh dependencies, and remediate board health findings.
|
|
4
6
|
tags: [board, ctx:team-only]
|
|
5
7
|
quality_charter: agents/shared/quality-charter.md
|
|
@@ -683,6 +685,15 @@ Board Groom Complete:
|
|
|
683
685
|
|
|
684
686
|
---
|
|
685
687
|
|
|
688
|
+
## Fan-out Discipline (P8 B2)
|
|
689
|
+
|
|
690
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Tier boundaries for THIS skill:
|
|
691
|
+
- Tier 1 (single-issue re-scope): inline.
|
|
692
|
+
- Tier 2 (multi-issue grooming with reclassification across lanes): spawn parallel sub-agents per lane via the Task tool.
|
|
693
|
+
- Tier 3 (full-board re-grooming): one fresh sub-agent per lane or epic; orchestrator integrates only.
|
|
694
|
+
|
|
695
|
+
Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
696
|
+
|
|
686
697
|
## Error Handling
|
|
687
698
|
|
|
688
699
|
- **Issue listing failure:** Retry once, then fall back to MCP. If both fail, abort with platform-specific auth guidance:
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-board-init
|
|
3
|
-
|
|
3
|
+
name: hatch3r-board-init
|
|
4
|
+
type: skill
|
|
5
|
+
description: Initializes a project board (GitHub Projects V2, Azure Boards, or GitLab Issue Boards) with hatch3r's label taxonomy, status fields, and board structure. Platform detected from hatch.json.
|
|
4
6
|
tags: [board, ctx:team-only]
|
|
5
7
|
quality_charter: agents/shared/quality-charter.md
|
|
6
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
@@ -527,6 +529,15 @@ Board Init Complete:
|
|
|
527
529
|
|
|
528
530
|
---
|
|
529
531
|
|
|
532
|
+
## Fan-out Discipline (P8 B2)
|
|
533
|
+
|
|
534
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Tier boundaries for THIS skill:
|
|
535
|
+
- Tier 1 (single-board scaffold with defaults): inline.
|
|
536
|
+
- Tier 2 (board + multiple lanes + seed issues): spawn parallel sub-agents per concern via the Task tool.
|
|
537
|
+
- Tier 3 (multi-board or migration-from-existing init): one fresh sub-agent per board or lane; orchestrator integrates only.
|
|
538
|
+
|
|
539
|
+
Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
540
|
+
|
|
530
541
|
## Error Handling
|
|
531
542
|
|
|
532
543
|
- **API/CLI failure:** Report the error and suggest checking authentication:
|
|
@@ -545,3 +556,8 @@ Board Init Complete:
|
|
|
545
556
|
- **Never skip Planning questions or the plan confirmation step.**
|
|
546
557
|
- **Require proper authentication** for the configured platform. If mutations fail with permission errors, surface platform-specific auth requirements.
|
|
547
558
|
- **Preserve existing `.hatch3r/hatch.json` content** outside the `board` key when writing config back.
|
|
559
|
+
|
|
560
|
+
## References
|
|
561
|
+
|
|
562
|
+
- [Using the API to manage Projects (GraphQL) — GitHub docs](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects) — accessed 2026-05-31, official-docs (GitHub). Source for the `createProjectV2` / `addProjectV2ItemById` / `updateProjectV2ItemFieldValue` mutations and the owner-node-ID requirement in Phase 2.
|
|
563
|
+
- [gh auth refresh — GitHub CLI manual](https://cli.github.com/manual/gh_auth_refresh) — accessed 2026-05-31, official-docs (GitHub). Source for the `project` scope requirement (`gh auth refresh -s project`) and the `GITHUB_TOKEN`/`GH_TOKEN` PAT fallback in the authentication and error-handling steps.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-board-refresh
|
|
3
|
-
|
|
3
|
+
name: hatch3r-board-refresh
|
|
4
|
+
type: skill
|
|
5
|
+
description: Regenerates the living board overview dashboard from current board state. Scans all open issues, computes health metrics, and updates the meta:board-overview issue.
|
|
4
6
|
tags: [board, ctx:team-only]
|
|
5
7
|
quality_charter: agents/shared/quality-charter.md
|
|
6
8
|
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
@@ -245,6 +247,15 @@ Board Refresh Complete:
|
|
|
245
247
|
|
|
246
248
|
---
|
|
247
249
|
|
|
250
|
+
## Fan-out Discipline (P8 B2)
|
|
251
|
+
|
|
252
|
+
Fan-out scales with task size; token cost never justifies serializing independent work (`rules/hatch3r-fan-out-discipline.md` P8 B2; `agents/shared/efficiency-patterns.md`). Tier boundaries for THIS skill:
|
|
253
|
+
- Tier 1 (single-board refresh, no re-scoping): inline.
|
|
254
|
+
- Tier 2 (multi-lane refresh with re-scoping or reclassification): spawn parallel sub-agents per lane via the Task tool.
|
|
255
|
+
- Tier 3 (cross-board reconciliation): one fresh sub-agent per board or lane; orchestrator integrates only.
|
|
256
|
+
|
|
257
|
+
Emit `sub_agents_spawned: { count, rationale }` in your output.
|
|
258
|
+
|
|
248
259
|
## Error Handling
|
|
249
260
|
|
|
250
261
|
- **Issue listing failure:** Retry once, then fall back to MCP. If both fail, abort with platform-specific auth guidance:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-board-shared
|
|
3
|
+
name: hatch3r-board-shared
|
|
4
|
+
type: skill
|
|
3
5
|
description: Shared context and procedures for all board commands. Provides platform-agnostic board config, label taxonomy, branch conventions, sync enforcement, and tooling directives. Platform-specific details are in commands/board/shared-{platform}.md.
|
|
4
6
|
tags: [board, ctx:team-only]
|
|
5
7
|
quality_charter: agents/shared/quality-charter.md
|
|
@@ -12,7 +14,7 @@ parallel_tool_default: true
|
|
|
12
14
|
Shared context for `hatch3r-board-fill`, `hatch3r-board-groom`, `hatch3r-board-pickup`, `hatch3r-board-refresh`, and related board commands. Read once per run and cache.
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
## Prerequisite Check (run at the start of every board command
|
|
17
|
+
## §0 Detect Ambiguity + Prerequisite Check (P8 B1) — run at the start of every board command
|
|
16
18
|
|
|
17
19
|
Before reading configuration, validate that prerequisites are met. If any check fails, stop immediately with an actionable error message. For interactive sessions where credentials are missing, use the `agents/shared/user-question-protocol.md` plain-text fallback shape to offer the user a numbered choice (interactive login / paste-token / abort) instead of a bare stop message.
|
|
18
20
|
|
|
@@ -299,6 +301,36 @@ The export is idempotent and safe to re-set. `GH_PAGER` is scoped to `gh`; `PAGE
|
|
|
299
301
|
|
|
300
302
|
---
|
|
301
303
|
|
|
304
|
+
## Todo Grammar
|
|
305
|
+
|
|
306
|
+
Single source of truth for the `todo.md` line format shared by the producers (`hatch3r-roadmap` Step 5, `hatch3r-project-spec` Step 6) and the consumer (`hatch3r-board-fill` Step 1). Producers MUST emit this grammar; board-fill MUST parse it with the rules below so checkbox glyphs and scope tags never leak into issue titles and priority headers never parse as items.
|
|
307
|
+
|
|
308
|
+
**Line forms:**
|
|
309
|
+
|
|
310
|
+
| Form | Pattern | Parse as |
|
|
311
|
+
|------|---------|----------|
|
|
312
|
+
| Priority header | `## P{N} — {Label}` (N = 0–3) | Section header — sets the `priority:p{N}` default for items beneath it. NOT a todo item. |
|
|
313
|
+
| Future-ideas header | `## Future Ideas` | Section header — items beneath it default to `priority:p3`. NOT a todo item. |
|
|
314
|
+
| Todo item | `- [ ] **[{TAG}] {Title}**: {Description}[ Ref: {path}.]` | One todo item. `{TAG}` ∈ `{BIZ, TECH, BOTH}`. |
|
|
315
|
+
|
|
316
|
+
**Parse rules (board-fill Step 1 applies in order):**
|
|
317
|
+
|
|
318
|
+
1. **Skip headers.** A line matching `^## ` (priority header or `## Future Ideas`) is a section marker, not an item. Record its `P{N}` value (or `p3` for `## Future Ideas`) as the priority default for items until the next header.
|
|
319
|
+
2. **Strip the list/checkbox token.** Strip a leading list marker (`- ` or `* `) and, if present, a checkbox token (`[ ]` or `[x]`, case-insensitive) that immediately follows it. Lines without `- `/`* ` are not items.
|
|
320
|
+
3. **Extract the scope tag.** Parse the leading `**[{TAG}]` token; capture `{TAG}` ∈ `{BIZ, TECH, BOTH}` and remove it from the title. `BIZ` → business-driven, `TECH` → technically-driven, `BOTH` → cross-cutting. Feed the tag into Step 3 classification (area/executor lean), not the title.
|
|
321
|
+
4. **Split title and description.** The bold span `**…**` is the item title (strip the surrounding `**`); the text after the first `:` is the description. A trailing `Ref: {path}.` carries the source spec/ADR path — surface it as a documentation reference, not part of the title.
|
|
322
|
+
5. **Carry the priority default.** Apply the enclosing header's `P{N}` as the item's default `priority:*` (overridable by Step 3 triage). Items above the first header default to `p2`.
|
|
323
|
+
|
|
324
|
+
Items not matching the todo-item form (blank lines, prose, stray bullets without a `**[{TAG}]…**` span) are skipped with a one-line note in the parsed-list output so the user can correct malformed entries.
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Fan-out Discipline (P8 B2)
|
|
329
|
+
|
|
330
|
+
Reference library — no fan-out. This skill ships shared board context (configuration, sync procedures, tooling directives) consumed by the delegating board commands (`board-fill`, `board-pickup`, `board-init`, `board-refresh`, `board-groom`). It spawns no sub-agents itself; fan-out is owned by the consuming command per its own Fan-out Discipline block. Source: `rules/hatch3r-fan-out-discipline.md` (P8 B2).
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
302
334
|
## Token-Saving Directives
|
|
303
335
|
|
|
304
336
|
These apply to all board commands. Follow them to minimize token consumption.
|
|
@@ -328,3 +360,8 @@ All mutating board commands MUST maintain a run cache with the following entries
|
|
|
328
360
|
| `errors` | `{step, issue?, message, recoverable}[]` | All errors encountered during the run |
|
|
329
361
|
|
|
330
362
|
Initialize all entries at the start of the run. Populate incrementally as operations execute. The reconciliation procedure reads these entries to detect and fix drift.
|
|
363
|
+
|
|
364
|
+
## References
|
|
365
|
+
|
|
366
|
+
- [gh auth refresh — GitHub CLI manual](https://cli.github.com/manual/gh_auth_refresh) — accessed 2026-05-31, official-docs (GitHub). Source for the `project` scope requirement (`gh auth refresh -s project`), the classic-PAT `admin:org` note, and the `GITHUB_TOKEN`/`GH_TOKEN` fallback in the prerequisites/authentication section.
|
|
367
|
+
- [Using the API to manage Projects (GraphQL) — GitHub docs](https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects) — accessed 2026-05-31, official-docs (GitHub). Source for the Projects V2 IDs, status-field sync, and built-in "Item closed" / "Pull request merged" workflow behavior the shared board config and sync procedures depend on.
|