fixing-metadata
ibelick/ui-skills
Audit and fix HTML metadata, Open Graph tags, canonical URLs, and structured data for SEO and social sharing.
What is fixing-metadata?
Fixes missing or incorrect HTML metadata including titles, descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD, and robots directives. Use when adding SEO metadata, fixing social previews, setting up new pages, or auditing metadata correctness across your site.
- Audit page titles, meta descriptions, and canonical URLs for correctness and duplication
- Fix Open Graph and Twitter card metadata for accurate social share previews
- Validate and set up JSON-LD structured data without inventing false content
- Configure robots directives, noindex rules, and indexing behavior
- Ensure favicon, apple-touch-icon, manifest, and theme-color are properly set
- Verify metadata consistency across locale and alternate language pages
How to install fixing-metadata
npx skills add https://github.com/ibelick/ui-skills --skill fixing-metadataHow to use fixing-metadata
- 1.Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)
- 2.Audit against priority rules: fix critical issues (duplicates, indexing) first
- 3.Ensure title, description, canonical, and og:url all agree with each other
- 4.Verify social cards render correctly on a real URL, not localhost
- 5.Apply fixes with minimal diffs scoped to metadata only
Use cases
- Adding or updating page titles and descriptions across a site
- Implementing Open Graph tags to improve social media sharing previews
- Setting up canonical URLs to prevent duplicate content issues
- Configuring JSON-LD structured data for search engine understanding
- Fixing metadata on new marketing pages or shareable links
- Frontend developers building or maintaining SEO-critical pages
- Full-stack developers shipping new pages or marketing sites
- SEO specialists auditing metadata correctness
- Teams implementing social sharing features
fixing-metadata FAQ
No. Keep diffs minimal and scoped to metadata only. Do not refactor frameworks or SEO libraries unless explicitly requested.
Use noindex only for private, duplicate, or non-public pages. Previews or staging pages should be noindex by default when possible.
No. Only add JSON-LD when it clearly maps to real page content. Do not invent ratings, reviews, prices, or organization details.
Test social cards on a real URL (not localhost) using social platform preview tools. Ensure og:url matches the canonical URL and images use absolute URLs.
Every page must have a safe title and description. Shareable or searchable pages should also have Open Graph title, description, image, and canonical URL.
Full instructions (SKILL.md)
Source of truth, from ibelick/ui-skills.
name: fixing-metadata description: > Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding SEO metadata, fixing social share previews, reviewing Open Graph tags, setting up canonical URLs, or shipping new pages that need correct meta tags. version: 1.0.1 license: MIT
Workflow
- Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)
- Audit against the priority rules below — fix critical issues (duplicates, indexing) first
- Ensure title, description, canonical, and og:url all agree with each other
- Verify social cards render correctly on a real URL, not localhost
- Keep diffs minimal and scoped to metadata only — do not refactor unrelated code
when to apply
Reference these guidelines when:
- adding or changing page titles, descriptions, canonical, robots
- implementing Open Graph or Twitter card metadata
- setting favicons, app icons, manifest, theme-color
- building shared SEO components or layout metadata defaults
- adding structured data (JSON-LD)
- changing locale, alternate languages, or canonical routing
- shipping new pages, marketing pages, or shareable links
rule categories by priority
| priority | category | impact |
|---|---|---|
| 1 | correctness and duplication | critical |
| 2 | title and description | high |
| 3 | canonical and indexing | high |
| 4 | social cards | high |
| 5 | icons and manifest | medium |
| 6 | structured data | medium |
| 7 | locale and alternates | low-medium |
| 8 | tool boundaries | critical |
quick reference
1. correctness and duplication (critical)
- define metadata in one place per page, avoid competing systems
- do not emit duplicate title, description, canonical, or robots tags
- metadata must be deterministic, no random or unstable values
- escape and sanitize any user-generated or dynamic strings
- every page must have safe defaults for title and description
2. title and description (high)
- every page must have a title
- use a consistent title format across the site
- keep titles short and readable, avoid stuffing
- shareable or searchable pages should have a meta description
- descriptions must be plain text, no markdown or quote spam
3. canonical and indexing (high)
- canonical must point to the preferred URL for the page
- use noindex only for private, duplicate, or non-public pages
- robots meta must match actual access intent
- previews or staging pages should be noindex by default when possible
- paginated pages must have correct canonical behavior
4. social cards (high)
- shareable pages must set Open Graph title, description, and image
- Open Graph and Twitter images must use absolute URLs
- prefer correct image dimensions and stable aspect ratios
- og:url must match the canonical URL
- use a sensible og:type, usually website or article
- set twitter:card appropriately, summary_large_image by default
5. icons and manifest (medium)
- include at least one favicon that works across browsers
- include apple-touch-icon when relevant
- manifest must be valid and referenced when used
- set theme-color intentionally to avoid mismatched UI chrome
- icon paths should be stable and cacheable
6. structured data (medium)
- do not add JSON-LD unless it clearly maps to real page content
- JSON-LD must be valid and reflect what is actually rendered
- do not invent ratings, reviews, prices, or organization details
- prefer one structured data block per page unless required
7. locale and alternates (low-medium)
- set the html lang attribute correctly
- set og:locale when localization exists
- add hreflang alternates only when pages truly exist
- localized pages must canonicalize correctly per locale
8. tool boundaries (critical)
- prefer minimal changes, do not refactor unrelated code
- do not migrate frameworks or SEO libraries unless requested
- follow the project's existing metadata pattern (Next.js metadata API, react-helmet, manual head, etc.)
review guidance
- fix critical issues first (duplicates, canonical, indexing)
- ensure title, description, canonical, and og:url agree
- verify social cards on a real URL, not localhost
- prefer stable, boring metadata over clever or dynamic
- keep diffs minimal and scoped to metadata only
Related skills
More from ibelick/ui-skills and the wider catalog.
fixing-motion-performance
Audit and fix animation performance issues—layout thrashing, compositor properties, scroll-linked motion, and blur effects.
baseline-ui
Enforce UI baseline constraints to prevent AI-generated interface slop.
fixing-accessibility
Audit and fix HTML accessibility issues including ARIA labels, keyboard navigation, and focus management.
ui-skills-root
Use before UI-related work to select the smallest useful UI Skills context through the ui-skills CLI.