test-tier-selection
Auto-select test tiers based on change scope — unit for small, full suite for large. Use when running tests, discussing testing strategy, or after code modifications.
What this skill does
# Test Tier Selection Automatic guidance for selecting appropriate test tiers based on change context and scope. ## When to Use This Skill | Use this skill when... | Use test-consult instead when... | |---|---| | Mechanically deciding which tier to run for a given change | Reviewing overall test pyramid balance or strategy | | Mapping change type (refactor, API, UI) to required tiers | Designing a new feature's test approach | | Justifying why an E2E run is or isn't needed | Diagnosing flaky tests in an existing suite | | Picking between test-quick, test-run, and test-full | Setting up a project's test infrastructure (use test-setup) | ## Test Tier Definitions | Tier | Duration | Scope | When to Run | |------|----------|-------|-------------| | **Unit** | < 30s | Single function/module | After every code change | | **Integration** | < 5min | Component interactions | After feature completion | | **E2E** | < 30min | Full user flows | Before commit/PR | ## Decision Matrix ### Change Type → Test Tier | Change Type | Unit | Integration | E2E | |-------------|------|-------------|-----| | Single function fix | Required | Skip | Skip | | New feature (1 file) | Required | Required | Skip | | Multi-file feature | Required | Required | Required | | Refactoring | Required | Required | Optional | | API changes | Required | Required | Required | | UI changes | Required | Optional | Required | | Bug fix (isolated) | Required | Optional | Skip | | Database changes | Required | Required | Required | | Config changes | Required | Required | Optional | ## Escalation Signals **Escalate to Integration when:** - Changes span multiple files - Business logic affected - Service boundaries modified - Database queries changed **Escalate to E2E when:** - User-facing features modified - Authentication/authorization changes - Critical path functionality - Before creating PR ## Commands by Tier ```bash # Tier 1: Unit (fast feedback) /test:quick # Tier 2: Integration (feature completion) /test:full --coverage # Tier 3: E2E (pre-commit) /test:full ``` ## Agent Consultation Triggers **Consult `test-architecture` agent when:** - New feature module created - Coverage drops > 5% - > 3 flaky tests detected - Framework questions arise - Test strategy needs adjustment **Consult `test-runner` agent when:** - Need test execution with analysis - Multiple failures to diagnose - Want concise failure summary **Consult `system-debugging` agent when:** - Integration test failures with unclear cause - Environment/timing issues - Flaky tests related to concurrency ## Quick Reference ### After Small Change ``` 1. Run /test:quick 2. If pass: Continue working 3. If fail: Fix immediately ``` ### After Feature Completion ``` 1. Run /test:full --coverage 2. Check coverage targets met 3. If gaps: /test:consult coverage ``` ### Before Commit/PR ``` 1. Run /test:full 2. All tiers must pass 3. Review coverage report ``` ### For New Features ``` 1. /test:consult new-feature 2. Write tests (TDD) 3. Run /test:quick during development 4. Run /test:full before PR ``` ## Activation Triggers This skill auto-activates when: - User mentions "test", "run tests", "testing" - After code modification by Claude - During TDD workflow - When `/test:*` commands invoked - When discussing test strategy
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.