Edit Hook — Development skill for Claude Code
Authorize the next Write/Edit to a .claude/hooks/.sh file.
How to install Edit Hook
Installs to ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-edit-hook/SKILL.md
mkdir -p ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-edit-hook && curl -fsSL https://raw.githubusercontent.com/sharkyger/claude-code-prompt-injection-gate/HEAD/commands/edit-hook.md -o ~/.claude/skills/sharkyger-claude-code-prompt-injection-gate-edit-hook/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Edit Hook does
description: "Authorize the next Write/Edit to a .claude/hooks/*.sh file. Writes a single-use marker the injection-gate hook consumes on first matching write." argument-hint: "" allowed-tools: Bash(mkdir:*), Bash(shasum:*), Bash(touch:*), Bash(printf:*), Bash(cut:*), Bash(python3:*)
!NORM=$(python3 -c 'import sys,os; print(os.path.abspath(os.path.expanduser("".join(sys.argv[1].split()))))' "$ARGUMENTS") && mkdir -p /tmp/.claude-injection-gate && touch "/tmp/.cl
Alternatives in Development
- MCP Edit — tilth_write replaces the host Edit and Write tools 349 ★
- Lesson — Use when: capturing a non-obvious lesson/gotcha/workaround after a tricky fix or surprising behavior 54 ★
- Rules Slim — rules-size channel 報 CLAUDE.md 或 rules/common 超門檻後,使用者說「來瘦身」「處理超標」「跑 rules-slim」時,找出該砍哪幾段、產草稿逐段拍板、准的才寫回 42 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Edit Settings
Authorize the next Write/Edit to a .claude/settings.json (or settings.local.json) file. Writes a single-use ma
Edit Skill
Authorize the next Write/Edit to a skill file (skills/{name}/SKILL.md or .claude/skills/). Writes a single-use
Freeze
Freeze files matching a pattern — blocks Edit/Write to matched files via a session-scoped PreToolUse hook. Use
Cornerman
A free, open-source plugin for Claude Code. Before you /clear, Claude writes a short handover you can read and
Plughooks
CLI that shows where Claude Code hooks are declared (settings files, plugins, orphaned caches), builds hook-fr
Hunt Ssrf
Active SSRF hunt for an ingested program. Consumes webvuln-surface seeds (ssrf_likely params + URL-accepting i
Related Agents
Conductor
Primary orchestrator. Routes every task to the matching specialist subagent. Cannot write or edit files direct
Iron Verifier
Independently exercise acceptance on a real surface after review. Pin an exact commit or captured local snapsh
LinkedIn Post
Drafts and refines LinkedIn content in the user's own voice: posts, hooks, carousels, profile copy. Use when t