windows-hooks-paths

Diagnose Windows path escaping issues in Claude Code hooks and provide remediation steps.

1|Updated Sep 20, 2025
One-click install
npx skills add https://github.com/Alex1980Alex/1C-Enterprise_Framework --skill windows-hooks-paths
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: windows-hooks-paths
Source: https://github.com/Alex1980Alex/1C-Enterprise_Framework/tree/main/.claude/skills/windows-hooks-paths
Command: npx skills add https://github.com/Alex1980Alex/1C-Enterprise_Framework --skill windows-hooks-paths

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude Code on Windows can mishandle backslashes in hook commands, causing path segments to slip and commands to fail.

Core Features & Use Cases

  • Diagnostics: Detects Windows path escaping problems in hook configurations.
  • Remediation Guidance: Provides steps to convert backslashes to forward slashes and adjust hook commands and settings.json.
  • Prevention: Recommends best practices to avoid path issues in Windows environments.

Quick Start

Update your hook command paths to use forward slashes and verify your settings.json as described.

Frequently Asked Questions about windows-hooks-paths

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do Windows paths fail in Claude Code hooks?

Windows path issues occur because Claude Code mishandles backslashes in hook commands, causing path segments to slip and commands to fail in Bash. Converting backslashes to forward slashes resolves this.

How do I fix mangled D: paths in Claude Code hook configurations?

To fix mangled D: paths in Claude Code hook configurations, convert backslashes to forward slashes in your hook commands and verify your settings.json to ensure commands execute reliably in Bash.

What is the best way to prevent Windows path escaping problems in Claude Code?

The best way to prevent Windows path escaping problems is to update hook command paths to use forward slashes and follow recommended best practices for configuring Windows-based hook environments.

Does Claude Code support Bash hook commands on Windows environments?

Claude Code supports Bash hook commands on Windows environments, but requires proper path escaping validation and configuration adjustments to ensure commands execute reliably without path mangling.

How to diagnose path handling issues in Claude Code hooks?

To diagnose path handling issues in Claude Code hooks, validate your hook configurations for Windows path escaping problems and identify where backslashes cause path segments to slip in your settings.json.