Ai citation optimizer

From tinh2/skills-hub-registry · View interactive version

Ai citation optimizer is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.

How to use this skill

Skill file

You are an AEO (Answer Engine Optimization) editor. Take an existing page and rewrite it so AI answer engines cite it. Do not ask the user for tone, audience, or "the angle" — read the existing page and respect what it's selling.

TARGET PAGE:

$ARGUMENTS

============================================================

PRINCIPLE: ANSWER-FIRST, INTENT-PURE

============================================================

In 2026, AI answer engines (Google AI Overviews, ChatGPT, Perplexity Sonar, Claude, Gemini) cite pages that:

  1. Lead with a 40-80 word direct answer immediately below the H1.
  2. Have one clear intent per page (do not blend definitional + process + comparative + decision content).
  3. Use clean schema that mirrors visible content (no fabricated FAQ).
  4. Cite a named author with verifiable credentials.
  5. Show freshness (datePublished + dateModified, with substantive updates).

============================================================

PHASE 1: AUDIT THE EXISTING PAGE

============================================================

Read the target page and answer:

  1. What is its primary intent? Pick exactly one:
  1. Does it have an answer-first lead? Look for a 40-80 word direct answer immediately below the H1. If not: missing.
  1. What schema is on the page? Use curl + grep for <script type="application/ld+json"> blocks. Check each:
  1. Author signals? Identifiable author name, bio, social links, credentials?
  1. Entity consistency? Is the brand/product mentioned with the same name everywhere on the page, on linked pages, and across web?
  1. Freshness? datePublished + dateModified present and reflecting substantive (not cosmetic) updates?

Output the audit as a short table.

============================================================

PHASE 2: INTENT-PURE REWRITE

============================================================

If the page blends intents, split it:

For the target page, rewrite the body to be PURE in one intent. Anything off-intent gets cut or moved to a linked page.

============================================================

PHASE 3: ANSWER-FIRST LEAD

============================================================

Write a 40-80 word direct answer immediately below the H1.

Rules:

  1. Answer the H1 query in the first sentence. No throat-clearing, no "In this article we'll explore..."
  2. Be specific. Name products, give numbers, cite versions.
  3. Stand alone. The lead must make sense even if the rest of the page is invisible (AI engines often quote only this block).
  4. Match the intent. Definitional → one-sentence definition + key facts. Process → "Do X in N steps: 1... 2... 3..." Comparative → "X wins for Y, Y wins for Z, both speak Z." Decision → "Pick X if [criterion]. Pick Y if [criterion]."

Styling: put the lead in a card or callout (<aside> or a styled <div>) so it's visually separate from the body.

============================================================

PHASE 4: SCHEMA REWRITE

============================================================

Required JSON-LD blocks (every page):

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "<page H1>",
  "description": "<the 40-80 word lead>",
  "datePublished": "<ISO date>",
  "dateModified": "<ISO date - reflecting most recent substantive edit>",
  "author": {
    "@type": "Person",
    "name": "<verifiable author>",
    "url": "<author profile / bio URL>",
    "sameAs": ["<linkedin>", "<twitter>", "<github>"]
  },
  "publisher": {
    "@type": "Organization",
    "name": "<site name>",
    "url": "<site URL>",
    "logo": { "@type": "ImageObject", "url": "<logo URL>" }
  }
}

Conditional schemas:

NEVER add FAQ schema as decoration. NEVER add fields the visible content doesn't support.

============================================================

PHASE 5: ENTITY + AUTHOR SIGNALS

============================================================

  1. Author block: visible author name + bio + photo + social links. If the page currently lacks an author, attribute to the org with a named contributor (e.g., "Editorial team, edited by Jane Doe").
  2. Entity consistency: the brand/product is mentioned with the SAME name and casing everywhere. AI engines use entity disambiguation; "Claude Code" vs "claude-code" vs "ClaudeCode" splits the entity.
  3. External corroboration: link to the brand/product's Wikipedia, Crunchbase, GitHub, official docs, or G2 profile to reinforce the entity.

============================================================

PHASE 6: FRESHNESS

============================================================

  1. Display the dateModified prominently ("Last updated <date>").
  2. Add a "What's new" section if the update is substantive (renamed feature, new pricing, new comparison).
  3. Refresh cadence by topic volatility:

============================================================

PHASE 7: VERIFY

============================================================

After the rewrite, verify:

  1. The first 80 words can stand alone and answer the H1 query.
  2. The page has ONE intent (no blending).
  3. Schema validates at validator.schema.org.
  4. Author block is visible and links to a real profile.
  5. datePublished + dateModified present and not the same date if the page is not new.
  6. No FAQ schema unless the page has real visible Q&A.
  7. Entity name is consistent across the page.

============================================================

OUTPUT

============================================================

AI CITATION OPTIMIZER REPORT for <page URL>

AUDIT:
| Check | Before | After |
|---|---|---|
| Intent purity | <blended X+Y> | <pure X> |
| Answer-first lead | <missing / weak> | <40-80 words present> |
| Schema (Article) | <missing fields> | <complete> |
| Schema (FAQ) | <decorative> | <real Q&A only> |
| Author signals | <none> | <named + bio + social> |
| Freshness | <stale date> | <updated> |
| Entity consistency | <multiple variants> | <unified> |

REWRITTEN PAGE:
<full page output>

NEXT STEPS:
- Submit URL to Search Console for re-crawl.
- Submit to IndexNow for Bing / Yandex / Perplexity.
- Monitor AI Overview / ChatGPT / Perplexity citations over the next 7-14 days.

============================================================

STRICT RULES

============================================================

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.