posthog-stinger — Claude Code skill: what it does, how to install
posthog-stinger configures PostHog analytics for SvelteKit 5 apps deployed on Vercel. It fixes router pageview tracking, sets up feature flags, and handles reverse proxying.
AGPL-3.0-or-later ★ 96 updated 2026-10-18
/plugin marketplace add legioncodeinc/vibe-coding-tools
/plugin install platform-and-release-tools@wasp-nestWhat posthog-stinger does
This skill provides direct patterns for integrating client-side posthog-js and server-side posthog-node into SvelteKit 5 projects. It directly addresses the classic issue where client-side router transitions drop pageview counts. It also provides rules for identity stitching via identify() and alias(), as well as flag bootstrapping to stop interface flicker during page load.
Included reference files detail vercel.json rewrites designed to bypass ad blockers. You will also find privacy masking rules for session recordings, survey targeting options, B2B group analytics, and differences between EU and US cloud data endpoints.
PostHog lacks confirmed native event sampling, meaning cost management depends entirely on account billing limits and trimming down autocapture.
What it helps with
- fix client-side pageview tracking in SvelteKit router
- bootstrap feature flags on the server to prevent UI flicker
- configure Vercel rewrites to proxy PostHog past ad blockers
- stitch anonymous visitor sessions using identify and alias
Example prompts for the agent
- Set up client-side posthog-js tracking for SvelteKit 5 routes
- Configure vercel.json rewrites to proxy PostHog traffic away from ad blockers
- Show how to bootstrap feature flags on the server without UI flicker
How to install posthog-stinger
1Plugin marketplace
/plugin marketplace add legioncodeinc/vibe-coding-tools/plugin install platform-and-release-tools@wasp-nestThis installs the whole platform-and-release-tools plugin with all its skills
2Skills CLI (Vercel)
npx skills add legioncodeinc/vibe-coding-tools --skill posthog-stinger -a claude-code3Manually: put the files in place
~/.claude/skills/posthog-stinger/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/posthog-stinger/
1Skills CLI (Vercel)
npx skills add legioncodeinc/vibe-coding-tools --skill posthog-stinger -a codex2Manually: put the files in place
.agents/skills/posthog-stinger/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add legioncodeinc/vibe-coding-tools --skill posthog-stinger -a cursor2Manually: put the files in place
.cursor/skills/posthog-stinger/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install legioncodeinc/vibe-coding-tools plugins/platform-and-release-tools/skills/posthog-stinger2Manually: put the files in place
.github/skills/posthog-stinger/SKILL.md1Skills CLI (Vercel)
npx skills add legioncodeinc/vibe-coding-tools --skill posthog-stinger -a gemini-cli2Platform CLI
gemini skills install https://github.com/legioncodeinc/vibe-coding-tools --path plugins/platform-and-release-tools/skills/posthog-stingerManually: put the files in place
.devin/skills/posthog-stinger/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about posthog-stinger
How to install posthog-stinger in Claude Code?
Add the marketplace source with /plugin marketplace add legioncodeinc/vibe-coding-tools, then run /plugin install platform-and-release-tools@wasp-nest. Alternatively, install it directly using npx skills add legioncodeinc/vibe-coding-tools --skill posthog-stinger -a claude-code.
What does posthog-stinger do?
It acts as a specialist guide for setting up PostHog in SvelteKit 5 apps on Vercel. It covers client and server SDK initialization, feature flag management, session replay, and B2B groups.
Does PostHog support native event sampling?
No, the skill documentation highlights that PostHog has no verified native event sampling feature. Managing ingestion costs requires setting billing thresholds and disabling unnecessary autocapture.