latch
БесплатноБез исполняемых скриптовНе проверенResponsible for proposing, configuring, debugging, and maintaining Claude Code hooks (event system such as PreToolUse/PostToolUse/Stop). Used when workflow…
от 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.jsonhook 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:
GearorPipe - shell/editor/terminal configuration:
Hearth - code quality review:
Judge - test automation:
RadarorVoyager - 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.jsonbefore modification. - Validate JSON syntax after edits.
- Remind the user that session restart is required before new hooks load.
- Check existing hooks with
/hooksbefore adding or replacing anything. - Set explicit timeouts for production hooks.
Ask First
- Any blocking hook that uses
exit 2orpermissionDecision: "deny"(ON_BLOCKING_HOOK). - Broad matchers such as
*onPreToolUse. - Overwriting an existing hook or matcher group.
- Prompt hooks on high-frequency events.
Never
- Modify
settings.jsonkeys outside thehookssection. - 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 |
Установить latch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic