hatch3r 1.6.2 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/README.md +5 -5
  2. package/agents/hatch3r-a11y-auditor.md +5 -0
  3. package/agents/hatch3r-architect.md +5 -0
  4. package/agents/hatch3r-ci-watcher.md +5 -0
  5. package/agents/hatch3r-context-rules.md +5 -0
  6. package/agents/hatch3r-creator.md +304 -0
  7. package/agents/hatch3r-dependency-auditor.md +5 -0
  8. package/agents/hatch3r-devops.md +5 -0
  9. package/agents/hatch3r-docs-writer.md +5 -0
  10. package/agents/hatch3r-fixer.md +5 -0
  11. package/agents/hatch3r-implementer.md +5 -0
  12. package/agents/hatch3r-learnings-loader.md +5 -0
  13. package/agents/hatch3r-lint-fixer.md +5 -0
  14. package/agents/hatch3r-perf-profiler.md +5 -0
  15. package/agents/hatch3r-researcher.md +5 -0
  16. package/agents/hatch3r-reviewer.md +5 -0
  17. package/agents/hatch3r-security-auditor.md +5 -0
  18. package/agents/hatch3r-test-writer.md +5 -0
  19. package/agents/modes/architecture.md +3 -0
  20. package/agents/modes/boundary-analysis.md +3 -0
  21. package/agents/modes/codebase-impact.md +3 -0
  22. package/agents/modes/complexity-risk.md +3 -0
  23. package/agents/modes/coverage-analysis.md +3 -0
  24. package/agents/modes/current-state.md +3 -0
  25. package/agents/modes/feature-design.md +3 -0
  26. package/agents/modes/impact-analysis.md +3 -0
  27. package/agents/modes/library-docs.md +3 -0
  28. package/agents/modes/migration-path.md +3 -0
  29. package/agents/modes/prior-art.md +3 -0
  30. package/agents/modes/refactoring-strategy.md +3 -0
  31. package/agents/modes/regression.md +3 -0
  32. package/agents/modes/requirements-elicitation.md +3 -0
  33. package/agents/modes/risk-assessment.md +3 -0
  34. package/agents/modes/risk-prioritization.md +3 -0
  35. package/agents/modes/root-cause.md +3 -0
  36. package/agents/modes/similar-implementation.md +3 -0
  37. package/agents/modes/symptom-trace.md +3 -0
  38. package/agents/modes/test-pattern.md +3 -0
  39. package/agents/shared/efficiency-patterns.md +71 -0
  40. package/agents/shared/external-knowledge.md +2 -0
  41. package/agents/shared/injection-patterns.md +2 -0
  42. package/agents/shared/prompt-structure.md +2 -0
  43. package/agents/shared/quality-charter.md +10 -0
  44. package/agents/shared/user-content-templates.md +257 -0
  45. package/checks/accessibility.md +1 -0
  46. package/checks/code-quality.md +1 -0
  47. package/checks/performance.md +1 -0
  48. package/checks/security.md +1 -0
  49. package/checks/testing.md +1 -0
  50. package/commands/board/pickup-azure-devops.md +1 -0
  51. package/commands/board/pickup-delegation-multi.md +1 -0
  52. package/commands/board/pickup-delegation.md +1 -0
  53. package/commands/board/pickup-github.md +1 -0
  54. package/commands/board/pickup-gitlab.md +1 -0
  55. package/commands/board/pickup-modes.md +1 -0
  56. package/commands/board/pickup-post-impl.md +1 -0
  57. package/commands/board/shared-azure-devops.md +1 -0
  58. package/commands/board/shared-board-overview.md +1 -0
  59. package/commands/board/shared-github.md +1 -0
  60. package/commands/board/shared-gitlab.md +1 -0
  61. package/commands/hatch3r-agent-customize.md +9 -2
  62. package/commands/hatch3r-api-spec.md +16 -0
  63. package/commands/hatch3r-benchmark.md +16 -0
  64. package/commands/hatch3r-board-fill.md +16 -0
  65. package/commands/hatch3r-board-groom.md +3 -0
  66. package/commands/hatch3r-board-init.md +3 -0
  67. package/commands/hatch3r-board-pickup.md +16 -0
  68. package/commands/hatch3r-board-refresh.md +3 -0
  69. package/commands/hatch3r-board-shared.md +3 -0
  70. package/commands/hatch3r-bug-plan.md +16 -0
  71. package/commands/hatch3r-codebase-map.md +16 -0
  72. package/commands/hatch3r-command-customize.md +3 -0
  73. package/commands/hatch3r-context-health.md +3 -0
  74. package/commands/hatch3r-cost-tracking.md +3 -0
  75. package/commands/hatch3r-create.md +197 -0
  76. package/commands/hatch3r-debug.md +16 -0
  77. package/commands/hatch3r-dep-audit.md +3 -0
  78. package/commands/hatch3r-feature-plan.md +16 -0
  79. package/commands/hatch3r-healthcheck.md +3 -0
  80. package/commands/hatch3r-hooks.md +3 -0
  81. package/commands/hatch3r-learn.md +3 -0
  82. package/commands/hatch3r-migration-plan.md +16 -0
  83. package/commands/hatch3r-onboard.md +16 -0
  84. package/commands/hatch3r-project-spec.md +16 -0
  85. package/commands/hatch3r-quick-change.md +17 -1
  86. package/commands/hatch3r-recipe.md +3 -0
  87. package/commands/hatch3r-refactor-plan.md +16 -0
  88. package/commands/hatch3r-release.md +3 -0
  89. package/commands/hatch3r-revision.md +16 -0
  90. package/commands/hatch3r-roadmap.md +16 -0
  91. package/commands/hatch3r-rule-customize.md +3 -0
  92. package/commands/hatch3r-security-audit.md +3 -0
  93. package/commands/hatch3r-skill-customize.md +3 -0
  94. package/commands/hatch3r-test-plan.md +16 -0
  95. package/commands/hatch3r-workflow.md +17 -1
  96. package/commands/revision/revision-board-integration.md +1 -0
  97. package/commands/revision/revision-delegation.md +1 -0
  98. package/commands/revision/revision-modes.md +1 -0
  99. package/commands/revision/revision-quality.md +1 -0
  100. package/dist/cli/index.js +2365 -924
  101. package/dist/cli/index.js.map +1 -1
  102. package/github-agents/hatch3r-docs-agent.md +3 -0
  103. package/github-agents/hatch3r-lint-agent.md +3 -0
  104. package/github-agents/hatch3r-security-agent.md +3 -0
  105. package/github-agents/hatch3r-test-agent.md +3 -0
  106. package/hooks/hatch3r-ci-failure.md +1 -0
  107. package/hooks/hatch3r-file-save.md +1 -0
  108. package/hooks/hatch3r-post-merge.md +1 -0
  109. package/hooks/hatch3r-pre-commit.md +1 -0
  110. package/hooks/hatch3r-pre-push.md +1 -0
  111. package/hooks/hatch3r-session-start.md +1 -0
  112. package/package.json +10 -1
  113. package/prompts/hatch3r-bug-triage.md +2 -0
  114. package/prompts/hatch3r-code-review.md +2 -0
  115. package/prompts/hatch3r-pr-description.md +2 -0
  116. package/rules/hatch3r-accessibility-standards.md +1 -0
  117. package/rules/hatch3r-agent-orchestration-detail.md +1 -0
  118. package/rules/hatch3r-agent-orchestration.md +1 -0
  119. package/rules/hatch3r-api-design.md +1 -0
  120. package/rules/hatch3r-browser-verification.md +1 -0
  121. package/rules/hatch3r-ci-cd.md +1 -0
  122. package/rules/hatch3r-code-standards.md +1 -0
  123. package/rules/hatch3r-component-conventions.md +1 -0
  124. package/rules/hatch3r-data-classification.md +1 -0
  125. package/rules/hatch3r-deep-context.md +1 -0
  126. package/rules/hatch3r-dependency-management.md +1 -0
  127. package/rules/hatch3r-feature-flags.md +1 -0
  128. package/rules/hatch3r-git-conventions.md +1 -0
  129. package/rules/hatch3r-i18n.md +1 -0
  130. package/rules/hatch3r-iteration-summary.md +86 -0
  131. package/rules/hatch3r-iteration-summary.mdc +81 -0
  132. package/rules/hatch3r-learning-consult.md +1 -0
  133. package/rules/hatch3r-migrations.md +1 -0
  134. package/rules/hatch3r-observability-logging.md +1 -0
  135. package/rules/hatch3r-observability-metrics.md +1 -0
  136. package/rules/hatch3r-observability-tracing-detail.md +1 -0
  137. package/rules/hatch3r-observability-tracing.md +1 -0
  138. package/rules/hatch3r-observability.md +1 -0
  139. package/rules/hatch3r-performance-budgets.md +1 -0
  140. package/rules/hatch3r-secrets-management.md +1 -0
  141. package/rules/hatch3r-security-patterns.md +1 -0
  142. package/rules/hatch3r-testing.md +1 -0
  143. package/rules/hatch3r-theming.md +1 -0
  144. package/rules/hatch3r-tooling-hierarchy.md +1 -0
  145. package/skills/hatch3r-a11y-audit/SKILL.md +2 -0
  146. package/skills/hatch3r-agent-customize/SKILL.md +2 -0
  147. package/skills/hatch3r-api-spec/SKILL.md +2 -0
  148. package/skills/hatch3r-architecture-review/SKILL.md +2 -0
  149. package/skills/hatch3r-bug-fix/SKILL.md +2 -0
  150. package/skills/hatch3r-ci-pipeline/SKILL.md +2 -0
  151. package/skills/hatch3r-command-customize/SKILL.md +2 -0
  152. package/skills/hatch3r-context-health/SKILL.md +2 -0
  153. package/skills/hatch3r-cost-tracking/SKILL.md +2 -0
  154. package/skills/hatch3r-customize/SKILL.md +2 -0
  155. package/skills/hatch3r-dep-audit/SKILL.md +2 -0
  156. package/skills/hatch3r-feature/SKILL.md +2 -0
  157. package/skills/hatch3r-gh-agentic-workflows/SKILL.md +2 -0
  158. package/skills/hatch3r-incident-response/SKILL.md +2 -0
  159. package/skills/hatch3r-issue-workflow/SKILL.md +2 -0
  160. package/skills/hatch3r-logical-refactor/SKILL.md +2 -0
  161. package/skills/hatch3r-migration/SKILL.md +2 -0
  162. package/skills/hatch3r-perf-audit/SKILL.md +2 -0
  163. package/skills/hatch3r-pr-creation/SKILL.md +2 -0
  164. package/skills/hatch3r-qa-validation/SKILL.md +2 -0
  165. package/skills/hatch3r-recipe/SKILL.md +2 -0
  166. package/skills/hatch3r-refactor/SKILL.md +2 -0
  167. package/skills/hatch3r-release/SKILL.md +2 -0
  168. package/skills/hatch3r-rule-customize/SKILL.md +2 -0
  169. package/skills/hatch3r-skill-customize/SKILL.md +2 -0
  170. package/skills/hatch3r-visual-refactor/SKILL.md +2 -0
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  name: hatch3r-docs-agent
3
+ type: github-agent
3
4
  description: Technical writer who maintains specs, ADRs, and documentation
