url-analysis
URL validation and contextual analysis specialist. Use when validating links, analyzing URL context, extracting links from content, or ensuring link appropriateness. Combines technical validation with content analysis.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
URL Analysis
This skill validates URLs both technically and contextually, ensuring links are functional and appropriate for their context.
When to Use This Skill
- When validating URLs in content
- When analyzing link context and appropriateness
- When extracting links from documents
- When checking link functionality
- When ensuring link relevance
- When auditing link quality
What This Skill Does
- Technical Validation: Checks HTTP status, redirects, SSL
- Contextual Analysis: Evaluates link appropriateness
- Link Extraction: Extracts and categorizes links
- Content Relevance: Checks if linked content matches context
- Security Analysis: Identifies security concerns
- Quality Assessment: Provides link quality scores
Helper Scripts
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
How to Use
Validate URLs
Validate all URLs in this document
Check if these links are appropriate for their context
Specific Analysis
Extract and analyze all links in this content
Analysis Process
Technical Validation
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:
- HTTP status codes (200, 301, 404, etc.)
- Redirect chains
- Response times
- SSL certificate validity
- URL syntax validity
Contextual Analysis
Evaluates:
- Link text vs. destination content
- Semantic alignment
- Publication date relevance
- Authority of source
- Value to reader
Link Extraction
Categorizes:
- Internal vs. external links
- Anchor links
- File downloads
- API endpoints
Examples
Example 1: URL Validation
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
Best Practices
URL Validation
- Check Status: Verify all links return 200 or appropriate redirect
- Update Redirects: Use final destination, not redirect chains
- Context Matters: Ensure links match their context
- Security: Prefer HTTPS, check SSL validity
- Relevance: Verify linked content matches expectations
Related Use Cases
- Link validation
- Content quality assurance
- SEO link auditing
- Documentation review
- Link extraction and analysis
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-28
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!