analyzing-ai-citations
它能做什么
本技能分析你追踪的 AI 提示词,查看回答引擎引用你域名的频率、哪些主题表现最弱,以及它们转而引用了哪些其他网站。适合希望了解自己在 AI 搜索中可见度的营销人员。
适用场景
- ✓当你想知道 ChatGPT 或 Claude 是否在你的核心主题上提到你的网站时。
- ✓当你需要查看哪些竞争对手的域名被引用,而不是你的网站时。
- ✓当你想将 AI 引用与搜索排名或 AI 推荐流量进行比较的时候。
技能链接
https://github.com/PostHog/posthog/blob/master/products/aeo/skills/analyzing-ai-citations/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我追踪的主题中,AI 回答引擎引用我网站最少的是哪些?它们转而引用了哪些网站?”
每周 5 个新技能,1 分钟读完。
工作原理
它会查询 PostHog 中每日的引用结果,以及任何已连接的搜索和流量数据。它按主题和回答引擎对结果进行分组,然后用通俗的语言说明规律及其局限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Analyzing AI citations
PostHog runs a set of tracked prompts against AI answer engines once a day and records,
per prompt and engine, whether the answer cited the project's own domain. Every citation
question reduces to an aggregation over that record, optionally joined to two other
sources: Google Search Console (a data warehouse source) and the project's own web traffic
(the sessions and events tables).
This skill covers the citation record, the prompt set tools, the joins, and the HogQL papercuts that make the first query fail.
Tools
| Tool | Purpose |
|---|---|
posthog:execute-sql |
HogQL over system.aeo_citation_checks, Search Console tables, sessions and events |
posthog:aeo-prompts-list |
The tracked prompt set with topic, on/off state and the latest result per engine |
posthog:aeo-prompts-topics-list |
Topics in the prompt set with prompt counts |
posthog:aeo-prompts-get |
One prompt with its latest check per engine |
posthog:aeo-prompts-stats-get |
Per-engine citation and mention rates, 30-day daily counts, consensus domains, sentiment |
posthog:aeo-prompts-checks-list |
A prompt's check history: answers, cited URLs, search queries, failures |
posthog:aeo-prompts-versions-list |
A prompt's text versions, to compare results before and after a reword |
posthog:aeo-prompts-import |
Add prompts to the set (write; ask the user first) |
posthog:aeo-prompts-update |
Turn a prompt on or off, change its topic or text (write; ask the user first) |
posthog:aeo-prompts-archive |
Archive a prompt (write; ask the user first) |
posthog:external-data-sources-list |
Find the Search Console source and its table names |
posthog:read-data-schema |
Discover event and action properties before joining to traffic (not warehouse tables) |
posthog:generate-app-url |
Links back to the Prompts tab under /web/content-autopilot |
Before you start
- The feature is flag-gated. Every
aeo-prompts-*tool and the API behind it require theaeo-citation-trackingfeature flag for the user's organization. A 403 with "This feature is not available." means the flag is off, not a scope problem. - Scopes. Reads (
list,get,topics,checks,stats,versions) needweb_analytics:read; writes (update,archive,import) needweb_analytics:write. A missing scope surfaces asMissing PostHog API scope: 'web_analytics:read'(the API says "API key missing required scope"). Recovery: reauthorize the MCP connection so the new grant includes the scope, or add the scope to the personal API key the connection uses. Do not retry with other tools; the scope is the fix. - Is the runner active on this project? Run
SELECT count() FROM system.aeo_citation_checks WHERE created_at >= now() - INTERVAL 14 DAY. Zero rows means no prompts are being checked for this project. The scheduled runner only covers allowlisted projects with the flag on; it runs once a day at 07:30 UTC.
Data sources
system.aeo_citation_checks (the citation record)
One row per prompt x engine x run, read-only in HogQL. Written only by the runner.
| Column | Meaning |
|---|---|
created_at, run_id |
When the check ran; run_id groups one runner pass |
prompt_id, prompt_text, prompt_topic, prompt_source, prompt_version |
The prompt as it ran. Topic is empty when the prompt had none. Gro |
常见问题
引用检查多久运行一次?
每个被追踪的提示词和回答引擎的记录每天更新一次。
涵盖哪些回答引擎?
记录涵盖 ChatGPT、Claude 以及一个 Exa 检索基线。
它能把引用与我的搜索结果关联起来吗?
可以。如果你已将 Google Search Console 连接到 PostHog,它可以把该数据与引用结果进行关联。
详情
作者的原始描述
Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an Exa retrieval baseline) cite the project's site for its tracked prompts, which topics and engines cite it least, which domains get cited instead, and whether citations line up with Google Search Console rankings and AI referral or AI crawler traffic. Use when the user asks "are we cited by AI?", "which prompts never cite us?", "citation rate by topic or engine", "who gets cited instead of us?", "do AI citations drive traffic?", or wants to cross-reference AI answers,
repo: PostHog/posthog
热度
- GitHub 星标
- 41k
- 排名
- #6825
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
depot-ci
41k帮你的智能体设置并运行 Depot CI 工作流(GitHub Actions 的替代方案),包括迁移现有工作流和读取运行日志。
depot-container-builds
41k帮你的智能体在 Depot 的远程构建器上构建 Docker 镜像,包括多平台镜像、推送到镜像仓库,以及修复构建失败。
depot-github-runners
41k帮你的智能体把 GitHub Actions 任务迁移到 Depot 托管的运行器上,选择运行器规格和标签,并排查运行器设置问题。
editing-agents-md
41k帮你的智能体判断某条规则应写入 AGENTS.md 还是 CLAUDE.md,并以不会让文件臃肿的方式写下,确保规则真正生效。