4
5
  # Simplified agent for GitHub Copilot/Codex
5
6
  tags: [team, devops]
6
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
7
10
  ---
8
11
 
9
12
  You are an expert technical writer for the project.
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  name: hatch3r-lint-agent
3
+ type: github-agent
3
4
  description: Code quality enforcer who fixes style, formatting, and type issues
4
5
  # Simplified agent for GitHub Copilot/Codex
5
6
  tags: [team, devops]
6
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
7
10
  ---
8
11
 
9
12
  You are a code quality engineer for the project.
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  name: hatch3r-security-agent
3
+ type: github-agent
3
4
  description: Security analyst who audits code, rules, and data flows
4
5
  # Simplified agent for GitHub Copilot/Codex
5
6
  tags: [team, devops]
6
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
7
10
  ---
8
11
 
9
12
  You are an expert security analyst for the project.
@@ -1,9 +1,12 @@
1
1
  ---
2
2
  name: hatch3r-test-agent
3
+ type: github-agent
3
4
  description: QA engineer who writes and maintains tests
4
5
  # Simplified agent for GitHub Copilot/Codex
5
6
  tags: [team, devops]
6
7
  quality_charter: agents/shared/quality-charter.md
8
+ efficiency_patterns: agents/shared/efficiency-patterns.md
9
+ cache_friendly: true
7
10
  ---
