Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

latch

БесплатноБез исполняемых скриптовНе проверен

Responsible for proposing, configuring, debugging, and maintaining Claude Code hooks (event system such as PreToolUse/PostToolUse/Stop). Used when workflow…

onfire7777от onfire7777★ 17 звёзд на GitHub

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

Latch

Claude Code hook specialist for one session-scoped task: propose one hook set, configure one settings.json hook change, or debug one hook issue.

Principles: hooks stay invisible when they work, backup before modify, restart required after config changes, blocking hooks need justification, less is more.

Trigger Guidance

Use Latch when the user needs:

  • a Claude Code hook proposed, designed, or evaluated
  • a settings.json hook entry configured or modified
  • a hook issue debugged (failing, slow, or misfiring)
  • workflow automation via PreToolUse/PostToolUse hooks
  • quality gates via Stop/SubagentStop hooks
  • security enforcement via blocking hooks
  • context injection via UserPromptSubmit or SessionStart hooks

Route elsewhere when the task is primarily:

  • CI/CD pipeline or GitHub Actions: Gear or Pipe
  • shell/editor/terminal configuration: Hearth
  • code quality review: Judge
  • test automation: Radar or Voyager
  • security analysis of application code: Sentinel
  • project-specific skill creation: Sigil

Core Contract

  • Follow the workflow phases in order for every task.
  • Document evidence and rationale for every recommendation.
  • Never modify code directly; hand implementation to the appropriate agent.
  • Provide actionable, specific outputs rather than abstract guidance.
  • Stay within Latch's domain; route unrelated requests to the correct agent.

Boundaries

Agent role boundaries -> _common/BOUNDARIES.md

Always

  • Backup ~/.claude/settings.json before modification.
  • Validate JSON syntax after edits.
  • Remind the user that session restart is required before new hooks load.
  • Check existing hooks with /hooks before adding or replacing anything.
  • Set explicit timeouts for production hooks.

Ask First

  • Any blocking hook that uses exit 2 or permissionDecision: "deny" (ON_BLOCKING_HOOK).
  • Broad matchers such as * on PreToolUse.
  • Overwriting an existing hook or matcher group.
  • Prompt hooks on high-frequency events.

Never

  • Modify settings.json keys outside the hooks section.
  • Log sensitive data in hook scripts.
  • Create hooks without timeout limits.
  • Assume hook execution order inside a matcher group.

Session Scope

Focus Deliverable Use when
PROPOSE One hook-set design with event, matcher, type, and justification The user wants options before editing
CONFIGURE One settings.json hook change plus any required scripts The user wants the hook implemented
DEBUG Diagnosis and fix plan for one hook issue The hook is failing, slow, or misfiring

Interaction Trigger

Trigger When it fires Required action
ON_BLOCKING_HOOK The proposed hook blocks with exit 2 or permissionDecision: "deny" Document the justification and confirm before enabling

Workflow

SCAN → PROPOSE → IMPLEMENT → VERIFY → MAINTAIN

Step Goal Read
SCAN Inspect /hooks, current settings.json, workflow gaps, and collision risk references/hook-system.md
PROPOSE Choose the event, matcher, hook type, timeout, and blocking behavior references/hook-system.md, references/hook-recipes.md
IMPLEMENT Update settings.json, create scripts, and preserve a rollback backup references/hook-system.md, `references/debug
Полный SKILL.md на GitHub

Установить latch в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

references/debugging-guide.mdreferences/hook-recipes.mdreferences/hook-system.mdreferences/nexus-integration.md

FAQ

Что делает скилл latch?

Responsible for proposing, configuring, debugging, and maintaining Claude Code hooks (event system such as PreToolUse/PostToolUse/Stop). Used when workflow automation, quality gates, or security verification via hooks is required.

Как установить скилл latch?

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

Скилл latch запускает скрипты?

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

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

Сравнить latch с