validate_routing_guard
Validates whether a direct Edit or Write tool call is permitted for the current routing context in Claude Code.
Instructions
Validate whether a direct Edit or Write tool call is allowed for the current routed task context. Intended for Claude Code PreToolUse hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory reported by the host hook | |
| skill | No | Optional skill name (e.g. 'auto-time') — matched against routing exceptions | |
| tool_name | No | Host tool name, for example Edit or Write | |
| target_file | No | Absolute path of the file about to be edited or written |