report

alirezarezvani/claude-skills · updated Apr 8, 2026

$npx skills add https://github.com/alirezarezvani/claude-skills --skill report
0 commentsdiscussion
summary

Generate test reports that plug into the user's existing workflow. Zero new tools.

skill.md

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/null

If no recent results, run tests:

npx playwright test --reporter=json,html,list 2>&1 | tee test-output.log

2. Parse Results

Read the JSON report:

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)

# 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-report

Or 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)

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.762 reviews
  • Shikha Mishra· Dec 28, 2024

    We added report from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Carlos Yang· Dec 12, 2024

    I recommend report for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Carlos Torres· Dec 12, 2024

    Useful defaults in report — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Rahul Santra· Nov 19, 2024

    Useful defaults in report — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Arjun Thomas· Nov 19, 2024

    report reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • William Rahman· Nov 3, 2024

    We added report from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Nia Torres· Oct 22, 2024

    report reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Pratham Ware· Oct 10, 2024

    Registry listing for report matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Sophia Diallo· Oct 10, 2024

    We added report from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Diego Bansal· Oct 6, 2024

    report fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

showing 1-10 of 62

1 / 7