/platform-and-release-tools:posthog-stingerfrom platform-and-release-tools
Installs and configures PostHog for SvelteKit apps on Vercel: pageview tracking, autocapture vs manual events, feature flags, experiments, session replay, surveys, group analytics, reverse proxy, EU/US residency, and cost control.
Ships in platform-and-release-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are equipping posthog-wasp-drone, the Wasp Nest's PostHog specialist. This skill covers PostHog end to end for a SvelteKit (Svelte 5) app on Vercel: client and server SDK install, pageview tracking under SvelteKit's router, autocapture vs manual events, event/property naming, identify/alias identity stitching, feature flags (client, server, local evaluation, bootstrapping), experiments, session replay privacy and cost, surveys, group analytics for B2B, the Vercel reverse proxy, EU/US data residency, and cost control.
Every factual claim in this skill traces to a downloaded primary source in the source research archive (not shipped; the shipped distillation summarizes it). Do not author a PostHog fact from training data - if it is not in the archive, it is not a fact yet. Where the research surfaced a conflict or a gap (event-naming convention conflict, no confirmed sampling feature, SvelteKit-specific middleware interaction unconfirmed), it is stated plainly in references/research/distilled-posthog.md rather than smoothed into a guess.
posthog-js) init, server (posthog-node) init, CSP requirementsidentify()/alias() and reasoning about anonymous-to-identified user stitchingLoad on demand; do not read everything up front.
| Path | Load when |
|---|---|
references/research/distilled-posthog.md | Verifying any PostHog claim fast, or resolving a conflict (see its Gaps section) |
| Source research archive (not shipped with the plugin) | Source-repository only; the shipped distillation summarizes it, do not require it |
guides/01-install-and-pageview-tracking.md | First-time SvelteKit install, or SPA pageview tracking isn't working |
guides/02-events-and-identify-alias.md | Event/property naming, or identify/alias/anonymous-user stitching |
guides/07-roll-out-and-retire-flags.md | Rollout, expiry review, failure/cache behavior, kill convergence or removal (O175) |
references/templates/flag-lifecycle.md | Record owner, versions, authority, rollout and retirement evidence |
references/examples/flag-lifecycle-cases.md | Distinguish hypothetical reasoning from observed readiness |
references/research/flag-lifecycle-20261007/distilled.md (source repository only, not shipped with the plugin) | Source-repository record of flag lifecycle claims and archive corrections; do not require it. guides/07-roll-out-and-retire-flags.md carries the conclusions |
guides/03-feature-flags-and-experiments.md | Feature flags (client/server/local eval/bootstrap) or experiments |
guides/04-session-replay-and-surveys.md | Session replay privacy/cost, or surveys |
guides/05-group-analytics-and-reverse-proxy.md | B2B group analytics, or the Vercel reverse proxy |
guides/06-cost-control-and-data-residency.md | EU vs US cloud, GDPR, or reducing PostHog cost |
references/client-init-and-pageview-tracking.md | Copy-paste +layout.js init + pageview tracking |
references/server-capture-hooks-server.md | Copy-paste posthog-node server capture pattern |
references/vercel-reverse-proxy.md | Copy-paste vercel.json rewrites (managed vs self-hosted) |
references/feature-flag-bootstrap.md | Copy-paste server-evaluate-then-bootstrap pattern to avoid flag flicker |
references/property-naming-table.md | Event/property naming field tables |
references/env-var-checklist.md | Full env var table and region-consistency checklist |
For O175 load guide 07 before existing flag snippets. The 2026-10-07 archive supersedes older polling-cost, secret-key option and complete-response assumptions within this surface. Bind implementation to the installed SDK and actual config; preserve unknown cache/failure/kill behavior until observed. A flag or UI state is never authorization or entitlement.
category:object_action snake_case, but every other SDK doc's own code samples use [object] [verb] plain English. Not reconciled by PostHog itself. Full comparison: references/research/distilled-posthog.md §5.references/research/distilled-posthog.md §14 and guides/06-cost-control-and-data-residency.md.hooks.server.ts interaction with vercel.json rewrites was not directly confirmed in research (only the Next.js middleware.ts case was documented). Treat as likely-fine, verify empirically. See references/research/distilled-posthog.md §12.A PostHog task run through this skill is done when: the relevant guide(s) were read in order (not skipped), every factual claim used in the output traces to the source research archive (not shipped; the shipped distillation summarizes it), region consistency (EU/US) was checked across every endpoint touched, and - for anything development-focused - the Ship Gate below completed with user approval before commit or push.
vercel.json block.identify()/alias() timing needs to line up with the app's actual login/session flow, since PostHog's identity model assumes a stable ID sourced from auth.afterNavigate pageview-tracking code belongs in the component tree.Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
guides/01-install-and-pageview-tracking.md (opens in a new tab)guides/02-events-and-identify-alias.md (opens in a new tab)guides/03-feature-flags-and-experiments.md (opens in a new tab)guides/04-session-replay-and-surveys.md (opens in a new tab)guides/05-group-analytics-and-reverse-proxy.md (opens in a new tab)guides/06-cost-control-and-data-residency.md (opens in a new tab)guides/07-roll-out-and-retire-flags.md (opens in a new tab)references/client-init-and-pageview-tracking.md (opens in a new tab)references/env-var-checklist.md (opens in a new tab)references/examples/flag-lifecycle-cases.md (opens in a new tab)references/feature-flag-bootstrap.md (opens in a new tab)references/property-naming-table.md (opens in a new tab)references/research/distilled-posthog.md (opens in a new tab)references/server-capture-hooks-server.md (opens in a new tab)references/templates/flag-lifecycle.md (opens in a new tab)references/vercel-reverse-proxy.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin platform-and-release-tools27 skills in this plugin
/auth-stingerDesign and implement authentication. Use for provider choice, OAuth, passkeys, MFA, RBAC, sessions, or B2B SSO. Read README.md for the guide map./changelog-release-notes-stingerWrite public changelogs and release notes. Use after shipping a change or when improving release communication. Read README.md for the guide map./ci-release-stingerDesign CI and release gates for SvelteKit on Vercel or npm packages. Use for Actions jobs, migrations, caching, or publishing. Read guides/ for the decision path./crm-integration-stingerDesign CRM sync with HubSpot, Salesforce, Pipedrive, Attio, and peers. Use for field mapping, deduplication, or sync conflicts. Read README.md for the guide map./cron-scheduling-stingerDesign reliable scheduled jobs. Use for cron expressions, DST, distributed execution, retries, idempotency, or monitoring. Read README.md for the guide map./devops-stingerBuild Docker and GitHub Actions pipelines. Use for container hygiene, Compose, CI security, caching, image scans, or Depot. Read guides/ for the decision path.Other plugins' skills for the same job