SEO Optimization
Intro
SEO is two jobs: make the page understandable to crawlers (titles,
headings, structured data, sitemap, canonicals) and make it fast and
usable for humans (Core Web Vitals, mobile, HTTPS). Both feed the
same ranking signals.
Overview
On-page SEO
- Title tags: unique per page, 50–60 characters, primary
keyword near the start.
- Meta descriptions: 120–160 characters, with a call to action,
unique per page.
- Headings: one
<h1> per page matching the topic; logical
<h2>–<h6> hierarchy without skipping levels.
- Alt text: descriptive, concise (≤125 chars), keywords used
naturally. Decorative images use
alt="".
- Internal links: descriptive anchor text — never "click here".
- URLs: short, lowercase, hyphen-separated, include the
primary keyword.
- Content: answer the user's query comprehensively; use
related terms naturally rather than keyword-stuffing.
Crawling and indexing
- robots.txt at the site root: allow important paths, block
admin and staging.
- XML sitemap lists all indexable pages, excludes
noindex
pages, submitted to Search Console.
- Canonicals on every page (
<link rel="canonical">) to
prevent duplicate content.
- Hreflang for multilingual sites
(
<link rel="alternate" hreflang="en"> per language) with a
self-referencing entry and x-default.
- HTTP status codes: 200 for live, 301 for permanent redirects,
404 for gone. No soft 404s.
- Redirect chains: at most one hop. Fix chains to point
directly to the final URL.
- Index control:
<meta name="robots" content="noindex"> on
pages that should not rank.
Structured data (JSON-LD)
- Use JSON-LD in
<script type="application/ld+json"> in the
<head>. Prefer it over Microdata or RDFa.
- Common types:
Article, Product, FAQPage, BreadcrumbList,
Organization, LocalBusiness.
@context: "https://schema.org" and the most specific @type
available.
- Match structured data to visible page content — never add data
that is not shown on the page.
- Validate with Google Rich Results Test before deploying.
- Add
BreadcrumbList for hierarchical navigation.
Core Web Vitals
- LCP (Largest Contentful Paint): target < 2.5s. Preload the
LCP image, use responsive
srcset, inline critical CSS, defer
non-critical stylesheets.
- INP (Interaction to Next Paint): target < 200ms. Break up
long tasks (>50ms) with
requestIdleCallback or
scheduler.yield(). Minimize main-thread work in interaction
handlers. Debounce rapid input events.
- CLS (Cumulative Layout Shift): target < 0.1. Set explicit
width and height on images and video. Reserve space for ads
and embeds. Avoid inserting content above the fold after initial
render. Use font-display: swap with preloaded fonts.
Page speed
- Inline critical CSS and defer non-critical JS.
- Compress images with WebP/AVIF and provide fallbacks; lazy-load
below-fold images.
- Enable HTTP/2 or HTTP/3 for multiplexed requests.
- Serve static assets from a CDN to reduce TTFB.
- Minify HTML/CSS/JS and enable Brotli or gzip.
- Audit with Lighthouse:
npx lighthouse <url> --output=json.
Mobile-first indexing
- Google indexes the mobile version, so ensure content parity with
desktop.
- Responsive design preferred: same URL, same HTML, CSS adapts.
- Viewport tag:
<meta name="viewport" content="width=device-width, initial-scale=1">.
- Base font size at least 16px so text is readable without zooming.
- No horizontal scrolling at any viewport width.
- Touch targets ≥ 48×48 CSS pixels with 8px spacing.
- Verify with Chrome DevTools device emulation and Google's
Mobile-Friendly Test.
Gotchas
Agent-specific failure modes — provider-neutral pause-and-self-check items:
- Writing generic or duplicate title tags across pages. Title tags must be unique per page and lead with the primary keyword. Duplicate or generic titles ("Home | Acme" on every page) reduce click-through rate and confuse crawlers about which page to rank for a given query.
- Adding structured data that does not match visible page content. A
Product schema with a price not shown on the page, or an Article schema on a non-article page, fails Google's validation and may trigger manual actions. Structured data must reflect exactly what the user sees.
- Creating redirect chains longer than one hop. Each additional hop adds latency and loses link equity. A chain A → B → C → D should be collapsed to a direct A → D redirect. Check for chains after any URL restructuring.
- Deploying pages without a canonical tag. Without
<link rel="canonical">, a page accessible at multiple URLs (HTTP vs HTTPS, trailing slash, query parameters) fragments its link equity across variants. Every indexable page needs a self-referencing canonical even when there are no obvious duplicates.
- Optimizing for average load time instead of Core Web Vitals p75. Google's ranking signals are p75 LCP, INP, and CLS — not average page load time. A fast average with a slow p75 LCP still ranks poorly. Measure and optimize the 75th-percentile field data, not only Lighthouse scores.
- Using
noindex together with Disallow in robots.txt on the same URLs. Disallow prevents crawling; if the page is also noindex, crawlers cannot discover the directive. Index control via noindex requires the page to remain crawlable. Use one or the other, not both.
- Shipping structured data changes without validating in the Rich Results Test. Syntax errors in JSON-LD prevent rich results from appearing, but the page itself renders normally and the error is invisible without explicit testing. Always validate in the Rich Results Test before deploying.
Full reference
Internal linking
- Link from high-authority pages to important pages that need
ranking signals.
- Create content hubs: a pillar page links to cluster pages and
back.
- Limit links per page to a reasonable number (under ~100).
- Fix orphan pages — every indexable page should be reachable via
internal links.
- Use breadcrumbs for hierarchical navigation and search engine
context.
Security and trust
- Serve every page over HTTPS.
- Set HSTS:
Strict-Transport-Security: max-age=31536000; includeSubDomains.
- No mixed content (HTTP resources on HTTPS pages).
- Set
X-Content-Type-Options: nosniff and X-Frame-Options.
- Configure a Content Security Policy.
- Surface E-E-A-T signals: author bios, about pages, contact info,
reviews and certifications where relevant.
Technical SEO checklist
A condensed actionable checklist (full version in
references/technical-seo-checklist.md):
Crawling and indexing
Canonicals and duplicates
Performance
Structured data
JSON-LD examples
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Article Title",
"author": { "@type": "Person", "name": "Author Name" },
"datePublished": "2025-01-15",
"image": "https://example.com/image.jpg"
}
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Product Name",
"image": "https://example.com/product.jpg",
"description": "Product description",
"offers": {
"@type": "Offer",
"price": "29.99",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is the return policy?",
"acceptedAnswer": {
"@type": "Answer",
"text": "You can return items within 30 days."
}
}]
}
Anti-patterns
- Stuffing keywords into titles, alt text, or body copy
- Adding structured data that does not match visible content
- Using "click here" or bare URLs as anchor text
- Letting redirect chains accumulate over time
- Lazy-loading the LCP image (defeats the preload)
- Treating mobile as an afterthought when Google indexes mobile
first
- Blocking CSS or JS in
robots.txt — Googlebot needs them to
render
References
1---2name: seo-optimization3description: |4 SEO — on-page, technical, structured data, Core Web Vitals, and mobile-first indexing. Use when optimizing a website for search engines, adding meta tags or structured data, fixing Core Web Vitals, or auditing technical SEO.5metadata:6 source: https://skillmd.com/skills/projectious-work/seo-optimization7 processkit:8 apiVersion: processkit.projectious.work/v19 id: SKILL-seo-optimization10 version: "1.1.0"11 created: 2026-04-06T00:00:00Z12 category: design13---1415# SEO Optimization1617## Intro1819SEO is two jobs: make the page understandable to crawlers (titles,20headings, structured data, sitemap, canonicals) and make it fast and21usable for humans (Core Web Vitals, mobile, HTTPS). Both feed the22same ranking signals.2324## Overview2526### On-page SEO2728- **Title tags:** unique per page, 50–60 characters, primary29 keyword near the start.30- **Meta descriptions:** 120–160 characters, with a call to action,31 unique per page.32- **Headings:** one `<h1>` per page matching the topic; logical33 `<h2>`–`<h6>` hierarchy without skipping levels.34- **Alt text:** descriptive, concise (≤125 chars), keywords used35 naturally. Decorative images use `alt=""`.36- **Internal links:** descriptive anchor text — never "click here".37- **URLs:** short, lowercase, hyphen-separated, include the38 primary keyword.39- **Content:** answer the user's query comprehensively; use40 related terms naturally rather than keyword-stuffing.4142### Crawling and indexing4344- **robots.txt** at the site root: allow important paths, block45 admin and staging.46- **XML sitemap** lists all indexable pages, excludes `noindex`47 pages, submitted to Search Console.48- **Canonicals** on every page (`<link rel="canonical">`) to49 prevent duplicate content.50- **Hreflang** for multilingual sites51 (`<link rel="alternate" hreflang="en">` per language) with a52 self-referencing entry and `x-default`.53- **HTTP status codes:** 200 for live, 301 for permanent redirects,54 404 for gone. No soft 404s.55- **Redirect chains:** at most one hop. Fix chains to point56 directly to the final URL.57- **Index control:** `<meta name="robots" content="noindex">` on58 pages that should not rank.5960### Structured data (JSON-LD)6162- Use JSON-LD in `<script type="application/ld+json">` in the63 `<head>`. Prefer it over Microdata or RDFa.64- Common types: `Article`, `Product`, `FAQPage`, `BreadcrumbList`,65 `Organization`, `LocalBusiness`.66- `@context: "https://schema.org"` and the most specific `@type`67 available.68- Match structured data to visible page content — never add data69 that is not shown on the page.70- Validate with Google Rich Results Test before deploying.71- Add `BreadcrumbList` for hierarchical navigation.7273### Core Web Vitals7475- **LCP (Largest Contentful Paint):** target < 2.5s. Preload the76 LCP image, use responsive `srcset`, inline critical CSS, defer77 non-critical stylesheets.78- **INP (Interaction to Next Paint):** target < 200ms. Break up79 long tasks (>50ms) with `requestIdleCallback` or80 `scheduler.yield()`. Minimize main-thread work in interaction81 handlers. Debounce rapid input events.82- **CLS (Cumulative Layout Shift):** target < 0.1. Set explicit83 `width` and `height` on images and video. Reserve space for ads84 and embeds. Avoid inserting content above the fold after initial85 render. Use `font-display: swap` with preloaded fonts.8687### Page speed8889- Inline critical CSS and defer non-critical JS.90- Compress images with WebP/AVIF and provide fallbacks; lazy-load91 below-fold images.92- Enable HTTP/2 or HTTP/3 for multiplexed requests.93- Serve static assets from a CDN to reduce TTFB.94- Minify HTML/CSS/JS and enable Brotli or gzip.95- Audit with Lighthouse: `npx lighthouse <url> --output=json`.9697### Mobile-first indexing9899- Google indexes the mobile version, so ensure content parity with100 desktop.101- Responsive design preferred: same URL, same HTML, CSS adapts.102- Viewport tag:103 `<meta name="viewport" content="width=device-width, initial-scale=1">`.104- Base font size at least 16px so text is readable without zooming.105- No horizontal scrolling at any viewport width.106- Touch targets ≥ 48×48 CSS pixels with 8px spacing.107- Verify with Chrome DevTools device emulation and Google's108 Mobile-Friendly Test.109110## Gotchas111112Agent-specific failure modes — provider-neutral pause-and-self-check items:113114- **Writing generic or duplicate title tags across pages.** Title tags must be unique per page and lead with the primary keyword. Duplicate or generic titles ("Home | Acme" on every page) reduce click-through rate and confuse crawlers about which page to rank for a given query.115- **Adding structured data that does not match visible page content.** A `Product` schema with a price not shown on the page, or an `Article` schema on a non-article page, fails Google's validation and may trigger manual actions. Structured data must reflect exactly what the user sees.116- **Creating redirect chains longer than one hop.** Each additional hop adds latency and loses link equity. A chain A → B → C → D should be collapsed to a direct A → D redirect. Check for chains after any URL restructuring.117- **Deploying pages without a canonical tag.** Without `<link rel="canonical">`, a page accessible at multiple URLs (HTTP vs HTTPS, trailing slash, query parameters) fragments its link equity across variants. Every indexable page needs a self-referencing canonical even when there are no obvious duplicates.118- **Optimizing for average load time instead of Core Web Vitals p75.** Google's ranking signals are p75 LCP, INP, and CLS — not average page load time. A fast average with a slow p75 LCP still ranks poorly. Measure and optimize the 75th-percentile field data, not only Lighthouse scores.119- **Using `noindex` together with `Disallow` in robots.txt on the same URLs.** `Disallow` prevents crawling; if the page is also `noindex`, crawlers cannot discover the directive. Index control via `noindex` requires the page to remain crawlable. Use one or the other, not both.120- **Shipping structured data changes without validating in the Rich Results Test.** Syntax errors in JSON-LD prevent rich results from appearing, but the page itself renders normally and the error is invisible without explicit testing. Always validate in the Rich Results Test before deploying.121122## Full reference123124### Internal linking125126- Link from high-authority pages to important pages that need127 ranking signals.128- Create content hubs: a pillar page links to cluster pages and129 back.130- Limit links per page to a reasonable number (under ~100).131- Fix orphan pages — every indexable page should be reachable via132 internal links.133- Use breadcrumbs for hierarchical navigation and search engine134 context.135136### Security and trust137138- Serve every page over HTTPS.139- Set HSTS:140 `Strict-Transport-Security: max-age=31536000; includeSubDomains`.141- No mixed content (HTTP resources on HTTPS pages).142- Set `X-Content-Type-Options: nosniff` and `X-Frame-Options`.143- Configure a Content Security Policy.144- Surface E-E-A-T signals: author bios, about pages, contact info,145 reviews and certifications where relevant.146147### Technical SEO checklist148149A condensed actionable checklist (full version in150`references/technical-seo-checklist.md`):151152**Crawling and indexing**153154- [ ] `robots.txt` exists; allows important paths, blocks admin155- [ ] XML sitemap lists indexable pages and is submitted to156 Search Console and Bing Webmaster Tools157- [ ] No orphan pages158- [ ] Redirect chains resolved (max 1 hop), no loops159- [ ] 404s return real 404 status (not soft 404)160- [ ] Removed pages return 410 or redirect to relevant content161162**Canonicals and duplicates**163164- [ ] Every page has a self-referencing or preferred canonical165- [ ] Pagination uses sensible canonical strategy (not all to166 page 1)167- [ ] WWW vs non-WWW redirects configured to one canonical168- [ ] Trailing-slash behavior consistent169- [ ] HTTP redirects to HTTPS170171**Performance**172173- [ ] LCP < 2.5s, INP < 200ms, CLS < 0.1174- [ ] Images have explicit `width`/`height`175- [ ] Above-fold images preloaded; below-fold use `loading="lazy"`176- [ ] Fonts preloaded with `font-display: swap`177- [ ] Critical CSS inlined; non-critical CSS deferred178- [ ] JavaScript deferred or async where possible179- [ ] Brotli/gzip enabled, static assets from CDN180181**Structured data**182183- [ ] JSON-LD format184- [ ] `@context` is `https://schema.org`185- [ ] Most specific `@type` used186- [ ] Fields match visible content187- [ ] Validates clean in Google Rich Results Test188- [ ] `BreadcrumbList` on hierarchical pages189190### JSON-LD examples191192```json193{194 "@context": "https://schema.org",195 "@type": "Article",196 "headline": "Article Title",197 "author": { "@type": "Person", "name": "Author Name" },198 "datePublished": "2025-01-15",199 "image": "https://example.com/image.jpg"200}201```202203```json204{205 "@context": "https://schema.org",206 "@type": "Product",207 "name": "Product Name",208 "image": "https://example.com/product.jpg",209 "description": "Product description",210 "offers": {211 "@type": "Offer",212 "price": "29.99",213 "priceCurrency": "USD",214 "availability": "https://schema.org/InStock"215 }216}217```218219```json220{221 "@context": "https://schema.org",222 "@type": "FAQPage",223 "mainEntity": [{224 "@type": "Question",225 "name": "What is the return policy?",226 "acceptedAnswer": {227 "@type": "Answer",228 "text": "You can return items within 30 days."229 }230 }]231}232```233234### Anti-patterns235236- Stuffing keywords into titles, alt text, or body copy237- Adding structured data that does not match visible content238- Using "click here" or bare URLs as anchor text239- Letting redirect chains accumulate over time240- Lazy-loading the LCP image (defeats the preload)241- Treating mobile as an afterthought when Google indexes mobile242 first243- Blocking CSS or JS in `robots.txt` — Googlebot needs them to244 render245246### References247248- `references/technical-seo-checklist.md` — full checklist by249 category250- [Google Search Central](https://developers.google.com/search)251- [web.dev Core Web Vitals](https://web.dev/vitals/)