Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

PostHog

БесплатноБез исполняемых скриптовНе проверен

PostHog API integration with managed authentication. Product analytics, feature flags, session recordings, experiments, and more. Use this skill when users…

byungkyuот byungkyu2 301 установка в других каталогах

Об этом скилле

PostHog

Access the PostHog API with managed authentication. Query product analytics events with HogQL, manage feature flags, analyze user behavior, view session recordings, and run A/B experiments.

This data is privacy-sensitive. Person profiles, event streams, and especially session recordings capture real end-user behaviour and can contain direct identifiers (emails, user ids, IP addresses) and incidental personal data caught in replayed screens. Query the narrowest set of persons, events, and time range the task needs, prefer aggregates over per-person rows, do not retrieve or replay session recordings unless the user has specifically asked for that recording, and never copy identifiers or recording contents anywhere outside the immediate answer.

Quick Start

maton login                                       # authenticate once (device flow, recommended)
maton connection create posthog                   # connect the account (needs user approval)
maton api '/posthog/api/organizations/@current/'  # first call

Installation

NPM

npm install -g @maton/[email protected]

Homebrew

brew install maton-ai/cli/maton
brew pin maton

Versions are pinned to the release this skill was reviewed against. Upgrade deliberately - check the release notes, then move the pin - rather than by re-running an unpinned install. Homebrew cannot select a version from a tap, so brew pin maton holds the installed build until you choose to upgrade; maton-ai/cli is Maton's own tap.

Authentication

maton login

Prints a login link. Open it in a browser and copy the verification code shown. Then run maton login --code <CODE> to finish signing in. Once complete, it creates a profile in config.toml (eg. $HOME/.config/maton/config.toml) and stores the access and refresh tokens in the operating system's credential store (Keychain on macOS, Credential Manager on Windows, Secret Service on Linux), auto-renewed on expiry. The CLI reads them when it needs them.

Verify

maton whoami --json
{
  "authenticated": true,
  "profile_name": "[email protected]",
  "auth_type": "oauth"
}
  • If authenticated is false, stop and login again via maton login.
  • If auth_type is api_key, it is recommended to login via maton login and avoid keeping a long-lived credential.

Connections

List Connections

maton connection list posthog --status ACTIVE
{
  "connections": [
    {
      "connection_id": "{connection_id}",
      "status": "ACTIVE",
      "creation_time": "2025-12-08T07:20:53.488460Z",
      "last_updated_time": "2026-01-31T20:03:32.593153Z",
      "url": "https://connect.maton.ai/?session_token=5e9...",
      "app": "posthog",
      "method": "OAUTH2",
      "metadata": {}
    }
  ]
}

Refer to maton connection list --help for possible flags and values.

Create Connection

Requires explicit user approval. Confirm that the user intends to authorize PostHog access before running this. Never create a connection on your own initiative.

maton connection create posthog

--access-policy '<json>' (or --access-policy-file policy.json) limits which PostHog endpoints the connection may call; see Change Access Policy.

references/access-policy.md lists the read-only access policy (its read endpoints are listed with descriptions at https://docs.maton.ai/posthog#permissions).

Refer to maton connection create --help for possible flags and values.

Get Connection

maton connection get {connection_id}
{
  "connection": {
    "connection_id": "{connection_id}",
    "status": "PENDING",
    "creation_time": "2025-12-08T07:20:53.488460Z",
    "last_updated_time": "2026-01-31T20:03:32.593153Z",
    "url": "https://connect.maton.ai/?session_token=5e9...",
    "app": "posthog",
    "metadata": {},
    "access_policy": null
  }
}

Open the returned URL in a browser to complete authorizing PostHog. If PostHog offers scope selection, choose only the scopes the current task needs.

access_policy is null when the connection has full access, or the allow and deny rules it is limited to.

Reauthorize Connection

Requires explicit user approval. Confirm the connection and that the user intends to authorize access again. Never reauthorize a connection on your own initiative.

maton connection reauthorize {connection_id}

Reauthorizes a FAILED or PENDING connection in place: the user authorizes the app again in the browser and the connection keeps its ID, so anything using that ID keeps working. An ACTIVE connection doesn't need reauthorizing and returns an error. Triggers that were paused because the connection failed stay paused; re-enable them after reauthorizing.

Refer to maton connection reauthorize --help for possible flags and values.

Change Access Policy

**Requires explicit

Полный SKILL.md на ClawHub

Установить PostHog в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Grep
Glob

FAQ

Что делает скилл PostHog?

PostHog API integration with managed authentication. Product analytics, feature flags, session recordings, experiments, and more. Use this skill when users want to query analytics events, manage feature flags, analyze user behavior, view session recordings, or run A/B experiments. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Calls run through the `maton` CLI with OAuth login, or over raw HTTP with a Maton API key where the CLI cannot be installed. Every call is authenticated as the user's connection and reaches only what that connection's authorization allows, which the provider enforces on every request; the endpoints documented here are the ones this skill uses, and any other endpoint of this app needs the user to ask for it by name. Default to read and list calls, and confirm every write or new connection with the user. This file also documents the three constructs that turn a PostHog connection into automation, in the order they are used: the connection (the first step), a hosted function that runs a PostHog action through the Maton SDK, and a trigger that calls that function on a schedule or on an event. Running that automation includes administering it, and the skill covers that too: listing, reauthorizing and deleting connections, and changing or clearing a connection's access policy, which sets the endpoints it may call; creating, deploying, searching, updating and deleting functions and their environment variables; creating, updating and deleting triggers and their destinations, including pointing a destination at a URL the user supplies and rotating its signing secret; listing, inspecting and replaying a trigger's past events, where a replay delivers that event again and re-runs whatever it starts; reading the account's request records, logs and metrics to debug a call, which is read-only; changing account settings, such as turning request and response body capture on or off; and watching events locally,

Как установить скилл PostHog?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл PostHog запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить PostHog с