8
11
 
9
12
  You are an expert QA engineer for the project.
@@ -6,6 +6,7 @@ agent: ci-watcher
6
6
  description: Diagnose CI pipeline failures
7
7
  tags: [core]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Hook: ci-failure → ci-watcher
11
12
 
@@ -7,6 +7,7 @@ description: Activate context-specific rules on file save
7
7
  globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"
8
8
  tags: [core]
9
9
  quality_charter: agents/shared/quality-charter.md
10
+ cache_friendly: true
10
11
  ---
11
12
  # Hook: file-save → context-rules
12
13
 
@@ -6,6 +6,7 @@ agent: ci-watcher
6
6
  description: Check CI pipeline status after merge
7
7
  tags: [core]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Hook: post-merge → ci-watcher
11
12
 
@@ -7,6 +7,7 @@ description: Auto-fix lint and formatting issues before commit
7
7
  globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx"
8
8
  tags: [core]
9
9
  quality_charter: agents/shared/quality-charter.md
10
+ cache_friendly: true
10
11
  ---
11
12
  # Hook: pre-commit → lint-fixer
12
13
 
@@ -6,6 +6,7 @@ agent: security-auditor
6
6
  description: Scan for secrets and security issues before push
7
7
  tags: [core]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Hook: pre-push → security-auditor
