duplicate-content
Skill5 starsChanged 35 days agoMITView on GitHub
Detect cross-page duplicate titles and meta descriptions, H1-to-title drift, and conflicting canonical or og:url declarations across multi-page audits.
In this repository24 other files it gives its agents.
- one-step-seoSkill
- accessibility-seoSkill
- answer-engine-optimizationSkill
- content-qualitySkill
- core-web-vitalsSkill
- ecommerce-seoSkill
- entity-optimizationSkill
- geo-optimizationSkill
- http-statusSkill
- image-seoSkill
- internal-linkingSkill
- international-seoSkill
- javascript-seoSkill
- llms-txtSkill
- local-seoSkill
- onpage-optimizationSkill
- schema-validationSkill
- security-hygieneSkill
- seo-auditSkill
- seo-fixSkill
- seo-regressionSkill
- sitemap-robotsSkill
- social-metadataSkill
- technical-seoSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Verify og:url matches the canonical URL (W02-og-url) and uses https:// (T17-canonical-http).
- Very specific: line 31
Ensure each page has a single <h1> whose key terms align with its unique <title>.
- Very specific: line 56
Scope boundary: Only pages fetched within the --pages cap are compared.
- Very specific: line 60
Before recommending that Page B set <link rel="canonical" href="Page A">, confirm with the user that Page B is genuinely a …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
duplicate-content — Duplicate Metadata & Canonical Clustering
1. Description & Activation Criteria
Activate duplicate-content when the user wants to:
- Find duplicate
<title>tags or duplicate<meta name="description">tags across multiple pages of a site or static build folder. - Resolve canonical URL mismatches (
T08-canonical), insecurehttp://canonicals onhttps://pages (T17-canonical-http),og:urlvs canonical conflicts (W02-og-url), multiple<h1>tags (O03-h1-multi), or H1/title topical drift (O03-h1-drift).
2. Inputs & Prerequisites
- Target: Multi-page site URL (
audit <url> --pages <2..200>) or local build directory (audit ./dist --pages <2..200>). - Note: Cross-page duplicate title and description clustering (
findDuplicateTitles) requires auditing at least 2 pages (--pages 2or higher).
3. Step-by-Step Workflow
- Run a multi-page audit:
- Execute
npx one-step-seo audit <target> --pages 25 --crawl sitemap --out ./seo-report.
- Execute
- Inspect cross-page duplicate clusters:
- Review the Duplicate titles & meta descriptions section in
./seo-report/index.mdand./seo-report/index.html. - Identify every shared
<title>or<meta name="description">and the exact list of pages sharing it.
- Review the Duplicate titles & meta descriptions section in
- Evaluate canonical and Open Graph URL alignment (
T08-canonical,T17-canonical-http,W02-og-url):- For each page in a duplicate cluster, check whether the pages are intentional variants (e.g., pagination, regional, or filter URLs that should canonicalize to a primary URL) or distinct pages that accidentally share boilerplate metadata from a CMS template.
- Verify
og:urlmatches the canonical URL (W02-og-url) and useshttps://(T17-canonical-http).
- Check intra-page heading consistency (
O03-h1-multi,O03-h1-drift):- Ensure each page has a single
<h1>whose key terms align with its unique<title>.
- Ensure each page has a single
4. Tools & CLI Commands
# Crawl up to 30 pages to surface duplicate titles and descriptions in index.html / index.md
npx one-step-seo audit https://example.com --pages 30 --crawl sitemap --out ./seo-report
# Audit a local static build folder for duplicate metadata before deployment
npx one-step-seo audit ./dist --pages 50 --offline --out ./seo-report5. Evidence Requirements
- List each duplicate string (
titleordescription), its exact text, and the specific page URLs (report.finalUrl) where it appears. - For canonical findings (
T08-canonical,T17-canonical-http,W02-og-url), quote bothpage.canonicalandfinalUrl.
6. Expected Outputs
- Duplicate Metadata Matrix: Shared title/description text -> Affected URLs -> Recommended unique title/description per URL.
- Canonical Consolidation Plan: Which URLs should self-canonicalize vs point to a consolidated canonical target.
7. Limitations & External Data
- Automated CLI checks: Exact-match (case-insensitive, whitespace-normalized) duplicate
<title>and<meta name="description">detection across all crawled pages in the run, plus per-pageT08-canonical,T17-canonical-http,W02-og-url,O03-h1-multi, andO03-h1-drift. - Scope boundary: Only pages fetched within the
--pagescap are compared. Near-duplicate body prose similarity (shingling/embeddings across external domains) is not performed.
8. Safety & Approval Rules
- Before recommending that Page B set
<link rel="canonical" href="Page A">, confirm with the user that Page B is genuinely a duplicate/variant of Page A — pointing canonicals to a different page de-indexes Page B in search results.
9. Examples
# Run a multi-page duplicate metadata check on a site
npx one-step-seo audit https://example.com --pages 20 --skills duplicate-content --out ./seo-reportDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

