preflight-checks
Installation
SKILL.md
Preflight Checks
Run the project's code quality tools before committing. Catch errors early instead of letting pre-commit hooks catch them.
Execution Order
Run tools in this order. Each step can change code that later steps check.
- Formatters (auto-fix): prettier, black, ruff format, gofmt
- Linters (auto-fix where possible): eslint --fix, ruff check --fix
- Type checkers (manual fix): tsc, mypy, pyright
Scope
Only check files that are staged or modified. Don't run checks on the entire codebase.
# Staged files
git diff --cached --name-only --diff-filter=ACM