From pcf
Before a tool call (Write|Edit|MultiEdit): runs node -e 'const root=process.env.PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(!…. Before a tool call (Skill|skill): runs node -e 'process.on(process.argv[3],()=>{process.exitCode=0});const root=process…. And 1 more.
2 events · 3 hooks
Ships in pcf. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
Write|Edit|MultiEditnode -e 'const root=process.env.PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(!root){console.error(process.argv[3]);process.exit(0)}require(require(process.argv[1]).resolve(root,process.argv[2]))' node:path hooks/validate-write-safety.js 'PLUGIN_ROOT is not set'10sSkill|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
24 plugins ship this exact hooks config · first indexed Jan 9, 2026
npx claudepluginhub microsoft/power-platform-skills --plugin pcfOther plugins' hooks for the same job