PlugMyPlugin
โ† Browse

case-insensitive-guard

karanb192 โ˜… 524

This PreToolUse hook intercepts destructive Bash commands (rm, rmdir, mv, mkdir, touch, find) and blocks or prompts when the target path differs only in case from what exists on case-insensitive filesystems like APFS and NTFS. It properly resolves command context through cd chains, subshells, quotes, and shell connectors without making probe filesystem calls.

Security DevOps free runs shell

Install

> /plugin marketplace add karanb192/claude-code-hooks/tree/HEAD/plugins/case-insensitive-guard
> /plugin install case-insensitive-guard

Source: https://github.com/karanb192/claude-code-hooks/tree/HEAD/plugins/case-insensitive-guard

What it's made of

1 hook

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
1 ยท PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
node
Talks to
nothing external detected

Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karanb192).