Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Audit and fix HTML metadata: page titles, Open Graph tags, canonical URLs, JSON-LD, favicons, and robots directives.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: fixing-metadata3description: >4Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph5tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding6SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs,7or shipping new pages that need correct meta tags.8version: 1.0.19license: MIT10---1112## Workflow13141. Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)152. Audit against the priority rules below — fix critical issues (duplicates, indexing) first163. Ensure title, description, canonical, and og:url all agree with each other174. Verify social cards render correctly on a real URL, not localhost185. Keep diffs minimal and scoped to metadata only — do not refactor unrelated code19## when to apply2021Reference these guidelines when:22- adding or changing page titles, descriptions, canonical, robots23- implementing Open Graph or Twitter card metadata24- setting favicons, app icons, manifest, theme-color25- building shared SEO components or layout metadata defaults26- adding structured data (JSON-LD)27- changing locale, alternate languages, or canonical routing28- shipping new pages, marketing pages, or shareable links2930## rule categories by priority3132| priority | category | impact |33|----------|----------|--------|34| 1 | correctness and duplication | critical |35| 2 | title and description | high |36| 3 | canonical and indexing | high |37| 4 | social cards | high |38| 5 | icons and manifest | medium |39| 6 | structured data | medium |40| 7 | locale and alternates | low-medium |41| 8 | tool boundaries | critical |4243## quick reference4445### 1. correctness and duplication (critical)4647- define metadata in one place per page, avoid competing systems48- do not emit duplicate title, description, canonical, or robots tags49- metadata must be deterministic, no random or unstable values50- escape and sanitize any user-generated or dynamic strings51- every page must have safe defaults for title and description5253### 2. title and description (high)5455- every page must have a title56- use a consistent title format across the site57- keep titles short and readable, avoid stuffing58- shareable or searchable pages should have a meta description59- descriptions must be plain text, no markdown or quote spam6061### 3. canonical and indexing (high)6263- canonical must point to the preferred URL for the page64- use noindex only for private, duplicate, or non-public pages65- robots meta must match actual access intent66- previews or staging pages should be noindex by default when possible67- paginated pages must have correct canonical behavior6869### 4. social cards (high)7071- shareable pages must set Open Graph title, description, and image72- Open Graph and Twitter images must use absolute URLs73- prefer correct image dimensions and stable aspect ratios74- og:url must match the canonical URL75- use a sensible og:type, usually website or article76- set twitter:card appropriately, summary_large_image by default7778### 5. icons and manifest (medium)7980- include at least one favicon that works across browsers81- include apple-touch-icon when relevant82- manifest must be valid and referenced when used83- set theme-color intentionally to avoid mismatched UI chrome84- icon paths should be stable and cacheable8586### 6. structured data (medium)8788- do not add JSON-LD unless it clearly maps to real page content89- JSON-LD must be valid and reflect what is actually rendered90- do not invent ratings, reviews, prices, or organization details91- prefer one structured data block per page unless required9293### 7. locale and alternates (low-medium)9495- set the html lang attribute correctly96- set og:locale when localization exists97- add hreflang alternates only when pages truly exist98- localized pages must canonicalize correctly per locale99100### 8. tool boundaries (critical)101102- prefer minimal changes, do not refactor unrelated code103- do not migrate frameworks or SEO libraries unless requested104- follow the project's existing metadata pattern (Next.js metadata API, react-helmet, manual head, etc.)105106## review guidance107108- fix critical issues first (duplicates, canonical, indexing)109- ensure title, description, canonical, and og:url agree110- verify social cards on a real URL, not localhost111- prefer stable, boring metadata over clever or dynamic112- keep diffs minimal and scoped to metadata only113