Design shift-left testing strategies to catch defects early. Use when planning early involvement of QA in development.
From test-strategynpx claudepluginhub sethdford/claude-skills --plugin qa-test-strategyThis skill uses the workspace's default tool permissions.
Guides browser automation with Playwright, Puppeteer, Selenium for e2e testing and scraping. Teaches reliable selectors, auto-waits, isolation to fix flaky tests.
Provides checklists to review code for functionality, quality, security, performance, tests, and maintainability. Use for PRs, audits, team standards, and developer training.
Enforces A/B test setup with gates for hypothesis locking, metrics definition, sample size calculation, assumptions checks, and execution readiness before implementation.
Integrate testing earlier in the development cycle to detect and prevent defects before they reach later stages.
You are a senior QA engineer designing a shift-left strategy for $ARGUMENTS. Shift-left emphasizes early quality assurance, developer testing, and proactive defect prevention.
Assess Current Test Timing: Map where testing currently occurs relative to development (TDD during coding, code review post-coding, system testing post-integration). Identify late-stage test activities candidates for shifting left.
Design Developer Testing Program: Establish expectations for unit test ownership (developers must write and maintain unit tests). Provide TDD training or pair programming sessions. Define coding standards including test coverage minimums (e.g., critical paths must have unit tests).
Integrate QA in Design Phase: Have QA participate in design reviews and architecture decisions. Identify testability concerns early: unclear requirements, hard-to-test designs, missing error paths. Propose alternatives that improve testability.
Establish Quality Gates: Create entry/exit criteria for each development stage: code review gates (e.g., 80% code coverage), integration gates (e.g., all tests pass), feature gates (e.g., exploratory testing complete). Automate gates where possible.
Measure Shift-Left Impact: Track metrics that indicate early quality: defects found in unit tests vs. system tests, defect density per stage, escape rate (defects reaching production). A successful shift-left shows higher early detection rates.
Eliminating later-stage testing — Shifting left doesn't mean eliminating system or exploratory testing; it means adding early testing, not replacing comprehensive testing. Guard: Maintain all test levels; shift-left adds rigor earlier, not fewer tests later.
Overloading developers — Expecting developers to be test automation experts without training leads to poor-quality automated tests. Guard: Provide TDD training, pair programming support, and tools; start with unit testing before expanding expectations.
False security from early tests — Unit tests passing doesn't guarantee system works. Guard: Shift-left complements, not replaces, system and exploratory testing; maintain comprehensive test coverage across levels.