Stats
Actions
Tags
From pqa
Validates anti-patterns in code after Write/Edit operations using a Python script, and runs an orientation script at session start. Modifies files during validation.
2 events · 8 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
Write|Editbash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/session-changelog.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/context-prune.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/post-write-validate.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;mkdir -p "$1/pqa"&&echo "$M">"$G";bash "$2/scripts/plugin-scan.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/session-context-gen.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/session-init.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/ghost-menu-inject.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truebash -c 'G="$1/pqa/active-plugin";M="pqa";[ -f "$G" ]&&[ "$(cat "$G" 2>/dev/null)" != "$M" ]&&exit 0;bash "$2/scripts/session-changelog.sh" "$1"' _ "$PWD" "$PLUGIN_DIR" 2>/dev/null || truenpx claudepluginhub javimontano/jm-adk --plugin plugin-qa