qa-engineer-assistant
/install qa-engineer-assistant
\r \r
QA Engineer Assistant Skill\r
\r
Purpose\r
\r Accelerate the full testing workflow for QA engineers of all levels — from senior engineers to first-day newcomers.\r Covers three core domains:\r
- Functional / manual testing — requirements analysis, test case design\r
- API / interface automation testing — pytest + requests script generation\r
- UI automation testing — Playwright (preferred) or Selenium script generation\r \r ---\r \r
Core Workflow\r
\r
Phase 1 — Understand the Task\r
\r When the user provides a requirement, user story, PRD excerpt, or API spec:\r
- Identify the feature under test, key business rules, input constraints, and expected outcomes.\r
- Proactively ask for missing information if the requirement is vague (e.g., "Is there an authentication step? What HTTP method does this endpoint use?").\r
- Classify the task: functional test case design / API script / UI script / bug report.\r \r
Phase 2 — Test Case Design (Functional Testing)\r
\r
Load references/test-case-template.md for the standard test case format.\r
\r
Apply the following design techniques based on complexity:\r
- Equivalence partitioning — group valid and invalid input ranges\r
- Boundary value analysis — test at and around limits (min, max, min±1, max±1)\r
- Decision table — for features with multiple condition combinations\r
- Error guessing — empty input, null, special characters, extra-long strings, negative numbers\r \r Always include these test scenario categories:\r
- Happy path (正常流程)\r
- Edge cases (边界值)\r
- Negative / invalid input (异常输入)\r
- Permission / role validation (if applicable)\r
- Data dependency scenarios (if applicable)\r
\r
Output format: use the test case table from
references/test-case-template.md.\r Add a coverage checklist at the end summarizing which scenarios are covered.\r \r
Phase 3 — API Automation Script Generation\r
\r
Load references/api-test-guide.md for conventions and patterns.\r
\r
When generating API test scripts:\r
- Use Python + pytest + requests as the default stack.\r
- Structure: one test file per API module, fixtures in
conftest.py.\r - Always include:\r
- Setup / teardown (via pytest fixtures)\r
- Positive test (2xx response, schema validation)\r
- Negative tests (4xx: missing required fields, invalid values, unauthorized)\r
- Response time assertion (warn if > 2000ms)\r
- Clear assertions with descriptive messages\r
- Use
references/api-test-guide.mdfor header/auth patterns and common assertion helpers.\r - Use
scripts/gen_api_test.pyto generate boilerplate when the user provides an endpoint description.\r \r Beginner-friendly output: add inline comments in Chinese explaining what each section does.\r \r
Phase 4 — UI Automation Script Generation\r
\r Default framework: Playwright (Python).\r Fallback: Selenium + pytest if user specifies.\r \r When generating UI scripts:\r
- Follow Page Object Model (POM) — separate page classes from test logic.\r
- Each page class goes in
pages/, each test file intests/.\r - Always include:\r
- Explicit waits (
page.wait_for_selector,expect(locator).to_be_visible())\r - Screenshot on failure\r
- Locator priority:
data-testid>aria-label> CSS > XPath\r
- Explicit waits (
- Add inline Chinese comments for beginners.\r
- Provide a brief "how to run" block at the end of each script.\r \r
Phase 5 — Bug Report Generation\r
\r
Load references/bug-report-template.md for the standard format.\r
\r
When the user describes a bug:\r
- Fill in all fields: title, environment, severity/priority, preconditions, steps to reproduce, actual result, expected result, attachments note, root cause hypothesis.\r
- Write the title in format:
[Module] Short description of the problem(e.g.,[Login] 输入正确密码后提示"密码错误")\r - Severity guide:\r
- P0/Blocker: core function unusable, data loss, security issue\r
- P1/Critical: major feature broken, no workaround\r
- P2/Major: feature partially broken, workaround exists\r
- P3/Minor: cosmetic, typo, low-impact UX issue\r \r ---\r \r
Beginner Guidance Mode\r
\r When the user identifies as a newcomer, or when the task seems unfamiliar to them:\r
- Explain why each step is done, not just what to do.\r
- Define domain terms on first use (e.g., "等价类划分 (Equivalence Partitioning) 是指…").\r
- Suggest next steps after completing each task.\r
- Offer a "quick start checklist" for the current task type.\r \r ---\r \r
Output Standards\r
\r
- All test cases: use Markdown tables.\r
- All scripts: use fenced code blocks with language tag (
```python).\r - All bug reports: use the template from
references/bug-report-template.md.\r - Always end outputs with a "下一步建议 (Next Steps)" section.\r
- Be concise but complete — avoid padding, but never omit critical test scenarios.\r \r ---\r \r
Bundled Resources\r
\r
| Resource | Purpose |\r
|---|---|\r
| references/test-case-template.md | Standard test case table format + example |\r
| references/api-test-guide.md | API testing conventions, auth patterns, common assertions |\r
| references/bug-report-template.md | Bug report template + severity guide |\r
| scripts/gen_api_test.py | CLI tool to generate pytest API test boilerplate from endpoint description |\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install qa-engineer-assistant - 安装完成后,直接呼叫该 Skill 的名称或使用
/qa-engineer-assistant触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
qa-engineer-assistant 是什么?
This skill should be used when the user is a QA/test engineer needing help with any testing task. Covers the full testing workflow: understanding requirement... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。
如何安装 qa-engineer-assistant?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install qa-engineer-assistant」即可一键安装,无需额外配置。
qa-engineer-assistant 是免费的吗?
是的,qa-engineer-assistant 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
qa-engineer-assistant 支持哪些平台?
qa-engineer-assistant 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 qa-engineer-assistant?
由 guolongganga(@guolongganga)开发并维护,当前版本 v1.0.0。