report – skill Lập trình cho agent AI
Tạo báo cáo kiểm thử. Dùng khi người dùng nói 'test report', 'results summary', 'test status', 'show results', 'test dashboard', hoặc 'how did tests go'.
Cài skill report bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/report-cac0e.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /report – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/report-cac0e.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $report – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/report-cac0e.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /report – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/report-cac0e.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /report – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Smart Test Reporting
Generate test reports that plug into the user's existing workflow. Zero new tools.
Steps
1. Run Tests (If Not Already Run)
Check if recent test results exist:
ls -la test-results/ playwright-report/ 2>/dev/nullIf no recent results, run tests:
npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log2. Parse Results
Read the JSON report:
npx playwright test --reporter=json 2> /dev/nullExtract:
- Total tests, passed, failed, skipped, flaky
- Duration per test and total
- Failed test names with error messages
- Flaky tests (passed on retry)
3. Detect Report Destination
Check what's configured and route automatically:
| Check | If found | Action |
|---|---|---|
| TESTRAIL_URL env var | TestRail configured | Push results via /pw:testrail push |
| SLACK_WEBHOOK_URL env var | Slack configured | Post summary to Slack |
| .github/workflows/ | GitHub Actions | Results go to PR comment via artifacts |
| playwright-report/ | HTML reporter | Open or serve the report |
| None of the above | Default | Generate markdown report |
4. Generate Report
Markdown Report (Always Generated)
# Test Results — {{date}}
## Summary
- ✅ Passed: {{passed}}
- ❌ Failed: {{failed}}
- ⏭️ Skipped: {{skipped}}
- 🔄 Flaky: {{flaky}}
- ⏱️ Duration: {{duration}}
## Failed Tests
| Test | Error | File |
|---|---|---|
| {{name}} | {{error}} | {{file}}:{{line}} |
## Flaky Tests
| Test | Retries | File |
|---|---|---|
| {{name}} | {{retries}} | {{file}} |
## By Project
| Browser | Passed | Failed | Duration |
|---|---|---|---|
| Chromium | X | Y | Zs |
| Firefox | X | Y | Zs |
| WebKit | X | Y | Zs |Save to test-reports/{{date}}-report.md.
Slack Summary (If Webhook Configured)
curl -X POST "$SLACK_WEBHOOK_URL" \
-H 'Content-Type: application/json' \
-d '{
"text": "🧪 Test Results: ✅ {{passed}} | ❌ {{failed}} | ⏱️ {{duration}}\n{{failed_details}}"
}'TestRail Push (If Configured)
Invoke /pw:testrail push with the JSON results.
HTML Report
npx playwright show-reportOr if in CI:
echo "HTML report available at: playwright-report/index.html"5. Trend Analysis (If Historical Data Exists)
If previous reports exist in test-reports/:
- Compare pass rate over time
- Identify tests that became flaky recently
- Highlight new failures vs. recurring failures
Output
- Summary with pass/fail/skip/flaky counts
- Failed test details with error messages
- Report destination confirmation
- Trend comparison (if historical data available)
- Next action recommendation (fix failures or celebrate green)
Skill liên quan
- examprep-ai – Trợ lý ôn thi chuyển đề cương, đề thi cũ hoặc ghi chú thành Lộ trình Điểm Cao được xếp…
- executing-plans – Dùng khi bạn có kế hoạch triển khai bằng văn bản cần thực hiện trong một phiên riêng với…
- expo-api-routes – Hướng dẫn tạo API routes trong Expo Router với EAS Hosting
- expo-brownfield – Tích hợp Expo và React Native vào ứng dụng iOS hoặc Android native có sẵn. Dùng khi…
- expo-module – Hướng dẫn tạo và viết module và view native của Expo bằng Expo Modules API (Swift…
- zarr-python – Lưu trữ và truy vấn mảng khoa học N chiều phân khối (chunked) với Zarr-Python 3, bao gồm…
- faf-go – Phỏng vấn có hướng dẫn để đạt Gold Code (100% sẵn sàng cho AI). Dùng khi giúp người dùng…
- web3-testing – Kiểm thử smart contract toàn diện bằng Hardhat và Foundry với unit test, integration…