Creates MEMORY.md index and 10 memory files documenting: - Scripts: context-load, start-claude, install-hooks, setup-formatters, git-status-report - Skills: /log, /reflect-logs, /reflect, /distill-best-practices, /linter Each file covers purpose, usage, how it works, and gotchas. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
999 B
999 B
script: setup-formatters
Location: scripts/setup-formatters.sh
Purpose
Opts a project into the auto-formatting system by creating a formatters/ directory with symlinks back to the canonical formatter scripts in claude-foundations.
Usage
scripts/setup-formatters.sh <project-dir> <ext> [<ext> ...]
Run with no arguments to see available formatters: py, sh, ts, js, sql, json, yaml, md.
How it works
- Creates
<project-dir>/formatters/if needed - Computes a relative path from the project's
formatters/toclaude-foundations/formatters/ - Creates symlinks for each requested extension
- If the project is a git repo and has no pre-commit hook, installs
pre-commit-lint.shas the git pre-commit hook
Gotchas
- Uses
python3for relative path computation — requires Python 3 available. - Won't overwrite an existing pre-commit hook.
- The
formatters/directory can be committed (symlinks) or gitignored — project's choice.