Run Quality Gates Skill
Workflow
- •Ask approval to run terminal commands.
- •Execute sequentially in project root or app folder:
- •
npm run lint - •
npm run typecheck - •
npm test
- •
- •Collect outcomes (pass/fail) for each gate.
- •Summarize results and provide targeted remediation steps.
Interpreting Failures
- •Lint failures: show rule name and offending file; suggest quick fixes (e.g., quotes, unused vars).
- •Typecheck failures: show file and TypeScript error; recommend typing or config fixes.
- •Test failures: show failing test name and assertion; propose test or code adjustments respecting boundaries.
Sample Output Format
code
Quality Gates Summary - Lint: PASS - Typecheck: FAIL (src/components/Foo.tsx: TS1234 ...) - Tests: PASS (12/12) Next Steps - Fix TS1234 in src/components/Foo.tsx by narrowing type of prop `bar`. - Re-run: npm run typecheck
Notes
- •Cross-platform commands; no external binaries.
- •Stream diffs and ask approval before running terminals.