report — скилл для Claude Code: что делает и как установить
Запускает тесты Playwright, собирает статистику падений и отправляет сводку в Slack, TestRail или Markdown. Пригодится для быстрой проверки статуса прогона.
/plugin marketplace add alirezarezvani/claude-skills
/plugin install pw@claude-code-skillsЧто делает report
Скилл проверяет каталоги test-results/ и playwright-report/. Если свежих данных нет, он сам выполняет команду npx playwright test с JSON- и HTML-репортерами. Из полученного JSON он считывает статус проверок и текст ошибок с длительностью прогона.
Готовый отчет скилл отправляет в настроенные каналы. При наличии переменной SLACK_WEBHOOK_URL сводка уходит вебхуком в Slack, а при TESTRAIL_URL результат передается в TestRail. Если настроен GitHub Actions, данные пойдут в артефакты сборки. Локально файл сохраняется в test-reports/, а при наличии старых файлов скилл сравнивает динамику и выявляет новые флаки-тесты.
Инструмент завязан на Playwright. Поэтому для проектов с другими тестовыми фреймворками он не подойдет.
Какие задачи решает
- Разобрать результаты прогона Playwright из JSON-вывода
- Отправить сводку о падениях тестов в Slack через вебхук
- Сравнить текущие результаты с прошлыми отчетами для поиска флаки-тестов
- Запустить повторные тесты при отсутствии свежих артефактов
Примеры запросов агенту
- test report
- how did tests go
- show results
Как установить report
1Через маркетплейс плагинов
/plugin marketplace add alirezarezvani/claude-skills/plugin install pw@claude-code-skills2Через Skills CLI (Vercel)
npx skills add alirezarezvani/claude-skills --skill report -a claude-code3Вручную: положить файлы
~/.claude/skills/report/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/report/
Вручную: положить файлы
.agents/skills/report/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/report/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alirezarezvani/claude-skills report2Вручную: положить файлы
.github/skills/report/SKILL.mdКомандой платформы
gemini skills install https://github.com/alirezarezvani/claude-skills --path engineering-team/playwright-pro/skills/reportВручную: положить файлы
.devin/skills/report/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Похожие
Вопросы о report
Как установить report в Claude Code?
Выполните команду /plugin marketplace add alirezarezvani/claude-skills или установите скилл через npx skills add alirezarezvani/claude-skills --skill report -a claude-code. Также можно сохранить файл в ~/.claude/skills/report/SKILL.md.
Что делает скилл report?
Он проверяет отчеты Playwright, формирует Markdown-файл в каталоге test-reports/ и показывает список упавших тестов. При необходимости он также запускает тесты заново.
Куда скилл отправляет результаты тестов?
Направление зависит от настроек окружения. При наличии SLACK_WEBHOOK_URL отчет отправляется в Slack, при TESTRAIL_URL результат уходит в TestRail, а по умолчанию создается локальный Markdown и открывается HTML-отчет.
Исходный текст
SKILL.md · MIT
---
name: "report"
description: >-
Generate test report. Use when user says "test report", "results summary",
"test status", "show results", "test dashboard", or "how did tests go".
---
# 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:
```bash
ls -la test-results/ playwright-report/ 2>/dev/null
```
If no recent results, run tests:
```bash
npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log
```
### 2. Parse Results
Read the JSON report:
```bash
npx playwright test --reporter=json 2> /dev/null
```
Extract:
- 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)
```markdown
# 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)
```bash
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
```bash
npx playwright show-report
```
Or if in CI:
```bash
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)
© Alireza Rezvani · MIT · alirezarezvani/claude-skills