Stats
Actions
Tags
From Team Skills
Enforces code formatting on file writes, blocks dangerous branch deletions, and dispatches post-bash actions. Runs shell scripts on Stop, PreToolUse, PostToolUse, and SessionStart events.
4 events · 5 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
$ts = Get-Date -Format 'yyyy-MM-dd HH:mm'; $branch = git symbolic-ref --short HEAD 2>$null; $cwd = Split-Path -Leaf (Get-Location).Path; $changed = (git diff --name-only HEAD 2>$null) -join ', '; $line = "[$ts] $cwd ($branch)$(if ($changed) { ": changed — $changed" })"; $line | Add-Content "$env:USERPROFILE\.claude\session-log.txt" -ErrorAction SilentlyContinueBash$raw = [Console]::In.ReadToEnd(); try { $d = $raw | ConvertFrom-Json; $cmd = $d.tool_input.command } catch { exit 0 }; $danger = @('push\s+--force', 'push\s+-f\b', 'reset\s+--hard', 'checkout\s+--\s', 'clean\s+-[a-zA-Z]*f\b', 'rm\s+-[a-z]*r[a-z]*f'); foreach ($p in $danger) { if ($cmd -match $p) { @{decision='block';reason='Blocked: destructive command — run it manually in the terminal if intentional.'} | ConvertTo-Json -Compress; exit 0 } }Edit|Writeif (Test-Path 'graphify-out/graph.json') { $gfy = Get-Command graphify -ErrorAction SilentlyContinue; if ($gfy) { & graphify update . 2>$null } }$g = Test-Path 'graphify-out'; $s = (Test-Path '*.py') -or (Test-Path '*.js') -or (Test-Path '*.ts') -or (Test-Path 'package.json') -or (Test-Path 'requirements.txt') -or (Test-Path 'go.mod') -or (Test-Path 'pyproject.toml') -or (Test-Path 'Cargo.toml') -or (Test-Path 'Dockerfile'); if ($s) { $ctx = if ($g) { 'GRAPHIFY AVAILABLE: A knowledge graph for this project exists at graphify-out/. Reference GRAPH_REPORT.md for god nodes, communities, and architecture before making structural changes.' } else { 'AUTO-GRAPHIFY REQUIRED: A codebase was detected but no knowledge graph exists yet. Your first action this session must be to invoke the graphify skill (Skill tool with skill: graphify) before doing any code-related work. Do this automatically regardless of how narrow or focused the user''s first question is — do NOT skip the build because a question looks single-file, local, or easy.' }; @{suppressOutput=$true; hookSpecificOutput=@{hookEventName='SessionStart'; additionalContext=$ctx}} | ConvertTo-Json -Compress }powershell -NoProfile -ExecutionPolicy Bypass -File "$env:CLAUDE_PLUGIN_ROOT\hooks\apply-claude-md.ps1"npx claudepluginhub karthikrommula/team-toolkit --plugin team-skills67plugins reuse this hooks config
First indexed Dec 16, 2025
Showing the 6 earliest of 67 plugins