context
ran npm run lint manually multiple times in chrome-extension-moodle-uploader session. shannon already has a PostToolUse autoformat hook that delegates to a core formatter — this project now has one too, but each collective implements it separately
what
centralize the autoformat hook in heraldstack-infra:
heraldstack-infra/scripts/autoformat.sh — core formatter, detects project type (node/python/go), runs appropriate formatter
- each collective's
.claude/hooks/autoformat.sh delegates to the core script
- PostToolUse matcher:
Edit|Write, 30s timeout
reference
shannon: .claude/hooks/autoformat.sh delegates to heraldstack-infra/scripts/autoformat.sh --claude
acceptance
context
ran
npm run lintmanually multiple times in chrome-extension-moodle-uploader session. shannon already has a PostToolUse autoformat hook that delegates to a core formatter — this project now has one too, but each collective implements it separatelywhat
centralize the autoformat hook in heraldstack-infra:
heraldstack-infra/scripts/autoformat.sh— core formatter, detects project type (node/python/go), runs appropriate formatter.claude/hooks/autoformat.shdelegates to the core scriptEdit|Write, 30s timeoutreference
shannon:
.claude/hooks/autoformat.shdelegates toheraldstack-infra/scripts/autoformat.sh --claudeacceptance