/plugin marketplace add jeffweiss/elixir-production/plugin install jeffweiss-elixir-production@jeffweiss/elixir-productionDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before writing/editing Elixir code (.ex or .exs files), verify: 1) Are typespecs needed for public functions? 2) Is error handling explicit with tagged tuples ({:ok, value} / {:error, reason})? 3) Are tests required for new functionality? Only proceed if yes, or explicitly document why not (e.g., SPIKE mode).",
"timeout": 30
}
],
"matcher": "Write|Edit"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Review this session's work. If new patterns, conventions, or architectural decisions were discovered/established that would benefit the team, suggest updating .claude/project-learnings.md using the /learn command. Consider: new patterns used, gotchas discovered, performance insights, testing approaches, or any recurring issues addressed.",
"timeout": 15
}
],
"matcher": "*"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/validate-precommit.sh",
"blocking": false,
"description": "Validates Elixir code changes meet precommit standards. Non-blocking (warnings only)."
}
],
"matcher": "Edit|Write"
}
],
"SessionStart": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Check for project standards and knowledge: 1) Read AGENTS.md if exists (technical standards), 2) Read CLAUDE.md if exists (high-level principles), 3) Read .claude/project-learnings.md if exists (project-specific patterns and conventions), 4) Read .claude/spike-debt.md if exists (tracked technical debt from SPIKE code). Load and consider all available context in decision-making throughout the session.",
"timeout": 20
}
],
"matcher": "*"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 3,
"command": 1
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 1,
"SessionStart": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 1
}
}