| name | pre-completion-check |
| description | Run the pre-completion checks before declaring a task done. Executes lint, markup lint, build (tsc), tests, and reminds the user to verify Storybook visually. |
Context
- Current branch: !
git branch --show-current
- Changed files: !
git status --short
Steps
Run each command and report pass/fail. If any command fails, stop and surface the failure to the user before continuing.
npm run lint — Biome lint
npm run lint:markup — Markuplint (also checks .stories.tsx)
npm run build — tsc && vite build (doubles as typecheck)
npm test — Vitest (unit + Storybook). To scope to one component while iterating, pass the path through npm with --: npm test -- src/components/Foo (don't call npx vitest directly — stay on the project's npm script).
Manual checks (remind the user)
These cannot be automated; list them so the user can confirm before merging: