Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
npx skills add https://github.com/dallay/opencode-docker --skill seo
The command stays on one line. Scroll horizontally to inspect it before copying.
Prefer a local copy? Download the files currently available to SkillsMP.
Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".
license
MIT
metadata
{"author":"web-quality-skills","version":"1.0"}
SEO optimization
Search engine optimization based on Lighthouse SEO audits and Google Search guidelines. Focus on
technical SEO, on-page optimization, and structured data.
<!-- ❌ Missing or generic --><title>Page</title><title>Home</title><!-- ✅ Descriptive with primary keyword --><title>Blue Widgets for Sale | Premium Quality | Example Store</title>
Title tag guidelines:
50-60 characters (Google truncates ~60)
Primary keyword near the beginning
Unique for every page
Brand name at end (unless homepage)
Action-oriented when appropriate
Meta descriptions
<!-- ❌ Missing or duplicate --><metaname="description"content=""><!-- ✅ Compelling and unique --><metaname="description"content="Shop premium blue widgets with free shipping. 30-day returns. Rated 4.9/5 by 10,000+ customers. Order today and save 20%.">
<!-- ❌ Poor image SEO --><imgsrc="IMG_12345.jpg"><!-- ✅ Optimized image --><imgsrc="blue-widget-product-photo.webp"alt="Blue widget with chrome finish, side view showing control panel"width="800"height="600"loading="lazy">
Image guidelines:
Descriptive filenames with keywords
Alt text describes the image content
Compressed and properly sized
WebP/AVIF with fallbacks
Lazy load below-fold images
Internal linking
<!-- ❌ Non-descriptive --><ahref="/products">Click here</a><ahref="/widgets">Read more</a><!-- ✅ Descriptive anchor text --><ahref="/products/blue-widgets">Browse our blue widget collection</a><ahref="/guides/widget-maintenance">Learn how to maintain your widgets</a>
<!-- ❌ Not mobile-friendly --><metaname="viewport"content="width=1024"><!-- ✅ Responsive viewport --><metaname="viewport"content="width=device-width, initial-scale=1">
Tap targets
/* ❌ Too small for mobile */.small-link {
padding: 4px;
font-size: 12px;
}
/* ✅ Adequate tap target */.mobile-friendly-link {
padding: 12px;
font-size: 16px;
min-height: 48px;
min-width: 48px;
}
Font sizes
/* ❌ Too small on mobile */body {
font-size: 10px;
}
/* ✅ Readable without zooming */body {
font-size: 16px;
line-height: 1.5;
}
International SEO
Hreflang tags
<!-- For multi-language sites --><linkrel="alternate"hreflang="en"href="https://example.com/page"><linkrel="alternate"hreflang="es"href="https://example.com/es/page"><linkrel="alternate"hreflang="fr"href="https://example.com/fr/page"><linkrel="alternate"hreflang="x-default"href="https://example.com/page">