← Back to Skills Marketplace
Posthog CLI
by
nelsongallardo
· GitHub ↗
· v1.0.0
· MIT-0
225
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install phog-cli
Description
Manage PostHog product analytics from the terminal. Use when the user asks about PostHog analytics, feature flags, experiments, surveys, dashboards, insights...
Usage Guidance
This skill appears to be what it says: documentation for a community PostHog CLI. Before installing or using it, verify the pip package and upstream repository (the SKILL.md lists a GitHub repo) and prefer a pinned version. Use a minimally scoped API key for automation, store credentials with proper file permissions, and avoid using highly privileged account keys. Be cautious when using --yes in scripts (it suppresses confirmations) and with --json output if you plan to persist or transmit results that may contain PII; review the CLI's config file location (~/.config or similar) to ensure it does not leak keys to other processes. If you need stronger assurance, review the package source on GitHub (or the PyPI release) before pip installing.
Capability Analysis
Type: OpenClaw Skill
Name: phog-cli
Version: 1.0.0
The skill bundle provides a legitimate interface for managing PostHog analytics via the `phog-cli` tool. It includes standard functionality for authentication, project management, feature flag control, and HogQL querying. The instructions in SKILL.md and references/commands.md are well-structured for an AI agent, focusing on automation flags (--json, --yes) and providing clear examples of intended use without any signs of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
Name/description match the commands and capabilities in SKILL.md and references/commands.md. The env vars and host/credential patterns mentioned are appropriate for a PostHog CLI.
Instruction Scope
Runtime instructions are limited to installing and using the posthog CLI, authenticating to PostHog, selecting projects, running queries, and using the raw API escape hatch. The instructions do not direct the agent to read unrelated system files or exfiltrate data to third-party endpoints. It does note config stored in the user home directory (expected for a CLI).
Install Mechanism
This is an instruction-only skill (no platform install spec). SKILL.md recommends installing via pip (pip install phog-cli) which is a common mechanism but carries normal supply-chain risk for third-party PyPI packages — the skill itself does not automatically install anything on the user's system.
Credentials
Environment variables the docs mention (POSTHOG_API_KEY, POSTHOG_HOST, POSTHOG_PROJECT_ID) are directly relevant to accessing PostHog. There are no unrelated secrets or broad credential requests.
Persistence & Privilege
The skill does not request permanent platform presence (always is false) and does not instruct modification of other skills or global agent configuration. It mentions storing CLI config under the user home directory which is typical for a CLI.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install phog-cli - After installation, invoke the skill by name or use
/phog-cli - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of PostHog CLI documentation.
- Provides a complete guide for installing and using `phog-cli` to manage PostHog analytics from the command line.
- Covers authentication, project selection, global flags, and all major features (activity, feature flags, experiments, insights, logs, queries).
- Includes common workflows and key HogQL query examples for product health and data analysis.
- Documents error handling and usage of raw API endpoints for full coverage.
- Notes community-built status and relevant configuration details.
Metadata
Frequently Asked Questions
What is Posthog CLI?
Manage PostHog product analytics from the terminal. Use when the user asks about PostHog analytics, feature flags, experiments, surveys, dashboards, insights... It is an AI Agent Skill for Claude Code / OpenClaw, with 225 downloads so far.
How do I install Posthog CLI?
Run "/install phog-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Posthog CLI free?
Yes, Posthog CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Posthog CLI support?
Posthog CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Posthog CLI?
It is built and maintained by nelsongallardo (@nelsongallardo); the current version is v1.0.0.
More Skills