Labsco
addyosmani logo

seo

โ˜… 2,500

by addyosmani ยท part of addyosmani/web-quality-skills

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".

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฉ One of 5 skills in the addyosmani/web-quality-skills package โ€” works on its own, and pairs well with its siblings.

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".

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates โ€” shown here so you can audit it before installing. You don't need to read it to use the skill.

by addyosmani

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". npx skills add https://github.com/addyosmani/web-quality-skills --skill seo Download ZIPGitHub2.5k

SEO optimization

Search engine optimization based on Lighthouse SEO audits and Google Search guidelines. Focus on technical SEO, on-page optimization, and structured data.

SEO fundamentals

Search ranking factors (approximate influence):

Factor Influence This Skill Content quality & relevance ~40% Partial (structure) Backlinks & authority ~25% โœ— Technical SEO ~15% โœ“ Page experience (Core Web Vitals) ~10% See Core Web Vitals On-page SEO ~10% โœ“

Technical SEO

Crawlability

robots.txt:

Copy & paste โ€” that's it
# /robots.txt
User-agent: *
Allow: /

# Block admin/private areas
Disallow: /admin/
Disallow: /api/
Disallow: /private/

# Don't block resources needed for rendering
# โŒ Disallow: /static/

Sitemap: https://example.com/sitemap.xml

Meta robots:

Copy & paste โ€” that's it
 
 

 
 

 
 

 
 

Canonical URLs:

Copy & paste โ€” that's it
 

- 

 

- 

 

- 
 

XML sitemap

Copy & paste โ€” that's it
 
 
 
 https://example.com/ 
 2024-01-15 
 daily 
 1.0 
 
 
 https://example.com/products 
 2024-01-14 
 weekly 
 0.8 
 
 

Sitemap best practices:

  • Maximum 50,000 URLs or 50MB per sitemap

  • Use sitemap index for larger sites

  • Include only canonical, indexable URLs

  • Update lastmod when content changes

  • Submit to Google Search Console

URL structure

Copy & paste โ€” that's it
โœ… Good URLs:
https://example.com/products/blue-widget
https://example.com/blog/how-to-use-widgets

โŒ Poor URLs:
https://example.com/p?id=12345
https://example.com/products/item/category/subcategory/blue-widget-2024-sale-discount

URL guidelines:

  • Use hyphens, not underscores

  • Lowercase only

  • Keep short (< 75 characters)

  • Include target keywords naturally

  • Avoid parameters when possible

  • Use HTTPS always

HTTPS & security

Copy & paste โ€” that's it
 
 

 
 

Security headers for SEO trust signals:

Copy & paste โ€” that's it
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

On-page SEO

Title tags

Copy & paste โ€” that's it
 
 Page 
 Home 

 
 Blue Widgets for Sale | Premium Quality | Example Store 

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

Copy & paste โ€” that's it
 
 

 
 

Meta description guidelines:

  • 150-160 characters

  • Include primary keyword naturally

  • Compelling call-to-action

  • Unique for every page

  • Matches page content

Heading structure

Copy & paste โ€” that's it

## Welcome to Our Store

#### Products

# Contact Us

 

# Blue Widgets - Premium Quality

## Product Features

### Durability

 

### Design

## Customer Reviews



## Pricing

