skills/tests-new/SKILL.md
Reviews the feature you just built and adds missing test coverage. Focuses on behavior that matters — not coverage metrics. Use after completing a feature to identify untested code paths, edge cases, and risk areas.
npx skillsauth add skinnyandbald/fish-skills tests-newInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review recent changes and add missing test coverage where it matters.
Run git diff HEAD~1 (or git diff main...HEAD if on a branch) to find what changed. If no git changes, ask the user which files to cover.
Focus on:
For each changed file, check if corresponding tests exist:
src/foo.ts → look for src/foo.test.ts, tests/foo.test.ts, __tests__/foo.test.tsClassify each changed function/component:
| Status | Meaning | |--------|---------| | Untested | No test file or no tests for this function | | Under-tested | Tests exist but miss important paths | | Covered | Tests adequately cover the behavior |
Don't test everything — test what matters. Prioritize:
Skip:
Follow the project's existing test patterns (framework, assertion style, file structure, mocking approach). Read 1-2 existing test files first to match conventions.
For each test:
"returns empty array when no results found" not "test getResults"Run the new tests to ensure they pass. If any fail, that's a potential bug — flag it rather than deleting the test.
## New Test Coverage
**Files analyzed:** [count]
**Tests added:** [count]
**Potential bugs found:** [count, if any]
### Added
- `[test file]`: [what behaviors are now covered]
### Skipped (adequate coverage)
- `[file]`: already covered by [test file]
### Potential Bugs
- `[test name]`: expected [X] but got [Y] — [file:line]
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
tools
Verify worktree plugin patches are intact after plugin updates. Checks compound-engineering and superpowers skills for Claude Code launch instructions.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Auto-detects your test framework, runs the full suite, diagnoses failures, and fixes them. Use after making code changes to verify tests pass, or when you encounter test failures you want diagnosed and fixed automatically.