URL validation and contextual analysis specialist. Use when validating links, analyzing URL context, extracting links from content, or ensuring link appropriateness...
This skill validates URLs both technically and contextually, ensuring links are functional and appropriate for their context.
This skill includes Python helper scripts in scripts/:
validate_urls.py: Validates URLs from files or command line. Checks HTTP status codes, redirects, and accessibility. Outputs JSON with validation results.
# Validate URLs from file
python scripts/validate_urls.py document.md
# Validate single URL
python scripts/validate_urls.py --url https://example.com
Validate all URLs in this document
Check if these links are appropriate for their context
Extract and analyze all links in this content
Using Helper Script:
The skill includes a Python helper script for URL validation:
# Validate URLs from a file
python scripts/validate_urls.py document.md
# Validate a single URL
python scripts/validate_urls.py --url https://example.com
Checks:
Evaluates:
Categorizes:
Input: Validate URLs in blog post
Output:
## URL Analysis: Blog Post
### Technical Validation
**1. https://example.com/article**
- **Status**: 200 OK
- **Response Time**: 320ms
- **SSL**: Valid
- **Redirects**: None
**2. https://old-site.com/page**
- **Status**: 301 → https://new-site.com/page
- **Issue**: Redirect chain (should update link)
- **Fix**: Update to final destination
**3. https://broken-link.com**
- **Status**: 404 Not Found
- **Issue**: Broken link
- **Fix**: Remove or find alternative
### Contextual Analysis
**4. https://example.com/article**
- **Link Text**: "Learn more about React"
- **Destination**: React documentation
- **Relevance**: High ✓
- **Status**: Appropriate
**5. https://example.com/homepage**
- **Link Text**: "Advanced React patterns"
- **Destination**: Homepage (not specific article)
- **Relevance**: Low ✗
- **Issue**: Link text doesn't match destination
- **Fix**: Link to specific article or update link text