Find and fix duplicate content

SEOAdvanced~30 min

Before you start

A connected site with content reads on, your SEO plugin's write ability enabled (Yoast, Rank Math, or All in One SEO) for canonicals, and the content write ability enabled if you want to differentiate any bodies. Take a database backup before a large run.

Duplicate content usually is not malicious, it is drift. You wrote two posts on nearly the same subject a year apart, or a category and a tag page cover the same ground, and now search engines have to guess which one to rank. Often they split the signal and rank neither.

This gives the agent the job of finding the overlaps and comparing them, and keeps the calls, which page wins, which points to it, which gets rewritten, with you. It never deletes or merges a thing. It sets canonicals through your SEO plugin and, only where you approve, edits a body to make the thin one genuinely different.

The prompt
I want to find and fix duplicate or near-duplicate content about [our pricing
and plans]. I have [Yoast] turned on, and content writes are on too.
First pass, change nothing. Search my content for that topic, list the posts
that overlap, read them, and group them into clusters of near-duplicates or
thin repeats. For each cluster recommend: which post should be canonical, which
ones should point their canonical at it, and which are worth differentiating
rather than pointing away. Explain each call briefly.
I will tell you what to keep. Only after I approve, set the canonicals through
the SEO plugin and make any body edits I signed off on, work in small batches,
and show me each batch before it saves. Do not delete or merge anything, and do
not touch post status. At the end, list every post you touched and what changed
on each.

Why this is safe to run

The whole analysis pass is reads. Searching, listing, and reading the overlapping posts writes nothing, so the full cluster map and every recommendation reach you before a single save.

The write half is split and narrow. Canonicals go through your SEO plugin’s own field, which never touches the visible copy, and any body differentiation edits the content only and never publishes or unpublishes. Both the SEO write ability and the content write ability stay off until you enable them, every call is checked against the capability of the user you bound the agent to, and every write lands in the Activity Log with the post it changed. Body edits go through revisions, and there is no delete or merge in this recipe at all, so the destructive decisions stay firmly in your hands.

Already connected? Skip the paste. Ask your agent for the “find and fix duplicate content” recipe, or just name the topic, and it runs the same compare-then-approve flow on your own site.

How it works

  1. Search the content for the topic you name and list the posts that overlap.
  2. Read the overlapping posts and compare them to spot near-duplicates and thin repeats.
  3. Recommend a fix per cluster: which post is canonical, which point to it, and which need differentiating, then wait for your approval.
  4. Write the approved canonicals through your SEO plugin and any approved body edits through the content write, in small batches, pausing to show each batch.
  5. Return the list of every post it touched and what changed on each.

Questions

Which SEO plugins can it set a canonical with?
Yoast, Rank Math, and All in One SEO. The agent uses whichever one you have enabled and writes the canonical through that plugin's own field. The SEO write ability stays off until you turn it on.
Will it delete or merge my duplicate posts?
No. It never deletes or merges anything. It sets canonicals and, where you approve, edits a body to differentiate it. Combining or removing posts is a decision it leaves entirely to you.