/fullstack-skills:testing-qafrom fullstack-skills
Use this skill when adding tests, reviewing test coverage, debugging regressions, setting up test infrastructure, or preparing production release QA. Triggers on requests about unit tests, integration tests, E2E tests, test strategy, coverage gaps, flaky tests, CI pipeline tests, QA checklists, or any request mentioning testing or quality assurance.
Ships in fullstack-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when adding tests, reviewing test coverage, debugging regressions, setting up test infrastructure, or preparing production release QA.
../../../RULES.md when available and apply it as the behavior, safety, validation, and communication baseline.test-driven-development: that skill owns the RED→GREEN→REFACTOR order discipline (when/how to write a test relative to code). This skill owns test design, coverage strategy, pyramid, and QA. When implementing a feature/bugfix, follow test-driven-development for the cycle and use this skill for what and how thoroughly to test. Do not restate the TDD cycle here. ╱ E2E Tests ╲ Few, slow, high confidence
╱ Integration ╲ Some, moderate speed
╱ Feature Tests ╲ Many for API routes
╱ Unit Tests ╲ Many, fast, focused
╱_______________________ ╲ Foundation
| Level | What | Speed | Count | Tools |
|---|---|---|---|---|
| Unit | Pure functions, services, utilities | < 10ms each | Many | PHPUnit, Jest, Vitest |
| Feature | HTTP routes, API endpoints | < 100ms each | Many | PHPUnit, Supertest |
| Integration | Multi-service flows, database | < 500ms each | Some | PHPUnit, Jest + DB |
| E2E | Full user flows in browser | < 30s each | Few | Playwright, Cypress |
For every feature, cover these 10 scenarios:
Test pure logic without external dependencies:
✅ Service methods with mocked dependencies
✅ Validation rules and custom validators
✅ Data transformations and formatters
✅ Business rule calculations
✅ Helper/utility functions
✅ Value objects and DTOs
Test full request → response cycle:
✅ Route returns correct status code
✅ Route returns correct response structure
✅ Authentication required (401 without token)
✅ Authorization checked (403 for wrong user)
✅ Validation errors returned with correct format
✅ Database writes committed correctly
✅ Database writes rolled back on failure
✅ Events dispatched
✅ Jobs dispatched/queued
✅ Notifications sent
✅ Side effects executed (or not for dry run)
For every API endpoint:
| Test | Assertion |
|---|---|
| GET list | 200, paginated, correct structure |
| GET single | 200, correct resource |
| GET not found | 404 |
| GET unauthorized | 401 |
| GET forbidden | 403 (other user's resource) |
| POST valid | 201, resource created |
| POST invalid | 422, validation errors |
| POST duplicate | 409 or 422 |
| PUT/PATCH valid | 200, resource updated |
| PUT/PATCH forbidden | 403 |
| DELETE valid | 204 or 200 |
| DELETE forbidden | 403 |
| DELETE not found | 404 |
✅ Renders correctly with required props
✅ Renders correctly with optional props
✅ Handles missing/null props gracefully
✅ Triggers correct events/callbacks
✅ Displays loading state
✅ Displays error state
✅ Displays empty state
✅ Responds to user interaction (click, type, submit)
| State | What to Check |
|---|---|
| Loading | Spinner/skeleton shown, content hidden |
| Empty | Helpful message, not blank screen |
| Error | Error message shown, retry available |
| Success | Confirmation, data updated |
| Disabled | Visually distinct, not clickable |
| Mobile | Layout correct, touch targets 44px+ |
| Tablet | Layout adjusts appropriately |
| Desktop | Full layout, no wasted space |
| Dark mode | Colors correct, contrast sufficient |
| Long text | Truncated or wrapped, not overflowing |
| Missing image | Fallback shown, layout intact |
| Slow API | Loading state shown, no timeout crash |
| Refresh | State preserved or gracefully reset |
| Back button | Navigation works, no broken state |
Write E2E tests for critical user flows:
✅ User registration → email verification → first login
✅ Login → dashboard → core feature → logout
✅ Create resource → edit → delete
✅ Search → filter → paginate
✅ Form submission → validation error → fix → success
✅ Payment flow (if applicable)
✅ Admin operations (if applicable)
Use descriptive names that explain the scenario:
✅ "it returns 404 when user does not exist"
✅ "it prevents unauthorized users from accessing admin"
✅ "it validates email format on registration"
❌ "test1"
❌ "it works"
❌ "test user endpoint"
These are risk-prioritized reference bands, not numeric targets to chase — consistent with the Coverage Rules below ("percentage alone is meaningless"). Use them to decide where untested behavior is unacceptable (high-risk rows), not to game a project number.
| Area | Floor (high-risk gap unacceptable below this) | Healthy |
|---|---|---|
| Auth flows | 90% | 100% |
| Payment/checkout | 90% | 100% |
| Business logic/services | 80% | 95% |
| API endpoints | 80% | 95% |
| Controllers | 70% | 85% |
| Frontend components | 60% | 80% |
| Utility functions | 90% | 100% |
| Overall project | 60% | 80% |
# Example pipeline structure
test:
steps:
- Install dependencies
- Run linting (code style)
- Run static analysis (type checking)
- Run unit tests
- Run feature/integration tests
- Run E2E tests (on staging build)
- Generate coverage report
- Fail if coverage drops below threshold
✅ Authentication required on protected endpoints
✅ Authorization checked (IDOR prevention)
✅ Input validation rejects malicious input
✅ Rate limiting active on auth endpoints
✅ CSRF protection on state-changing endpoints
✅ SQL injection patterns rejected
✅ XSS patterns rejected
✅ File upload restrictions enforced
Before every release:
# Test Plan
## Current Coverage Assessment
Overview of existing test coverage and quality.
## Critical Test Gaps 🔴
Untested critical paths that risk production failures.
## Automated Tests to Add
Grouped by priority and test level:
### Unit Tests
- Test description (file, function, scenarios)
### Feature/Integration Tests
- Test description (endpoint, scenarios)
### E2E Tests
- Test description (user flow, scenarios)
## Manual QA Checklist
Step-by-step manual verification for features that can't be automated.
## Regression Checklist
Re-test items from recent bug fixes and changes.
## Performance Test Plan
Endpoints and flows to load test, with targets.
## CI/CD Recommendations
Pipeline configuration and test automation improvements.
## Commands to Run
Copy-paste-ready test commands.
## Release Confidence
- 🔴 Low — Critical gaps, do not release
- 🟠 Medium — Known risks, release with monitoring
- 🟡 High — Minor gaps, safe to release
- 🟢 Very High — Comprehensive coverage, confident release
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skills81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.