canonical-header
What it does
This skill checks that a page's canonical signals agree with each other. It is for site owners and developers who set canonical addresses in both HTML and HTTP headers.
When to use it
- ✓When a page sends both an HTML canonical tag and a Link header.
- ✓When the canonical signals differ between the page and the server response.
- ✓When duplicate content issues show up in search.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/canonical-header/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Compare the canonical tag and the Link header on my product pages and make them match.”
5 new skills a week. 1 minute to read.
How it works
The agent compares the HTML canonical tag with the HTTP Link header and updates one of them so both give the same canonical URL.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
- Ensure the
rel="canonical"tag in your HTML matches theLinkcanonical-url header if both are used - Avoid sending conflicting signals to search engines about the primary version of a page
- Maintain consistency across all methods of declaring your canonical URL
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
FAQ
What goes wrong when they disagree?
The skill says conflicting signals can lead search engines to ignore both declarations.
Which one should I change?
Either one, as long as the final canonical URL is the same in both places.
What problem does this prevent?
Duplicate content issues and incorrect indexing.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2766
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.