Includes: spec-driven and test-driven development best practices, reproduce-before-fixing debugging workflow, require-plan-file hook, find-project-root script, session logs, memory files for decisions/ gotchas/process-lessons, and updates to existing best practice topics. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
819 B
819 B
script: install-hooks
Location: scripts/install-hooks.sh
Purpose
Symlinks all hook scripts from claude-foundations/hooks/ into ~/.claude/hooks/ and prints the settings.json configuration to add.
Usage
cd ~/dev/claude/projects/claude-foundations
scripts/install-hooks.sh
One-time setup. Re-run after adding new hooks.
How it works
- Iterates over
hooks/*.sh - Creates symlinks in
~/.claude/hooks/(force-overwrites existing) - Prints the JSON config for
~/.claude/settings.jsoncovering PreCompact, PostToolUse, and PreToolUse matchers
Gotchas
- The printed JSON must be manually added to
settings.json— the script doesn't edit it automatically. - Symlinks mean the hook code stays in the repo; updates take effect immediately without re-running the script.