Agent skill

posthog-hello-world

Create a minimal working PostHog example with event capture, identify, and feature flags. Use when starting a new PostHog integration, testing your setup, or learning basic posthog-js and posthog-node patterns. "simple posthog code", "first posthog event". '

intentsolutions.io2,596★ · 1 repos on radarProfile →
claude-codecan modify filesMIT
Install
npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill posthog-hello-world --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 5 KB
Bundled scripts: none
Version: 1.12.0
Declared author: Jeremy Longshore <jeremy@intentsolutions.io>
Allowed tools: ReadWriteEdit
Requires: Designed for Claude Code, also compatible with Codex and OpenClaw
Path: skills/.curated/posthog-hello-world/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,630
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# PostHog Hello World ## Overview Minimal working examples demonstrating the three core PostHog operations: capturing events, identifying users, and evaluating feature flags. Covers both browser (`posthog-js`) and server (`posthog-node`) SDKs. ## Prerequisites - Completed `posthog-install-auth` setup - Project API key (`phc_...`) configured - `posthog-js` and/or `posthog-node` installed ## Instructions ### Step 1: Capture Your First Event (Node.js) ```typescript // hello-posthog.ts import { PostHog } from 'posthog-node'; const posthog = new PostHog(process.env.NEXT_PUBLIC_POSTHOG_KEY!, { host: 'https://us.i.posthog.com', }); async function main() { // 1. Capture a custom event posthog.capture({ distinctId: 'user-123', event: 'hello_posthog', properties: { greeting: 'Hello from posthog-node!', source: 'hello-world-skill', timestamp: new Date().toISOString(), }, }); console.log('Event captured: hello_posthog'); // 2. Identify a user with properties posthog.identify({ distinctId: 'user-123', properties: { email: 'dev@example.com', name: 'Dev User', plan: 'free', }, }); console.log('User identified: user-123'); // 3. Check a feature flag const flagValue = await posthog.getFeatureFlag('

What's inside
Steps it walks through
  1. Overview
  2. Prerequisites
  3. Instructions
  4. Step 1: Capture Your First Event (Node.js)
  5. Step 2: Browser Hello World (posthog-js)
  6. Step 3: Python Hello World
  7. Step 4: Raw HTTP API (No SDK)
  8. Error Handling
  9. Output
  10. Resources
  11. Next Steps
Commands it runs
set -euo pipefail
Capture event via POST to /capture/
curl -X POST 'https://us.i.posthog.com/capture/' \
Batch capture multiple events
curl -X POST 'https://us.i.posthog.com/batch/' \
More from claude-code-plugins-plus-skills
All skills →
About this skill
What does the posthog-hello-world skill do?

Create a minimal working PostHog example with event capture, identify, and feature flags. Use when starting a new PostHog integration, testing your setup, or learning basic posthog-js and posthog-node patterns. "simple posthog code", "first posthog event". '

How do I install it?

Run `npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill posthog-hello-world --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From jeremylongshore/claude-code-plugins-plus-skills, a repository with 2,630 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going