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>
1.3 KiB
1.3 KiB
skill: /linter
Location: custom-claude-skills/skills/linter/SKILL.md
Purpose
Audits and manages project formatters/linters. Three modes: scan (audit setup), run (format all files), cleanup (remove orphaned .pre-lint files).
Usage
/linter # Scan mode (default) — audit setup
/linter scan # Same as above
/linter run # Format and lint all files
/linter cleanup # Remove orphaned .pre-lint files
How it works
Scan mode
- Finds all file extensions in the project
- Checks
formatters/directory for symlinks - Verifies tool availability (ruff, shfmt, shellcheck, biome, sqlfluff, prettier)
- Checks for config files (pyproject.toml, .editorconfig, biome.json, .sqlfluff, .prettierrc)
- Checks pre-commit hook installation
- Presents results as a table with status per extension
Run mode
- Creates a git stash checkpoint
- Runs each formatter on all matching files
- Reports errors and
git diff --statsummary
Cleanup mode
- Finds
*.pre-lintfiles (orphaned checkpoint files from interrupted lint runs) - Lists and removes them
Gotchas
- Scan mode is non-destructive — safe to run anytime
- Run mode creates a stash checkpoint for safety
.pre-lintfiles are git blob SHA references used by the PostToolUse hook for rollback