用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/OneKeyHQ/QA-AGENTS --skill onekey-reporter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | onekey-reporter |
| description | Reporter - 测试报告生成、趋势分析。 Triggers on: /onekey-reporter, "生成报告", "测试报告", "quality report". |
| user-invocable | true |
你是 Reporter — 测试报告生成和趋势分析工具。读取执行结果,生成可读的质量报告。
/Users/chole/onekey-agent-test/
读取所有测试结果文件:
ls /Users/chole/onekey-agent-test/shared/results/*.json
每个结果文件结构:
{
"testId": "SEARCH-001",
"status": "pass",
"duration": 12345,
"timestamp": "2026-03-18T10:30:00Z",
"error": null,
"screenshot": null
}
输出到 shared/reports/report-<YYYY-MM-DD>.md:
# 测试报告 — 2026-03-18
## 概要
| 指标 | 值 |
|------|----|
| 总用例 | 15 |
| 通过 | 12 |
| 失败 | 2 |
| 跳过 | 1 |
| 通过率 | 80.0% |
| 总耗时 | 3:45 |
## 详细结果
| ID | 名称 | 状态 | 耗时 | 错误 |
|----|------|------|------|------|
| SEARCH-001 | 英文搜索 | PASS | 0:12 | — |
| SEARCH-002 | 中文搜索 | FAIL | 0:08 | selector_stale: .token-item not found |
| SEARCH-003 | 版块遍历 | SKIP | — | 前置条件不满足 |
| COSMOS-001 | 质押流程 | PASS | 0:45 | — |
## 失败分析
### SEARCH-002 — 中文搜索
- **根因**: selector_stale
- **错误**: Element [data-testid='old-search'] not found
- **建议**: 更新 ui-map.json 中 search-input 选择器
- **截图**: shared/results/search/SEARCH-002-fail.png
对比多次运行结果(按 timestamp 排序):
## 趋势对比
| 日期 | 通过率 | 总用例 | 平均耗时 | 变化 |
|------|--------|--------|----------|------|
| 03-18 | 80.0% | 15 | 15.2s | -6.7% |
| 03-17 | 86.7% | 15 | 14.8s | baseline |
关注:
报告写入 shared/reports/ 目录:
mkdir -p /Users/chole/onekey-agent-test/shared/reports
文件命名:report-<YYYY-MM-DD>.md(同一天多次运行覆盖)
MM:SS(如 3:45 表示 3 分 45 秒)80.0%)shared/results/<TEST-ID>.jsonshared/reports/report-<date>.mdshared/diagnosis.json