What the agent does
The title, meta description and canonical URL decide how each page of the production site appears in search results and which URL gets the credit. Duplicates, missing descriptions and wrong canonicals are among the most common technical SEO problems, and they are almost always caused by one shared layout. Fix them once, at the source, for every page type.
1. Inventory
For every page type (home, static pages, each dynamic template, paginated lists, filtered views), show what the title, description and canonical would be, and where each comes from. Flag duplicates across pages, titles over about 60 characters, descriptions missing or over about 155 characters, and canonicals that point at the homepage or at a different page.
2. One metadata helper
Route every page through one helper that takes the page's own title, description and canonical path and outputs the title, meta description, canonical link, and the matching Open Graph and X fields.
- Titles: unique, the specific thing first, the brand last ("Invoice templates for freelancers | Acme"), about 50 to 60 characters.
- Descriptions: written per page or built from the page's own data (a product's summary, a post's excerpt), about 120 to 155 characters, never the same sentence everywhere.
- Canonicals: absolute, self-referencing for normal pages, lowercase, one form for trailing slashes, and without tracking parameters.
3. Pagination, filters and duplicates
Page 2 and later of a list should be self-canonical (not pointing at page 1) and have "Page 2" in the title. Filtered or sorted views that only reorder the same items should canonicalise to the unfiltered page or be
noindex. Pages reachable at two URLs (with and withoutwww, with and without a trailing slash, old slugs) should redirect to one, not just carry a canonical.4. Guard it
Add a test (or a build check) that fails when two indexable routes share a title, when a page has no description, or when a canonical is relative or points elsewhere unexpectedly. Use the project's existing test setup.
Done means
- Every indexable page has a unique title with the brand last and a page-specific description.
- Every page has an absolute, self-referencing canonical unless it intentionally points elsewhere.
- Paginated pages are self-canonical with the page number in the title.
- All page metadata comes from one helper.
- A test fails on duplicate titles, missing descriptions or bad canonicals.
Questions
Does Google use my meta description?
Often, but it rewrites it when it thinks another passage answers the search better. A specific, accurate description is used more often than a generic one.
Should every page have a canonical tag?
Yes, a self-referencing one on normal pages. It protects against duplicates created by tracking parameters and alternate URLs.
Can a canonical replace a redirect?
Not for pages you control at two URLs. A canonical is a hint; a 301 redirect is an instruction, and it sends visitors to the right URL too.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.