Seo Optimizer
by @veeramanikandanr48
This skill should be used when analyzing HTML/CSS websites for SEO optimization, fixing SEO issues, generating SEO reports, or implementing SEO best practices. Use when the user requests SEO audits, optimization, meta tag improvements, schema markup implementation, sitemap generation, or general search engine optimization tasks.
clawhub install seo-optimizerπ About This Skill
name: seo-optimizer description: This skill should be used when analyzing HTML/CSS websites for SEO optimization, fixing SEO issues, generating SEO reports, or implementing SEO best practices. Use when the user requests SEO audits, optimization, meta tag improvements, schema markup implementation, sitemap generation, or general search engine optimization tasks.
SEO Optimizer
Overview
This skill provides comprehensive SEO optimization capabilities for HTML/CSS websites. It analyzes websites for SEO issues, implements best practices, and generates optimization reports covering all critical SEO aspects including meta tags, heading structure, image optimization, schema markup, mobile optimization, and technical SEO.
When to Use This Skill
Use this skill when the user requests:
Workflow
1. Initial SEO Analysis
Start with comprehensive analysis using the SEO analyzer script:
python scripts/seo_analyzer.py
This script analyzes HTML files and generates a detailed report covering:
Output Options:
--json: Machine-readable JSON format for programmatic processingExample Usage:
# Analyze single file
python scripts/seo_analyzer.py index.htmlAnalyze entire directory
python scripts/seo_analyzer.py ./publicGet JSON output
python scripts/seo_analyzer.py ./public --json
2. Review Analysis Results
The analyzer categorizes findings into three levels:
Critical Issues (π΄) - Fix immediately:
Warnings (β οΈ) - Fix soon for optimal SEO:
Good Practices (β ) - Already optimized:
3. Prioritize and Fix Issues
Address issues in priority order:
#### Priority 1: Critical Issues
Missing or Poor Title Tags:
Primary Keyword - Secondary Keyword | Brand Name
Missing Meta Descriptions:
Missing H1 or Multiple H1s:
Images Without Alt Text:
Missing HTML Lang Attribute:
#### Priority 2: Important Optimizations
Viewport Meta Tag (critical for mobile SEO):
Charset Declaration:
Open Graph Tags (for social media sharing):
Twitter Card Tags:
Canonical URL:
#### Priority 3: Advanced Optimization
Schema Markup - Refer to references/schema_markup_guide.md for detailed implementation. Common types:
Example implementation:
4. Generate or Update Sitemap
After fixing issues, generate an XML sitemap:
python scripts/generate_sitemap.py [output_file]
Example:
# Generate sitemap for website
python scripts/generate_sitemap.py ./public https://example.comSpecify output location
python scripts/generate_sitemap.py ./public https://example.com ./public/sitemap.xml
The script:
After generation: 1. Upload sitemap.xml to website root 2. Add reference to robots.txt 3. Submit to Google Search Console and Bing Webmaster Tools
5. Update robots.txt
Use the template from assets/robots.txt and customize:
User-agent: *
Allow: /Block sensitive directories
Disallow: /admin/
Disallow: /private/Reference your sitemap
Sitemap: https://yourdomain.com/sitemap.xml
Place robots.txt in website root directory.
6. Verify and Test
After implementing fixes:
Local Testing: 1. Run the SEO analyzer again to verify fixes 2. Check that all critical issues are resolved 3. Ensure no new issues were introduced
Online Testing: 1. Deploy changes to production 2. Test with Google Rich Results Test: https://search.google.com/test/rich-results 3. Validate schema markup: https://validator.schema.org/ 4. Check mobile-friendliness: https://search.google.com/test/mobile-friendly 5. Monitor in Google Search Console
7. Ongoing Optimization
Regular maintenance:
Common Optimization Patterns
Pattern 1: New Website Setup
For a brand new HTML/CSS website:
1. Run initial analysis: python scripts/seo_analyzer.py ./public
2. Add essential meta tags to all pages (title, description, viewport)
3. Ensure proper heading structure (one H1 per page)
4. Add alt text to all images
5. Implement organization schema on homepage
6. Generate sitemap: python scripts/generate_sitemap.py ./public https://yourdomain.com
7. Create robots.txt from template
8. Deploy and submit sitemap to search engines
Pattern 2: Existing Website Audit
For an existing website needing optimization:
1. Run comprehensive analysis: python scripts/seo_analyzer.py ./public
2. Identify and prioritize issues (critical first)
3. Fix critical issues across all pages
4. Add missing Open Graph and Twitter Card tags
5. Implement schema markup for appropriate pages
6. Regenerate sitemap with updates
7. Verify fixes with analyzer
8. Deploy and monitor
Pattern 3: Single Page Optimization
For optimizing a specific page:
1. Analyze specific file: python scripts/seo_analyzer.py page.html
2. Fix identified issues
3. Optimize title and meta description for target keywords
4. Ensure proper heading hierarchy
5. Add appropriate schema markup for page type
6. Verify with analyzer
7. Update sitemap if new page
Pattern 4: Blog Post Optimization
For blog posts and articles:
1. Ensure unique title (50-60 chars) with target keyword
2. Write compelling meta description (150-160 chars)
3. Use single H1 for article title
4. Implement proper H2/H3 hierarchy for sections
5. Add alt text to all images
6. Implement Article or BlogPosting schema (see references/schema_markup_guide.md)
7. Add Open Graph and Twitter Card tags for social sharing
8. Include author information
9. Add breadcrumb schema for navigation
Reference Materials
Detailed Guides
references/seo_checklist.md:
Comprehensive checklist covering all SEO aspects:
Reference this for detailed specifications on any SEO element.
references/schema_markup_guide.md:
Complete guide for implementing schema.org structured data:
Reference this when implementing schema markup for any content type.
Scripts
scripts/seo_analyzer.py:
Python script for automated SEO analysis. Analyzes HTML files for common issues and generates detailed reports. Can output text or JSON format. Deterministic and reliable for repeated analysis.
scripts/generate_sitemap.py:
Python script for generating XML sitemaps. Automatically crawls directories, estimates priorities and change frequencies, and generates properly formatted sitemaps ready for submission to search engines.
Assets
assets/robots.txt:
Template robots.txt file with common configurations and comments. Customize for specific needs and place in website root directory.
Key Principles
1. User-First: Optimize for users first, search engines second. Good user experience leads to better SEO.
2. Unique Content: Every page should have unique title, description, and H1. Duplicate content hurts SEO.
3. Mobile-First: Google uses mobile-first indexing. Always include viewport meta tag and ensure mobile responsiveness.
4. Accessibility = SEO: Accessible websites (alt text, semantic HTML, proper headings) rank better.
5. Quality Over Quantity: Substantial, valuable content ranks better than thin content. Aim for comprehensive pages.
6. Technical Foundation: Fix critical technical issues (missing tags, broken structure) before advanced optimization.
7. Structured Data: Schema markup helps search engines understand content and can lead to rich results.
8. Regular Updates: SEO is ongoing. Keep content fresh, monitor analytics, and adapt to algorithm changes.
9. Natural Language: Write for humans using natural language. Avoid keyword stuffing.
10. Validation: Always validate changes with testing tools before deploying to production.
Tips for Maximum Impact
, , , , , )Quick Reference Commands
# Analyze single file
python scripts/seo_analyzer.py index.htmlAnalyze entire website
python scripts/seo_analyzer.py ./publicGenerate sitemap
python scripts/generate_sitemap.py ./public https://example.comGet JSON analysis output
python scripts/seo_analyzer.py ./public --json