Логотип H4tcher Capability Refactor

H4tcher Capability Refactor

Організація
hatch3r
h4tcher-capability-refactor

Rename, split, merge, or restructure an existing canonical artifact with cross-reference scrubbing and an explicit rename-map deliverable.

Огляд

Видавецьhatch3r
Репозиторійhatch3r
Назва навичкиh4tcher-capability-refactor
Зірки
26
Форки
7
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем hatch3r. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ H4tcher Capability Refactor у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/hatch3r/hatch3r/tree/main/.claude/skills/h4tcher-capability-refactor
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hatch3r/hatch3r.git /tmp/hatch3r
mkdir -p .claude/skills
cp -r /tmp/hatch3r/.claude/skills/h4tcher-capability-refactor .claude/skills/h4tcher-capability-refactor
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку H4tcher Capability Refactor в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку H4tcher Capability Refactor, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка H4tcher Capability Refactor не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Last updated: 2026-06-06

Capability Refactor (Maintainer)

Lifecycle preset for renaming, splitting, merging, or restructuring an existing artifact (agent, skill, rule, command, hook, adapter, pipeline module, governance file). Owns the cross-reference scrubber. Stops before commit so the maintainer reviews the rename map and diff.

§0.1: Ambiguity Gate (P8 B1)

Per CONSTITUTION §2 P8 B1: every framework-dev workflow mutating canonical artifacts detects and resolves ambiguity via agents/shared/user-question-protocol.md BEFORE executing — default behavior, not exception-driven. Apply the protocol when any hold: (a) ambiguous scope (rename vs split vs merge unclear, or which artifact is the target), (b) multiple valid interpretations with materially different cross-reference blast radius, (c) irreversible action (public artifact id rename, frontmatter-field drop, agentPipeline: member rename), or (d) missing acceptance criteria (no rename map, no definition of done). Use the platform-native question tool; one question per turn; 2-4 numbered options with one-line trade-offs; declare the default-if-no-response. Do NOT proceed to Step 0 until resolved or the default is confirmed.

Step 0: Triage

Classify the refactor scope first:

  • T1 — body restructure only; no rename; no cross-reference impact. Inline; skip Step 4.
  • T2 — rename of one artifact with ≤10 cross-references. 3 parallel sub-agents per Step 4.
  • T3 — split / merge, agentPipeline: impact, or rename touching governance/inventory.json registry plus governance/CONSTITUTION.md references. ≥3 parallel sub-agents per Step 4; CL-3 flag if D16 or AUDIT files touched.

Record the tier in the Step 7 summary header.

Step 1: Preflight

  1. Confirm clean working tree: git status --short returns empty.
  2. Confirm branch: git branch --show-current.
  3. Cache governance lean limits from governance/CONSTITUTION.md §2 P5 for any governance file the refactor will touch.
  4. Resolve the target artifact: file path, id, type (agent | skill | rule | command | hook | adapter | pipeline | governance).
  5. Capture baseline wc -l for the target plus every governance file near the lean threshold.

Step 2: Discover (Cross-Reference Scan)

  1. Run the canonical cross-reference scan against the old name or id. Substitute <old-name> with the artifact id (e.g., hatch3r-fixer):
    bash
    grep -r "<old-name>" agents/ skills/ rules/ commands/ hooks/ checks/ prompts/ github-agents/ src/ governance/ docs/ docs-site/ tests/ CLAUDE.md README.md CHANGELOG.md
  2. Read governance/inventory.json to enumerate every registry citation of <old-name> (ids field, managedFiles paths, counts).
  3. For agent renames, list every commands/hatch3r-*.md whose frontmatter agentPipeline: array contains <old-name> — these orchestrator commands resolve the agent by id, so any miss leaves a broken pipeline.
  4. Bucket every hit into one of three surfaces: code/tests (src/, tests/, scripts/), governance/docs (governance/, docs/, docs-site/, CLAUDE.md, README.md, CHANGELOG.md), canonical artifacts (agents/, skills/, rules/, commands/, hooks/, checks/, prompts/, github-agents/).

Step 3: Web Research

