msadig/cc-hooks-setup
Claude Code Hooks
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
Copy this rig
# review before running: this installs third-party code $ claude mcp add --transport http deepwiki https://mcp.deepwiki.com/mcp $ npx degit msadig/cc-hooks-setup/.claude ./rig-cc-hooks-setup # inspect, then merge into .claude/
MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ claude mcp add --transport http deepwiki https://mcp.deepwiki.com/mcp $ curl -fsSL --create-dirs -o .claude/agents/index-analyzer.md https://raw.githubusercontent.com/msadig/cc-hooks-setup/main/.claude/agents/index-analyzer.md Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write|Edit|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --immutable-check"
}
]
},
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --plan-enforcer"
}
]
},
{
"matcher": "Read|Write|Edit|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --file-matcher"
}
]
}
]
}
} MCP servers (1)
| server | source | est. tokens |
|---|---|---|
| DeepWiki | remote · remote | 900 |
Subagents (1)
| index-analyzer | Expert PROJECT_INDEX.json analyzer for code intelligence. Use PROACTIVELY when user adds -i flag or requests architectural insights, dependency analysis, or code impact assessment. MUST BE USED for un |
Hooks (6)
| event | matcher | runs |
|---|---|---|
| UserPromptSubmit | * | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --prompt-validator |
| PreToolUse | Write|Edit|MultiEdit|NotebookEdit | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --immutable-check |
| PreToolUse | * | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --plan-enforcer |
| PreToolUse | Read|Write|Edit|MultiEdit|NotebookEdit | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --file-matcher |
| Stop | * | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --stop-reminder |
| SessionStart | * | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/rules_hook.py --session-start |
Similar rigs
ericbuess/claude-code-project-index
PROJECT_INDEX system for Claude Code - provides architectural awareness for AI coding
Minimalist 103 tok ·
aws-samples/remote-swe-agents
Autonomous SWE agent working in the cloud!
Pragmatist 10.1k tok ·
Asimov-Syntax/anywhere-terminal
Run a real terminal anywhere in VS Code or Cursor — Sidebar, Secondary Sidebar, Panel, or as an editor tab. With tabs, split panes, theming, and WebGL.
Automator 6.4k tok ·
Jean-loutropical739/SWE-Squad
Automate software bug detection, triage, and fixes with an autonomous, provider-agnostic engineering team
Pragmatist 27.8k tok ·