
Canonical Tag
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-codeInstalls 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.htmland/guide; - case variants such as
/Guideand/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- Faq Page Generator1.2K
- Linkedin Ads1.2K
- Logo Generator1.2K
- Product Launch1.2K
- Cta Generator1.2K
- Internal Links1.2K
- Backlink Analysis1.2K
- Page Metadata1.2K
- Localization Strategy1.2K
- Community Forum1.2K
- Ai Traffic Tracking1.2K
- Retention Strategy1.2K
- Indexnow1.2K
- Site Crawlability1.2K
- Affiliate Page Generator1.1K
- Seo Audit1.1K
- Core Web Vitals1.1K
- Heading Structure1.1K
- Article Page Generator1.1K
- Pricing Page Generator1.1K
- About Page Generator1.1K
- Rebranding Strategy1.1K
- Youtube Ads1.1K
- Reddit Ads1.1K