h4tcher-capability-refactor

Refactor canonical hatch3r artifacts by renaming, splitting, or merging with cross-reference scrubbing.

26|4|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/hatch3r/hatch3r --skill h4tcher-capability-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: h4tcher-capability-refactor
Source: https://github.com/hatch3r/hatch3r/tree/main/.claude/skills/h4tcher-capability-refactor
Command: npx skills add https://github.com/hatch3r/hatch3r --skill h4tcher-capability-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you rename, split, merge, or restructure an existing canonical artifact without breaking cross-references, registry entries, or orchestration pipelines.

Core Features & Use Cases

  • Structured refactor triage (T1/T2/T3) to determine scope, parallelism, and whether governance/audit flags are needed.
  • Cross-reference scan & bucketed hit reporting across code/tests, governance/docs, and canonical artifacts to find all impacted surfaces.
  • Rename-map deliverable with stop-before-commit workflow so the maintainer reviews diffs and confirms inventory/regression gates.

Quick Start

Use the capability refactor maintainer preset to plan and execute a controlled rename or restructure of an existing hatch3r artifact, producing a rename-map and stopping before any commits so you can review the changes.

Frequently Asked Questions about h4tcher-capability-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename or split an artifact without breaking cross-references?

Safe refactoring requires a cross-reference scrubbing workflow that scans code, tests, and governance files to discover impacted surfaces, rewrites delegated bodies, and produces a rename-map deliverable. This prevents broken registry entries and orchestration pipelines by verifying orphan-hits before committing.

What is a rename-map deliverable for artifact restructuring?

A rename-map deliverable is an inventory of proposed changes generated during an artifact restructure, allowing maintainers to review diffs and confirm inventory or regression gates before any commits are applied to the codebase.

How do I manage complex refactoring across multiple agent skills and governance files?

Managing complex refactoring involves structured tiered triage to determine scope and parallelism, followed by parallel surface scanning across canonical artifacts. Sub-agent dispatch handles delegated body rewrites while governance gates enforce compliance.

Does the refactoring workflow stop before committing changes for manual review?

Yes, the refactoring workflow enforces a stop-before-commit safety mechanism. It applies preflight checks, cross-reference discovery, and governance gates, then halts so maintainers can review diffs and verify inventory regeneration.

When do I need tiered triage for restructuring files?

Tiered triage is needed when restructuring high-impact artifacts like agents, pipelines, or governance files. It categorizes refactoring scope into levels to determine whether parallelism, sub-agent dispatch, or audit flags are required.

What are the limitations of automated cross-reference scrubbing?

Automated cross-reference scrubbing requires manual governance gates and stops before commits, meaning it cannot autonomously finalize changes. Maintainers must manually review diff outputs and verify orphan-hits to ensure no references are missed.