From power-automate
Before a tool call (Skill|skill): runs node -e 'process.on(process.argv[3],()=>{process.exitCode=0});const root=process…. On every prompt you send: runs node -e 'process.on(process.argv[3],()=>{process.exitCode=0});const root=process….
2 events · 2 hooks
Ships in power-automate. Installing the plugin adds it to Claude Code.
Event handlers and matchers — expand Raw configuration for the full JSON
Skill|skillnode -e 'process.on(process.argv[3],()=>{process.exitCode=0});const root=process.env.PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(!root){console.error(process.argv[4]);process.exit(0)}require(require(process.argv[1]).resolve(root,process.argv[2]))' node:path hooks/run-skill-pretool-telemetry.js exit 'PLUGIN_ROOT is not set'30snode -e 'process.on(process.argv[3],()=>{process.exitCode=0});const root=process.env.PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(!root){console.error(process.argv[4]);process.exit(0)}require(require(process.argv[1]).resolve(root,process.argv[2]))' node:path hooks/run-user-prompt-telemetry.js exit 'PLUGIN_ROOT is not set'30sWhere this hook configuration is defined
Defined in hooks/hooks.json
44 plugins in 40 repositories ship this exact hooks config · first indexed Nov 28, 2025
npx claudepluginhub microsoft/power-platform-skills --plugin power-automateOther plugins' hooks for the same job