Skip to content
Productivity
Hook

Hooks

What pro-workflow runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
pro-workflow
2.9k41 skills8 agents23 commands22 hooks

Claude Code

> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

What fires, and when

PreToolUse

  • MatchesEdit|Writenode "${CLAUDE_PLUGIN_ROOT}/scripts/quality-gate.js"node "${CLAUDE_PLUGIN_ROOT}/scripts/read-before-write.js"
  • MatchesReadnode "${CLAUDE_PLUGIN_ROOT}/scripts/reread-tracker.js"node "${CLAUDE_PLUGIN_ROOT}/scripts/read-before-write.js"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/tool-call-budget.js"
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/git-blast-radius.js"node "${CLAUDE_PLUGIN_ROOT}/scripts/pre-commit-check.js"node "${CLAUDE_PLUGIN_ROOT}/scripts/commit-validate.js"node "${CLAUDE_PLUGIN_ROOT}/scripts/pre-push-check.js"
  • MatchesEdit|Writenode "${CLAUDE_PLUGIN_ROOT}/scripts/secret-scan.js"

PostToolUse

  • MatchesEdit|Writenode "${CLAUDE_PLUGIN_ROOT}/scripts/post-edit-check.js"
  • MatchesBashnode "${CLAUDE_PLUGIN_ROOT}/scripts/test-failure-check.js"
  • MatchesReadnode "${CLAUDE_PLUGIN_ROOT}/scripts/reread-tracker.js"

Stop

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/session-check.js"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/learn-capture.js"

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/session-start.js"

SessionEnd

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/session-end.js"

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/prompt-submit.js"
  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/drift-detector.js"

PreCompact

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/pre-compact.js"

PostCompact

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/post-compact.js"

ConfigChange

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/config-watcher.js"

Notification

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/notification-handler.js"

SubagentStart

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/subagent-start.js"

SubagentStop

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/subagent-stop.js"

TaskCompleted

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/task-completed.js"

TaskCreated

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/task-created.js"

PermissionRequest

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/permission-request.js"

PermissionDenied

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/permission-denied.js"

PostToolUseFailure

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/tool-failure.js"

TeammateIdle

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/teammate-idle.js"

StopFailure

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/stop-failure.js"

FileChanged

  • Matches.env|.envrc|package.json|tsconfig.json|Cargo.toml|go.mod|pyprojenode "${CLAUDE_PLUGIN_ROOT}/scripts/file-changed.js"

Setup

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/setup-hook.js"

CwdChanged

  • Matches*node "${CLAUDE_PLUGIN_ROOT}/scripts/cwd-changed.js"
Read hooks/hooks.json

In the plugin's words

How pro-workflow describes its own hook set.

pro-workflow lifecycle hooks: quality gates, secret scan, git safety, session memory
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

More plugins that ship hooks.

i-have-adhd

i-have-adhd

A skill that shapes Claude Code's output for readers with ADHD: it leads with the next action, numbers multi-step work, restates state across turns, drops tangents, gives specific time estimates, and makes progress visible. Invoke it with /i-h.

1 skill1 hook60k
@ayghri@ayghri
Install Plugin
pua

pua

A Claude Code plugin that makes the assistant work harder when it stalls or repeats failures. It adds pressure-style coaching, plus skills for workplace reminders and senior engineer, CTO and team-lead modes for planning and execution.

12 skills+320k
@tanweai@tanweai
Install Plugin
claude-obsidian

claude-obsidian

Turns the sources you read, such as papers, articles and transcripts, into a linked wiki of Markdown notes in Obsidian. Claude keeps sources and citations so every summary can be traced back to its origin.

15 skills+216k
@agricidaniel@agricidaniel
Install Plugin
obsidian-second-brain

obsidian-second-brain

Gives Claude Code a persistent second brain stored as plain markdown in an Obsidian vault. Notes rewrite themselves as new sources arrive, and scheduled agents handle research synthesis and note capture.

1 skill+25.3k
@eugeniughelbur@eugeniughelbur
Install Plugin
arscontexta

arscontexta

A Claude Code plugin that builds a personal knowledge system through conversation, with skills for adding knowledge domains, checking vault health, getting methodology guidance, and evolving the system over time.

10 skills+23.5k
@agenticnotetaking@agenticnotetaking
Install Plugin
engram

engram

Helps you learn any topic with a first-principles curriculum, guided tutoring, and spaced review that schedules free-recall practice. Includes coaching for retention stats and study strategy.

3 skills+21.5k
@nagisanzenin@nagisanzenin
Install Plugin
hey

hey

A command line tool for HEY that lets you read and send email, manage contacts, labels, calendars, todos, habits, time tracking and journal entries from the terminal or from your coding agent.

1 skill1 hook423
@basecamp@basecamp
Install Plugin
basecamp-cli

basecamp-cli

Lets you manage Basecamp projects, todos, cards, messages, files and schedules from your terminal or from Claude Code, so you stop switching to the web app for routine updates.

3 skills4 hooks294
@basecamp@basecamp
Install Plugin

Questions about the hooks in pro-workflow.

Which coding agents can use the hooks in pro-workflow?
The hooks in pro-workflow install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.