Our review
Removes a hook from the Claude Code project configuration, with user confirmation before deletion.
Strengths
- Safe deletion with confirmation
- Handles both settings.json and settings.local.json
- Maintains JSON formatting
- Displays hook count after removal
Limitations
- Only removes one hook at a time
- Requires user to know hook details (event, number, source)
- Only works for Claude Code hooks
When you need to remove a specific hook from your Claude Code configuration.
When you want to bulk delete hooks or modify hooks non-destructively.
Security analysis
SafeThis skill only reads and writes JSON configuration files within the project's .claude directory. It requires explicit user confirmation before deletion, uses no shell commands or network access, and poses no destructive or exfiltration risk.
No concerns found
Examples
フックを削除してくださいRemove the PreToolUse hook for the Write matcher from settings.local.jsonname: remove-hook description: プロジェクトからフックを削除する。「フック削除」「フックを消して」「hook を削除」「フックを外して」「フック解除」「hook 削除」「フックを取り除いて」などで起動。 allowed-tools: [Read, Write, AskUserQuestion]
Remove Hook
プロジェクトからフックを削除します。
実行手順
- まず
list-hooksスキルと同様にフック一覧を表示 - ユーザーに削除対象を確認:
- イベント名(例: PreToolUse)
- フック番号(例: 1)
- ソースファイル(settings.json または settings.local.json)
- 確認後、該当するフックを削除
- 削除完了メッセージを表示
削除確認フォーマット
## フック削除
以下のフックを削除しますか?
| 項目 | 値 |
|------|-----|
| イベント | PreToolUse |
| マッチャー | Write |
| タイプ | command |
| コマンド | prettier --write "$FILE" |
| ソース | settings.json |
削除を実行する場合は「はい」と入力してください。
削除処理
- 対象ファイル(
.claude/settings.jsonまたは.claude/settings.local.json)を読み込み hooksセクションから該当エントリを削除- フック配列が空になった場合はイベントキーごと削除
hooksオブジェクトが空になった場合はhooksキーごと削除- ファイルを保存
出力フォーマット(削除完了時)
## 削除完了
以下のフックを削除しました:
- イベント: PreToolUse
- マッチャー: Write
- ソース: settings.json
現在のフック数: 2件
重要な注意事項
- ✅ 削除前に必ず確認を求める
- ✅ settings.local.json のフックも削除可能
- ✅ 削除後にフック数を表示
- ✅ JSON フォーマットを維持(インデント等)
- ❌ 複数フックの一括削除は行わない(1つずつ確認)
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.