Heading guidelines:

  • Single <h1> per page (the main topic)

  • Logical hierarchy (don't skip levels)

  • Include keywords naturally

  • Descriptive, not generic

Image SEO

Copy & paste โ€” that's it
 
 

 
 

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

Copy & paste โ€” that's it
 
 Click here 
 Read more 

 
 Browse our blue widget collection 
 Learn how to maintain your widgets 

Linking guidelines:

  • Descriptive anchor text with keywords

  • Link to relevant internal pages

  • Reasonable number of links per page

  • Fix broken links promptly

  • Use breadcrumbs for hierarchy

Structured data (JSON-LD)

Organization

Copy & paste โ€” that's it
 
{
 "@context": "https://schema.org",
 "@type": "Organization",
 "name": "Example Company",
 "url": "https://example.com",
 "logo": "https://example.com/logo.png",
 "sameAs": [
 "https://twitter.com/example",
 "https://linkedin.com/company/example"
 ],
 "contactPoint": {
 "@type": "ContactPoint",
 "telephone": "+1-555-123-4567",
 "contactType": "customer service"
 }
}
 

Article

Copy & paste โ€” that's it
 
{
 "@context": "https://schema.org",
 "@type": "Article",
 "headline": "How to Choose the Right Widget",
 "description": "Complete guide to selecting widgets for your needs.",
 "image": "https://example.com/article-image.jpg",
 "author": {
 "@type": "Person",
 "name": "Jane Smith",
 "url": "https://example.com/authors/jane-smith"
 },
 "publisher": {
 "@type": "Organization",
 "name": "Example Blog",
 "logo": {
 "@type": "ImageObject",
 "url": "https://example.com/logo.png"
 }
 },
 "datePublished": "2024-01-15",
 "dateModified": "2024-01-20"
}
 

Product

Copy & paste โ€” that's it
 
{
 "@context": "https://schema.org",
 "@type": "Product",
 "name": "Blue Widget Pro",
 "image": "https://example.com/blue-widget.jpg",
 "description": "Premium blue widget with advanced features.",
 "brand": {
 "@type": "Brand",
 "name": "WidgetCo"
 },
 "offers": {
 "@type": "Offer",
 "price": "49.99",
 "priceCurrency": "USD",
 "availability": "https://schema.org/InStock",
 "url": "https://example.com/products/blue-widget"
 },
 "aggregateRating": {
 "@type": "AggregateRating",
 "ratingValue": "4.8",
 "reviewCount": "1250"
 }
}
 

FAQ

Copy & paste โ€” that's it
 
{
 "@context": "https://schema.org",
 "@type": "FAQPage",
 "mainEntity": [
 {
 "@type": "Question",
 "name": "What colors are available?",
 "acceptedAnswer": {
 "@type": "Answer",
 "text": "Our widgets come in blue, red, and green."
 }
 },
 {
 "@type": "Question",
 "name": "What is the warranty?",
 "acceptedAnswer": {
 "@type": "Answer",
 "text": "All widgets include a 2-year warranty."
 }
 }
 ]
}
 

Breadcrumbs

Copy & paste โ€” that's it
 
{
 "@context": "https://schema.org",
 "@type": "BreadcrumbList",
 "itemListElement": [
 {
 "@type": "ListItem",
 "position": 1,
 "name": "Home",
 "item": "https://example.com"
 },
 {
 "@type": "ListItem",
 "position": 2,
 "name": "Products",
 "item": "https://example.com/products"
 },
 {
 "@type": "ListItem",
 "position": 3,
 "name": "Blue Widgets",
 "item": "https://example.com/products/blue-widgets"
 }
 ]
}
 

Validation

Test structured data at:

AI search visibility (emerging)

A class of AI search engines (ChatGPT search, Perplexity, Gemini Overviews) cite web pages from their training and retrieval pipelines, not from the classic ranked results. As of 2026 this is an unstable area โ€” there are no confirmed ranking signals โ€” but a few things are low-cost and won't hurt:

  • Don't block AI crawlers wholesale. OAI-SearchBot, PerplexityBot, GoogleOther, Google-Extended, ClaudeBot, etc. each have separate robots.txt user-agents. Decide per-bot rather than blanket-blocking โ€” a Disallow removes you from that bot's citations.

  • Lean on schema.org Article/Product/FAQPage. AI summarizers parse structured data more reliably than they parse prose layouts. The structured-data examples above are the same ones that help here.

  • Make first-paragraph answers self-contained. Both featured snippets and AI summaries pull short, coherent passages. A definition or direct answer in the first 1-2 sentences is more extractable than the same content buried under marketing prose.

llms.txt โ€” emerging, unproven

llms.txt is a proposed convention (a Markdown index of your site's important pages, served at /llms.txt) for LLMs to consume. As of mid-2026 adoption is ~0.015% of sites and no major AI vendor has confirmed they read it. Treat it as a 5-minute speculative add for content sites โ€” not a meaningful ranking or citation factor โ€” and don't reorganize content around it.

Mobile SEO

Responsive design

Copy & paste โ€” that's it
 
 

 
 

Tap targets

Copy & paste โ€” that's it
/* โŒ 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

Copy & paste โ€” that's it
/* โŒ Too small on mobile */
body {
 font-size: 10px;
}

/* โœ… Readable without zooming */
body {
 font-size: 16px;
 line-height: 1.5;
}

International SEO

Hreflang tags

Copy & paste โ€” that's it
 

- 

- 

- 

- 

Language declaration

Copy & paste โ€” that's it
 
 
 

SEO audit checklist

Critical

  • HTTPS enabled

  • robots.txt allows crawling

  • No noindex on important pages

  • Title tags present and unique

  • Single <h1> per page

High priority

  • Meta descriptions present

  • Sitemap submitted

  • Canonical URLs set

  • Mobile-responsive

  • Core Web Vitals passing

Medium priority

  • Structured data implemented

  • Internal linking strategy

  • Image alt text

  • Descriptive URLs

  • Breadcrumb navigation

Ongoing

  • Fix crawl errors in Search Console

  • Update sitemap when content changes

  • Monitor ranking changes

  • Check for broken links

  • Review Search Console insights

Tools

Tool Use Google Search Console Monitor indexing, fix issues Google PageSpeed Insights Performance + Core Web Vitals Rich Results Test Validate structured data Lighthouse Full SEO audit Screaming Frog Crawl analysis

References