skills/consolidate-test-suites/SKILL.md
Decide exactly where bug-fix test coverage belongs. Use before adding, moving, or deleting tests after a bug fix or architectural change. Select one owning layer, reuse existing canonical suites, block redundant or weakly placed tests, and remove weaker duplicates.
npx skillsauth add regenrek/agent-skills consolidate-test-suitesInstall 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.
Purpose: place each invariant in one owning test layer only.
Definitions:
Default: reuse an existing canonical suite. Do not create a new standalone regression test unless the exception rule below allows it.
Choose the first option that fits:
Choose unit when:
Choose integration when:
Choose end-to-end only when:
Tie-breakers:
A standalone regression-style test is allowed only if ALL are true:
If any condition is false, fold the coverage into the canonical suite.
After placing coverage:
Before finishing:
Use this format by default:
Invariant: <rule that failed>
Owning layer: <unit | integration | end-to-end>
Target suite/file: <path or suite name>
Action: <reuse existing test | add to existing suite | create file in canonical suite | keep standalone regression>
Why this layer owns it: <one short paragraph>
Duplicates to merge/delete: <list or "none">
Verification run: <commands and result>
Residual risk: <what is still not covered, if anything>
tools
Live-test any Electron desktop app with native-devtools-mcp, Chrome DevTools Protocol, screenshots, OCR, and accessibility tools. Use when the user asks for Electron UI verification, MCP-driven app control, renderer CDP interaction, native desktop automation, screenshots, or OCR-driven checks.
testing
Find, clone, inspect, and summarize high-quality GitHub reference repositories for coding agents. Use when a user asks for GitHub reference projects, examples, prior art, inspiration, implementation patterns, or includes "$search-context" in a coding prompt.
testing
Run or install repo security leak checks with BetterLeaks and Trivy. Use when asked to scan for leaked secrets, vulnerable dependencies, misconfigurations, add secret-leak guardrails, add BetterLeaks, add forbidden-path hooks, or run secleak-check before release.
development
Run a reusable JavaScript supply-chain security baseline with pnpm-first hardening, release-age gating, lifecycle-script controls, exotic dependency checks, CI install checks, and optional incident IOC profiles.