Stats
Actions
Tags
After every Edit/Write tool call, runs a bash script that suggests progressive disclosure of file contents to reduce context window usage. Executes bash, reads/writes files.
1 event · 1 hook
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|Editf=$(grep -oE '[^"]+\.(cls|trigger)' | head -1); [ -n "$f" ] || exit 0; tmp=$(mktemp /tmp/sfca_XXXXX.json); sf code-analyzer run --target "$f" --output-file "$tmp" >/dev/null 2>&1; total=$(jq '.violationCounts.total' "$tmp" 2>/dev/null); [ "${total:-0}" -gt 0 ] || { rm -f "$tmp"; exit 0; }; { echo "Code Analyzer: $total violation(s) in $(basename $f)"; jq -r '.violations[] | " [sev\(.severity)] \(.engine):\(.rule) \(.locations[.primaryLocationIndex].file):\(.locations[.primaryLocationIndex].startLine) — \(.message)"' "$tmp"; } >&2; rm -f "$tmp"; exit 2120msnpx claudepluginhub aquivalabs/aidan-user-claude --plugin aidan-salesforce-skills