hatch3r 1.6.0 → 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.
- package/README.md +5 -5
- package/agents/hatch3r-a11y-auditor.md +5 -0
- package/agents/hatch3r-architect.md +5 -0
- package/agents/hatch3r-ci-watcher.md +5 -0
- package/agents/hatch3r-context-rules.md +5 -0
- package/agents/hatch3r-creator.md +304 -0
- package/agents/hatch3r-dependency-auditor.md +5 -0
- package/agents/hatch3r-devops.md +5 -0
- package/agents/hatch3r-docs-writer.md +5 -0
- package/agents/hatch3r-fixer.md +5 -0
- package/agents/hatch3r-implementer.md +5 -0
- package/agents/hatch3r-learnings-loader.md +5 -0
- package/agents/hatch3r-lint-fixer.md +5 -0
- package/agents/hatch3r-perf-profiler.md +5 -0
- package/agents/hatch3r-researcher.md +5 -0
- package/agents/hatch3r-reviewer.md +5 -0
- package/agents/hatch3r-security-auditor.md +5 -0
- package/agents/hatch3r-test-writer.md +5 -0
- package/agents/modes/architecture.md +3 -0
- package/agents/modes/boundary-analysis.md +3 -0
- package/agents/modes/codebase-impact.md +3 -0
- package/agents/modes/complexity-risk.md +3 -0
- package/agents/modes/coverage-analysis.md +3 -0
- package/agents/modes/current-state.md +3 -0
- package/agents/modes/feature-design.md +3 -0
- package/agents/modes/impact-analysis.md +3 -0
- package/agents/modes/library-docs.md +3 -0
- package/agents/modes/migration-path.md +3 -0
- package/agents/modes/prior-art.md +3 -0
- package/agents/modes/refactoring-strategy.md +3 -0
- package/agents/modes/regression.md +3 -0
- package/agents/modes/requirements-elicitation.md +3 -0
- package/agents/modes/risk-assessment.md +3 -0
- package/agents/modes/risk-prioritization.md +3 -0
- package/agents/modes/root-cause.md +3 -0
- package/agents/modes/similar-implementation.md +3 -0
- package/agents/modes/symptom-trace.md +3 -0
- package/agents/modes/test-pattern.md +3 -0
- package/agents/shared/efficiency-patterns.md +71 -0
- package/agents/shared/external-knowledge.md +2 -0
- package/agents/shared/injection-patterns.md +2 -0
- package/agents/shared/prompt-structure.md +2 -0
- package/agents/shared/quality-charter.md +10 -0
- package/agents/shared/user-content-templates.md +257 -0
- package/checks/accessibility.md +1 -0
- package/checks/code-quality.md +1 -0
- package/checks/performance.md +1 -0
- package/checks/security.md +1 -0
- package/checks/testing.md +1 -0
- package/commands/board/pickup-azure-devops.md +1 -0
- package/commands/board/pickup-delegation-multi.md +1 -0
- package/commands/board/pickup-delegation.md +1 -0
- package/commands/board/pickup-github.md +1 -0
- package/commands/board/pickup-gitlab.md +1 -0
- package/commands/board/pickup-modes.md +1 -0
- package/commands/board/pickup-post-impl.md +1 -0
- package/commands/board/shared-azure-devops.md +1 -0
- package/commands/board/shared-board-overview.md +1 -0
- package/commands/board/shared-github.md +1 -0
- package/commands/board/shared-gitlab.md +1 -0
- package/commands/hatch3r-agent-customize.md +9 -2
- package/commands/hatch3r-api-spec.md +16 -0
- package/commands/hatch3r-benchmark.md +16 -0
- package/commands/hatch3r-board-fill.md +16 -0
- package/commands/hatch3r-board-groom.md +3 -0
- package/commands/hatch3r-board-init.md +3 -0
- package/commands/hatch3r-board-pickup.md +16 -0
- package/commands/hatch3r-board-refresh.md +3 -0
- package/commands/hatch3r-board-shared.md +3 -0
- package/commands/hatch3r-bug-plan.md +16 -0
- package/commands/hatch3r-codebase-map.md +16 -0
- package/commands/hatch3r-command-customize.md +3 -0
- package/commands/hatch3r-context-health.md +3 -0
- package/commands/hatch3r-cost-tracking.md +3 -0
- package/commands/hatch3r-create.md +197 -0
- package/commands/hatch3r-debug.md +16 -0
- package/commands/hatch3r-dep-audit.md +3 -0
- package/commands/hatch3r-feature-plan.md +16 -0
- package/commands/hatch3r-healthcheck.md +3 -0
- package/commands/hatch3r-hooks.md +3 -0
- package/commands/hatch3r-learn.md +3 -0
- package/commands/hatch3r-migration-plan.md +16 -0
- package/commands/hatch3r-onboard.md +16 -0
- package/commands/hatch3r-project-spec.md +16 -0
- package/commands/hatch3r-quick-change.md +17 -1
- package/commands/hatch3r-recipe.md +3 -0
- package/commands/hatch3r-refactor-plan.md +16 -0
- package/commands/hatch3r-release.md +3 -0
- package/commands/hatch3r-revision.md +16 -0
- package/commands/hatch3r-roadmap.md +16 -0
- package/commands/hatch3r-rule-customize.md +3 -0
- package/commands/hatch3r-security-audit.md +3 -0
- package/commands/hatch3r-skill-customize.md +3 -0
- package/commands/hatch3r-test-plan.md +16 -0
- package/commands/hatch3r-workflow.md +17 -1
- package/commands/revision/revision-board-integration.md +1 -0
- package/commands/revision/revision-delegation.md +1 -0
- package/commands/revision/revision-modes.md +1 -0
- package/commands/revision/revision-quality.md +1 -0
- package/dist/cli/index.js +2448 -932
- package/dist/cli/index.js.map +1 -1
- package/github-agents/hatch3r-docs-agent.md +3 -0
- package/github-agents/hatch3r-lint-agent.md +3 -0
- package/github-agents/hatch3r-security-agent.md +3 -0
- package/github-agents/hatch3r-test-agent.md +3 -0
- package/hooks/hatch3r-ci-failure.md +1 -0
- package/hooks/hatch3r-file-save.md +1 -0
- package/hooks/hatch3r-post-merge.md +1 -0
- package/hooks/hatch3r-pre-commit.md +1 -0
- package/hooks/hatch3r-pre-push.md +1 -0
- package/hooks/hatch3r-session-start.md +1 -0
- package/package.json +10 -1
- package/prompts/hatch3r-bug-triage.md +2 -0
- package/prompts/hatch3r-code-review.md +2 -0
- package/prompts/hatch3r-pr-description.md +2 -0
- package/rules/hatch3r-accessibility-standards.md +1 -0
- package/rules/hatch3r-agent-orchestration-detail.md +1 -0
- package/rules/hatch3r-agent-orchestration.md +1 -0
- package/rules/hatch3r-api-design.md +1 -0
- package/rules/hatch3r-browser-verification.md +1 -0
- package/rules/hatch3r-ci-cd.md +1 -0
- package/rules/hatch3r-code-standards.md +1 -0
- package/rules/hatch3r-component-conventions.md +1 -0
- package/rules/hatch3r-data-classification.md +1 -0
- package/rules/hatch3r-deep-context.md +1 -0
- package/rules/hatch3r-dependency-management.md +1 -0
- package/rules/hatch3r-feature-flags.md +1 -0
- package/rules/hatch3r-git-conventions.md +1 -0
- package/rules/hatch3r-i18n.md +1 -0
- package/rules/hatch3r-iteration-summary.md +86 -0
- package/rules/hatch3r-iteration-summary.mdc +81 -0
- package/rules/hatch3r-learning-consult.md +1 -0
- package/rules/hatch3r-migrations.md +1 -0
- package/rules/hatch3r-observability-logging.md +1 -0
- package/rules/hatch3r-observability-metrics.md +1 -0
- package/rules/hatch3r-observability-tracing-detail.md +1 -0
- package/rules/hatch3r-observability-tracing.md +1 -0
- package/rules/hatch3r-observability.md +1 -0
- package/rules/hatch3r-performance-budgets.md +1 -0
- package/rules/hatch3r-secrets-management.md +1 -0
- package/rules/hatch3r-security-patterns.md +1 -0
- package/rules/hatch3r-testing.md +1 -0
- package/rules/hatch3r-theming.md +1 -0
- package/rules/hatch3r-tooling-hierarchy.md +1 -0
- package/skills/hatch3r-a11y-audit/SKILL.md +2 -0
- package/skills/hatch3r-agent-customize/SKILL.md +2 -0
- package/skills/hatch3r-api-spec/SKILL.md +2 -0
- package/skills/hatch3r-architecture-review/SKILL.md +2 -0
- package/skills/hatch3r-bug-fix/SKILL.md +2 -0
- package/skills/hatch3r-ci-pipeline/SKILL.md +2 -0
- package/skills/hatch3r-command-customize/SKILL.md +2 -0
- package/skills/hatch3r-context-health/SKILL.md +2 -0
- package/skills/hatch3r-cost-tracking/SKILL.md +2 -0
- package/skills/hatch3r-customize/SKILL.md +2 -0
- package/skills/hatch3r-dep-audit/SKILL.md +2 -0
- package/skills/hatch3r-feature/SKILL.md +2 -0
- package/skills/hatch3r-gh-agentic-workflows/SKILL.md +2 -0
- package/skills/hatch3r-incident-response/SKILL.md +2 -0
- package/skills/hatch3r-issue-workflow/SKILL.md +2 -0
- package/skills/hatch3r-logical-refactor/SKILL.md +2 -0
- package/skills/hatch3r-migration/SKILL.md +2 -0
- package/skills/hatch3r-perf-audit/SKILL.md +2 -0
- package/skills/hatch3r-pr-creation/SKILL.md +2 -0
- package/skills/hatch3r-qa-validation/SKILL.md +2 -0
- package/skills/hatch3r-recipe/SKILL.md +2 -0
- package/skills/hatch3r-refactor/SKILL.md +2 -0
- package/skills/hatch3r-release/SKILL.md +2 -0
- package/skills/hatch3r-rule-customize/SKILL.md +2 -0
- package/skills/hatch3r-skill-customize/SKILL.md +2 -0
- 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hatch3r",
|
|
3
|
-
"version": "1.
|
|
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",
|
|
@@ -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
|
|
|
@@ -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
|
|
package/rules/hatch3r-ci-cd.md
CHANGED
|
@@ -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: 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: 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
|
|
|
@@ -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
|
|
package/rules/hatch3r-i18n.md
CHANGED
|
@@ -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: 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
|
|
|
@@ -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
|
|
package/rules/hatch3r-testing.md
CHANGED
|
@@ -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
|
|
package/rules/hatch3r-theming.md
CHANGED
|
@@ -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
|
|