Which of your posts chase the same focus keyword

SEOBeginner~10 min

Before you start

Yoast SEO or Rank Math active, with Get posts and that plugin's Get post SEO tool switched on. The agent needs edit access to the posts, since SEO fields are read per post. All in One SEO and Slim SEO store no focus keyword these tools read, so they are not covered. Nothing here writes.

Over a few years of writing, two posts end up chasing the same phrase without anyone deciding they should: “sourdough starter” in one year, “how to make a sourdough starter” two years later. Your SEO plugin stores the keyword on each post but has no screen that shows the collisions across the whole site.

Start from an index. The agent reads every focus keyword first, tells you how much it covered, and only then groups the posts that collide.

The prompt
Check which posts on this site aim at the same focus keyword. Read only:
change nothing.
1. Use whichever focus keyword read you have here, Yoast or Rank Math. If
you have neither, stop and tell me.
2. Read the focus keyword on up to [200] published posts. For Rank Math,
keep only the first keyword in the list. Note title, ID, link, publish
date and keyword.
3. Before grouping anything, tell me how many posts you read, how many
have no focus keyword, and whether you stopped at the limit.
4. Group posts whose keywords match after you lower-case them, make them
singular and sort the words.
5. For each group, show a table: keyword, title, link, publish date, and
whether the keyword is in the title. Under it, list my options (keep
one and re-target the rest, merge them, or leave them because they
answer different questions) and say which you lean towards and why.
You cannot see rankings, so call it a judgment, not a finding.

Why this is safe to run

Nothing in the prompt can save anything. Both SEO reads return the fields your SEO plugin keeps on each post, and they need the same edit access as opening that post in the editor.

The coverage line comes before the groups on purpose. If the agent stopped at 200 posts on a site with 600, you know the groups are partial before you act on any of them.

Already connected? Ask your agent which posts share a focus keyword and it runs the same reads.

How it works

  1. Use whichever of the Yoast or Rank Math read tools this connection has.
  2. Index the focus keyword on each published post, primary keyword only.
  3. Report coverage first: posts indexed, posts with no keyword, and any limit hit.
  4. Group posts whose keywords match once case, plurals and word order are ignored.
  5. For each group, lay out the options and mark the one the agent leans towards.

Questions

Does this use search data?
No. The tools read what your SEO plugin stores on each post. Without rankings or clicks, which post should keep a keyword is an editorial call, and the prompt asks the agent to label it that way.
Rank Math lets me set several focus keywords. Which one counts?
Rank Math stores them as one comma-separated list. The prompt compares the first one, which Rank Math treats as the primary keyword.
What do I do with a group?
Usually one post keeps the keyword and the others get a new one, or the posts are merged. The [merge two posts into one](/prompts/merge-two-posts-into-one/) recipe covers the second.