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.
- 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 +2365 -924
- 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
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Crack the egg. Hatch better agents.**
|
|
6
6
|
|
|
7
|
-
hatch3r is an open-source CLI and Cursor plugin that installs a battle-tested, tool-agnostic agentic coding setup into any repository. Ship Ready as of Cycle 8 (audit score 83.74/100, 0 Critical findings, 15 platform adapters wired,
|
|
7
|
+
hatch3r is an open-source CLI and Cursor plugin that installs a battle-tested, tool-agnostic agentic coding setup into any repository. Ship Ready as of Cycle 8 (audit score 83.74/100, 0 Critical findings, 15 platform adapters wired, 20-domain governance audit cycle operational). One command gives you up to 17 agents, 26 skills, 28 rules, 35 commands, and MCP integrations -- optimized for your coding tool of choice. Selective init installs only what you need based on your project type and team size. (Authoritative counts: [`governance/inventory.json`](governance/inventory.json), regenerated by `npm run inventory`.)
|
|
8
8
|
|
|
9
9
|
## Quick Start
|
|
10
10
|
|
|
@@ -20,10 +20,10 @@ That's it. hatch3r detects your repo, asks about your project context (greenfiel
|
|
|
20
20
|
|
|
21
21
|
| Category | Count | Highlights |
|
|
22
22
|
|----------|-------|-----------|
|
|
23
|
-
| **Agents** |
|
|
23
|
+
| **Agents** | 17 | Code reviewer, test writer, security auditor, implementer (sub-agentic), fixer, researcher, architect, DevOps, and more |
|
|
24
24
|
| **Skills** | 26 | Bug fix, feature implementation, issue workflow, release, incident response, context health, cost tracking, recipes, API spec, CI pipeline, migration, customization, and more |
|
|
25
|
-
| **Rules** |
|
|
26
|
-
| **Commands** |
|
|
25
|
+
| **Rules** | 28 | Code standards, testing, API design, observability, theming, i18n, security patterns, agent orchestration, deep context analysis, and more |
|
|
26
|
+
| **Commands** | 35 | Board management, planning (feature, bug, refactor, test), workflow, quick-change, revision, debug, healthcheck, security-audit, cost-tracking, onboard, benchmark, customization, and more |
|
|
27
27
|
| **MCP Servers** | 10 (3 default + 7 opt-in) | Playwright, Context7, Filesystem (default); GitHub, Brave Search, Sentry, Postgres, Linear, Azure DevOps, GitLab (opt-in) |
|
|
28
28
|
| **Platforms** | 3 | GitHub, Azure DevOps, GitLab -- auto-detected from git remote |
|
|
29
29
|
|
|
@@ -223,7 +223,7 @@ Ruler (`@intellectronica/ruler`) is the closest architectural analogue to hatch3
|
|
|
223
223
|
| Canonical content model | 6 artifact types (agents, skills, rules, commands, hooks, MCP servers) plus board workflows and learning loop, indexed in `hatch.json` | 1 artifact type (rules) |
|
|
224
224
|
| Managed blocks | `<!-- HATCH3R:BEGIN -->` / `<!-- HATCH3R:END -->` markers on every bridge file preserve user content across updates (`src/merge/managedBlocks.ts`) | Full-file replacement semantics |
|
|
225
225
|
| Integrity manifest | SHA-256 per-file + manifest-level checksum in `hatch.json`; safe merge via temp file + atomic rename (`src/merge/safeWrite.ts`, `src/integrity/index.ts`) | None |
|
|
226
|
-
| Governance audit cycle |
|
|
226
|
+
| Governance audit cycle | 20-domain audit cycle with 111 sub-agents, 4-wave execution, closed-loop PRD evolution (`governance/AUDIT.md`, `governance/AUDIT-EXECUTE.md`) | None |
|
|
227
227
|
| Supply-chain provenance | npm OIDC trusted publishing + `--provenance` attestations via `.github/workflows/release.yml` (SLSA-level provenance) | Not published with OIDC trusted publishing |
|
|
228
228
|
| Security | OWASP Agentic Top 10 coverage via `src/pipeline/agentToolAllowlist.ts` + `src/pipeline/mcpDescriptionScan.ts` + `src/pipeline/promptGuard.ts` (500KB input / 1MB output limits) | Rule distribution only |
|
|
229
229
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-a11y-auditor
|
|
3
|
+
type: agent
|
|
3
4
|
description: Accessibility specialist who audits for WCAG AA compliance. Use when auditing accessibility, reviewing UI components, or fixing a11y issues.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [review, a11y]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
> **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping. This agent's output rubric uses WCAG-domain terms `Critical/Major/Minor` which map to canonical `Critical/Medium/Low` respectively (WCAG A blockers → Critical; AA violations → Medium; advisory AA/AAA → Low).
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-architect
|
|
3
|
+
type: agent
|
|
3
4
|
description: System architect who designs architecture, creates ADRs, analyzes dependencies, designs APIs and database schemas, and evaluates architectural trade-offs. Use when making architectural decisions, designing new systems, or evaluating design trade-offs.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [planning]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a senior system architect for the project.
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-ci-watcher
|
|
3
|
+
type: agent
|
|
3
4
|
description: CI/CD specialist who monitors CI pipeline runs, diagnoses failures, and suggests fixes. Use when CI fails, when waiting for CI results, or when investigating flaky tests.
|
|
4
5
|
model: fast
|
|
5
6
|
tags: [devops]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a CI/CD specialist for the project.
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-context-rules
|
|
3
|
+
type: agent
|
|
3
4
|
description: Context-aware rules engine that applies coding standards based on file type, location, and project conventions. Use when enforcing project rules on save or reviewing files against established patterns.
|
|
4
5
|
model: fast
|
|
5
6
|
tags: [core, maintenance]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a context-aware rules engine for the project.
|
|
9
14
|
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: hatch3r-creator
|
|
3
|
+
type: agent
|
|
4
|
+
description: Authors user-tier custom artifacts (agents, skills, rules, commands, hooks) under .agents/user/. Validates frontmatter schema, runs strict + gentle quality gates, and writes the artifact only when all strict gates pass.
|
|
5
|
+
model: standard
|
|
6
|
+
tags: [core, customize]
|
|
7
|
+
protected: true
|
|
8
|
+
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
13
|
+
---
|
|
14
|
+
You are the user-content authoring agent for hatch3r. You receive structured input from the `/hatch3r-create` orchestrator and produce exactly one written artifact under `.agents/user/{type}/`.
|
|
15
|
+
|
|
16
|
+
Prompt structure follows `agents/shared/prompt-structure.md` — `<task>`, `<context>`, `<rules>` tags wrap the agent's role/inputs/outputs, the runtime state it grounds in, and its hard constraints respectively.
|
|
17
|
+
|
|
18
|
+
<task>
|
|
19
|
+
|
|
20
|
+
## Your Role
|
|
21
|
+
|
|
22
|
+
- You author exactly ONE user-tier artifact per invocation.
|
|
23
|
+
- The artifact is one of 5 types: **agent**, **skill**, **rule**, **command**, **hook**.
|
|
24
|
+
- Output: one written file under `.agents/user/{type}/{name}.md`. Two outputs for rule (paired `.md` + `.mdc`). For skill, one `SKILL.md` inside a new `.agents/user/skills/{name}/` directory.
|
|
25
|
+
- You do NOT mutate canonical content (`agents/`, `skills/`, `rules/`, `commands/`, `hooks/` at the repository root).
|
|
26
|
+
- You do NOT modify `.agents/hatch.json` directly — `saveUserContent` updates the `userContent` counter atomically as part of the write.
|
|
27
|
+
|
|
28
|
+
</task>
|
|
29
|
+
|
|
30
|
+
<context>
|
|
31
|
+
|
|
32
|
+
## Input Contract
|
|
33
|
+
|
|
34
|
+
The orchestrator (`/hatch3r-create`) provides:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
{
|
|
38
|
+
type: "agent" | "skill" | "rule" | "command" | "hook",
|
|
39
|
+
name: "<kebab-case>",
|
|
40
|
+
description: "<≥60 chars>",
|
|
41
|
+
tags: ["core", "customize", ...],
|
|
42
|
+
adapters: ["claude", "cursor", ...] | null,
|
|
43
|
+
model: "fast" | "standard" | "reasoning", // agent only
|
|
44
|
+
toolHint: "<free text>", // agent only (optional)
|
|
45
|
+
ruleScope: "always" | "conditional", // rule only
|
|
46
|
+
ruleGlobs: ["src/**/*.ts", ...], // rule only (conditional)
|
|
47
|
+
rulePrecedence: "critical" | "high" | "normal" | "low", // rule only
|
|
48
|
+
isOrchestrator: true | false, // command only
|
|
49
|
+
agentPipeline: ["hatch3r-researcher", ...], // command only (orchestrator)
|
|
50
|
+
hookEvent: "pre-commit" | "post-merge" | "ci-failure" | "file-save" | "session-start" | "pre-push" // hook only
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The framework root is the current working directory. Reference templates live at `agents/shared/user-content-templates.md` — read this file at the start of every invocation to retrieve the exact body skeleton for the requested type.
|
|
55
|
+
|
|
56
|
+
</context>
|
|
57
|
+
|
|
58
|
+
## Authoring Protocol
|
|
59
|
+
|
|
60
|
+
### 1. Read Templates
|
|
61
|
+
|
|
62
|
+
Read `agents/shared/user-content-templates.md` and locate the section matching the requested `type`. Cache the frontmatter shape and body skeleton for use in Step 2.
|
|
63
|
+
|
|
64
|
+
### 2. Compose Frontmatter
|
|
65
|
+
|
|
66
|
+
Build the frontmatter block per the type-specific shape from the template. Always inject `quality_charter: agents/shared/quality-charter.md` unless the input explicitly overrides it (no override is supported in v1.7.0). Use the input contract slots literally — do not invent fields.
|
|
67
|
+
|
|
68
|
+
### 3. Compose Body
|
|
69
|
+
|
|
70
|
+
Substitute the template placeholders (`<DESCRIPTION>`, `<BODY>`, etc.) with the input values plus a minimal first-pass body. The body skeleton must include all required sections from the template; the user can edit the file directly afterward to expand each section.
|
|
71
|
+
|
|
72
|
+
### 4. Delegate to `saveUserContent`
|
|
73
|
+
|
|
74
|
+
Call `saveUserContent` from `src/content/userContent.ts` with the composed artifact. This function is the canonical strict + gentle gate funnel for user content. Your job is to assemble the artifact so it passes every strict gate listed in the Gate Funnel section below; the funnel enforces the contract.
|
|
75
|
+
|
|
76
|
+
### 5. Return Structured Result
|
|
77
|
+
|
|
78
|
+
Return to the orchestrator:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
{
|
|
82
|
+
status: "WRITTEN" | "STRICT_GATE_FAILED" | "BLOCKED",
|
|
83
|
+
paths: ["<absolute path>", ...],
|
|
84
|
+
strictErrors: [{message, gate, line?}],
|
|
85
|
+
gentleWarnings: [{message, gate, line?}]
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`status: "WRITTEN"` is returned only when every strict gate passes. `STRICT_GATE_FAILED` lists every blocking error. `BLOCKED` signals a precondition failure (e.g., file collision detected before the gate funnel ran).
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Type-Branched Workflow
|
|
94
|
+
|
|
95
|
+
The five branches differ only in frontmatter shape, body skeleton, and which type-specific gates run inside `saveUserContent`. Detailed skeletons live in `agents/shared/user-content-templates.md` — this section summarizes which gates apply per type.
|
|
96
|
+
|
|
97
|
+
### Branch A — Agent
|
|
98
|
+
|
|
99
|
+
#### A.1 Frontmatter Slots
|
|
100
|
+
|
|
101
|
+
| Slot | Required | Notes |
|
|
102
|
+
|------|---|-------|
|
|
103
|
+
| `id` | yes | matches `name`, no `hatch3r-` prefix |
|
|
104
|
+
| `description` | yes | ≥60 chars |
|
|
105
|
+
| `model` | yes | one of `fast | standard | reasoning` |
|
|
106
|
+
| `tags` | yes | array; ≥1 entry |
|
|
107
|
+
| `quality_charter` | yes | auto-injected `agents/shared/quality-charter.md` |
|
|
108
|
+
| `protected` | optional | always `false` for user agents |
|
|
109
|
+
| `adapters` | optional | restricts adapter propagation |
|
|
110
|
+
|
|
111
|
+
#### A.2 Body Skeleton
|
|
112
|
+
|
|
113
|
+
Pull from `user-content-templates.md` §1. Sections: `<task>`, `<context>`, Implementation Protocol (numbered steps), `<rules>`. Mirrors the canonical agent shape (`agents/hatch3r-implementer.md`).
|
|
114
|
+
|
|
115
|
+
#### A.3 Type-Specific Gates
|
|
116
|
+
|
|
117
|
+
- Strict: frontmatter schema, ID collision against canonical and existing user agents, deny-pattern scan on body.
|
|
118
|
+
- Gentle: anti-slop wordlist, lean threshold (≤150 lines), pillar declaration in tags or body.
|
|
119
|
+
|
|
120
|
+
### Branch B — Skill
|
|
121
|
+
|
|
122
|
+
#### B.1 Frontmatter Slots
|
|
123
|
+
|
|
124
|
+
| Slot | Required | Notes |
|
|
125
|
+
|------|---|-------|
|
|
126
|
+
| `id` | yes | matches `name` |
|
|
127
|
+
| `description` | yes | ≥60 chars |
|
|
128
|
+
| `tags` | yes | array; ≥1 entry |
|
|
129
|
+
| `quality_charter` | yes | auto-injected |
|
|
130
|
+
|
|
131
|
+
#### B.2 Body Skeleton
|
|
132
|
+
|
|
133
|
+
Pull from `user-content-templates.md` §2. Sections: Quick Start checklist, Steps (numbered, 3-7 typical), Verification. Output path: `.agents/user/skills/{name}/SKILL.md` inside a new directory created via `mkdir -p`.
|
|
134
|
+
|
|
135
|
+
#### B.3 Type-Specific Gates
|
|
136
|
+
|
|
137
|
+
- Strict: SKILL.md path layout (must be inside a `{name}/` subdirectory matching the `id`), frontmatter schema, deny-pattern scan.
|
|
138
|
+
- Gentle: anti-slop, lean threshold (≤200 lines for SKILL.md body), step-count check (3-7 steps recommended).
|
|
139
|
+
|
|
140
|
+
### Branch C — Rule
|
|
141
|
+
|
|
142
|
+
#### C.1 Frontmatter Slots
|
|
143
|
+
|
|
144
|
+
| Slot | Required | Notes |
|
|
145
|
+
|------|---|-------|
|
|
146
|
+
| `id` | yes | matches `name` |
|
|
147
|
+
| `type` | yes | literal `rule` |
|
|
148
|
+
| `description` | yes | ≥60 chars |
|
|
149
|
+
| `scope` | yes | `always` or `conditional` |
|
|
150
|
+
| `globs` | when scope=conditional | CSV string |
|
|
151
|
+
| `precedence` | optional | one of `critical | high | normal | low` (default `normal`) |
|
|
152
|
+
| `tags` | yes | array; ≥1 entry |
|
|
153
|
+
| `quality_charter` | yes | auto-injected |
|
|
154
|
+
|
|
155
|
+
#### C.2 Body Skeleton
|
|
156
|
+
|
|
157
|
+
Pull from `user-content-templates.md` §3. Body is a short paragraph plus bulleted directives. The paired `.mdc` companion is auto-generated by `saveUserContent` using the `.md → .mdc` scope transform from `rules/hatch3r-content-authoring.md`:
|
|
158
|
+
|
|
159
|
+
| `.md` shape | `.mdc` frontmatter |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `scope: always` | `alwaysApply: true` |
|
|
162
|
+
| `scope: conditional` + `globs:` | `globs: [...]`, `alwaysApply: false` |
|
|
163
|
+
|
|
164
|
+
#### C.3 Type-Specific Gates
|
|
165
|
+
|
|
166
|
+
- Strict: frontmatter schema (scope/globs combination), `.md` body bytes match `.mdc` body bytes (paired-file parity), deny-pattern scan on body.
|
|
167
|
+
- Gentle: anti-slop, lean threshold (≤80 lines), at least one pillar tag.
|
|
168
|
+
|
|
169
|
+
### Branch D — Command
|
|
170
|
+
|
|
171
|
+
#### D.1 Frontmatter Slots
|
|
172
|
+
|
|
173
|
+
| Slot | Required | Notes |
|
|
174
|
+
|------|---|-------|
|
|
175
|
+
| `id` | yes | matches `name` |
|
|
176
|
+
| `type` | yes | literal `command` |
|
|
177
|
+
| `description` | yes | ≥60 chars |
|
|
178
|
+
| `orchestrator` | yes | boolean |
|
|
179
|
+
| `agentPipeline` | when orchestrator=true | non-empty array of agent IDs |
|
|
180
|
+
| `tags` | yes | array; ≥1 entry |
|
|
181
|
+
| `quality_charter` | yes | auto-injected |
|
|
182
|
+
|
|
183
|
+
#### D.2 Body Skeleton
|
|
184
|
+
|
|
185
|
+
Pull from `user-content-templates.md` §4. Two variants:
|
|
186
|
+
|
|
187
|
+
- **Inline** (`orchestrator: false`): single-section body with numbered Steps and inline validation gates.
|
|
188
|
+
- **Orchestrator** (`orchestrator: true`): three-phase body — Phase 1 collect, Phase 2 delegate via Task tool, Phase 3 housekeeping.
|
|
189
|
+
|
|
190
|
+
#### D.3 Type-Specific Gates
|
|
191
|
+
|
|
192
|
+
- Strict: orchestrator/agentPipeline contract enforced by `validateCommandOrchestratorFrontmatter` from `src/cli/commands/validate.ts:171`. When `orchestrator: true`, every entry in `agentPipeline` must be a string and the array non-empty. Deny-pattern scan on body.
|
|
193
|
+
- Gentle: anti-slop, lean threshold (≤300 lines), pillar tag presence.
|
|
194
|
+
|
|
195
|
+
### Branch E — Hook
|
|
196
|
+
|
|
197
|
+
#### E.1 Frontmatter Slots
|
|
198
|
+
|
|
199
|
+
| Slot | Required | Notes |
|
|
200
|
+
|------|---|-------|
|
|
201
|
+
| `id` | yes | matches `name` |
|
|
202
|
+
| `type` | yes | literal `hook` |
|
|
203
|
+
| `event` | yes | one of `pre-commit | post-merge | ci-failure | file-save | session-start | pre-push` |
|
|
204
|
+
| `agent` | yes | the agent invoked when the hook fires |
|
|
205
|
+
| `description` | yes | ≥60 chars |
|
|
206
|
+
| `globs` | optional | CSV string for file-save event filtering |
|
|
207
|
+
| `condition` | optional | additional firing condition |
|
|
208
|
+
| `tags` | yes | array; ≥1 entry |
|
|
209
|
+
| `quality_charter` | yes | auto-injected |
|
|
210
|
+
|
|
211
|
+
#### E.2 Body Skeleton
|
|
212
|
+
|
|
213
|
+
Pull from `user-content-templates.md` §5. Sections: short paragraph describing what the hook does, when it fires, what the invoked agent should do (numbered steps).
|
|
214
|
+
|
|
215
|
+
#### E.3 Type-Specific Gates
|
|
216
|
+
|
|
217
|
+
- Strict: hook event enum enforced by `isValidHookEvent` from `src/hooks/types.ts:30`. Referenced agent must exist in canonical `.agents/agents/` or under `.agents/user/agents/`. Deny-pattern scan.
|
|
218
|
+
- Gentle: anti-slop, lean threshold (≤80 lines), pillar tag presence.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Gate Funnel
|
|
223
|
+
|
|
224
|
+
This agent does not implement strict or gentle gates directly. Both run inside `saveUserContent` in `src/content/userContent.ts`, which is the canonical implementation.
|
|
225
|
+
|
|
226
|
+
The strict gate set blocks the save when any of the following fails:
|
|
227
|
+
|
|
228
|
+
1. Frontmatter schema (required slots present and well-typed).
|
|
229
|
+
2. ID collision against canonical and existing user content (case-insensitive, comparing both prefixed and unprefixed forms).
|
|
230
|
+
3. Deny-pattern body scan (reuses `scanForDeniedPatterns` from `src/adapters/customization.ts:290` and `INJECTION_PATTERNS` from `src/pipeline/promptGuard.ts`).
|
|
231
|
+
4. Paired-file parity (rule only — `.md` body bytes must equal `.mdc` body bytes).
|
|
232
|
+
5. Orchestrator/`agentPipeline` contract (command only).
|
|
233
|
+
6. Hook event enum (hook only).
|
|
234
|
+
7. File size ≤10KB.
|
|
235
|
+
|
|
236
|
+
The gentle gate set surfaces warnings without blocking:
|
|
237
|
+
|
|
238
|
+
1. Anti-slop wordlist (12 banned phrases per `governance/CONSTITUTION.md` §2 P5).
|
|
239
|
+
2. Lean line thresholds per type (above).
|
|
240
|
+
3. Quality-charter reference present (auto-injected, but warned if user override drops it).
|
|
241
|
+
4. Pillar declaration (≥1 of P1–P6 in tags or body).
|
|
242
|
+
|
|
243
|
+
The agent's job is to assemble the artifact so every strict gate above passes on the first call and any gentle warnings surfaced in `gentleWarnings` cite a specific line and gate ID the user can act on.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## Tool Allowlist
|
|
248
|
+
|
|
249
|
+
Minimum tools the agent needs to run end-to-end:
|
|
250
|
+
|
|
251
|
+
- **Read** — to read `agents/shared/user-content-templates.md` and any reference content.
|
|
252
|
+
- **Glob** — to detect existing `.agents/user/{type}/{name}.md` and prevent collision before the gate funnel runs.
|
|
253
|
+
- **Grep** — to scan for ID collision against canonical content during composition.
|
|
254
|
+
- **Bash** — limited to `mkdir -p .agents/user/{type}` and `mkdir -p .agents/user/skills/{name}` for directory creation. The atomic write itself is performed by `saveUserContent` via `src/merge/safeWrite.ts` (no shell `mv`/`cp`).
|
|
255
|
+
|
|
256
|
+
The agent does **not** need WebFetch or WebSearch. The creator focuses on user input plus framework conventions; external research is out of scope. Adapters and platform research belong to `hatch3r-researcher`.
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
<rules>
|
|
261
|
+
|
|
262
|
+
## Hard Rules
|
|
263
|
+
|
|
264
|
+
- **Never overwrite an existing user file.** A collision with an existing path under `.agents/user/{type}/{name}.md` (or `.agents/user/skills/{name}/SKILL.md` for skills, or `.agents/user/rules/{name}.mdc` for the rule companion) is a Critical strict-gate failure. Return `status: "BLOCKED"` with the conflicting absolute path in `paths`.
|
|
265
|
+
- **Never write outside `.agents/user/`.** Canonical content directories at the repository root are off-limits. Writes to `agents/`, `skills/`, `rules/`, `commands/`, `hooks/`, or any sibling outside `.agents/user/` are rejected.
|
|
266
|
+
- **Never mutate `.agents/hatch.json` directly.** `saveUserContent` updates the `userContent` counter (`{count, lastModified, types}`) atomically alongside the artifact write. Direct edits to `hatch.json` from this agent are prohibited.
|
|
267
|
+
- **Always inject `quality_charter: agents/shared/quality-charter.md`** into generated frontmatter. v1.7.0 does not support user override of the charter reference.
|
|
268
|
+
- **Surface but do not block on anti-slop.** If user-supplied body content contains any of the 12 banned phrases enumerated in `governance/CONSTITUTION.md` §Anti-Slop Wordlist, report each match in `gentleWarnings` with the line number and the matched phrase ID. The save proceeds.
|
|
269
|
+
- **Do not infer pillar coverage.** If the user did not declare a pillar-aligned tag and the body lacks an explicit P1–P6 reference, surface a gentle warning. Do not auto-tag.
|
|
270
|
+
- **One artifact per invocation.** Multiple types or names per call are rejected. The orchestrator must re-invoke for additional artifacts.
|
|
271
|
+
|
|
272
|
+
</rules>
|
|
273
|
+
|
|
274
|
+
## Confidence Expression
|
|
275
|
+
|
|
276
|
+
Per `agents/shared/quality-charter.md` §1, rate every authoring decision as **high**, **medium**, or **low** confidence. For composition steps that follow the template literally and pass schema validation, report `high`. When body skeleton substitution required interpretation (e.g., choosing a default tool-allowlist hint when none was provided), report `medium` and document the choice in the structured return. Defer to `low` only when the input contract was incomplete and a default had to be invented; flag this in `gentleWarnings`.
|
|
277
|
+
|
|
278
|
+
## Failure Modes
|
|
279
|
+
|
|
280
|
+
| Failure | Status | Action |
|
|
281
|
+
|---|---|---|
|
|
282
|
+
| File collision before gate funnel | `BLOCKED` | Return existing path; do not call `saveUserContent`. |
|
|
283
|
+
| Strict frontmatter schema violation | `STRICT_GATE_FAILED` | Return `strictErrors[]` from `saveUserContent`. |
|
|
284
|
+
| Deny-pattern match in body | `STRICT_GATE_FAILED` | Return matched pattern ID from `INJECTION_PATTERNS`. |
|
|
285
|
+
| Paired-file parity drift (rule) | `STRICT_GATE_FAILED` | Return the byte-diff line range. |
|
|
286
|
+
| Hook event outside enum | `STRICT_GATE_FAILED` | Return the invalid event and the valid enum. |
|
|
287
|
+
| Anti-slop / lean / charter / pillar | (none — `WRITTEN`) | Add to `gentleWarnings`, save proceeds. |
|
|
288
|
+
| Underlying filesystem error | `BLOCKED` | Surface error message; do not retry. |
|
|
289
|
+
|
|
290
|
+
## Example
|
|
291
|
+
|
|
292
|
+
**Invocation:** Author a user agent named `pr-summarizer` with model `standard` and tags `[review, customize]`.
|
|
293
|
+
|
|
294
|
+
**Steps the agent takes:**
|
|
295
|
+
|
|
296
|
+
1. Read `agents/shared/user-content-templates.md` §1 (Agent skeleton).
|
|
297
|
+
2. Glob `.agents/user/agents/pr-summarizer.md` — confirm absence.
|
|
298
|
+
3. Compose frontmatter (id, description, model, tags, quality_charter).
|
|
299
|
+
4. Compose body using the agent skeleton — `<task>` describes summarizing PRs, `<context>` references the parent orchestrator's PR number input, Implementation Protocol numbered steps, `<rules>` lists scope limits.
|
|
300
|
+
5. Call `saveUserContent({ type: "agent", path: ".agents/user/agents/pr-summarizer.md", body: ... })`.
|
|
301
|
+
6. Receive `{ written: true, strictErrors: [], gentleWarnings: [{message: "No pillar tag in tags or body", gate: "pillar-declaration"}] }`.
|
|
302
|
+
7. Return `{ status: "WRITTEN", paths: ["/abs/.agents/user/agents/pr-summarizer.md"], strictErrors: [], gentleWarnings: [...] }` to the orchestrator.
|
|
303
|
+
|
|
304
|
+
The orchestrator then runs `hatch3r validate` in Phase 3.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-dependency-auditor
|
|
3
|
+
type: agent
|
|
3
4
|
description: Supply chain security analyst who audits npm dependencies for vulnerabilities, freshness, and bundle impact. Use when auditing dependencies, responding to CVEs, or evaluating new packages.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [maintenance, security]
|
|
@@ -7,6 +8,10 @@ quality_charter: agents/shared/quality-charter.md
|
|
|
7
8
|
tools:
|
|
8
9
|
allow: [Read, Grep, Glob, WebSearch, "Bash:npm audit", "Bash:npm audit --json", "Bash:npm audit --omit=dev", "Bash:npm outdated", "Bash:npm outdated --json", "Bash:npm ls", "Bash:npm explain", "Bash:npx depcheck", "Bash:npx license-checker"]
|
|
9
10
|
deny: ["Bash:npm audit fix", "Bash:npm install", "Bash:npm update", "Bash:npm uninstall", "Bash:npm ci", "Bash:pnpm add", "Bash:pnpm remove", "Bash:pnpm update", "Bash:yarn add", "Bash:yarn remove", "Bash:yarn upgrade", Write, Edit]
|
|
11
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
12
|
+
efficiency_tier: standard
|
|
13
|
+
cache_friendly: true
|
|
14
|
+
parallel_tool_default: true
|
|
10
15
|
---
|
|
11
16
|
> **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping. CVSS-derived Critical/High/Medium/Low buckets used by this agent align 1:1 with canonical audit severity.
|
|
12
17
|
|
package/agents/hatch3r-devops.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-devops
|
|
3
|
+
type: agent
|
|
3
4
|
description: DevOps engineer who manages CI/CD pipelines, infrastructure as code, deployment strategies, monitoring setup, container configuration, and environment management. Use when setting up pipelines, reviewing infrastructure, or managing deployments.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [devops]
|
|
@@ -7,6 +8,10 @@ quality_charter: agents/shared/quality-charter.md
|
|
|
7
8
|
tools:
|
|
8
9
|
allow: [Read, Grep, Glob, WebSearch, Write, Edit, "Bash:git status", "Bash:git log", "Bash:git diff", "Bash:git branch --list", "Bash:terraform validate", "Bash:terraform fmt", "Bash:terraform plan", "Bash:docker build", "Bash:docker image ls", "Bash:kubectl get", "Bash:kubectl describe", "Bash:kubectl config view", "Bash:aws * --dry-run", "Bash:gcloud * --dry-run"]
|
|
9
10
|
deny: ["Bash:terraform apply", "Bash:terraform destroy", "Bash:terraform import", "Bash:terraform state rm", "Bash:kubectl apply", "Bash:kubectl delete", "Bash:kubectl scale", "Bash:kubectl rollout", "Bash:docker push", "Bash:docker rm", "Bash:docker rmi", "Bash:aws s3 rm", "Bash:aws ec2 terminate-instances", "Bash:aws iam delete-user", "Bash:aws iam attach-role-policy", "Bash:gcloud compute instances delete", "Bash:gcloud projects delete", "Bash:gh workflow run", "Bash:gh release create", "Bash:git push", "Bash:git reset --hard"]
|
|
11
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
12
|
+
efficiency_tier: standard
|
|
13
|
+
cache_friendly: true
|
|
14
|
+
parallel_tool_default: true
|
|
10
15
|
---
|
|
11
16
|
You are a senior DevOps engineer for the project.
|
|
12
17
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-docs-writer
|
|
3
|
+
type: agent
|
|
3
4
|
description: Technical writer who maintains specs, ADRs, and documentation. Use when updating documentation, writing ADRs, or keeping docs in sync with code changes.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [maintenance]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are an expert technical writer for the project.
|
|
9
14
|
|
package/agents/hatch3r-fixer.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-fixer
|
|
3
|
+
type: agent
|
|
3
4
|
description: Targeted fix agent that takes structured reviewer output and implements fixes for Critical and Warning findings. Does not handle git, branches, commits, or PRs — the parent orchestrator owns those.
|
|
4
5
|
model: fast
|
|
5
6
|
tags: [core, implementation]
|
|
6
7
|
protected: true
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
> **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping.
|
|
10
15
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-implementer
|
|
3
|
+
type: agent
|
|
3
4
|
description: Focused implementation agent for a single issue. Receives issue context, delivers code changes and tests. Does not handle git, branches, commits, PRs, or board operations — the parent orchestrator owns those.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [core, implementation]
|
|
6
7
|
protected: true
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
You are a focused implementation agent for the project. You receive a single issue and deliver a complete implementation.
|
|
10
15
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-learnings-loader
|
|
3
|
+
type: agent
|
|
3
4
|
description: Session-start agent that surfaces relevant project learnings, recent decisions, and context from previous sessions. Use at the beginning of a coding session to get up to speed.
|
|
4
5
|
model: fast
|
|
5
6
|
tags: [core, maintenance]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a project context loader for the project.
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-lint-fixer
|
|
3
|
+
type: agent
|
|
3
4
|
description: Code quality enforcer who fixes style, formatting, and type issues without changing logic. Use when cleaning up lint errors, fixing formatting, or resolving TypeScript strict mode violations.
|
|
4
5
|
model: fast
|
|
5
6
|
tags: [core, implementation]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a code quality engineer for the project.
|
|
9
14
|
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-perf-profiler
|
|
3
|
+
type: agent
|
|
3
4
|
description: Performance engineer who profiles, benchmarks, and optimizes against defined budgets. Use when investigating performance issues, auditing budgets, or optimizing hot paths.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [review, performance]
|
|
6
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
11
|
+
parallel_tool_default: true
|
|
7
12
|
---
|
|
8
13
|
You are a performance engineer for the project.
|
|
9
14
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-researcher
|
|
3
|
+
type: agent
|
|
3
4
|
description: Composable context researcher agent. Receives a research brief with mode selections and depth level, gathers context following the tooling hierarchy, returns structured findings. Does not create files or modify code — the parent orchestrator owns all artifacts.
|
|
4
5
|
model: standard
|
|
5
6
|
tags: [core, planning]
|
|
6
7
|
protected: true
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
You are a focused context researcher for the project. You receive a research brief and return structured findings.
|
|
10
15
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-reviewer
|
|
3
|
+
type: agent
|
|
3
4
|
description: Expert code reviewer for the project. Proactively reviews code for quality, security, privacy invariants, performance, accessibility, and adherence to specs.
|
|
4
5
|
protected: true
|
|
5
6
|
model: standard
|
|
6
7
|
tags: [core, review]
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
> **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping.
|
|
10
15
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-security-auditor
|
|
3
|
+
type: agent
|
|
3
4
|
description: Security analyst who audits database rules, cloud functions, event metadata, and data flows. Use when reviewing security, auditing privacy invariants, or validating access control.
|
|
4
5
|
protected: true
|
|
5
6
|
model: standard
|
|
6
7
|
tags: [review, security]
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
> **Severity vocabulary:** see [governance/audit/templates/severity-mapping.md](../governance/audit/templates/severity-mapping.md) for canonical 5-column mapping.
|
|
10
15
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: hatch3r-test-writer
|
|
3
|
+
type: agent
|
|
3
4
|
description: QA engineer who writes deterministic, isolated tests. Covers unit, integration, E2E, security rules, and contract tests.
|
|
4
5
|
model: standard
|
|
5
6
|
protected: true
|
|
6
7
|
tags: [core, review]
|
|
7
8
|
quality_charter: agents/shared/quality-charter.md
|
|
9
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
10
|
+
efficiency_tier: standard
|
|
11
|
+
cache_friendly: true
|
|
12
|
+
parallel_tool_default: true
|
|
8
13
|
---
|
|
9
14
|
You are an expert QA engineer for the project.
|
|
10
15
|
|
|
@@ -5,6 +5,9 @@ description: Design the architectural approach with data model changes, API cont
|
|
|
5
5
|
tags: [core, planning, implementation]
|
|
6
6
|
parent: hatch3r-researcher
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
8
11
|
---
|
|
9
12
|
### Mode: `architecture`
|
|
10
13
|
|
|
@@ -5,6 +5,9 @@ description: Map integration boundaries, external dependencies, and data flow se
|
|
|
5
5
|
tags: [core, planning, review]
|
|
6
6
|
parent: hatch3r-researcher
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
8
11
|
---
|
|
9
12
|
### Mode: `boundary-analysis`
|
|
10
13
|
|
|
@@ -5,6 +5,9 @@ description: Analyze current codebase to understand what exists in the areas the
|
|
|
5
5
|
tags: [core, planning, review]
|
|
6
6
|
parent: hatch3r-researcher
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
8
11
|
---
|
|
9
12
|
### Mode: `codebase-impact`
|
|
10
13
|
|
|
@@ -5,6 +5,9 @@ description: Identify code complexity hotspots and mutation-prone areas for test
|
|
|
5
5
|
tags: [core, review]
|
|
6
6
|
parent: hatch3r-researcher
|
|
7
7
|
quality_charter: agents/shared/quality-charter.md
|
|
8
|
+
efficiency_patterns: agents/shared/efficiency-patterns.md
|
|
9
|
+
efficiency_tier: standard
|
|
10
|
+
cache_friendly: true
|
|
8
11
|
---
|
|
9
12
|
### Mode: `complexity-risk`
|
|
10
13
|
|