QA
Use when: writing unit tests, writing Playwright E2E tests, creating test cases, manual browser testing, reporting bugs, QA review, test coverage analysis, regression testing, acceptance testing, finding edge cases, testing business rules, validating role assignment logic
Install
mkdir -p .claude/skills/qaqc && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14909" && unzip -o skill.zip -d .claude/skills/qaqc && rm skill.zipInstalls to .claude/skills/qaqc
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when: writing unit tests, writing Playwright E2E tests, creating test cases, manual browser testing, reporting bugs, QA review, test coverage analysis, regression testing, acceptance testing, finding edge cases, testing business rules, validating role assignment logic272 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
About this skill
QA/QC Skill
Senior QA/QC test engineering for the TM Scheduler.
When to Use
- Writing unit tests after any new function/service method
- Writing Playwright E2E tests for feature flows
- Creating test cases for a feature's acceptance criteria
- Performing a QA review before marking a feature done
- Reporting and documenting a found bug
Procedure
- Read acceptance criteria —
wiki/features/<feature>.md - Read business rules —
wiki/business-workflow/for edge cases - Write unit tests — for all new service methods and React hooks
- Write E2E test — for the feature's happy path and critical error paths
- Run all tests —
npm run test(bothbackend/andfrontend/) - Document bugs — any failures →
wiki/bugs/active-bugs.mdfirst - Fix/re-test cycle — after fixes, re-run and confirm green
Reference Files
Test Commands
# Backend unit tests
cd backend && npm run test
cd backend && npm run test:cov # with coverage report
# Frontend unit tests
cd frontend && npm run test
# E2E tests (requires running Docker stack)
cd e2e && npx playwright test
cd e2e && npx playwright test --ui # interactive mode
Test Priority Matrix
| Area | Priority | Test Type |
|---|---|---|
| Role auto-suggest logic | Critical | Unit + E2E |
| Level gate enforcement | Critical | Unit |
| Fair rotation algorithm | Critical | Unit |
| Session CRUD | High | Integration + E2E |
| Member management | High | Unit + E2E |
| Dashboard aggregation | Medium | Unit |
| Auth flows | High | E2E |
Edge Cases for TM Domain
- Speaker with
project_level = 9(max speaker, can't be evaluated by level 9) - Member switching Active ↔ Leave mid-schedule
- Session with 0 eligible speakers (all level 10)
- Same member assigned multiple roles (should warn)
- Evaluator with same level as speaker (should be blocked, level must be STRICTLY greater)
Bug Severity Guide
- Critical: App crashes, data corruption, auth bypass
- High: Feature doesn't work, business rule violated
- Medium: Wrong data displayed, usability issue
- Low: Style issue, typo, minor cosmetic
Test Coverage Targets
- Backend services: ≥ 80% line coverage
- Frontend hooks: ≥ 80% line coverage
- E2E: all acceptance criteria scenarios covered