/install-posthog-elixir:install-posthog-elixirfrom install-posthog-elixir
Install, update, or troubleshoot PostHog analytics in Elixir and Phoenix applications.
Ships in install-posthog-elixir. 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.
Configure the requested server or browser integration. Discover relevant configuration and entrypoints, and follow repository tooling, dependency, and secret conventions. Consult current Elixir SDK documentation when changing the server integration and JS documentation when changing the browser integration.
Before inspecting or editing the target repository, confirm the intended values of
POSTHOG_API_HOST and POSTHOG_UI_HOST with the user. Ask one concise question
for any value the current request does not already provide. Do not infer either
host from the project token, the user's location, or an existing default. When the
API host is a reverse proxy, also confirm whether its upstream PostHog project is
US or EU so the UI host matches that region.
posthog.identify(...). Verify the auth assign used by templates.distinct_id and $session_id. Prefer browser capture for browser-owned interactions and redirect outcomes.distinct_id while PostHog JS still owns $session_id. For accountless apps, propagate both browser-generated IDs.tracing_headers and places PostHog.Integrations.Plug before the router. Context-based server capture is valid only in that request process; LiveView and background processes require browser capture or explicit context propagation.person_profiles: "identified_only" and keep error tracking disabled; Sentry owns exception reporting.https://us.i.posthog.com or https://eu.i.posthog.com, and keep ui_host on the confirmed matching PostHog application host.A backend-only request does not require browser assets. For a full Phoenix installation, include browser identity, deployment assets, and applicable disclosure.
Run applicable project gates, checking whether precommit already includes compile and tests. Add a captured-event test for new capture behavior; avoid duplicating existing coverage for a narrow configuration repair. For authenticated browser integration, verify the rendered signed-in ID is non-empty and matches a server event. For accountless server capture, verify a browser request propagates both its anonymous distinct ID and session ID without the application replacing either one. For browser capture after a server-verified redirect, verify the server marker is signed, bounded, and consumed by the browser SDK. Verify LiveView and asynchronous capture at the process boundary rather than assuming Plug context crosses it.
For a new analytics integration, document the event catalogue in docs/analytics.md and propose the boundary convention for repository instructions under the project's instruction-edit policy. Report changed files, configuration needs with secrets redacted, checks, and blockers concisely.
references/advanced-recipes.md (opens in a new tab)references/browser.md (opens in a new tab)references/deployment.md (opens in a new tab)references/inline-script.md (opens in a new tab)references/security-and-redaction.md (opens in a new tab)references/server.md (opens in a new tab)references/testing-strategies.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin install-posthog-elixir