qa-expert
Quality assurance expert for testing strategies and quality gates. Use when planning test coverage, setting up QA processes, or improving quality standards.
What this skill does
# QA Expert Quality assurance specialist for developing comprehensive testing strategies and quality gates. ## When This Skill Activates Activates when you: - Ask for QA strategy - Need quality gates - Want to improve test coverage - Plan testing approach ## Quality Assurance Strategy ### 1. Risk-Based Testing Prioritize testing based on risk: | Risk Level | Testing Approach | |------------|------------------| | **Critical** (Money, Security, Data) | 100% automation, chaos testing | | **High** (Core features) | Full E2E, integration, unit | | **Medium** (Secondary features) | Integration, unit | | **Low** (Edge features) | Unit tests only | ### 2. Testing Pyramid Allocation | Level | % of Tests | Focus | |-------|------------|-------| | E2E | 10% | Critical user journeys | | Integration | 30% | API interactions | | Unit | 60% | Business logic, utilities | ### 3. Quality Gates #### Pre-Commit ```bash - Lint: npm run lint - Format check: npm run format:check - Type check: npm run type-check - Unit tests: npm run test:unit ``` #### Pre-Merge ```bash - All tests: npm test - Coverage threshold: > 80% - Security scan: npm audit - License check: npm run check:licenses ``` #### Pre-Production ```bash - Full test suite: npm run test:all - E2E tests: npm run test:e2e - Performance tests: npm run test:perf - Security audit: npm audit --audit-level high ``` ## Test Categories ### Functional Testing **Purpose**: Verify features work as specified - Happy path testing - Edge case testing - Boundary value analysis - Error handling ### Non-Functional Testing **Performance** - Response time < 200ms (p95) - Throughput > 1000 req/s - Memory usage stable - No memory leaks **Security** - OWASP Top 10 coverage - Penetration testing - Dependency vulnerability scan - Secrets detection **Compatibility** - Browser testing (Chrome, Firefox, Safari, Edge) - Device testing (Mobile, Desktop, Tablet) - OS testing (Windows, macOS, Linux) - Version testing (N-1 browser versions) ### Regression Testing - Previous bugs don't reappear - New features don't break existing features - Performance doesn't degrade ### Exploratory Testing - Find unexpected issues - Test edge cases - User experience issues ## Test Planning ### Test Plan Template ```markdown # Test Plan: [Feature Name] ## Overview [Feature description] ## Scope [In scope / Out of scope] ## Test Cases ### Functional - [ ] TC001: [Description] - [ ] TC002: [Description] ### Integration - [ ] TC101: [Description] ### E2E - [ ] TC201: [Description] ## Test Data [Required test data] ## Environment [Test environment setup] ## Schedule [Testing timeline] ## Exit Criteria [Definition of done] ``` ## Quality Metrics ### Code Quality - **Test Coverage**: > 80% - **Cyclomatic Complexity**: < 10 per function - **Code Duplication**: < 5% - **Technical Debt Ratio**: < 5% ### Defect Metrics - **Defect Density**: < 1 defect per 1000 LOC - **Critical Defects**: 0 - **High Defects**: 0 - **Medium Defects**: < 3 ### Test Metrics - **Test Pass Rate**: > 95% - **Flaky Tests**: 0 - **Test Execution Time**: < 10 minutes ## Automation Strategy ### Automate When - Test is run frequently - Test has deterministic results - Test is stable - ROI justifies automation cost ### Don't Automate When - Test requires human judgment - Test is exploratory - Test is one-time only - Test changes frequently ## Bug Report Template ```markdown ## Bug Summary [One-line summary] ## Severity Critical / High / Medium / Low ## Steps to Reproduce 1. 2. 3. ## Expected Behavior [What should happen] ## Actual Behavior [What actually happens] ## Environment - OS: - Browser: - Version: ## Attachments [Screenshots, logs, etc.] ``` ## Scripts Generate test plan: ```bash python scripts/generate_test_plan.py <feature> ``` Analyze test coverage: ```bash python scripts/coverage_analysis.py ``` ## References - `references/strategy.md` - Testing strategies - `references/gates.md` - Quality gate definitions - `references/metrics.md` - QA metrics and KPIs
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.