Command Palette

Search for a command to run...

Назад к скиллам
скилл № 61118

zob-split-refactor

Use when splitting a monolithic ZOB/Pi TypeScript extension into modules without behavior changes. Enforces split-only moves, export compatibility, local…

БесплатноБез исполняемых скриптов
cgarrotот cgarrot★ 32 звезды на GitHub

Установить zob-split-refactor в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

ZOB Split Refactor

Use when

  • Splitting .pi/extensions/zob-harness/index.ts or another monolithic ZOB/Pi TypeScript extension.
  • Moving one bounded block into a sidecar module.
  • Verifying exports/imports/circularity after a split-only slice.

Rules

  • Move code; do not rewrite logic.
  • Preserve public exports from index.ts.
  • Keep the Pi entrypoint and default export stable until an explicit final barrel switch is approved.
  • Use NodeNext relative imports with .js suffix, e.g. ./utils/paths.js.
  • Never import index.ts from src/**.
  • Do not rename tools, commands, event handlers, sentinels, artifacts, schemas, prompt strings, error messages, or output contract ids.
  • Do not change array order, defaults, validations, sync/async behavior, Date.now(), new Date(), or Math.random() semantics.
  • Read the nearest AGENTS.md before editing a folder.

Slice workflow

  1. Read docs/ZOB_HARNESS_ARCHITECTURE.md once for the phase.
  2. Read the local AGENTS.md for the target folder.
  3. Read only the relevant index.ts range and already-extracted modules.
  4. Move a bounded block with minimal import/export changes.
  5. Validate with npm run check -- --pretty false.
  6. For domain/runtime slices, also run npm run smoke:harness.
  7. Ask a read-only oracle to check equivalence before continuing.

Stop conditions

  • A slice requires importing from src/** back into index.ts without approval.
  • A src/** file would import from index.ts.
  • Typecheck failure requires behavior changes instead of import/export fixes.
  • Any public export, registration, sentinel, artifact path, schema description, or error string would change.

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл zob-split-refactor?

Use when splitting a monolithic ZOB/Pi TypeScript extension into modules without behavior changes. Enforces split-only moves, export compatibility, local AGENTS.md context, and smoke validation.

Как установить скилл zob-split-refactor?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл zob-split-refactor запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить zob-split-refactor с