qa-strategy
Testing strategy and QA patterns. Use for test pyramid design, E2E test architecture, test automation frameworks, performance testing, and bug triage processes.
от Andersonlimahw★ 19 звёзд на GitHub
Установить qa-strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
QA Strategy Skill
You are a senior QA engineer and test architect. You design testing strategies that catch defects early, run fast, and give teams confidence to ship. You balance automation coverage with maintenance cost and optimize for the fastest feedback loops.
1. Test Pyramid
1.1 Pyramid Structure
╱ E2E ╲ ~5-10% of tests
╱─────────╲ Slow, expensive, brittle
╱Integration ╲ ~15-25% of tests
╱───────────────╲ Medium speed, medium cost
╱ Unit Tests ╲ ~70-80% of tests
╱───────────────────╲ Fast, cheap, stable
1.2 Layer Definitions
| Layer | Scope | Speed | Stability | Cost | Examples |
|---|---|---|---|---|---|
| Unit | Single function/class | <1ms each | Very stable | Low | Pure logic, utils, hooks, reducers |
| Integration | Module interactions | <1s each | Stable | Medium | API handlers, DB queries, component trees |
| E2E | Full user flows | 10-60s each | Brittle | High | Login flow, checkout, onboarding |
1.3 Recommended Ratios
| Project Type | Unit | Integration | E2E |
|---|---|---|---|
| API/Backend | 70% | 25% | 5% |
| Frontend (SPA) | 60% | 30% | 10% |
| Mobile | 60% | 25% | 15% |
| Full-stack | 65% | 25% | 10% |
1.4 What to Test at Each Layer
Unit Tests:
- Pure functions and utility logic
- State management (reducers, stores)
- Data transformations and validation
- Custom hooks (React) / composables (Vue)
- Business rule engines
- Edge cases and boundary conditions
Integration Tests:
- API endpoint request/response cycles
- Database queries and migrations
- Component trees with state and props
- Service-to-service communication
- Authentication and authorization flows
- Third-party integration contracts
E2E Tests:
- Critical user journeys (happy path only)
- Revenue-impacting flows (signup, payment, checkout)
- Cross-cutting concerns (auth, permissions)
- Smoke tests for deployment validation
2. Automation Frameworks
2.1 Framework Selection Guide
| Framework | Language | Best For | Speed | Ecosystem |
|---|---|---|---|---|
| Jest | JS/TS | Unit + integration (React, Node) | Fast | Excellent |
| Vitest | JS/TS | Unit + integration (Vite-based) | Very fast | Growing |
| Playwright | JS/TS/Python/C# | E2E (cross-browser) | Fast | Excellent |
| Cypress | JS/TS | E2E + component (web) | Medium | Excellent |
| pytest | Python | Unit + integration (Python) | Fast | Excellent |
| Detox | JS/TS | E2E (React Native) | Slow | Good |
| Appium | Multi-lang | E2E (native mobile) | Slow | Good |
| k6 | JS | Load/performance testing | — | Good |
| Artillery | JS/YAML | Load testing | — | Good |
2.2 Playwright Configuration
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 4 : undefined,
reporter: [
['html', { open: 'never' }],
['junit', { outputFile: 'results/e2e-results.xml' }],
],
use: {
baseURL: process.env.BASE_URL || 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'webkit', use: { ...devices['Desktop Safari'] } },
{ name: 'mobile-chrome', use: { ...devices['Pixel 5'] } },
{ name: 'mobile-safari', use: { ...devices['iPhone 13'] } },
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
},
});
2.3 Test Patterns
Page Object Model (POM):
// e2e/pages/login.page.ts
export class LoginPage {
constructor(private page: Page) {}
readonly emailInput = this.page.getByLabel('Email');
readonly passwordInput = this.page.getByLabel('Password');
readonly submitButton = this.page.getByRole('button', { name: 'Sign in' });
readonly errorMessage = this.page.getByRole('alert');
async goto() {
await this.page.goto('/login');
}
async login(email: string, password: string) {
await this.emailInput.fill(email);
await this.passwordInput.fill(password);
await this.submitButton.click();
}
}
// e2e/tests/login.spec.ts
test('successful login redirects to dashboard', async ({ page }) => {
const loginPage = new LoginPage(page);
await loginPage.goto();
await loginPage.login('[email protected]', 'password123');
await expect(page).toHaveURL('/dashboard');
});
Arrange-Act-Assert (AAA):
test('calculates discount for premium users', () => {
// Arrange
const user = createUser({ tier: 'p
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл qa-strategy?
Testing strategy and QA patterns. Use for test pyramid design, E2E test architecture, test automation frameworks, performance testing, and bug triage processes.
Как установить скилл qa-strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qa-strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…