11
12
 
@@ -6,6 +6,7 @@ agent: learnings-loader
6
6
  description: Load relevant learnings at session start
7
7
  tags: [core]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Hook: session-start → learnings-loader
11
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hatch3r",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "Battle-tested agentic coding setup framework. One command to hatch your agent stack -- agents, skills, rules, commands, and MCP for every major AI coding tool.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,6 +23,13 @@
23
23
  "inventory": "tsx scripts/inventory.ts",
24
24
  "inventory:check-docs": "tsx scripts/inventory.ts --check-docs",
25
25
  "validate:rule-parity": "tsx scripts/validate-rule-parity.ts",
26
+ "validate:efficiency": "tsx scripts/validate-efficiency-invariants.ts",
27
+ "validate": "npm run validate:rule-parity && npm run validate:efficiency",
28
+ "audit:validate-registry": "tsx scripts/validate-finding-registry.ts",
29
+ "audit:migrate": "tsx scripts/migrate-finding-registry.ts",
30
+ "audit:archive": "tsx scripts/audit-archive.ts",
31
+ "audit:find": "tsx scripts/audit-find.ts",
32
+ "audit:reset": "tsx scripts/clean-audit-workspace.ts",
26
33
  "lockfile:check": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https"
27
34
  },
28
35
  "keywords": [
@@ -82,11 +89,13 @@
82
89
  "inquirer": "^13.3.2",
83
90
  "ora": "^9.3.0",
84
91
  "proper-lockfile": "^4.1.2",
92
+ "update-notifier": "^7.3.1",
85
93
  "yaml": "^2.8.3"
86
94
  },
