Stats
Actions
Tags
From praxis
Runs pre-compact state saving, warns about console.log in edits, flags non-standard docs, and reminds to review changes before git push. Executes bash and writes files.
4 events · 6 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
*node "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-console-log.js"*node "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre-compact.js"Bashnode -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const i=JSON.parse(d);const cmd=i.tool_input?.command||'';if(/git push/.test(cmd)){console.error('[Hook] Review changes before push...');console.error('[Hook] Continuing with push (remove this hook to add interactive review)')}}catch{}console.log(d)})"Writenode -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{try{const i=JSON.parse(d);const p=i.tool_input?.file_path||'';if(/\.(md|txt)$/.test(p)&&!/(README|CLAUDE|AGENTS|CONTRIBUTING|CHANGELOG|LICENSE|SKILL)\.md$/i.test(p)&&!/\.claude[\/\\]plans[\/\\]/.test(p)&&!/(^|[\/\\])(docs|skills)[\/\\]/.test(p)){console.error('[Hook] WARNING: Non-standard documentation file detected');console.error('[Hook] File: '+p);console.error('[Hook] Consider consolidating into README.md or docs/ directory')}}catch{}console.log(d)})"Edit|Writenode "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/suggest-compact.js"Editnode "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post-edit-console-warn.js"npx claudepluginhub jartan-llc/grimoire --plugin praxis