New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Audit and consolidate duplicate-page URL variants so each page has one preferred canonical URL with matching signals.

skills.sh installs
1.2K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers protocol, host, slash, default-document, extension, case, and tracking-parameter variants, plus conflicting canonical signals
  • Decides between permanent redirects and canonical annotations, and keeps parameters that change primary content as separate pages
  • Checks that redirects, canonical tags, internal links, sitemaps, and hreflang URLs all point to the same preferred URL
  • Requires per-URL evidence of redirect hops, final URL, canonical target, and indexability before a cluster is marked resolved

Install

$ npx -y skills add kostja94/marketing-skills --skill canonical-tag -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SEO Technical: Canonicalization

Determine the preferred URL for each page identity, consolidate duplicate variants, and verify that redirects, canonical annotations, internal links, sitemaps, and localization signals agree.

Scope

Treat these as one duplicate-page canonicalization problem when they expose the same or substantially similar primary content:

  • HTTP and HTTPS;
  • www and non-www hosts, including combined protocol/host variants;
  • trailing-slash and non-trailing-slash paths;
  • repeated path slashes such as /docs//guide;
  • directory defaults such as /docs/ and /docs/index.html;
  • historical extensions such as /guide.html and /guide;
  • case variants such as /Guide and /guide;
  • UTM and other tracking parameters that do not change primary content.

Do not assume that similar-looking URLs are duplicates. Case, parameters, extensions, and slash behavior can identify different resources. Compare response behavior, primary content, and project intent before consolidating.

Inputs and Context

Details

Repository
github.com/kostja94/marketing-skills
Categories
Marketing, SEO & Ads, Backend & APIs
First seen
May 16, 2026

More from kostja94/marketing-skills

All 171

Similar to Canonical Tag

More Marketing, SEO & Ads