canonical-url
What it does
This skill checks that each page declares one preferred address for itself. It is for site owners whose pages can be reached by several addresses, such as with URL parameters.
When to use it
- ✓When pages can be reached through URL parameters, www and non-www versions, or paginated lists.
- ✓When a page has no canonical tag.
- ✓When you want every page to point to its own preferred address.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/canonical-url/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
“Make sure every product page on my store has a canonical tag that points to its clean address.”
5 new skills a week. 1 minute to read.
How it works
The agent adds or corrects the canonical tag in the page head, using absolute web addresses that include the protocol and domain.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Set canonical URLs for all pages
Duplicate content from URL parameters, www vs non-www, or pagination dilutes ranking signals—canonical tags consolidate these signals to the preferred URL.
Quick Reference
- Canonical URLs tell search engines which version of a page to index
- Prevents duplicate content penalties from URL variations
- Use absolute URLs including protocol and domain
- Self-referencing canonicals are a best practice
Check
Verify that this page has a canonical URL tag and that it points to the correct preferred version.
Fix
Add or correct the canonical URL tag in the head section to prevent duplicate content issues.
Explain
Explain how canonical URLs help search engines understand the preferred version of duplicate or similar pages.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Set canonical URLs for all pages. 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-url
FAQ
What problem does a canonical URL solve?
The skill says it stops duplicate content from splitting ranking signals across versions of the same page.
Should a page point to itself?
The skill says self-referencing canonicals are a best practice.
Should the address be relative?
No. The skill recommends absolute URLs with the protocol and domain.
Details
Original description by the author
Use when auditing metadata, crawlability, structured data, or indexability related to Set canonical URLs for all pages. Verify the rendered HTML and HTTP response rather than relying only on source files.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2767
- 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.