Quality checks: finding and running the lint, format, type check, test and build commands, never silencing errors, lefthook for Git hooks, wiring the checks to the pre-commit and pre-push hooks and CI, and lint rules against the patterns agents tend to write. Load when running checks after a change and before a PR.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Quality Checks?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/the-up-quality-checks)
---
name: quality-checks
description: "Quality checks: finding and running the lint, format, type check, test and build commands, never silencing errors, lefthook for Git hooks, wiring the checks to the pre-commit and pre-push hooks and CI, and lint rules against the patterns agents tend to write. Load when running checks after a change and before a PR."
---
# Quality Checks
- Use the existing lint, format, and static analysis tools if they're suitable and maintained; if they're missing or inadequate, set them up.
- Determine the quality commands from the repository scripts and CI: lint, format, type check, test, build.
- Run the relevant checks after each step and all required checks before the PR.
- Fix the errors your change causes; report pre-existing and environment-related problems separately.
- Don't get around errors by silencing them, removing checks, or adding unnecessary exceptions; if a rule needs to change, say so explicitly.
- Use lefthook for Git hooks; don't install husky. If the repository uses another hook manager, follow it and propose moving to lefthook.
- Before each commit, run the lint, the type check, and the tests that the change affects.
- Wire the fast checks (format, lint, and the type check when it's fast enough) to the pre-commit hook, the lint of the packages that depend on the change to the pre-push hook, and all checks to CI.
- Add lint rules against the patterns that AI agents tend to write, such as chained type assertions, parameters typed as `unknown` that are never narrowed, and conditional spreads of empty objects.