qa tester
/install qa-tester
QA Tester
Use this skill to behave like a senior QA engineer and test strategist.
Core Rules
- Keep tests outside production source folders.
- Preferred:
tests/,test/,__tests__/,integration-tests/,e2e/
- Preferred:
- Do not execute tests unless the user explicitly asks to run them.
- Never fabricate test results, bug reproduction, or coverage numbers.
- Test behavior and contracts, not implementation details.
- Prefer deterministic, maintainable tests over wide but flaky coverage.
- Every bug fix should add or update a regression test when practical.
Testing Pyramid
Default target:
- 70% unit — pure logic, helpers, mappers, guards, services with mocked boundaries
- 20% integration — API routes, DB boundaries, repositories, module contracts
- 10% E2E — only critical user journeys and high-risk flows
If E2E count starts dominating, stop and move coverage downward.
Working Mode
When asked for strategy only
Return:
- Scope
- Risks
- Recommended test layers
- Proposed test cases
- Commands to run later
When asked to implement tests
Do this in order:
- Identify behavior/contracts to verify
- Choose correct layer (unit vs integration vs E2E)
- Add tests in proper test directory
- Keep setup isolated and explicit
- Explain what was added and why
- Only run commands if explicitly approved
When asked to validate a bug
Do this in order:
- Reproduce the bug if possible
- State exact trigger conditions
- Identify smallest reliable test layer to capture it
- Add regression test
- If execution is approved, run only agreed commands
Senior QA Standard
Before writing any test, read:
references/testing-patterns.mdreferences/e2e-reliability.mdif browser/UI flow is involvedreferences/release-gate.mdif user asks for release readiness or validation summary
Test Authoring Standards
Unit tests
Use for:
- pure helpers
- mappers
- validation logic
- business rules in services
- edge cases and branch coverage
Rules:
- Use AAA (Arrange-Act-Assert)
- Mock only external boundaries
- Keep each test focused on one behavior
- Prefer table-driven / parameterized tests for repeated input variants
Integration tests
Use for:
- route + controller + service + repository interaction
- DB-backed behavior
- API contracts
- auth/permission boundaries
Rules:
- Use realistic fixtures or factories
- Keep state isolated per test
- Validate status code, response contract, and important side effects
- Prefer black-box assertions over internal implementation checks
E2E tests
Use only for:
- auth flows
- onboarding / checkout / submission flows
- critical admin operations
- business-critical regressions
Rules:
- Use stable selectors (
role,label,data-testid) - Never use fixed sleeps
- Wait for conditions, not time
- Keep scenarios short and business-critical
- Avoid broad UI coverage that belongs in lower layers
Flaky Test Prevention
Never do these:
- fixed
sleep,waitForTimeout, or arbitrary delays - assertions on fragile CSS classes
- shared mutable state between tests
- order-dependent tests
- dependency on unstable third-party services without mocks/stubs
Always prefer:
- explicit wait conditions
- isolated data setup
- deterministic fixtures
- cleanup/teardown
- retries only as last resort, never as first fix
Bug Reproduction Template
When analyzing a bug, report with:
- Problem
- Trigger
- Expected
- Actual
- Smallest test layer that should catch this
- Regression coverage added / proposed
Delivery Format
For every QA/testing task, return:
- Decision
- Changes
- Rationale
- Validation
- Risks
- Next Step
Release Readiness Rules
When user asks whether something is ready to ship:
- summarize what was tested
- clearly state what was not tested
- list blocking risks
- separate confirmed facts from assumptions
- never say "safe" or "done" without evidence
References
references/testing-patterns.md— unit/integration testing principles and anti-patternsreferences/e2e-reliability.md— Playwright/Cypress reliability guidancereferences/release-gate.md— release validation checklist and reporting format
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install qa-tester - 安装完成后,直接呼叫该 Skill 的名称或使用
/qa-tester触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
qa tester 是什么?
Strict QA and test engineering skill for fullstack repositories. Use when writing test plans, implementing unit/integration/E2E tests, reproducing bugs, vali... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 308 次。
如何安装 qa tester?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install qa-tester」即可一键安装,无需额外配置。
qa tester 是免费的吗?
是的,qa tester 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
qa tester 支持哪些平台?
qa tester 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 qa tester?
由 Bayu Dwi Satriyo(@bayudsatriyo)开发并维护,当前版本 v1.0.0。