hook-routing-worker
БесплатноБез исполняемых скриптовНе проверенHook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Hook Routing Worker
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
When to Use This Skill
Features that add hook input/output capabilities (updatedInput, suppressOutput), enhance denial-based routing feedback, or integrate hooks with the routing system.
Work Procedure
Read the feature description carefully. Understand the hook protocol fields being added and how they integrate with the routing system.
Read source files. Before modifying:
- Read the target hook(s) fully
- Read
.claude/lib/routing/denial-feedback-reader.cjsfor denial feedback patterns - Read
AGENTS.mdfor CC dangerous patterns reference
Write tests first (red). Create test file at
tests/hooks/<descriptive-name>.test.cjs. Tests must cover:- New output fields (updatedInput, suppressOutput) present/absent in correct conditions
- Integration with denial log (read/write/accumulate)
- Edge cases (empty logs, malformed data, missing files)
- Fail-open for advisory hooks, fail-closed for security hooks Run tests — they should FAIL (red).
Implement changes.
updatedInput: Return in hookSpecificOutput when the hook modifies the command (e.g., prepending safety prefixes). Must not appear when no modification needed.suppressOutput: Returntruewhen verbose block messages should not inflate context. Only on block events, never on allow.- Denial feedback: Use
getDenialFeedback()from denial-feedback-reader.cjs. Handle missing/corrupted log gracefully. - Routing integration: Follow existing patterns in
.claude/lib/routing/.
Run tests (green). All tests pass.
Run lint.
pnpm lint npx prettier --check <modified-files>
Example Handoff
{
"salientSummary": "bash-command-validator now returns updatedInput.command with safety prefix for multi-line scripts. suppressOutput:true on blocks. 22 tests.",
"whatWasImplemented": "updatedInput logic: detect multi-line commands missing set -e, prepend set -euo pipefail. suppressOutput:true on exit-2 blocks only. Denial feedback integration tested with seeded logs.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "node --test tests/hooks/bash-updated-input.test.cjs", "exitCode": 0, "observation": "22 tests passing" },
{ "command": "pnpm lint", "exitCode": 0, "observation": "0 errors" }
]
}
}
When to Return to Orchestrator
- Hook output protocol doesn't support updatedInput or suppressOutput fields
- denial-feedback-reader.cjs has a different API than documented
- Routing integration requires changes to modules outside feature scope
Установить hook-routing-worker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hook-routing-worker?
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback
Как установить скилл hook-routing-worker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hook-routing-worker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic