You ask in plain words
With whatever notes or documents you already have.
Do this page’s canonical tag, headers and sitemap all point to the same URL?
Check this duplicate group. Preferred https://press.example/story. Page https://press.example/story?print=1. No base element.
Your notes
head: <link rel="canonical" href="/story"> HTTP Link: </archive/story>; rel="canonical" sitemap entry: https://press.example/story
Your agent answers with a checked method
It runs 6 checks before it replies.
Your agentUsing this skill
The print page’s HTML and the sitemap point to https://press.example/story. Change the HTTP Link canonical from https://press.example/archive/story to https://press.example/story and recheck the response headers.
- A link to a translated page with rel=alternate is not another canonical declaration.
- Sitemaps indicate a weaker preference than redirects or canonical links. Multiple hints do not form a guaranteed vote.
- A canonical link placed in the body, or pushed out of the head by invalid markup or late scripts, is ignored by Google. Check the rendered head.
- Relative canonical targets resolve against the page or base URL, so a print or staging path can produce an unexpected target. Google recommends absolute URLs.
- Two canonical declarations on one page should be reduced to one even when one of them is right. RFC 6596 advises a single canonical per resource.
- Using robots.txt or noindex to force a canonical hides or removes content rather than consolidating it. Google advises against both for this purpose.
Why that’s right. Only the response header conflicts with the chosen story URL.
Is it the right skill?
What it’s for, and when another skill or a person is the better choice.
Use it when
- Someone has a page's head markup, response headers and sitemap entries and wants to know whether they all point to the preferred URL.
- Search Console reports that Google chose a different canonical from the one the site declared, and the team wants to see what the site itself says.
- Print, filtered, tracking-parameter or PDF versions of a page need their canonical signals checked after a change.
Not the right skill when
- Predicting which URL Google will choose. Google treats these as hints and also weighs redirects, internal links and content.
- Planning redirects in a migration. Use the redirect map skill; a permanent redirect is the stronger signal when a duplicate is being retired.
- Checking hreflang language alternates, which is a separate review of rel=alternate annotations.
The method it follows
7 steps, in order, every time.
- Keep three things apart: the publisher's preferred URL, the signals the site sends, and any canonical a search engine has selected. Only the first two are in scope.
- Collect HTML canonicals only from link elements with rel=canonical inside the head of the rendered page; Google accepts the element only in the head. Resolve a relative href against the document's base URL, which is the base element if present, otherwise the page URL.
- Collect HTTP Link header values with rel="canonical" and resolve relative targets against the response URL. Ignore other relations such as alternate, prev or next, and canonical links carrying hreflang, lang, media or type, which Google does not use for canonicalisation.
- Collect the sitemap entries for the duplicate group. Every URL in a sitemap is a suggested canonical, so a listed duplicate competes with the preferred URL.
- Compare each declared target with the preferred URL exactly, keeping scheme, host, path case and meaningful query parameters. List every target that differs, in the order html, http, sitemap, keeping source order within each. A matching signal does not cancel a conflicting one.
- If evidence about the preferred URL itself is supplied, check that it returns 200, does not redirect, does not declare a canonical to another URL and carries a self-referencing canonical. RFC 6596 advises against canonical targets that redirect, return errors or point elsewhere.
- Treat a missing mechanism as acceptable. Report each conflict with its fix, without promising which URL a search engine will pick.
What to have ready
If something’s missing, your agent asks before it starts.
- Absolute page URL and publisher’s chosen preferred URL for an equivalent group of pages.
- Supplied HTML link elements, HTTP Link headers and the entries actually published for this duplicate group in the sitemap.

Which URL do you want to be canonical for this group of duplicate pages?

Can you supply the rendered head, not just the template, and the raw response headers? Scripts can add or change canonical links, and a Link header never appears in page source.

Which sitemap entries belong to this duplicate group?
Try it on your own AI
A new question with a known answer, so you can check your AI gets it right.
-
Copy the questionPreferred https://books.example/uk/read. Page https://books.example/uk/read. No HTTP Link header. Return only JSON following the skill’s test format. head: <link rel="alternate" hreflang="fr" href="/fr/lire"> sitemap entries for this duplicate group: https://books.example/uk/read, https://books.example/uk/read?print=yes
-
Ask your AI in a new chat
Give it this skill first, then paste the question. It replies with a short block of data in the format the skill asks for.
-
Show the answer and why
The French alternate is outside this canonical comparison. The print entry competes in the publisher’s own sitemap.
{
"conflicts": [
{
"channel": "sitemap",
"target": "https://books.example/uk/read?print=yes"
}
]
}
The check runs in your browser. Nothing you paste is sent anywhere.
Where the method comes from
Free to use and adapt with credit (CC BY 4.0).
Use this skill in Raq.com
Add it to your Skill Library and your agent applies it whenever a request matches. Edit it for your own business and keep every version.