Skill: quality-gates
When to use
Before a PR, before handing off work, or when the user asks “is this ready?”.
Commands (npm)
Run from the repository root:
npm run lint— ESLint flat config must pass (eslint.config.mjs).npm run test— Jest with jsdom; watchlodash-esmapping if tests fail on imports.npm run format:ci— Prettier check forts,tsx,mdwhen formatting could have drifted.npm run build— Next.js production build for anything touching app routes, API handlers, or middleware.
Optional: npm run test:coverage when the user cares about coverage deltas.
Interpretation
- Fix errors first; warnings (
no-explicit-any, etc.) should not grow without reason. - If CI parity matters, favor
npm run test:cifor a non-watch run.
Done when
All chosen commands succeed and any failures are explained with next steps—not ignored.