canonical-tag
When the user wants to configure canonical URLs, fix duplicate content, or consolidate URL signals. Also use when the user mentions "canonical," "canonical URL," "duplicate content," "duplicate content fix," "preferred URL," or "URL consolidation." For GSC duplicates, use google-search-console.
npx skills add kostja94/marketing-skills --skill canonical --agent cursor
Same command for any agent — swap --agent for claude-code, codex, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# SEO Technical: Canonical Guides canonical tag configuration to consolidate duplicate content and declare preferred URLs. **When invoking**: On **first use**, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output. ## Scope (Technical SEO) - **Duplicate site versions**: HTTPS vs HTTP; www vs non-www; trailing slash (/page vs /page/) — choose one, 301 redirect others - **Duplicate content**: Canonical tags; consolidate and 301 to preferred URL - **HTTPS**: SSL/TLS; secure connection; ranking signal since 2014 ## Initial Assessment **Check for project context first:** If `.claude/project-context.md` or `.cursor/project-context.md` exists, read it for site URL and language structure. Identify: 1. **Site URL**: Base domain 2. **Duplicate scenarios**: Multi-language, query params, pagination, alternate URLs 3. **Framework**: Next.js, React, static, etc. ## Canonicalization Methods (Choose by Scenario) | Method | When | Strength | |--------|------|----------| | **301 redirect** | Preferred; server can redirect | Strongest — permanent redirect | | *
- Scope (Technical SEO)
- Initial Assessment
- Canonicalization Methods (Choose by Scenario)
- HTTPS & Security
- When to Use Canonical
- Rules
- Implementation Patterns
- Next.js (metadata)
- HTML (generic)
- Server Redirects (301)
- Relationship to Other Technical SEO
- Output Format
- Related Skills
What does the canonical-tag skill do?
When the user wants to configure canonical URLs, fix duplicate content, or consolidate URL signals. Also use when the user mentions "canonical," "canonical URL," "duplicate content," "duplicate content fix," "preferred URL," or "URL consolidation." For GSC duplicates, use google-search-console.
How do I install it?
Run `npx skills add kostja94/marketing-skills --skill canonical --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From kostja94/marketing-skills, a repository with 848 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
