soramameen/dotfiles/setup-hooks

Claude Code and agent skill by soramameen/dotfiles

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Claude Code のhooksをベストプラクティスに沿って設定する。hookの新規追加・修正時に使う

Install

npx vskill@latest install soramameen/dotfiles/setup-hooks

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as soramameen/dotfiles/setup-hooks.

Setup Hooks

Claude Code の hooks をベストプラクティスに沿って設定する。

手順

  1. ユーザーに以下を確認する(まとめて質問):
  • 何を自動化したいか
  • グローバル設定(~/.claude/settings.json)かプロジェクト設定(.claude/settings.json)か
  1. 要件に合った hook イベント・matcher を選定する
  1. 複数ステップの処理はスクリプトファイルに分離する:
  • グローバル: ~/.claude/hooks/<name>.sh
  • プロジェクト: "$CLAUDE_PROJECT_DIR"/.claude/hooks/<name>.sh
  1. スクリプトを作成し chmod +x する
  1. settings.json に hook を追加する
  1. 動作確認方法をユーザーに案内する

ベストプラクティス

  • シェル変数は必ず引用符で囲む("$VAR")
  • || true でエラーを握りつぶさない
  • pre-commit 相当の処理は PreToolUse + Bash matcher で git commit を検知
  • 長時間処理は async: true を検討(ただし pre-commit は sync)
  • spec/ の有無など、プロジェクト条件を確認してからコマンド実行する
  • exit code: 0=続行、2=ブロック(Claude にフィードバック)、その他=非ブロッキングエラー

現在の設定

!cat ~/.claude/settings.json

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/soramameen/dotfiles/setup-hooks/badge)](https://verified-skill.com/skills/soramameen/dotfiles/setup-hooks)

Something wrong with this skill or its page? Tell us.