SEO Analyzer Skill
Analyze web pages for SEO using curl.
Check Meta Tags
curl -sL "{url}" | python3 -c "
import sys, re
html = sys.stdin.read()
title = re.search(r'<title>(.*?)</title>', html, re.I|re.S)
desc = re.search(r'<meta[^>]*name=["\']description["\'][^>]*content=["\']([^"\']*)["\'\']', html, re.I)
h1s = re.findall(r'<h1[^>]*>(.*?)</h1>', html, re.I|re.S)
print(f'Title: {title.group(1).strip() if title else "MISSING"}')
print(f'Title length: {len(title.group(1).strip()) if title else 0} chars')
print(f'Description: {desc.group(1)[:160] if desc else "MISSING"}')
print(f'H1 tags: {len(h1s)}')
for h in h1s[:3]:
print(f' - {re.sub("<[^>]+>", "", h).strip()}')
"
SEO Checklist
- [ ] Title tag present and 50-60 chars
- [ ] Meta description 150-160 chars
- [ ] Single H1 tag
- [ ] Logical heading hierarchy (H1→H2→H3)
- [ ] Alt text on images
- [ ] Mobile responsive
- [ ] Fast load time
- [ ] HTTPS enabled
- [ ] Clean URL structure
Guidelines
- Always check the actual page, don't assume
- Prioritize issues by impact
- Suggest specific improvements with examples