Agent skill · Content & Marketing

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.

kostja94github.com/kostja94GitHub ↗
cursorMIT
Install
npx skills add kostja94/marketing-skills --skill canonical --agent cursor

Same command for any agent — swap --agent for claude-code, codex, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.0.1
Path: skills/seo/technical/canonical/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 848

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 | | *

What's inside
Steps it walks through
  1. Scope (Technical SEO)
  2. Initial Assessment
  3. Canonicalization Methods (Choose by Scenario)
  4. HTTPS & Security
  5. When to Use Canonical
  6. Rules
  7. Implementation Patterns
  8. Next.js (metadata)
  9. HTML (generic)
  10. Server Redirects (301)
  11. Relationship to Other Technical SEO
  12. Output Format
  13. Related Skills
More from marketing-skills
All skills →
About this skill
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.

Keep going