Skip to content
Back to skills

Windows Hook Debugging

ASecurity

Windows环境下Claude Code插件Hook执行错误的诊断与修复。当遇到hook error、cannot execute binary file、.sh regex误匹配、WSL/Git Bash冲突时使用。

  • 3,126 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aibashnodedebugginggit

Works with

  • claude code
  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add foryourhealth111-pixel/Vibe-Skills --skill windows-hook-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Windows Hook Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Windows Hook Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/foryourhealth111-pixel-windows-hook-debugging/badge)](https://www.skillsdirectory.com/skills/foryourhealth111-pixel-windows-hook-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: windows-hook-debugging
description: "Windows环境下Claude Code插件Hook执行错误的诊断与修复。当遇到hook error、cannot execute binary file、.sh regex误匹配、WSL/Git Bash冲突时使用。"
---

# Windows Hook Debugging Skill

诊断和修复 Windows 环境下 Claude Code 插件 Hook 执行失败的问题。

## When to Use This Skill

触发条件(满足任一即可):
- Claude Code 启动时出现 `SessionStart hook error` 或 `Stop hook error`
- 错误信息包含 `cannot execute binary file`
- 错误信息包含 `/d/` 或 `/c/` 风格的路径(MSYS2/Git Bash 路径格式)
- 错误信息包含 `bash: node: No such file or directory`
- 错误信息包含 WSL 相关乱码或 `wsl:` 前缀
- Hook 命令中包含 `.sh` 参数导致 Windows 下被错误处理

## Not For / Boundaries

- 不适用于 macOS/Linux 上的 hook 问题(那些平台没有 WSL/Git Bash 冲突)
- 不适用于 hook 逻辑错误(如 JSON 解析失败、权限拒绝等业务逻辑问题)
- 不适用于 MCP Server 连接问题
- 需要的输入:完整的错误信息、当前 settings.json 内容、相关 hooks.json 内容

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…