Agent skill
triatu-testing
Testing workflow for Triatu (TDD, Vitest, Playwright). Use when adding tests, fixing failing suites, or setting up e2e flows.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/triatu-testing
SKILL.md
Triatu Testing
Quick start
- TDD required: write test first, then code.
- Unit/integration: Vitest.
- E2E: Playwright under
tests/e2e.
Commands
pnpm test(Vitest)pnpm test:e2e(Playwright)pnpm exec playwright test --ui(interactive)pnpm exec playwright test --headed(visible browser)
Workflow
- Add stable
data-testidin UI for any e2e interaction. - Keep Vitest tests under
tests/,features/, orlib/. - Keep Playwright tests under
tests/e2e/only. - For e2e that touches Supabase, require:
NEXT_PUBLIC_SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYNEXT_PUBLIC_E2E=true(if used)
- Clean up seeded data at the end of each e2e run.
References
docs/DEVELOPMENT.mdtests/README.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?