seo-analyzer
14
总安装量
11
周安装量
#23448
全站排名
安装命令
npx skills add https://github.com/loo-y/seo-analyzer-skill --skill seo-analyzer
Agent 安装分布
gemini-cli
7
claude-code
7
antigravity
6
windsurf
6
codex
6
opencode
6
Skill 文档
SEO Analyzer Skill
åºäº Google 宿¹ææ¡£ç SEO èªå¨æ£æµå·¥å ·ãèªå¨åæç½åçææ¯ SEOãå å®¹å æ°æ®ãæ§è½ä½éªå龿¥ç»æï¼è¾åºç¬¦å Google æä½³å®è·µçæ£æµæ¥åã
ä½¿ç¨æ¹æ³
èªå¨æ¨¡å¼ (æ¨è)
åªéåè¯ agent æ£æ¥æä¸ª URLï¼skill ä¼èªå¨å®æææå·¥ä½ï¼
python skills/seo-analyzer/scripts/seo_analyzer.py --auto <url>
Skill ä¼èªå¨:
- æ£æ¥ agent-browser æ¯å¦å·²å®è£
- 妿已å®è£ ï¼è°ç¨ agent-browser è·å页é¢å 容
- æ§è¡å®æ´ç SEO æ£æ¥
- çæè¯¦ç»çæ£æµæ¥å
æå¨æ¨¡å¼
妿 agent-browser æªå®è£ ï¼å¯ä»¥ä½¿ç¨æå¨æ¨¡å¼ï¼
# æ¹å¼1: 仿件åæ
python skills/seo-analyzer/scripts/seo_analyzer.py page.html <url>
# æ¹å¼2: ä» stdin 读å (éè¦å
æå¨è·å HTML)
agent-browser get source > page.html
python seo_analyzer.py page.html <url>
å¯¹äº Agent çè°ç¨æ¹å¼
å½ç¨æ·è¯·æ±åææä¸ª URL æ¶ï¼
# 使ç¨èªå¨æ¨¡å¼
python skills/seo-analyzer/scripts/seo_analyzer.py --auto https://example.com
Agent å é¨ä¼ï¼
- è°ç¨
check_agent_browser_available()æ£æ¥ agent-browser - 妿å¯ç¨ï¼è°ç¨
fetch_page_with_agent_browser(url)è·åé¡µé¢ - 妿ä¸å¯ç¨ï¼æç¤ºç¨æ·å®è£ agent-browser
- è°ç¨
analyze_page()æ§è¡ SEO åæ - è¾åºæ ¼å¼åæ¥å
Alternative – save to file first:
# Step 1: Open page
agent-browser open <url> --timeout 30000
# Step 2: Save HTML to file
agent-browser get source > /tmp/page.html
# Step 3: Run analysis
python skills/seo-analyzer/scripts/seo_analyzer.py /tmp/page.html <url>
Command-line Options
# Analyze HTML file
python skills/seo-analyzer/scripts/seo_analyzer.py page.html https://example.com
# Read from stdin (pipe from agent-browser)
agent-browser get source | python skills/seo_analyzer.py - https://example.com
# Output in JSON format (for programmatic use)
python seo_analyzer.py page.html https://example.com --json
Workflow
- Crawl the URL – Use agent-browser to load the page and capture HTML
- Extract page content – Use
agent-browser get sourceto get HTML - Run SEO checks – Pass HTML to seo_analyzer.py for evaluation
- Generate report – Output findings with severity levels and recommendations
For Agents: How to Analyze a URL
When asked to analyze a website’s SEO, follow these steps:
# 1. Open the URL with agent-browser
agent-browser open <target_url> --timeout 30000
# 2. Get the HTML source from the browser
agent-browser get source > /tmp/target_page.html
# 3. Run the SEO analyzer
python skills/seo-analyzer/scripts/seo_analyzer.py /tmp/target_page.html <target_url>
Or as a single command:
agent-browser open <target_url> --timeout 30000 && agent-browser get source | python skills/seo-analyzer/scripts/seo_analyzer.py - <target_url>
agent-browser open –timeout 30000
### Step 2: Extract the page HTML
After the page loads, get the HTML content:
agent-browser get source
Or use get text to extract visible content:
agent-browser get text “body”
### Step 3: Save HTML to file and run analysis
Write the HTML to a file, then run the analyzer:
```bash
# Save HTML content to a file
echo "<html>...</html>" > /tmp/page.html
# Run the SEO analyzer
python skills/seo-analyzer/scripts/seo_analyzer.py /tmp/page.html <url>
Integrated workflow (recommended)
Use stdin to pass HTML directly:
agent-browser get source | python skills/seo-analyzer/scripts/seo_analyzer.py - <url>
Alternative: Analyze existing HTML file
If you already have HTML content saved:
python skills/seo-analyzer/scripts/seo_analyzer.py /path/to/page.html https://example.com/page
Check Categories
1. Technical Requirements (æç´¢è¦ç´ /ææ¯è¦æ±)
- HTTP status code (must be 200)
- Googlebot accessibility
- Indexable content presence
- HTTPS usage
- robots.txt blocking detection
- noindex directive check
2. Title Tag (æ é¢é¾æ¥)
- Presence of
<title>element - Uniqueness across pages
- Descriptive, non-generic text
- Avoid keyword stuffing
- Proper length (not truncated)
- Brand inclusion if appropriate
3. Meta Description (çæ®µ)
- Presence of
<meta name="description"> - Unique per page
- Descriptive, summarizes content
- Not keyword-stuffed
- Appropriate length
4. Headings Structure (SEOæ°ææå)
- H1 presence and uniqueness
- Logical heading hierarchy (H1âH2âH3)
- Heading text is descriptive
- Content is organized with headings
5. Link Accessibility (龿¥)
- Links use
<a href="...">format - Anchor text is descriptive
- No empty links
- No excessive link clustering
- External links use appropriate rel attributes (nofollow, sponsored, ugc)
6. Image Optimization (å¾å)
- Images have alt attributes
- Alt text is descriptive
- Images are near relevant content
7. Structured Data (ç»æåæ°æ®)
- JSON-LD, Microdata, or RDFa presence
- Valid schema.org types
- Required properties for supported types
- Content is visible to users
- Not blocked by robots.txt or noindex
8. URL Structure (ç½åç»æ)
- Descriptive URLs (not random IDs)
- Human-readable
- Logical directory structure
- Uses hyphens, not underscores
9. Canonical URL (è§èå)
- Canonical tag presence
- Points to preferred URL
- HTTPS preferred over HTTP
- Consistent with actual URL
10. Content Quality (å建å®ç¨å¯é ä»¥ç¨æ·ä¸ºä¸å¿çå 容)
- Unique, original content
- Well-written, readable text
- No spelling/grammar errors
- Content is current/updated
- Provides value to users
11. Mobile-Friendliness (ç§»å¨ç½ç«)
- Mobile-compatible design
- Touch-friendly elements
- Readable without zooming
12. Core Web Vitals (Core Web Vitals)
- LCP < 2.5s
- INP < 200ms
- CLS < 0.1 (Note: Requires JavaScript runtime measurement)
Report Format
# SEO Analysis Report
URL: <analyzed url>
Timestamp: <analysis time>
## Summary
- Total Issues: <count>
- Critical: <count>
- Warnings: <count>
- Passed: <count>
## Critical Issues
1. [Issue name]
- Description
- Location: <HTML element/selector>
- Recommendation
- Reference: seo-docs/<category>/<file>.md
## Warnings
1. [Issue name]
- ...
## Passed Checks
- [Check name]
Recommendations Priority
- Critical: Must fix (blocks indexing/ranking)
- Warning: Should fix (impacts performance)
- Info: Nice to have (improves appearance)
Reference Documents
Key seo-docs for SEO analysis:
seoåºç¡ç¥è¯/seoæ°ææå.md– General SEO best practicesæç´¢è¦ç´ /ææ¯è¦æ±.md– Technical requirementsæååæç´¢ç»æåç°/æ é¢é¾æ¥.md– Title tag guidelinesæååæç´¢ç»æåç°/çæ®µ.md– Meta description guidelinesæååæç´¢ç»æåç°/ç»æåæ°æ®/äºè§£ç»æåæ°æ®ç工使¹å¼.md– Structured dataæååç¼å ¥ç´¢å¼/龿¥.md– Link accessibilityæååç¼å ¥ç´¢å¼/è§èå/å¦ä½ä½¿ç¨relcanonical.md– Canonical URLsæååç¼å ¥ç´¢å¼/robots.txt/æ¦è§.md– robots.txt rulesæååæç´¢ç»æåç°/ç½é¡µä½éª/Core Web Vitals.md– Core Web Vitals
Limitations
- Cannot measure Core Web Vitals without JavaScript runtime
- Cannot verify if page is actually indexed in Google
- Cannot access server configuration (SSL, redirects)
- Content quality assessment is heuristic-based
- Mobile-friendliness is approximate without device simulation
Integration with agent-browser
When analyzing a page:
- Open page:
agent-browser open <url> --timeout 30000 - Get HTML: Use browser’s get source function
- Parse and analyze using SEO rules from seo-docs
- Report findings with specific element selectors for fixes