87
95
  "devDependencies": {
88
96
  "@types/node": "^25.5.0",
89
97
  "@types/proper-lockfile": "^4.1.4",
98
+ "@types/update-notifier": "^6.0.8",
90
99
  "@vitest/coverage-v8": "^4.1.2",
91
100
  "eslint": "^10.1.0",
92
101
  "lockfile-lint": "^5.0.0",
@@ -3,6 +3,8 @@ id: hatch3r-bug-triage
3
3
  type: prompt
4
4
  description: Triage a bug report and suggest investigation steps
5
5
  tags: [core]
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # Bug Triage
8
10
 
@@ -3,6 +3,8 @@ id: hatch3r-code-review
3
3
  type: prompt
4
4
  description: Review code changes for quality, security, and correctness
5
5
  tags: [core]
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # Code Review
8
10
 
@@ -3,6 +3,8 @@ id: hatch3r-pr-description
3
3
  type: prompt
4
4
  description: Generate a pull request description from staged changes
5
5
  tags: [core]
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # PR Description
8
10
 
@@ -5,6 +5,7 @@ description: Accessibility standards covering WCAG 2.2 AA compliance, keyboard n
5
5
  scope: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/components/**,**/*.html,**/*a11y*,**/*accessibility*"
6
6
  tags: [a11y]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Accessibility Standards
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/.agents/**,**/pipeline/**,**/*orchestrat*,**/*agent*"
7
7
  tags: [core]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Agent Orchestration — Extended Reference
11
12
 
@@ -5,6 +5,7 @@ description: Mandatory agent delegation, skill loading, and subagent usage direc
5
5
  scope: always
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Agent Orchestration
10
11
 
@@ -5,6 +5,7 @@ description: REST, GraphQL, and gRPC contract patterns covering versioning, auth
5
5
  scope: "**/api/**,**/routes/**,**/controllers/**,**/endpoints/**,**/*route*,**/*controller*,**/*endpoint*,**/*handler*,**/graphql/**,**/trpc/**"
6
6
  tags: [planning]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # API Design
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*.vue,**/*.jsx,**/*.tsx,**/*.svelte,**/components/**,**/*.html,**/*.css,**/*.scss"
7
7
  tags: [review]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Browser Verification
11
12
 
@@ -5,6 +5,7 @@ description: CI/CD pipeline standards covering stage gates, deployment strategie
5
5
  scope: "**/.github/workflows/**,**/Dockerfile*,**/docker-compose*,**/.gitlab-ci*,**/Jenkinsfile,**/azure-pipelines*,**/.circleci/**,**/deploy/**,**/*pipeline*"
6
6
  tags: [devops]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # CI/CD Standards
10
11
 
@@ -5,6 +5,7 @@ description: TypeScript typing discipline, naming, file size caps, Result types,
5
5
  scope: always
6
6
  tags: [core, lang:typescript]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Code Standards
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx"
7
7
  tags: [implementation, lang:typescript]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Component Conventions
11
12
 
@@ -5,6 +5,7 @@ description: Data classification standards covering PII handling, encryption, re
5
5
  scope: "**/models/**,**/schemas/**,**/schema*,**/database/**,**/db/**,**/*model*,**/*entity*,**/prisma/**,**/drizzle/**,**/*migration*"
6
6
  tags: [security]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Data Classification Standards
10
11
 
@@ -5,6 +5,7 @@ description: Adaptive pre-implementation analysis — complexity scoring, requir
5
5
  scope: always
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Deep Context Analysis
10
11
 
@@ -5,6 +5,7 @@ description: Lockfile discipline, CVE scanning, transitive dependency audits, ma
5
5
  scope: "**/package.json,**/package-lock.json,**/yarn.lock,**/pnpm-lock.yaml,**/Cargo.toml,**/Cargo.lock,**/requirements*.txt,**/pyproject.toml,**/go.mod,**/go.sum,**/Gemfile*"
6
6
  tags: [maintenance]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Dependency Management
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*feature-flag*,**/*featureFlag*,**/*feature_flag*,**/config/**"
7
7
  tags: [implementation]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Feature Flags
11
12
 
@@ -5,6 +5,7 @@ description: Conventional Commits type list, subject line rules, breaking-change
5
5
  scope: "**/.git/**,**/.gitignore,**/.gitattributes,**/.gitmodules,**/COMMIT_EDITMSG"
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Git Conventions
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx,src/**/*.ts,**/locales/**,**/i18n/**,**/*i18n*,**/*locale*"
7
7
  tags: [implementation, lang:typescript]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Internationalization & RTL
11
12
 
@@ -0,0 +1,86 @@
1
+ ---
2
+ id: hatch3r-iteration-summary
3
+ type: rule
4
+ description: Every user-facing iteration ends with the canonical Iteration Summary block — a 5-field contract exposing status, gaps, and confidence at a glance.
5
+ scope: always
6
+ tags: [core]
7
+ quality_charter: agents/shared/quality-charter.md
8
+ precedence: high
9
+ cache_friendly: true
10
+ ---
11
+ # Iteration Summary Contract
12
+
13
+ Every iteration with the user ends with the canonical block defined below — not a free-form prose paragraph. The block appears at the very end of the assistant turn, after any code, explanations, or tool-call results.
14
+
15
+ ## When This Applies
16
+
17
+ Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
18
+
19
+ ## The Required Block
20
+
21
+ Use this exact shape with these exact field names:
22
+
23
+ ```markdown
24
+ ## Iteration Summary
25
+
26
+ **Status:** SUCCESS | PARTIAL | FAILED | BLOCKED
27
+ **Outcome:** {one sentence — the bottom line}
28
+
29
+ **Done:**
30
+ - {what was completed this iteration}
31
+
32
+ **Not Done / Deferred / Unverified:**
33
+ - {required even if "None — full scope completed"}
34
+
35
+ **Open Questions / Blockers:**
36
+ - {required even if "None"}
37
+
38
+ **Confidence:** high | medium | low — {one-sentence basis}
39
+ ```
40
+
41
+ `Status` is a closed enum:
42
+
43
+ - **SUCCESS** — all in-scope work completed and verified.
44
+ - **PARTIAL** — some in-scope work completed; remainder listed under Not Done.
45
+ - **FAILED** — attempted but did not produce a usable result; reason in Outcome.
46
+ - **BLOCKED** — cannot proceed without user input or external resolution.
47
+
48
+ ## Optional Sections
49
+
50
+ Append only when they carry information. Do not include empty headers.
51
+
52
+ ```markdown
53
+ **Artifacts Touched:**
54
+ | Path | Action | Notes |
55
+ | ---- | ------ | ----- |
56
+ | {file} | created/modified/deleted | {one line} |
57
+
58
+ **Verifications Run:**
59
+ | Check | Result |
60
+ | ----- | ------ |
61
+ | {command or test} | pass/fail/skipped |
62
+
63
+ **Earliest Failure Point:** {file:line or step name} ← only when Status ≠ SUCCESS
64
+
65
+ **Suggested Next Action:** {one line}
66
+ ```
67
+
68
+ ## Field Semantics
69
+
70
+ - **Outcome** is one sentence. The user should grasp what happened from this line alone.
71
+ - **Done** lists completed actions, not intentions. "Wrote tests" beats "Will write tests".
72
+ - **Not Done / Deferred / Unverified** is required and may not be silently skipped. If full scope was completed, write `None — full scope completed`. If anything was attempted but not verified, list it here, not under Done.
73
+ - **Open Questions / Blockers** surfaces ambiguity proactively. Write `None` only after checking.
74
+ - **Confidence** uses the quality charter §1 scale. The one-sentence basis must name what was verified (high), what pattern was followed (medium), or that the answer is professional judgment (low).
75
+
76
+ ## Anti-Patterns
77
+
78
+ - Substituting a prose paragraph for the block.
79
+ - Omitting the `## Iteration Summary` anchor — downstream agents and orchestrators locate the block by this header.
80
+ - Writing "None" reflexively without checking — list the uncertainty when in doubt.
81
+ - Inflating confidence — if you did not verify, say medium and name the unknown.
82
+ - Burying unverified work in `Done` — attempted-but-not-verified belongs in Not Done / Unverified.
83
+
84
+ ## Reference
85
+
86
+ Confidence semantics: `agents/shared/quality-charter.md` §1.
@@ -0,0 +1,81 @@
1
+ ---
2
+ description: Every user-facing iteration ends with the canonical Iteration Summary block — a 5-field contract exposing status, gaps, and confidence at a glance.
3
+ alwaysApply: true
4
+ precedence: high
5
+ ---
6
+ # Iteration Summary Contract
7
+
8
+ Every iteration with the user ends with the canonical block defined below — not a free-form prose paragraph. The block appears at the very end of the assistant turn, after any code, explanations, or tool-call results.
9
+
10
+ ## When This Applies
11
+
12
+ Every user-facing iteration, regardless of size — multi-step coding tasks, single-file edits, read-only answers, failed or blocked attempts. No exceptions.
13
+
14
+ ## The Required Block
15
+
16
+ Use this exact shape with these exact field names:
17
+
18
+ ```markdown
19
+ ## Iteration Summary
20
+
21
+ **Status:** SUCCESS | PARTIAL | FAILED | BLOCKED
22
+ **Outcome:** {one sentence — the bottom line}
23
+
24
+ **Done:**
25
+ - {what was completed this iteration}
26
+
27
+ **Not Done / Deferred / Unverified:**
28
+ - {required even if "None — full scope completed"}
29
+
30
+ **Open Questions / Blockers:**
31
+ - {required even if "None"}
32
+
33
+ **Confidence:** high | medium | low — {one-sentence basis}
34
+ ```
35
+
36
+ `Status` is a closed enum:
37
+
38
+ - **SUCCESS** — all in-scope work completed and verified.
39
+ - **PARTIAL** — some in-scope work completed; remainder listed under Not Done.
40
+ - **FAILED** — attempted but did not produce a usable result; reason in Outcome.
41
+ - **BLOCKED** — cannot proceed without user input or external resolution.
42
+
43
+ ## Optional Sections
44
+
45
+ Append only when they carry information. Do not include empty headers.
46
+
47
+ ```markdown
48
+ **Artifacts Touched:**
49
+ | Path | Action | Notes |
50
+ | ---- | ------ | ----- |
51
+ | {file} | created/modified/deleted | {one line} |
52
+
53
+ **Verifications Run:**
54
+ | Check | Result |
55
+ | ----- | ------ |
56
+ | {command or test} | pass/fail/skipped |
57
+
58
+ **Earliest Failure Point:** {file:line or step name} ← only when Status ≠ SUCCESS
59
+
60
+ **Suggested Next Action:** {one line}
61
+ ```
62
+
63
+ ## Field Semantics
64
+
65
+ - **Outcome** is one sentence. The user should grasp what happened from this line alone.
66
+ - **Done** lists completed actions, not intentions. "Wrote tests" beats "Will write tests".
67
+ - **Not Done / Deferred / Unverified** is required and may not be silently skipped. If full scope was completed, write `None — full scope completed`. If anything was attempted but not verified, list it here, not under Done.
68
+ - **Open Questions / Blockers** surfaces ambiguity proactively. Write `None` only after checking.
69
+ - **Confidence** uses the quality charter §1 scale. The one-sentence basis must name what was verified (high), what pattern was followed (medium), or that the answer is professional judgment (low).
70
+
71
+ ## Anti-Patterns
72
+
73
+ - Substituting a prose paragraph for the block.
74
+ - Omitting the `## Iteration Summary` anchor — downstream agents and orchestrators locate the block by this header.
75
+ - Writing "None" reflexively without checking — list the uncertainty when in doubt.
76
+ - Inflating confidence — if you did not verify, say medium and name the unknown.
77
+ - Burying unverified work in `Done` — attempted-but-not-verified belongs in Not Done / Unverified.
78
+
79
+ ## Reference
80
+
81
+ Confidence semantics: `agents/shared/quality-charter.md` §1.
@@ -5,6 +5,7 @@ description: Consult .agents/learnings/ for pitfalls, patterns, and past decisio
5
5
  scope: "**/.agents/learnings/**,**/learnings/**"
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Learning Consultation
10
11
 
@@ -5,6 +5,7 @@ description: Database migration and schema change patterns for the project
5
5
  scope: "**/migrations/**,**/*migration*,**/migrate/**,**/seeds/**,**/seeders/**,**/prisma/migrations/**,**/drizzle/**,**/knex/**"
6
6
  tags: [implementation, brownfield]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Migrations
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*log*,**/*logger*,**/*logging*,**/*error*,**/observability/**"
7
7
  tags: [devops]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Observability -- Logging & Error Reporting
11
12
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*metric*,**/*slo*,**/*sli*,**/*alert*,**/*dashboard*,**/observability/**"
7
7
  tags: [devops]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Observability -- Metrics, SLOs & Alerting
11
12
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*trac*,**/*span*,**/*telemetry*,**/*otel*,**/*agent*,**/observability/**"
7
7
  tags: [devops]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Observability -- Tracing Extended Reference
11
12
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*trac*,**/*span*,**/*telemetry*,**/*otel*,**/observability/**"
7
7
  tags: [devops]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Observability -- Distributed Tracing & OpenTelemetry
11
12
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  tags: [devops]
7
7
  quality_charter: agents/shared/quality-charter.md
8
8
  deprecated: true
9
+ cache_friendly: true
9
10
  ---
10
11
  # Observability (Deprecated Redirect)
11
12
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "**/*perf*,**/*benchmark*,**/*budget*,**/lighthouse*,**/*.perf.*"
7
7
  tags: [performance]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Performance Budgets
11
12
 
@@ -5,6 +5,7 @@ description: Secret management, rotation, and secure handling patterns for the p
5
5
  scope: "**/.env*,**/*secret*,**/*credential*,**/*token*,**/config/**,**/.gitignore,**/vault/**,**/*auth*.config*"
6
6
  tags: [security]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Secrets Management
10
11
 
@@ -5,6 +5,7 @@ description: Security patterns including input validation, auth enforcement, and
5
5
  scope: "**/auth/**,**/security/**,**/middleware/**,**/*auth*,**/*guard*,**/*policy*,**/*permission*,**/*sanitiz*,**/*validat*"
6
6
  tags: [security]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Security Patterns
10
11
 
@@ -5,6 +5,7 @@ description: Coverage thresholds, mocking strategy, property-based testing, muta
5
5
  scope: "**/*.test.*,**/*.spec.*,**/__tests__/**,**/tests/**,**/test/**,**/*.cy.*,**/playwright/**,**/vitest.config.*,**/jest.config.*,**/cypress.config.*"
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Testing Standards
10
11
 
@@ -6,6 +6,7 @@ scope: conditional
6
6
  globs: "src/**/*.vue,src/**/*.tsx,src/**/*.jsx,src/**/*.css,src/**/*.scss,**/*theme*,**/*color*"
7
7
  tags: [implementation, lang:typescript]
8
8
  quality_charter: agents/shared/quality-charter.md
9
+ cache_friendly: true
9
10
  ---
10
11
  # Theming & Dark Mode
11
12
 
@@ -5,6 +5,7 @@ description: Platform MCP-first priority, documentation MCP for library APIs, we
5
5
  scope: "**/.agents/**,**/mcp/**,**/mcp.json,**/.cursor/**,**/.github/copilot*,**/.windsurf/**,**/hatch.json,**/.claude/**"
6
6
  tags: [core]
7
7
  quality_charter: agents/shared/quality-charter.md
8
+ cache_friendly: true
8
9
  ---
9
10
  # Tooling Hierarchy
10
11
 
@@ -3,6 +3,8 @@ id: hatch3r-a11y-audit
3
3
  description: Run a WCAG AA accessibility audit with findings and fixes across 7 scan categories (keyboard, contrast, ARIA, reduced motion, screen reader, high contrast, automated axe). Use when auditing accessibility or verifying WCAG compliance.
4
4
  tags: [review, a11y]
5
5
  quality_charter: agents/shared/quality-charter.md
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # Accessibility Audit Workflow
8
10
 
@@ -3,6 +3,8 @@ id: hatch3r-agent-customize
3
3
  description: Redirect to write agent persona, model, and apply-scope overrides under .hatch3r/agents/ -- use when tailoring a sub-agent for the current repository
4
4
  tags: [customize]
5
5
  quality_charter: agents/shared/quality-charter.md
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # Agent Customization
8
10
 
@@ -4,6 +4,8 @@ type: skill
4
4
  description: Generate and validate OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation.
5
5
  tags: [planning]
6
6
  quality_charter: agents/shared/quality-charter.md
7
+ efficiency_patterns: agents/shared/efficiency-patterns.md
8
+ cache_friendly: true
7
9
  ---
8
10
 
9
11
  # API Specification Workflow
@@ -3,6 +3,8 @@ id: hatch3r-architecture-review
3
3
  description: Evaluate architectural decisions and produce ADRs following the project template. Use when making architectural decisions, evaluating trade-offs, or creating ADRs.
4
4
  tags: [review]
5
5
  quality_charter: agents/shared/quality-charter.md
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  # Architecture Review Workflow
8
10
 
@@ -3,6 +3,8 @@ id: hatch3r-bug-fix
3
3
  description: Step-by-step bug fix workflow. Diagnose root cause, implement minimal fix, write regression test. Use when fixing bugs, working on bug report issues, or when the user mentions a bug.
4
4
  tags: [core, implementation]
5
5
  quality_charter: agents/shared/quality-charter.md
6
+ efficiency_patterns: agents/shared/efficiency-patterns.md
7
+ cache_friendly: true
6
8
  ---
7
9
  > **Note:** Commands below use `npm` as an example. Substitute with your project's package manager (`yarn`, `pnpm`, `bun`) or build tool when your project uses a different package manager.
8
10