Skip to content
Development
Hook

Hooks

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

From plugin
jig
720 skills3 agents5 hooks
Install
> /plugin marketplace add ramboz/jig
> /plugin install jig@jig

Ships with jig. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • MatchesTaskbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-telemetry.sh
  • MatchesSkillbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-skill-trace.sh
  • MatchesEdit|Write|MultiEditbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-spec-gate.shbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-secret-scan.sh
  • MatchesReadbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-context-check.sh

PostToolUse

  • MatchesEdit|Write|MultiEditbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-post-edit-verify.shbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-boundary-change-warn.shbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-entry-gate.sh
  • MatchesAskUserQuestionbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-decision-inflight.sh

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.

  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-context-check.sh
  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-project-orient.sh
  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-semantic-index.sh
  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-git-freshness.sh

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.

  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-memory-scan.sh
  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-context-check.sh
  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-decision-inflight.sh

Stop

  • bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-task-capture.shbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-decision-capture.shbash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/jig-claim-check.sh
Read hooks/hooks.json
Ships withjig

A Claude Code and Codex plugin that scaffolds AI-native development practices into new projects. jig adds a repeatable spec, implementation, review, and memory workflow to AI-assisted software projects.

Get the whole plugin
Stats
6
Stars
0
Forks
Active
Maintenance
Python
Language
MIT
License
9d ago
Last commit
4mo ago
Created

Repo: ramboz/jig