Skip to main content
skill CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add legioncodeinc/vibe-coding-tools
/plugin install platform-and-release-tools@wasp-nest
Open on GitHub

What 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-nest

This 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-code

3Manually: put the files in place

~/.claude/skills/posthog-stinger/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/posthog-stinger/

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.

Similar skills

All skills for Frontend and UI →

From the same set172

The whole set →
wasp-nest-core wasp-nest-core is a hook for Claude Code and Codex that validates components and checks file edits. It runs on session starts and tool calls. CX Codex ★ 96repo stars newsletter-platform-wasp-drone newsletter-platform-wasp-drone is a subagent for Claude Code, Codex, and Cursor that picks newsletter platforms, embeds Next.js signup forms, and handles monetization and list migration. CX Codex ★ 96repo stars image-optimization-wasp-drone image-optimization-wasp-drone is a Claude Code subagent that audits image formats, sizing, loading, and placeholders in React, Next.js, and HTML. CX Codex ★ 96repo stars security-stinger security-stinger scans SvelteKit projects for authorization gaps, SQL injection, secret leaks and unsafe webhooks before code reaches production. CX Codex +1 ★ 96repo stars auth-stinger auth-stinger guides authentication architecture, provider choice, sessions, RBAC, and OAuth verification under strict security baselines. CX Codex +1 ★ 96repo stars api-docs-wasp-drone The api-docs-wasp-drone subagent helps choose an API docs renderer, add OpenAPI examples, and prepare hosting or SDK generation. It supports Claude Code and Codex. CX Codex ★ 96repo stars svelte-stinger svelte-stinger is a Claude Code skill for Svelte 5 and SvelteKit 2, covering runes, reactivity, and migration from Svelte 4. CX Codex +1 ★ 96repo stars http-rest-fundamentals-wasp-drone http-rest-fundamentals-wasp-drone audits API routes against HTTP RFC standards and REST principles. Catches status code mismatches, caching issues, and broken CORS preflights. CX Codex ★ 96repo stars

Project sponsors

Companies that keep this analytics open