LeoYeAI/agent-master-skills / skills/auto-qa
auto-qa
Verified在 OpenClaw 平台执行网页自动 QA 测试(自动操作 + 采证 + 报告 + 修复提示包)。当用户要求做自动化回归、演示级测试、失败证据归档或生成可直接交给下一窗口的修复 Prompt 时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.3 KB |
| _meta.json | config | 268 B |
| references/state_snapshot_20260220.md | markdown | 8.7 KB |
| scenarios/generic_visual_template.json | config | 3.5 KB |
| scenarios/mvp_smoke.json | config | 527 B |
| scenarios/registry.json | config | 750 B |
| scenarios/wehub_visual_demo.json | config | 3.9 KB |
| scenarios/wehub_visual_release.json | config | 3.6 KB |
| scripts/run_autoqa.py | script | 174.0 KB |
scenarios/generic_visual_template.json
View on GitHub{
"name": "Generic Visual Template",
"description": "通用动作展示模板:替换 start_url / start_domain 后可用于任意站点的可视化冒烟与报告",
"meta": {
"template": true,
"legacy": false,
"owner": "autoqa"
},
"autoScreenshot": true,
"continueOnFailure": false,
"visual": {
"enabled": true,
"focusTabBeforeStep": true,
"preActionWaitMs": 220,
"postActionWaitMs": 420,
"highlightBeforeClick": true,
"highlightBeforeType": true,
"highlightWaitMs": 480
},
"exploration": {
"enabled": true,
"maxDepth": 3,
"maxChildrenPerNode": 2,
"maxPages": 10,
"maxDurationMinutes": 8,
"sameOriginOnly": true
},
"variables": {
"start_url": "https://example.com/",
"start_domain": "example.com"
},
"steps": [
{
"id": "step-001",
"action": "navigate",
"url": "{{start_url}}",
"expected": "进入起始页(请替换为目标站点)"
},
{
"id": "step-002",
"action": "wait",
"timeMs": 1800,
"expected": "起始页渲染稳定"
},
{
"id": "step-003",
"action": "screenshot",
"fullPage": false,
"expected": "起始页首屏截图"
},
{
"id": "step-004",
"action": "scroll",
"deltaY": 900,
"assertEquals": true,
"expected": "页面发生明显下翻"
},
{
"id": "step-005",
"action": "wait",
"timeMs": 1000,
"expected": "下翻后稳定"
},
{
"id": "step-006",
"action": "click_link_same_origin",
"includeTextAny": [
"about",
"product",
"docs",
"pricing",
"status",
"learn",
"contact",
"support",
"blog",
"news"
],
"excludeTextAny": ["home", "首页"],
"sameOriginOnly": true,
"maxCandidates": 12,
"depth": 2,
"expected": "高亮并点击任一同域链接"
},
{
"id": "step-007",
"action": "wait",
"timeMs": 2200,
"expected": "等待跳转后页面稳定"
},
{
"id": "step-008",
"action": "evaluate",
"fn": "() => { const now = window.location.href || ''; let prev = ''; let target = ''; try { prev = sessionStorage.getItem('__autoqa_prev_url') || ''; target = sessionStorage.getItem('__autoqa_target_url') || ''; } catch (e) {} if (!prev || !now) return false; try { const p = new URL(prev); const n = new URL(now); if (p.origin !== n.origin) return false; const pkey = p.pathname + p.search; const nkey = n.pathname + n.search; if (pkey === nkey) return false; if (target) { const t = new URL(target); if (t.origin === n.origin) { const tkey = t.pathname + t.search; return nkey === tkey || nkey.startsWith(t.pathname); } } return true; } catch (e) { return false; } }",
"assertEquals": true,
"depth": 2,
"expected": "同域跳转已生效(URL 发生变化)"
},
{
"id": "step-009",
"action": "screenshot",
"fullPage": true,
"expected": "跳转后页面全页截图"
},
{
"id": "step-010",
"action": "navigate",
"url": "{{start_url}}",
"returnEdge": true,
"depth": 2,
"expected": "回到起始页"
},
{
"id": "step-011",
"action": "wait",
"timeMs": 1200,
"expected": "返回后稳定"
},
{
"id": "step-012",
"action": "assert_url_contains",
"value": "{{start_domain}}",
"expected": "URL 属于目标域(请替换为 start_domain)"
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |