Canonical header

From thedaviddias/Front-End-Checklist · View interactive version

Canonical header is an AI agent skill from the GitHub repository thedaviddias/Front-End-Checklist. Use when auditing metadata, crawlability, structured data, or indexability related to Sync HTML canonical tags and Link headers. Verify the rendered HTML and HTTP response rather than relying only on source files.

How to use this skill

Skill file

Sync HTML canonical tags and Link headers

Conflicting canonical-url signals can lead search engines to ignore both declarations, potentially causing duplicate content issues and incorrect indexing.

Quick Reference

Check

Compare the HTML canonical tag with the HTTP Link header to ensure they point to the exact same URL.

Fix

Update either the HTML tag or the HTTP header so that they provide a consistent canonical URL signal.

Explain

Explain the risks of sending conflicting technical SEO signals to search engine crawlers.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Sync HTML canonical tags and Link headers. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance,

see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/canonical-header

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.