Hatch3r customize

From hatch3r/hatch3r · View interactive version

Hatch3r customize is an AI agent skill from the GitHub repository hatch3r/hatch3r. Creates and manages customization files for any hatch3r artifact type (agents, commands, rules, skills). Supports model overrides, description changes, scope overrides, enable/disable control, and project-specific markdown instructions.

How to use this skill

Skill file

Artifact Customization Management

Canonical entry point. This is the single skill for all per-artifact customization (agents, commands, rules, skills). The four prior type-specific skill stubs were removed in v1.9.0 per the Decision #13 Command-vs-Skill criterion; hatch3r's artifact-inventory and redundancy analysis documents the rejected-merge alternative.

Quick Start

Task Progress:
- [ ] Step 0: Detect ambiguity (P8 B1)
- [ ] Step 1: Identify what to customize (and why)
- [ ] Step 2: Determine customization needs
- [ ] Step 3: Multi-stakeholder review
- [ ] Step 4: Create the customization files
- [ ] Step 5: Sync to propagate changes
- [ ] Step 6: Verify the customized output

Step 0 — Detect Ambiguity (P8 B1)

Before any work, scan the invocation for unresolved questions in scope, intent, acceptance criteria, target environment, or irreversibility. If any are found, ask the user via the platform-native question tool per agents/shared/user-question-protocol.md. Do not proceed under silent assumption. Default path, not an exception. Triggers for THIS skill: artifact type (agent vs command vs rule vs skill), target artifact id, whether disabling breaks a command pipeline dependency, scope narrowing for rules (and excluded glob patterns), and whether this customization should be an upstream contribution instead.

Fan-out Discipline (P8 B2)

Fan-out scales with task size; token cost never justifies serializing independent work (rules/hatch3r-fan-out-discipline.md P8 B2; agents/shared/efficiency-patterns.md). Emit sub_agents_spawned: { count, rationale, task_structure } in your output.

Artifact Types

This skill handles customization for all artifact types. The type parameter determines file locations, available YAML fields, and verification steps.

| Type | Source Directory | Customization Directory | YAML Fields |

|------|-----------------|------------------------|-------------|

| agent | agents/ | .hatch3r/agents/ | model, description, enabled |

| command | commands/ | .hatch3r/commands/ | description, enabled |

| rule | rules/ | .hatch3r/rules/ | scope, description, enabled |

| skill | skills/ | .hatch3r/skills/ | description, enabled |

Protected agents: Some agents have protected: true in their canonical frontmatter. For these agents, description and enabled overrides are ignored — only model and markdown instructions can be customized.

Step 1: Identify and Root-Cause

Determine which artifact needs customization and why:

  1. Review the artifacts in the appropriate source directory and their default behaviors.
  2. Identify gaps between default behavior and project needs.
  3. Check for existing customization files in the appropriate .hatch3r/{type}s/ directory.
  4. Root-cause analysis: Before proceeding, consider:

If the customization is working around a default content issue, note it as a candidate for upstream contribution before proceeding.

Step 2: Determine Customization Needs

Decide which customization approach to use:

YAML (.customize.yaml) — for structured overrides:

| Field | Available For | Description |

|-------|--------------|-------------|

| model | agent only | Override the agent's preferred model |

| scope | rule only | Override when the rule applies (always or glob patterns) |

| description | all types | Change how the artifact is described in adapter outputs |

| enabled | all types | Set to false to exclude from adapter output generation |

Markdown (.customize.md) — for free-form instructions:

Set only the fields/content you need — partial customization is valid.

Step 3: Multi-Stakeholder Review

Before creating customization files, consider the impact from multiple perspectives:

  1. Developer experience: Does this customization make the developer's workflow better or worse? Will it cause confusion for new team members?
  2. Quality impact: Does disabling or weakening an artifact (especially agents or rules) reduce quality safeguards? What compensating controls exist?
  3. Maintenance burden: Will this customization need updating when the upstream canonical artifact changes? Is the coupling acceptable?
  4. Consistency: Does this customization create inconsistency with other artifacts or team conventions?

Confidence expression: State your confidence in the customization decision:

Step 4: Create Customization Files

Create files in .hatch3r/{type}s/:

For YAML overrides: Create .hatch3r/{type}s/{artifact-id}.customize.yaml with the applicable fields from the Step 2 table.

For markdown instructions: Create .hatch3r/{type}s/{artifact-id}.customize.md with project-specific content. This is injected into the managed block under ## Project Customizations.

Step 5: Sync

Run npx hatch3r sync to propagate customizations to all adapter outputs. The sync reads .customize.yaml for structured overrides, reads .customize.md and appends it inside the managed block, and generates updated output for every configured adapter.

Step 6: Verify

Confirm customizations appear in adapter output files:

Quality Gate

Verification is not just "sync completes." Confirm:

Error Handling

Definition of Done

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.