Skip to content
Development
Hook

Hooks

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

From plugin
shopify-plugin
49121 skills2 hooks
Install
> /plugin marketplace add Shopify/Shopify-AI-Toolkit
> /plugin install shopify-plugin@shopify-ai-toolkit

Ships with shopify-plugin. Installing the plugin gets these hooks.

What fires, and when

PostToolUse

  • MatchesSkill|Readbash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --hook-source plugin

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/track-telemetry.sh" --hook-source plugin
Read hooks/hooks.json
Ships withshopify-plugin

Connect your AI tools to the Shopify platform. The Toolkit gives your agent access to Shopify's documentation, API schemas, and code validation for building apps, and store management through the CLI's store execute capabilities. For more info, see the docs.

Get the whole plugin