3.0 KiB
3.0 KiB
description
| description |
|---|
| Check webpage for issues (broken links, errors, etc.) |
--url --check-type
Check Webpage for Issues
Automatically check webpages for common issues like broken links, console errors, missing images, or accessibility problems.
Works from any directory - Saves report to your working directory's .web-tests/ folder.
How It Works
When you run /check, Claude will:
- Auto-detect dev server (or use provided URL)
- Create check script in
.web-tests/scripts/ - Run automated checks based on check-type
- Generate report in
.web-tests/reports/ - Show summary of findings
Usage
# Check for broken links
/check --check-type links
# Check for console errors
/check --url http://localhost:3001 --check-type console
# Check for missing images
/check --check-type images
# Check accessibility
/check --check-type a11y
# Check all issues
/check --check-type all
Check Types
links- Find broken links (404s, timeouts)console- Capture JavaScript errors and warningsimages- Check for missing or broken imagesa11y- Basic accessibility checks (ARIA, alt text, etc.)performance- Basic performance metricsall- Run all checks
What Claude Will Do
- Auto-detect dev server (if no URL provided)
- Create check script in
.web-tests/scripts/check-{type}-{timestamp}.js - Execute checks with:
CWD=$(pwd) cd <skill-dir> && node run.js .web-tests/scripts/check-*.js - Generate report in
.web-tests/reports/ - Display summary of issues found
Output Structure
your-repo/
└── .web-tests/
├── scripts/
│ └── check-links-2025-10-23.js
└── reports/
└── check-links-2025-10-23.md
Report Contents
The report will include:
- Summary - Total issues found
- Details - Each issue with location and description
- Severity - Critical, Warning, Info
- Suggestions - How to fix each issue
Examples
# Check for broken links
/check --check-type links
# Check for console errors on specific page
/check --url http://localhost:3001/dashboard --check-type console
# Full health check
/check --check-type all
# Check accessibility
/check --url http://localhost:3001 --check-type a11y
What Gets Checked
Links:
- External links (status codes)
- Internal links (navigation)
- Anchor links
- Download links
Console:
- JavaScript errors
- Network failures
- Console warnings
Images:
- Missing images (404s)
- Broken src attributes
- Missing alt text
Accessibility:
- Missing ARIA labels
- Color contrast (basic)
- Semantic HTML
- Keyboard navigation
Performance:
- Page load time
- Resource sizes
- Number of requests
Tips
- Run before deployment - Catch issues early
- Check after changes - Verify nothing broke
- Commit reports - Track issues over time
- Automated quality checks - Quick health check
See Also
/test- Run automated tests/screenshot- Take screenshots