Source outranker

From amplitude/builder-skills · View interactive version

Source outranker is an AI agent skill from the GitHub repository amplitude/builder-skills. Use this skill whenever a user wants to understand which external sources are being cited by AI models on topics relevant to their brand, and wants to create content that will outrank those sources — whether they say "what sources are AI models citing", "why is [third-party site] being cited instead

How to use this skill

Skill file

Source Outranker

You're helping a content team become the primary source AI models cite — not just for brand queries,

but for category-defining questions. When an AI is asked "what is product analytics" or "how do

digital analytics tools work", it cites whichever page it considers most authoritative. This skill

finds those pages, figures out what makes them win, and builds something better.


Step 0 — CMS Discovery (run once at the start of every session)

Before doing anything else, figure out where the new content will land. This avoids a copy-paste

dead end at the end of the workflow.

Check for already-connected CMS tools

Scan the tools currently available in your context. Known CMS MCP patterns:

| CMS | Tool name patterns to look for |

|-----|-------------------------------|

| Sanity | sanity, create_documents_from_markdown, patch_document_from_markdown |

| Contentful | contentful, create_entry, update_entry |

| HubSpot CMS | hubspot, update_blog_post, create_blog_post |

| WordPress | wordpress, wp_update_post, wp_create_post |

| Ghost | ghost, update_post, create_post |

| Webflow | webflow, update_cms_item, create_cms_item |

If a CMS MCP is already connected: confirm in one line:

*"I can see [CMS] is connected — I'll push the new source asset there as a draft when we're done.

Sound good?"* Then proceed to Step 1.

If nothing is connected: ask once, concisely:

"Before we start — which CMS do you publish to? I can push the content directly there as a

draft instead of handing you a block of text to paste."

Offer: Sanity · Contentful · HubSpot · WordPress · Webflow · Ghost · Other · "Just give me the

content"

Then give a tailored setup recommendation based on their answer (same guidance as in

prompt-gap-to-publish). Don't block on setup — start the analysis immediately and say you'll be

ready to push by the time they're connected.


Step 1 — Identify the Brand and Pull Top-Cited Sources

Use list_ai_visibility_org_brands to identify the brand (or use what the user specified).

Then call get_ai_visibility_sources with the selected orgBrandId, sorted by citationCount

descending. This returns every domain being cited by AI models on topics relevant to the brand, with

fields including: domain, citationCount, responseCount, url, title.

Separate the results into two groups:

The third-party sources that outrank the brand's own domain are the targets. These are the pages you

need to beat.

Identify the top 10 third-party sources by citation count. Present a summary:

| Source domain | Citations | Type |

|--------------|-----------|------|

| g2.com | 340 | Review aggregator |

| contentsquare.com/blog | 180 | Competitor blog |

| techradar.com | 150 | Media |

| ... | | |

Also call get_ai_visibility_topics to understand which topics are driving these citations — you'll

use this to pick which source asset to build.


Step 2 — Audit What Makes the Top Sources Win

For each of the top 5 third-party sources, fetch the actual page content using web_fetch. Read

each one carefully. You're looking for the structural and content patterns that make these pages

authoritative to AI models.

Evaluate each source across:

Answer structure: Does the page answer a clear question directly? Does it have a hierarchy of

H2s and H3s that map to sub-questions? Pages with clear structure are scraped more reliably.

Data and specificity: Does the page cite statistics, benchmarks, survey results, or other

verifiable data? AI models disproportionately cite pages with concrete data over opinion.

Comprehensiveness: Does it cover the topic exhaustively — history, mechanics, use cases,

comparison, FAQs? Thin coverage loses to deep coverage.

Freshness signals: Does the page prominently display a date, "Updated for [year]", or reference

recent events? AI models favor sources that appear current.

Authority signals: Author credentials, company reputation, methodology disclosures, research

citations, peer references.

Asset type: What format makes this page authoritative? Common winning formats:

Summarize the audit as a pattern: *"Top-cited sources on this topic share: [3–4 patterns]. The

brand's existing content lacks: [2–3 gaps]."*


Step 3 — Identify the Source Asset Opportunity

Based on the audit, identify the highest-leverage source asset to build. Score opportunities by:

Citation gap: how many more citations does the top external source have than the brand's best

owned page on the same topic? A gap of 200+ citations is a high-value target.

Topic strategic importance: cross-reference with get_ai_visibility_topics — is this a topic

where the brand has high relevancy but low visibility? If so, owning the source would have

compounding impact.

Buildability: can the brand credibly own this asset type? A benchmark report requires data;

a definitional guide just requires expertise. Prefer assets the brand can produce with authority.

Asset type selection guide:

AI models cite as the primary source for comparison criteria

than the competitor's self-interested version

Present 2–3 asset options with recommendation:

| # | Asset type | Target topic | Estimated citation gap | Recommendation |

|---|-----------|-------------|----------------------|----------------|

| 1 | Definitive guide | "What is product analytics" | −280 | Build first: definitional, high volume |

| 2 | Benchmark report | "Product analytics adoption 2025" | −140 | Build second: requires data |

| 3 | Comparison hub | "Product analytics tools compared" | −95 | Good, but competitive space |

Ask: "Which asset do you want to build?" Wait for their pick.


Step 4 — Generate the Source Asset

Write the full asset. Not a skeleton — complete, publish-ready content that is genuinely more

useful, specific, and comprehensive than the sources it's designed to outrank.

Asset type templates

Definitive Guide ("What is X", "How X works", "The complete guide to X")

covers

type → how to evaluate → implementation considerations → FAQs

they're from Amplitude research if proprietary)

section — even if images aren't included, the described structure signals authority

Benchmark Report ("State of X", "X trends report", "X by the numbers")

transparent methodology

Comparison Hub ("X tools compared", "Best X platforms", "[Category] software guide")

best-fit use cases

Always include meta fields


Step 5 — Push to CMS

Use what you discovered in Step 0. This is a new document (create operation, not update).

Sanity — use create_documents_from_markdown with the full asset content. Set _type to match

the blog/article schema. Ask the user if unsure: "What's the document type for long-form guides in

your Sanity schema?" Never use publish_documents without explicit instruction.

Contentful — use create_entry with contentType matching their article type. Set

fields.title, fields.slug, fields.body. Leave published: false.

HubSpot — use create_blog_post with state: DRAFT. Include meta description and slug.

WordPress — use wp_create_post with status: draft. Map H1 to title, body to content.

Ghost — use create_post with status: draft. Include slug, title, html or lexical,

and meta_description.

Webflow — use create_cms_item targeting the blog Collection. Map fields to the Collection's

schema (ask the user for field names if not obvious from context).

After pushing, confirm: *"Done — [asset title] is saved as a draft in [CMS]. Here's the ID/URL:

[link]. Review it there before publishing."*

Always output a Markdown fallback of the full content, even when CMS push succeeds.


What makes a source authoritative to AI models

AI models don't cite sources because they're from a big brand. They cite sources that:

analytics" is the page that defines it most clearly, most completely, and most directly.

teams" is cited over one that says "leading experts believe."

A guide that covers definition, mechanics, use cases, evaluation criteria, and FAQs will beat

a shorter page on any single dimension.

stale sources on fast-moving topics.

data, author credentials — all of these increase the page's trust score in AI training and

inference.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.