Handles canonical URL setup to fix duplicate content issues and tell search engines which version of a page you want indexed. You'd reach for this when dealing with HTTPS vs HTTP variants, www vs non-www, trailing slashes, or pagination and parameter URLs that create duplicates. Covers both 301 redirects (the strongest signal, use when you can) and canonical tags (for when redirects aren't practical). Includes Next.js metadata patterns and server config snippets for Apache and Nginx. The guidance on avoiding canonical chains and keeping sitemap URLs aligned with canonicals is solid. Works alongside the hreflang and sitemap skills for complete technical SEO coverage.

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

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/kostja94/marketing-skills
Categories
Release Management, Debugging, Marketing & SEO
First seen
May 16, 2026

More from kostja94/marketing-skills

All 172
1inference-sh avatarpress-release-writinginference-sh/skillsPress release writing in AP style with inverted pyramid structure. Covers formatting, datelines, quotes, boilerplates, and fact-checking. Use for: product launc1Kskills.sh installs
2product-on-purpose avatardeliver-release-notesproduct-on-purpose/pm-skillsCreates user-facing release notes that communicate new features, improvements, and fixes in clear, benefit-focused language. Use when shipping updates to commun797skills.sh installs
3posit-dev avatarcreate-release-checklistposit-dev/skillsCreate a release checklist and GitHub issue for an R package. Use when the user asks to "create a release checklist" or "start a release" for an R package.755skills.sh installs
4cap-go avatarcapgo-release-managementcap-go/capgo-skillsGuides the agent through Capgo OTA release workflows including bundle uploads, compatibility checks, channels, cleanup, and encryption key setup. Use when manag749skills.sh installs
5rshankras avatarrelease-reviewrshankras/claude-code-apple-skillsSenior developer-level release review for macOS/iOS apps. Identifies security, privacy, UX, and distribution issues with actionable fixes. Use when preparing an529skills.sh installs
6spatie avatarspatie-version-controlspatie/guidelines-skillsApply Spatie's version control conventions when creating commits, branches, pull requests, or managing Git repositories; use for naming repos, writing commit me510skills.sh installs