posthog
Skill38 starsChanged 8 months agoMITView on GitHub
Manage PostHog projects, events, feature flags and insights via API
6 other projects use a version of this.
Adopted by
Most recently taken up by
- thensls/nsls-builder-toolkittheir own version, first seen Nov 8, 2026
- therapys/dotagentstheir own version, first seen Nov 1, 2026
- HybridAIOne/hybridclawtheir own version, first seen Oct 13, 2026
- openai/pluginstheir own version, first seen Oct 13, 2026
- alexjmiller5/agent-config-publictheir own version, first seen Oct 2, 2026
- miketromba/skillstheir own version, first seen Apr 8, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- openai/plugins★ 7.8ksame name
- HybridAIOne/hybridclaw★ 159same name
- therapys/dotagents★ 8same name
- miketromba/skills★ 2same name
- alexjmiller5/agent-config-public★ 0same name
- thensls/nsls-builder-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- abacatepaySkill
- appsignalSkill
- clickupSkill
- cloudflareSkill
- cloudinarySkill
- datadogSkill
- digitaloceanSkill
- discordSkill
- firebaseSkill
- flyioSkill
- google-sheetsSkill
- herokuSkill
- honeybadgerSkill
- hostingerSkill
- hubspotSkill
- intercomSkill
- jiraSkill
- linearSkill
- mercadopagoSkill
- n8nSkill
- notionSkill
- openaiSkill
- planetscaleSkill
- railwaySkill
- resendSkill
- rewriteSkill
- sentrySkill
- shopifySkill
- slackSkill
- stripeSkill
- supabaseSkill
- trelloSkill
- twilioSkill
- vercelSkill
- xSkill
- zendeskSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
If the output is OK, proceed to the Flow section.
- Very specific: line 37
If the output is SETUP_NEEDED, guide the user step by step.
- Distinctive: line 68
If the script outputs an error, the token is invalid.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/posthog
Connect to the PostHog API to manage projects, events, persons, feature flags, insights and annotations. Works with PostHog Cloud and self-hosted instances. Pure Ruby, zero gems — stdlib only.
Structure
scripts/
├── auth.rb # Bearer token + posthog_request helper (required by all scripts)
├── check_setup.rb # Check if token and host are configured (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate an API token (+ optional host)
├── projects.rb # List all projects
├── events.rb # List recent events for a project
├── persons.rb # List persons for a project
├── feature_flags.rb # List feature flags for a project
├── feature_flag.rb # Get feature flag details
├── toggle_flag.rb # Toggle a feature flag on/off
├── insights.rb # List saved insights for a project
└── annotations.rb # List annotations for a projectSetup (check before using)
ruby ~/.claude/skills/posthog/scripts/check_setup.rbIf the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to create a Personal API Key:
You need a PostHog Personal API Key. Go to Project Settings > Personal API Keys in your PostHog dashboard:
https://app.posthog.com/settings/user-api-keys
Click Create personal API key, give it a label (e.g. "hitank"), and copy the key.
Paste the key here.
Step 2 — Ask if the user is on PostHog Cloud or self-hosted:
Are you using PostHog Cloud (app.posthog.com) or a self-hosted instance?
- If Cloud, just paste your token.
- If self-hosted, also provide your PostHog URL (e.g.
https://posthog.yourcompany.com).
Step 3 — When the user pastes the token (and optional host), save it:
For PostHog Cloud:
ruby ~/.claude/skills/posthog/scripts/save_token.rb 'PASTED_TOKEN'For self-hosted:
ruby ~/.claude/skills/posthog/scripts/save_token.rb 'PASTED_TOKEN' 'https://posthog.yourcompany.com'If the script outputs an error, the token is invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
Flow
The argument $ARGUMENTS may contain a project ID or event name.
Step 1: List projects
ruby ~/.claude/skills/posthog/scripts/projects.rbPresent the projects to the user. If $ARGUMENTS matches a project ID, use that project. Otherwise ask which project to work with.
Step 2: Actions
Once a project is selected, ask what the user wants to do and run the appropriate script.
List recent events:
ruby ~/.claude/skills/posthog/scripts/events.rb PROJECT_IDFilter events by name:
ruby ~/.claude/skills/posthog/scripts/events.rb PROJECT_ID --event '$pageview'List persons:
ruby ~/.claude/skills/posthog/scripts/persons.rb PROJECT_IDList feature flags:
ruby ~/.claude/skills/posthog/scripts/feature_flags.rb PROJECT_IDGet feature flag details:
ruby ~/.claude/skills/posthog/scripts/feature_flag.rb PROJECT_ID FLAG_IDToggle a feature flag (requires user confirmation):
Show flag details first, then ask: "Do you want to toggle this flag to active/inactive?" Only execute after a "yes".
ruby ~/.claude/skills/posthog/scripts/toggle_flag.rb PROJECT_ID FLAG_ID true
ruby ~/.claude/skills/posthog/scripts/toggle_flag.rb PROJECT_ID FLAG_ID falseList saved insights:
ruby ~/.claude/skills/posthog/scripts/insights.rb PROJECT_IDList annotations:
ruby ~/.claude/skills/posthog/scripts/annotations.rb PROJECT_IDNotes
- Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
- Auth via Bearer token (Personal API Key)
- Token file:
~/.config/posthog/token(outside the repo, never commit) - Host file:
~/.config/posthog/host(defaults tohttps://app.posthog.comfor Cloud) - Toggling feature flags requires explicit user confirmation
- Base URL is read from the host file at runtime
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