Skip for pure rename or in-file restructure with no empirical claim. Required when the refactor adopts a new industry pattern (e.g., restructuring an adapter around a vendor's new feature surface). Per agents/shared/rigor-contract.md §"Web Research Mandate": ≥2 independent sources, trust tier (official-docs > peer-reviewed > vendor-note > independent-analysis > blog-post), recency (≤90d CVE, ≤12mo vendor docs, ≤36mo peer-reviewed). Sources recorded in Step 7.

Step 4: Sub-Agent Dispatch (T2 / T3 only)

Spawn 3 parallel Task sub-agents. Each updates references on its disjoint surface slice and writes a diff manifest:

SlotScopeManifest
1code/tests — src/, tests/, scripts/.audit-workspace/capability-refactor-1.md
2governance/docs — governance/, docs/, docs-site/, CLAUDE.md, README.md, CHANGELOG.md.audit-workspace/capability-refactor-2.md
3canonical artifacts — agents/, skills/, rules/, commands/, hooks/, checks/, prompts/, github-agents/.audit-workspace/capability-refactor-3.md

Each sub-agent prompt MUST include: the slot's bucket from Step 2, the h4tcher-development context block (pillar test, lean thresholds, anti-slop wordlist ref, commit format) modeled on .claude/skills/h4tcher-pr-resolve/SKILL.md, confidence-with-basis per the rigor contract, the workspace target path, and an explicit "no branches, no commits, no PRs" guardrail.

Fan-out is task-derived (P8 B2): 0 sub-agents on T1 (inline), 3 on T2/T3 across the disjoint reference-surface slices above. Token cost never serializes independent work (.claude/rules/fan-out-discipline.md Cost-dominance clause). Emit sub_agents_spawned: { count, rationale, task_structure } in your output (the Sub-agents field of the Step 7 summary; task_structure: parallelizable — the reference-surface slices are disjoint).

Step 5: Cross-Skill Delegation

Body-content rewrites delegate to the matching author skill — set up context only, do not author inline:

Refactor targetDelegate to
agents/*.md, skills/*/SKILL.md, rules/*.md, commands/*.md, hooks/*.md bodyh4tcher-content-author
Audit domain file (governance/audit/domains/D*.md)h4tcher-domain-author
Adapter under src/adapters/h4tcher-adapter-author
Mechanical cross-reference rewrites (id replacement, path bumps)Inline — no delegation

The orchestrator retains: rename-map authorship, Step 4 sub-agent coordination, Step 6 gates, Step 7 summary.

Step 6: Governance Gates

  1. Run the full gate battery, blocking on any failure:
    bash
    npm run validate && npm test && npx tsc --noEmit && npm run lint && \
      npm run build && npm run validate:rule-parity && npm run validate:efficiency
  2. Reference-orphan check. Re-run the Step 2 grep command against the post-refactor tree. Hit count MUST be zero for the old name:
    bash
    grep -r "<old-name>" agents/ skills/ rules/ commands/ hooks/ checks/ prompts/ github-agents/ src/ governance/ docs/ docs-site/ tests/ CLAUDE.md README.md CHANGELOG.md | wc -l
  3. Regenerate the registry and inspect the diff:
    bash
    npm run inventory
    git diff governance/inventory.json
    The diff must reflect every renamed id; investigate any unexpected drift before proceeding.
  4. Anti-slop scan on every modified .md / .mdc file using the wordlist regex from .claude/rules/anti-slop-enforcement.md; any hit blocks commit and is fixed via that file's replacement column.
  5. Pillar Compliance Test (.claude/rules/pillar-compliance.md) on every modified file; lean threshold check against the Step 1 baselines.

Step 7: Stop-Before-Commit Summary

  1. Emit the summary below to the conversation. Do not commit, push, or merge.
Capability Refactor Summary
---------------------------
Tier:      T1 | T2 | T3
Branch:    <branch>
Target:    <old id / path>  ->  <new id / path>
Refactor:  rename | split | merge | restructure

Rename map: <old-id> -> <new-id> (one row per artifact)

Reference updates: code/tests <n> | governance/docs <n> | canonical <n> | total <n>
Inventory delta: <managedFiles +/-, ids +/-, manifest checksum changed yes/no>
Reference-orphan grep hits on old name: <count> (must be 0)

Gates:
  npm run validate               <PASS|FAIL>
  npm test                       <PASS|FAIL>
  npx tsc --noEmit               <PASS|FAIL>
  npm run lint                   <PASS|FAIL>
  npm run build                  <PASS|FAIL>
  npm run validate:rule-parity   <PASS|FAIL>
  npm run validate:efficiency    <PASS|FAIL>
  Anti-slop hits                 <count> (must be 0)

Pillars served: P<n>[, P<n>, ...]
Lean threshold deltas: <file: before -> after / limit>
Sub-agents: count=<0|3>, rationale=<one-line task-decomposition justification>
Sources (if Step 3 ran): <per-claim citations with trust tier + recency>

Suggested commit message:
  refactor(<scope>): <old-id> -> <new-id>

  <body line 1>
  <body line 2>

  Pillars: P<n>, P<n>

Status:     SUCCESS | PARTIAL | BLOCKED
Confidence: high | medium | low

Next action (run manually):
  git add <files>
  git commit -s -m "<suggested message>"

References

  • Cross-skill: .claude/skills/h4tcher-content-author/SKILL.md, .claude/skills/h4tcher-adapter-author/SKILL.md, .claude/skills/h4tcher-domain-author/SKILL.md
  • Triage skeleton: .claude/skills/h4tcher-pr-resolve/SKILL.md
  • Web research mandate: agents/shared/rigor-contract.md
  • Anti-slop wordlist: .claude/rules/anti-slop-enforcement.md
  • Pillar Compliance Test: .claude/rules/pillar-compliance.md

Поширені запитання

Що робить навичка ШІ H4tcher Capability Refactor?

Rename, split, merge, or restructure an existing canonical artifact with cross-reference scrubbing and an explicit rename-map deliverable.

Навіщо використовувати H4tcher Capability Refactor у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. H4tcher Capability Refactor — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити H4tcher Capability Refactor у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/hatch3r/hatch3r/tree/main/.claude/skills/h4tcher-capability-refactor. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати H4tcher Capability Refactor?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати H4tcher Capability Refactor?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею H4tcher Capability Refactor — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ H4tcher Capability Refactor?

Так. Навичку опубліковано на GitHub: hatch3r, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