[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76XKH5NS76KRTZ7EN4NAS43":3,"skill-same:01M76XKH5NS76KRTZ7EN4NAS43":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M76XKH5NS76KRTZ7EN4NAS43","afrexai-qa-testing-engine",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fafrexai-qa-testing-engine\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# QA & Testing Engine — Complete Software Quality System\n\n> The definitive testing methodology for AI agents. From test strategy to execution, coverage to reporting — everything you need to ship quality software.\n\n## Phase 1: Test Strategy Design\n\nBefore writing a single test, design the strategy.\n\n### Strategy Brief Template\n\n```yaml\nproject:\n  name: \"\"\n  type: web-app | api | mobile | library | cli | data-pipeline\n  languages: [typescript, python, go, java]\n  frameworks: [react, express, django, spring]\n  \nrisk_profile:\n  data_sensitivity: low | medium | high | critical  # PII, financial, health\n  user_impact: internal | b2b | b2c | life-safety\n  deployment_frequency: daily | weekly | monthly\n  regulatory: [none, SOC2, HIPAA, PCI-DSS, GDPR]\n\ntest_scope:\n  in_scope: []    # Features, services, components\n  out_of_scope: [] # Explicitly excluded (with reason)\n  \nenvironments:\n  dev: { url: \"\", db: \"local\" }\n  staging: { url: \"\", db: \"seeded\" }\n  prod: { url: \"\", smoke_only: true }\n```\n\n### Test Type Decision Matrix\n\n| Risk Profile | Unit | Integration | E2E | Performance | Security | Accessibility |\n|---|---|---|---|---|---|---|\n| Internal tool | ✅ Core | ✅ API | ⚠️ Happy path | ❌ | ⚠️ Basic | ❌ |\n| B2B SaaS | ✅ Full | ✅ Full | ✅ Critical flows | ✅ Load | ✅ OWASP Top 10 | ✅ WCAG AA |\n| B2C high-traffic | ✅ Full | ✅ Full | ✅ Full | ✅ Stress + soak | ✅ Full | ✅ WCAG AA |\n| Financial\u002FHealth | ✅ Full + mutation | ✅ Full + contract | ✅ Full + chaos | ✅ Full suite | ✅ Pen test | ✅ WCAG AAA |\n\n### Test Pyramid Architecture\n\n```\n         \u002F  E2E  \\          5-10% — Critical user journeys only\n        \u002F Integration \\     20-30% — API contracts, service boundaries\n       \u002F    Unit Tests   \\  60-70% — Business logic, pure functions\n```\n\n**Anti-pattern: Ice cream cone** — More E2E than unit tests. Slow, flaky, expensive. Fix by pushing test coverage DOWN the pyramid.\n\n**Anti-pattern: Hourglass** — Lots of unit + E2E, no integration. Misses contract bugs between services.\n\n---\n\n## Phase 2: Unit Testing Mastery\n\n### The AAA Pattern (Arrange-Act-Assert)\n\nEvery unit test follows this structure:\n\n```typescript\ndescribe('PricingCalculator', () => {\n  \u002F\u002F Group by behavior, not by method\n  describe('when customer has volume discount', () => {\n    it('applies tiered pricing above threshold', () => {\n      \u002F\u002F ARRANGE — Set up the scenario\n      const calculator = new PricingCalculator();\n      const customer = createCustomer({ tier: 'enterprise', units: 150 });\n      \n      \u002F\u002F ACT — Execute the behavior under test\n      const price = calculator.calculate(customer);\n      \n      \u002F\u002F ASSERT — Verify the outcome (ONE logical assertion)\n      expect(price).toEqual({\n        subtotal: 12000,\n        discount: 1800,  \u002F\u002F 15% volume discount\n        total: 10200,\n      });\n    });\n  });\n});\n```\n\n### Test Naming Convention\n\n**Format:** `[unit] [scenario] [expected behavior]`\n\n✅ Good:\n- `PricingCalculator applies 15% discount when units exceed 100`\n- `UserService throws NotFoundError when user ID is invalid`\n- `parseDate returns null for malformed ISO strings`\n\n❌ Bad:\n- `test1`, `should work`, `calculates price`\n\n### What to Unit Test (Priority Order)\n\n1. **Business logic** — Pricing, rules, calculations, state machines\n2. **Data transformations** — Parsers, formatters, serializers, mappers\n3. **Edge cases** — Boundaries, null\u002Fundefined, empty collections, overflow\n4. **Error handling** — Every `catch` block, every validation path\n5. **Pure functions** — Easiest to test, highest ROI\n\n### What NOT to Unit Test\n\n- Framework internals (React rendering, Express routing)\n- Simple getters\u002Fsetters with no logic\n- Third-party library behavior\n- Implementation details (private methods, internal state)\n\n### Mocking Rules\n\n| Dependency Type | Strategy | Example |\n|---|---|---|\n| Database | Mock the repository\u002FDAO | `jest.mock('.\u002FuserRepo')` |\n| HTTP API | Mock the client or use MSW | `msw.http.get('\u002Fapi\u002Fusers', ...)` |\n| File system | Mock fs or use temp dirs | `jest.mock('fs\u002Fpromises')` |\n| Time\u002FDate | Fake timers | `jest.useFakeTimers()` |\n| Randomness | Seed or mock | `jest.spyOn(Math, 'random')` |\n| Environment | Override env vars | `process.env.NODE_ENV = 'test'` |\n\n**Rule: Mock at boundaries, not internals.** If you're mocking a class you own, your design might need refactoring.\n\n### Coverage Targets\n\n| Metric | Minimum | Good | Excellent |\n|---|---|---|---|\n| Line coverage | 70% | 85% | 95%+ |\n| Branch coverage | 60% | 80% | 90%+ |\n| Function coverage | 75% | 90% | 95%+ |\n| Critical path coverage | 100% | 100% | 100% |\n\n**Warning:** 100% coverage ≠ quality. Coverage measures what code ran, not what was verified. A test with no assertions has coverage but no value.\n\n---\n\n## Phase 3: Integration Testing\n\n### API Testing Checklist\n\nFor every API endpoint, test:\n\n```yaml\nendpoint: POST \u002Fapi\u002Forders\ntests:\n  happy_path:\n    - Valid request returns 201 with order ID\n    - Response matches schema\n    - Database record created correctly\n    - Events\u002Fwebhooks fired\n    \n  validation:\n    - Missing required fields → 400 with field errors\n    - Invalid data types → 400 with type errors\n    - Business rule violations → 422 with explanation\n    \n  authentication:\n    - No token → 401\n    - Expired token → 401\n    - Wrong role → 403\n    - Valid token → proceeds\n    \n  edge_cases:\n    - Duplicate request (idempotency) → same response\n    - Concurrent requests → no race condition\n    - Maximum payload size → 413 or graceful handling\n    - Special characters in input → no injection\n    \n  error_handling:\n    - Database down → 503 with retry hint\n    - External service timeout → 504 or fallback\n    - Rate limit exceeded → 429 with retry-after\n```\n\n### Contract Testing\n\nWhen services communicate, test the contract:\n\n```yaml\ncontract:\n  consumer: order-service\n  provider: payment-service\n  \n  interactions:\n    - description: \"Process payment\"\n      request:\n        method: POST\n        path: \u002Fpayments\n        body:\n          amount: 99.99\n          currency: USD\n          order_id: \"ord_123\"\n      response:\n        status: 200\n        body:\n          payment_id: \"pay_xxx\"  # string, not null\n          status: \"completed\"    # enum: completed|pending|failed\n          \n  breaking_changes:  # NEVER do these without versioning\n    - Remove a field from response\n    - Change a field's type\n    - Add a required field to request\n    - Change the URL path\n    - Change error response format\n```\n\n### Database Testing Rules\n\n1. **Each test gets a clean state** — Use transactions that rollback, or truncate between tests\n2. **Use factories, not fixtures** — `createUser({ role: 'admin' })` > hardcoded SQL dumps\n3. **Test migrations** — Run migrate-up, migrate-down, migrate-up (roundtrip)\n4. **Test constraints** — Unique violations, FK cascades, NOT NULL\n5. **Test queries** — Especially complex JOINs, aggregations, window functions\n\n---\n\n## Phase 4: End-to-End Testing\n\n### Critical User Journey Mapping\n\nIdentify and test the flows that generate revenue or block users:\n\n```yaml\ncritical_journeys:\n  - name: \"Sign up → First value\"\n    steps:\n      - Visit landing page\n      - Click sign up\n      - Fill registration form\n      - Verify email\n      - Complete onboarding\n      - Perform first key action\n    max_duration: 3 minutes\n    \n  - name: \"Purchase flow\"\n    steps:\n      - Browse products\n      - Add to cart\n      - Enter shipping\n      - Enter payment\n      - Confirm order\n      - Receive confirmation email\n    max_duration: 2 minutes\n    \n  - name: \"Login → Core task → Logout\"\n    steps:\n      - Login (password + SSO + MFA variants)\n      - Navigate to core feature\n      - Complete primary workflow\n      - Verify result\n      - Logout\n    max_duration: 1 minute\n```\n\n### E2E Best Practices\n\n1. **Test user behavior, not implementation** — Click buttons by text\u002Frole, not by CSS class\n2. **Use data-testid sparingly** — Only when no accessible selector exists\n3. **Wait for state, not time** — `waitFor(element)` not `sleep(3000)`\n4. **Isolate test data** — Each test creates its own users\u002Fdata\n5. **Run in CI with retries** — 1 retry for flaky network, investigate if >5% flake rate\n\n### Selector Priority (Best → Worst)\n\n1. `getByRole('button', { name: 'Submit' })` — Accessible, resilient\n2. `getByLabelText('Email')` — Form-specific, accessible\n3. `getByText('Welcome back')` — Content-based\n4. `getByTestId('submit-btn')` — Explicit test hook\n5. `querySelector('.btn-primary')` — ❌ Fragile, breaks on CSS changes\n\n### Flaky Test Triage\n\n| Symptom | Likely Cause | Fix |\n|---|---|---|\n| Passes locally, fails in CI | Timing\u002Frace condition | Add explicit waits, check CI resource limits |\n| Fails intermittently | Shared state between tests | Isolate test data, reset state |\n| Fails after deploy | Environment difference | Check env vars, API versions, feature flags |\n| Fails at specific time | Time-dependent logic | Mock dates\u002Ftimes, avoid time-sensitive assertions |\n| Fails in parallel | Resource contention | Use unique ports\u002FDBs per worker |\n\n**Rule: Quarantine flaky tests within 24 hours.** A flaky test suite that everyone ignores is worse than no tests.\n\n---\n\n## Phase 5: Performance Testing\n\n### Load Test Design\n\n```yaml\nperformance_tests:\n  smoke:\n    vus: 5\n    duration: 1m\n    purpose: \"Verify test works\"\n    \n  load:\n    vus: 100  # Expected concurrent users\n    duration: 10m\n    ramp_up: 2m\n    purpose: \"Normal traffic behavior\"\n    thresholds:\n      p95_response: \u003C500ms\n      error_rate: \u003C1%\n      \n  stress:\n    vus: 300  # 3x expected load\n    duration: 15m\n    ramp_up: 5m\n    purpose: \"Find breaking point\"\n    \n  soak:\n    vus: 80\n    duration: 2h\n    purpose: \"Memory leaks, connection exhaustion\"\n    \n  spike:\n    stages:\n      - { vus: 50, duration: 2m }\n      - { vus: 500, duration: 30s }  # Sudden spike\n      - { vus: 50, duration: 2m }\n    purpose: \"Recovery behavior\"\n```\n\n### Performance Budgets\n\n| Metric | Web App | API | Background Job |\n|---|---|---|---|\n| Response time (p50) | \u003C200ms | \u003C100ms | N\u002FA |\n| Response time (p95) | \u003C1s | \u003C500ms | N\u002FA |\n| Response time (p99) | \u003C3s | \u003C1s | N\u002FA |\n| Throughput | >100 rps | >500 rps | >1000\u002Fmin |\n| Error rate | \u003C0.1% | \u003C0.1% | \u003C0.5% |\n| CPU usage | \u003C70% | \u003C70% | \u003C90% |\n| Memory growth | \u003C5%\u002Fhr | \u003C2%\u002Fhr | \u003C10%\u002Fhr |\n\n### Database Performance Testing\n\n```yaml\ndb_performance:\n  query_tests:\n    - name: \"Dashboard aggregate query\"\n      baseline: 50ms\n      max_acceptable: 200ms\n      with_1M_rows: measure\n      with_10M_rows: measure\n      \n  index_verification:\n    - Run EXPLAIN ANALYZE on all critical queries\n    - Verify no sequential scans on tables >10K rows\n    - Check index usage statistics weekly\n    \n  connection_pool:\n    - Test at max connections\n    - Verify graceful handling when pool exhausted\n    - Monitor connection wait time\n```\n\n---\n\n## Phase 6: Security Testing\n\n### OWASP Top 10 Test Checklist\n\n```yaml\nsecurity_tests:\n  A01_broken_access_control:\n    - [ ] Horizontal privilege escalation (access other user's data)\n    - [ ] Vertical privilege escalation (access admin functions)\n    - [ ] IDOR (Insecure Direct Object References)\n    - [ ] Missing function-level access control\n    - [ ] CORS misconfiguration\n    \n  A02_cryptographic_failures:\n    - [ ] Sensitive data in transit (TLS 1.2+)\n    - [ ] Sensitive data at rest (encryption)\n    - [ ] Password hashing (bcrypt\u002Fargon2, not MD5\u002FSHA)\n    - [ ] No secrets in code\u002Flogs\u002FURLs\n    \n  A03_injection:\n    - [ ] SQL injection (parameterized queries)\n    - [ ] NoSQL injection\n    - [ ] Command injection (OS commands)\n    - [ ] XSS (stored, reflected, DOM-based)\n    - [ ] Template injection (SSTI)\n    \n  A04_insecure_design:\n    - [ ] Rate limiting on auth endpoints\n    - [ ] Account lockout after N failures\n    - [ ] CAPTCHA on public forms\n    - [ ] Business logic abuse scenarios\n    \n  A05_security_misconfiguration:\n    - [ ] Default credentials removed\n    - [ ] Error messages don't leak stack traces\n    - [ ] Security headers set (CSP, HSTS, X-Frame-Options)\n    - [ ] Directory listing disabled\n    - [ ] Unnecessary HTTP methods disabled\n    \n  A07_auth_failures:\n    - [ ] Brute force protection\n    - [ ] Session fixation\n    - [ ] Session timeout\n    - [ ] JWT validation (signature, expiry, issuer)\n    - [ ] MFA bypass attempts\n```\n\n### Input Validation Test Payloads\n\nTest every user input with:\n\n```yaml\ninjection_payloads:\n  sql: [\"' OR 1=1--\", \"'; DROP TABLE users;--\", \"1 UNION SELECT * FROM users\"]\n  xss: [\"\u003Cscript>alert(1)\u003C\u002Fscript>\", \"\u003Cimg onerror=alert(1) src=x>\", \"javascript:alert(1)\"]\n  path_traversal: [\"..\u002F..\u002Fetc\u002Fpasswd\", \"..\\\\..\\\\windows\\\\system32\", \"%2e%2e%2f\"]\n  command: [\"; ls -la\", \"| cat \u002Fetc\u002Fpasswd\", \"$(whoami)\", \"`id`\"]\n  \nboundary_values:\n  strings: [\"\", \" \", \"a\"*10000, null, undefined, \"emoji: 🎯\", \"unicode: é à ü\", \"rtl: مرحبا\"]\n  numbers: [0, -1, 2147483647, -2147483648, NaN, Infinity, 0.1+0.2]\n  arrays: [[], [null], Array(10000)]\n  dates: [\"1970-01-01\", \"2099-12-31\", \"invalid-date\", \"2024-02-29\", \"2023-02-29\"]\n```\n\n---\n\n## Phase 7: Test Automation Architecture\n\n### Framework Selection Guide\n\n| Need | JavaScript\u002FTS | Python | Go | Java |\n|---|---|---|---|---|\n| Unit | Vitest \u002F Jest | pytest | testing + testify | JUnit 5 |\n| API | Supertest | httpx + pytest | net\u002Fhttp\u002Fhttptest | RestAssured |\n| E2E (browser) | Playwright | Playwright | chromedp | Selenium |\n| Performance | k6 | Locust | vegeta | Gatling |\n| Contract | Pact | Pact | Pact | Pact |\n| Security | ZAP + custom | Bandit + custom | gosec | SpotBugs |\n\n### CI Pipeline Test Stages\n\n```yaml\npipeline:\n  stage_1_fast:  # \u003C2 min, blocks PR\n    - Lint + type check\n    - Unit tests\n    - Security: dependency scan (npm audit \u002F safety)\n    \n  stage_2_thorough:  # \u003C10 min, blocks merge\n    - Integration tests\n    - Contract tests\n    - Security: SAST scan\n    - Coverage report + threshold check\n    \n  stage_3_confidence:  # \u003C30 min, blocks deploy\n    - E2E critical journeys\n    - Visual regression (if applicable)\n    - Security: container scan\n    \n  stage_4_post_deploy:  # After deploy to staging\n    - Smoke tests against staging\n    - Performance baseline check\n    - Security: DAST scan (ZAP)\n    \n  stage_5_production:  # After prod deploy\n    - Smoke tests (critical paths only)\n    - Synthetic monitoring enabled\n    - Canary metrics watching\n```\n\n### Test Data Management\n\n```yaml\ntest_data_strategy:\n  unit_tests:\n    approach: factories  # Builder pattern, create exactly what you need\n    example: \"createUser({ role: 'admin', plan: 'enterprise' })\"\n    \n  integration_tests:\n    approach: seeded_database\n    reset: per_test_suite  # Transaction rollback or truncate\n    sensitive_data: anonymized  # Never use real PII\n    \n  e2e_tests:\n    approach: api_setup  # Create data via API before test\n    cleanup: after_each  # Delete created data\n    isolation: unique_identifiers  # Timestamp or UUID in test data\n    \n  performance_tests:\n    approach: representative_dataset\n    volume: 10x_production  # Test with more data than prod\n    generation: faker_libraries  # Realistic but synthetic\n```\n\n---\n\n## Phase 8: Quality Metrics & Reporting\n\n### Test Health Dashboard\n\n```yaml\nmetrics:\n  test_suite_health:\n    total_tests: 0\n    passing: 0\n    failing: 0\n    skipped: 0  # >5% skipped = tech debt alarm\n    flaky: 0    # >2% flaky = quarantine immediately\n    \n  coverage:\n    line: \"0%\"\n    branch: \"0%\"\n    critical_paths: \"0%\"  # Must be 100%\n    \n  execution:\n    unit_duration: \"0s\"    # Target: \u003C30s\n    integration_duration: \"0s\"  # Target: \u003C5m\n    e2e_duration: \"0s\"     # Target: \u003C15m\n    total_ci_time: \"0s\"    # Target: \u003C20m\n    \n  defect_metrics:\n    bugs_found_in_test: 0\n    bugs_escaped_to_prod: 0\n    escape_rate: \"0%\"      # Target: \u003C5%\n    mttr: \"0h\"             # Mean time to resolve\n    \n  trends:  # Track weekly\n    new_tests_added: 0\n    tests_deleted: 0  # Healthy deletion = removing redundant tests\n    coverage_delta: \"+0%\"\n    flake_rate_delta: \"+0%\"\n```\n\n### Test Report Template\n\n```markdown\n# Test Report — [Feature\u002FSprint\u002FRelease]\n\n## Summary\n- **Status:** ✅ PASS \u002F ⚠️ PASS WITH RISKS \u002F ❌ FAIL\n- **Tests Run:** X | **Passed:** X | **Failed:** X | **Skipped:** X\n- **Coverage:** Line X% | Branch X% | Critical 100%\n- **Duration:** Xm Xs\n\n## Key Findings\n\n### 🔴 Critical (Block Release)\n1. [Finding] — [Impact] — [Fix recommendation]\n\n### 🟡 High (Fix Before Next Release)\n1. [Finding] — [Impact] — [Fix recommendation]\n\n### 🟢 Medium\u002FLow (Backlog)\n1. [Finding] — [Impact]\n\n## Risk Assessment\n- **Untested areas:** [list]\n- **Known flaky tests:** [list with ticket IDs]\n- **Performance concerns:** [if any]\n\n## Recommendation\n[Ship \u002F Ship with monitoring \u002F Hold for fixes]\n```\n\n### Quality Score (0-100)\n\n| Dimension | Weight | Scoring |\n|---|---|---|\n| Test coverage | 20% | \u003C60%=0, 60-70%=5, 70-80%=10, 80-90%=15, 90%+=20 |\n| Critical path coverage | 20% | \u003C100%=0, 100%=20 |\n| Defect escape rate | 15% | >10%=0, 5-10%=5, 2-5%=10, \u003C2%=15 |\n| Test suite speed | 10% | >30m=0, 20-30m=3, 10-20m=7, \u003C10m=10 |\n| Flake rate | 10% | >5%=0, 2-5%=3, 1-2%=7, \u003C1%=10 |\n| Security test coverage | 10% | None=0, Basic=3, OWASP Top 10=7, Full=10 |\n| Documentation | 5% | None=0, Basic=2, Complete=5 |\n| Automation ratio | 10% | \u003C50%=0, 50-70%=3, 70-90%=7, 90%+=10 |\n\n**Scoring:** 0-40 = 🔴 Critical | 41-60 = 🟡 Needs Work | 61-80 = 🟢 Good | 81-100 = 💎 Excellent\n\n---\n\n## Phase 9: Specialized Testing\n\n### Accessibility Testing (WCAG 2.1)\n\n```yaml\naccessibility_checklist:\n  level_a:  # Minimum compliance\n    - [ ] All images have alt text\n    - [ ] All form inputs have labels\n    - [ ] Color is not the only visual indicator\n    - [ ] Page has proper heading hierarchy (h1→h2→h3)\n    - [ ] All functionality available via keyboard\n    - [ ] Focus is visible and logical\n    - [ ] No content flashes >3 times\u002Fsecond\n    \n  level_aa:  # Standard compliance (recommended)\n    - [ ] Color contrast ratio ≥4.5:1 (normal text)\n    - [ ] Color contrast ratio ≥3:1 (large text)\n    - [ ] Text resizable to 200% without loss\n    - [ ] Skip navigation links\n    - [ ] Consistent navigation across pages\n    - [ ] Error suggestions provided\n    - [ ] ARIA landmarks for page regions\n    \n  tools:\n    - axe-core (automated, catches ~30% of issues)\n    - Lighthouse accessibility audit\n    - Manual keyboard navigation test\n    - Screen reader testing (VoiceOver\u002FNVDA)\n```\n\n### API Backward Compatibility Testing\n\n```yaml\ncompatibility_tests:\n  when_updating_api:\n    - [ ] All existing fields still present in response\n    - [ ] No field type changes (string→number)\n    - [ ] New required request fields have defaults\n    - [ ] Deprecated fields still work (with warning header)\n    - [ ] Error format unchanged\n    - [ ] Pagination behavior unchanged\n    - [ ] Rate limits not reduced\n    \n  versioning_strategy:\n    - URL versioning: \u002Fv1\u002Fusers, \u002Fv2\u002Fusers\n    - Header versioning: Accept: application\u002Fvnd.api+json;version=2\n    - Sunset header for deprecated versions\n    - Minimum 6-month deprecation notice\n```\n\n### Chaos Engineering Principles\n\n```yaml\nchaos_tests:\n  network:\n    - Service dependency goes down → graceful degradation?\n    - Network latency increases 10x → timeout handling?\n    - DNS resolution fails → fallback behavior?\n    \n  infrastructure:\n    - Database primary fails → replica promotion?\n    - Cache (Redis) goes down → DB fallback works?\n    - Disk fills up → alerting + graceful failure?\n    \n  application:\n    - Memory pressure → OOM handling?\n    - CPU saturation → request queuing?\n    - Certificate expiry → monitoring alert?\n    \n  data:\n    - Corrupt message in queue → dead letter + alert?\n    - Schema migration fails mid-way → rollback works?\n    - Clock skew between services → idempotency holds?\n```\n\n---\n\n## Phase 10: Daily QA Workflow\n\n### For New Features\n\n1. **Review requirements** — Identify test scenarios before code is written (shift-left)\n2. **Write test cases** — Cover happy path, edge cases, error cases, security\n3. **Review PR tests** — Are tests meaningful? Do they test behavior, not implementation?\n4. **Run full suite** — Unit + integration + E2E for affected areas\n5. **Report findings** — Use the test report template above\n\n### For Bug Fixes\n\n1. **Write failing test first** — Reproduce the bug as a test\n2. **Verify fix makes test pass** — The test IS the proof\n3. **Check for regression** — Run related test suites\n4. **Add to regression suite** — Bug tests prevent re-introduction\n\n### Weekly QA Review\n\n```yaml\nweekly_review:\n  monday:\n    - Review flaky test quarantine — fix or delete\n    - Check coverage trends — declining = tech debt\n    - Review escaped defects — update test strategy\n    \n  friday:\n    - Update test health dashboard\n    - Clean up obsolete tests\n    - Document new testing patterns discovered\n    - Plan next week's testing focus\n```\n\n### Natural Language Commands\n\n- `\"Create test strategy for [project\u002Ffeature]\"` → Full strategy brief\n- `\"Write unit tests for [function\u002Fclass]\"` → AAA pattern tests with edge cases\n- `\"Test this API endpoint: [method] [path]\"` → Full API test checklist\n- `\"Review these tests for quality\"` → Test code review with scoring\n- `\"Generate performance test plan\"` → k6\u002FLocust test design\n- `\"Security test [feature\u002Fendpoint]\"` → OWASP-based test checklist\n- `\"Create test report for [release]\"` → Formatted test report\n- `\"What's our test health?\"` → Dashboard with metrics and recommendations\n- `\"Find gaps in our test coverage\"` → Analysis with prioritized recommendations\n- `\"Help debug this flaky test\"` → Root cause analysis with fix suggestions\n- `\"Set up CI test pipeline\"` → Stage-by-stage pipeline config\n- `\"Accessibility audit [page\u002Fcomponent]\"` → WCAG checklist with findings\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fa\u002Fafrexai-qa-testing-engine",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-qa-testing-engine",{"tool":37,"command":38},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-qa-testing-engine",{"tool":40,"command":41},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill afrexai-qa-testing-engine","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fa\u002Fafrexai-qa-testing-engine\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":53},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":53},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":53},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]