seo-posthog

seo-posthog is a skill for Claude Code from AgriciDaniel/claude-seo. It costs 69 tokens per session (1,045 once invoked), scanned A, original, MIT.

An analytics connector that reads website search traffic and landing-page data from PostHog. PostHog is a product-analytics service, and an MCP server is the connection that lets the coding agent query it.

In plain words
What is it for?
Use it to check PostHog setup, inspect organic visits and landing pages, and break traffic down by device, country, or referring source.
Why use it?
It lets you analyse organic search activity without adding another tracking script or storing a PostHog token in the add-on. It can complement or replace Google Analytics 4 for these reports.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the claude-seo plugin — 35 skills, 21 agents, 2 hooks shipped together

Good fit Use it to check PostHog setup, inspect organic visits and landing pages, and break traffic down by device, country, or referring source.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agricidaniel/claude-seo/seo-posthog
About the project

Claude SEO is an open-source Claude Code plugin that runs specialized agents and skills to audit websites across technical SEO, content quality, structured data, AI-search optimization, local and e-commerce SEO, and international SEO. SEO practitioners use it to produce prioritized recommendations based on primary-source guidance, with optional extensions for external data and crawling.

AgriciDaniel/claude-seo · 34,510 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AgriciDaniel/claude-seo --skill seo-posthog
Clone the repo
git clone --depth 1 https://github.com/AgriciDaniel/claude-seo

Made for: Claude Code.

Or install claude-seo, the plugin that ships this one along with the rest of its 35 skills, 21 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for seo-posthog

README.md
[![agentmods](https://agentmods.dev/badge/skills/agricidaniel/claude-seo/seo-posthog/github.svg)](https://agentmods.dev/skills/agricidaniel/claude-seo/seo-posthog)
Your own site
<a href="https://agentmods.dev/skills/agricidaniel/claude-seo/seo-posthog"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-seo/seo-posthog/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for seo-posthog

Your own site · 80×15
<a href="https://agentmods.dev/skills/agricidaniel/claude-seo/seo-posthog"><img src="https://agentmods.dev/badge/skills/agricidaniel/claude-seo/seo-posthog.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 27 Nov 2026
  • Snyk warn 26 Nov 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.01045
Opus 5.5 $0.00028 $0.00418
Sonnet 5.5 $0.00014 $0.00209
Haiku 4.5 $0.00007 $0.00104

Measured 3d ago against content hash 086e7b674b2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

seo-posthog scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/posthog/skills/seo-posthog/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

seo-posthog

Use PostHog as a GA4 alternative or complement when the user already tracks their site with PostHog. All data comes from the PostHog MCP server; this extension ships no script and stores no token.

Prerequisites

  • The skill and the seo-posthog agent ship with the claude-seo plugin. Run extensions/posthog/install.sh (or install.ps1) to register the MCP server; on a manual install it also copies the skill and agent.
  • The PostHog MCP server connected and authenticated (/mcp in Claude Code).
  • The site sends $pageview events to PostHog (web snippet or SDK).

Routing

Command What it does
/seo posthog check Confirm the PostHog MCP is connected and the project has $pageview events
/seo posthog organic Per-day organic search visits
/seo posthog top-pages Top organic landing pages
/seo posthog device Organic traffic by device type
/seo posthog country Organic traffic by country
/seo posthog referrers Referrer / channel breakdown

Each command delegates to the seo-posthog agent, which runs HogQL queries through the MCP exec tool (call execute-sql). Options: days (default 28) and limit (default 50).

When this skill applies

  • The user says "PostHog" or wants analytics data without GA4
  • The user has the PostHog MCP connected and asks for organic traffic context
  • For Search Console, CrUX, indexing, and search queries, route to seo-google. PostHog has no keyword data
  • For AI Overview / GEO work, route to seo-geo

Cross-skill delegation

During /seo audit, the orchestrator spawns the seo-posthog agent when the PostHog MCP exec tool is available: mcp__posthog__exec when the server is registered in lowercase, as this extension's installer does, or mcp__PostHog__exec otherwise. Either spelling counts. It can run alongside seo-google and seo-matomo.

Error Handling

  • No PostHog MCP tools: tell the user to connect the server (see extensions/posthog/docs/POSTHOG-SETUP.md). Do not invent data
  • Query errors: surface verbatim
  • Empty results: verify project, window, and that $referring_domain is captured before reporting zero organic traffic

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 086e7b674b2f
  2. 8d ago Changed e42161e13470
  3. 18d ago First seen · 86 lines · 69 tokens per session scan A 012a77230846

Subscribe to this mod's changes

seo-posthog is a skill published in the GitHub repository AgriciDaniel/claude-seo (34,510 stars, last pushed 3d ago), licensed MIT. It adds 69 tokens to every session and 1,045 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-16.

Related

seo-posthog compared with skills from other repositories

seo-posthog next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
seo-posthogAgriciDaniel/claude-seoSkill35k3d agoMITA69Claude Code
ads-auditAgriciDaniel/claude-adsSkill12k2d agoMITA35Claude Code
ads-setupAgriciDaniel/claude-adsSkill12k2d agoMITA37Claude Code
adsAgriciDaniel/claude-adsSkill12k2d agoMITA63Claude Code, Codex
ads-metaAgriciDaniel/claude-adsSkill12k2d agoMITA33Claude Code
ads-optimizeAgriciDaniel/claude-adsSkill12k2d agoMITA33Claude Code
blog-clusterAgriciDaniel/claude-blogSkill3.0kyesterdayMITA122Claude Code