Claudekit-skills web-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
install
source · Clone the upstream repo
git clone https://github.com/mrgoonie/claudekit-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/mrgoonie/claudekit-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/web-testing" ~/.claude/skills/mrgoonie-claudekit-skills-web-testing && rm -rf "$T"
manifest:
.claude/skills/web-testing/SKILL.mdsource content
Web Testing Skill
Comprehensive web testing: unit, integration, E2E, load, security, visual regression, accessibility.
Quick Start
npx vitest run # Unit tests npx playwright test # E2E tests npx playwright test --ui # E2E with UI k6 run load-test.js # Load tests npx @axe-core/cli https://example.com # Accessibility npx lighthouse https://example.com # Performance
Testing Pyramid (70-20-10)
| Layer | Ratio | Framework | Speed |
|---|---|---|---|
| Unit | 70% | Vitest/Jest | <50ms |
| Integration | 20% | Vitest + fixtures | 100-500ms |
| E2E | 10% | Playwright | 5-30s |
When to Use
- Unit: Functions, utilities, state logic
- Integration: API endpoints, database ops, modules
- E2E: Critical flows (login, checkout, payment)
- Load: Pre-release performance validation
- Security: Pre-deploy vulnerability scanning
- Visual: UI regression detection
Reference Documentation
Core Testing
- Unit/integration patterns./references/unit-integration-testing.md
- Playwright E2E workflows./references/e2e-testing-playwright.md
- React/Vue/Angular component testing./references/component-testing.md
- Test ratios, priority matrix./references/testing-pyramid-strategy.md
Cross-Browser & Mobile
- Browser/device matrix./references/cross-browser-checklist.md
- Touch, swipe, orientation./references/mobile-gesture-testing.md
- Web components testing./references/shadow-dom-testing.md
Interactive & Forms
- Forms, keyboard, drag-drop./references/interactive-testing-patterns.md
- Feature testing./references/functional-testing-checklist.md
Performance & Quality
- LCP/CLS/INP, Lighthouse CI./references/performance-core-web-vitals.md
- Screenshot comparison./references/visual-regression.md
- Stability strategies./references/test-flakiness-mitigation.md
Accessibility
- WCAG checklist, axe-core./references/accessibility-testing.md
Security
- OWASP Top 10, tools./references/security-testing-overview.md
- Auth, API, headers./references/security-checklists.md
- SQL/XSS/CSRF payloads./references/vulnerability-payloads.md
API & Load
- API test patterns./references/api-testing.md
- k6 load test patterns./references/load-testing-k6.md
Checklists
- Complete release checklist./references/pre-release-checklist.md
CI/CD Integration
jobs: test: steps: - run: npm run test:unit # Gate 1: Fast fail - run: npm run test:e2e # Gate 2: After unit pass - run: npm run test:a11y # Accessibility - run: npx lhci autorun # Performance