alanalvestech/hitank/posthog
Claude Code and agent skill by alanalvestech/hitank
- community
Checking that the SKILL.md file is still in the repository.
Manage PostHog projects, events, feature flags and insights via API
Install
npx vskill@latest install alanalvestech/hitank/posthogSKILL.md
/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
Setup (check before using)
If 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-keysClick 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:
For self-hosted:
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
Present 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:
Filter events by name:
List persons:
List feature flags:
Get feature flag details:
Toggle 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".
List saved insights:
List annotations:
Notes
- 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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/posthog/SKILL.md
Popularity
- Repository stars
- 33
- Repository forks
- 1
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alanalvestech/hitank/posthog)