Agent skill

Posthog Automation

by davepoon in davepoon/buildwithclaude

Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations.

MITAuto-check passedProductivity & Automation

Install Posthog Automation

skills CLI
$ npx skills add davepoon/buildwithclaude --skill posthog-automation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davepoon/buildwithclaude posthog-automation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davepoon/buildwithclaude.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/all-skills/skills/posthog-automation .claude/skills/posthog-automation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
posthog-automation
GitHub stars
3.6k
Used in
7 other repos
Token cost
~2k tokens
SKILL.md length
864 words
Files
1
Skills in repo
246
Repo updated
First seen
Licence
MIT

At a glance

Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations.

  • Works in 5 steps: Capture Events → List and Filter Events → Manage Feature Flags → …
  • Tasks that involve App automation through connectors
  • SKILL.md covers Prerequisites, Setup, Core Workflows and Common Patterns, plus 2 more sections
  • Reaches rube.app

What it does

Posthog Automation is an agent skill from davepoon/buildwithclaude. Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations. Always search tools first for current schemas.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering App automation through connectors. It works with PostHog and Composio. The repository describes itself as: A single hub to find Claude Skills, Agents, Commands, Hooks, Plugins, and Marketplace collections to extend Claude Code, Claude Desktop, Agent SDK and OpenClaw. The licence is MIT.

When your agent uses it

  • Tasks that involve App automation through connectors

Example prompts

  • “/posthog-automation”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Capture Events
  2. List and Filter Events
  3. Manage Feature Flags
  4. Manage Projects
  5. User Profile and Authentication

What it can do on your machine

Read from SKILL.md and the folder at commit 616deb5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • rube.app

    Also links to:

    • composio.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Posthog Automation loads about 2k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 864 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davepoon/buildwithclaude at commit 616deb5, republished under its MIT licence (© davepoon). 864 words, ~2,036 tokens.

Download SKILL.mdSave it as .claude/skills/posthog-automation/SKILL.md (or your agent's skills folder).
name
posthog-automation
description
Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations. Always search tools first for current schemas.
requires.mcp
rube
category
devops

PostHog Automation via Rube MCP

Automate PostHog product analytics and feature flag management through Composio's PostHog toolkit via Rube MCP.

Toolkit docs: composio.dev/toolkits/posthog

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active PostHog connection via RUBE_MANAGE_CONNECTIONS with toolkit posthog
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit posthog
  3. If connection is not ACTIVE, follow the returned auth link to complete PostHog authentication
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Capture Events

When to use: User wants to send event data to PostHog for analytics tracking

Tool sequence:

  1. POSTHOG_CAPTURE_EVENT - Send one or more events to PostHog [Required]

Key parameters:

  • event: Event name (e.g., '$pageview', 'user_signed_up', 'purchase_completed')
  • distinct_id: Unique user identifier (required)
  • properties: Object with event-specific properties
  • timestamp: ISO 8601 timestamp (optional; defaults to server time)

Pitfalls:

  • distinct_id is required for every event; identifies the user/device
  • PostHog system events use $ prefix (e.g., '$pageview', '$identify')
  • Custom events should NOT use the $ prefix
  • Properties are freeform; maintain consistent schemas across events
  • Events are processed asynchronously; ingestion delay is typically seconds
2. List and Filter Events

When to use: User wants to browse or search through captured events

Tool sequence:

  1. POSTHOG_LIST_AND_FILTER_PROJECT_EVENTS - Query events with filters [Required]

Key parameters:

  • project_id: PostHog project ID (required)
  • event: Filter by event name
  • person_id: Filter by person ID
  • after: Events after this ISO 8601 timestamp
  • before: Events before this ISO 8601 timestamp
  • limit: Maximum events to return
  • offset: Pagination offset

Pitfalls:

  • project_id is required; resolve via LIST_PROJECTS first
  • Date filters use ISO 8601 format (e.g., '2024-01-15T00:00:00Z')
  • Large event volumes require pagination; use offset and limit
  • Results are returned in reverse chronological order by default
  • Event properties are nested; parse carefully
3. Manage Feature Flags

When to use: User wants to create, view, or manage feature flags

Tool sequence:

  1. POSTHOG_LIST_AND_MANAGE_PROJECT_FEATURE_FLAGS - List existing feature flags [Required]
  2. POSTHOG_RETRIEVE_FEATURE_FLAG_DETAILS - Get detailed flag configuration [Optional]
  3. POSTHOG_CREATE_FEATURE_FLAGS_FOR_PROJECT - Create a new feature flag [Optional]

Key parameters:

  • For listing: project_id (required)
  • For details: project_id, id (feature flag ID)
  • For creation:
    • project_id: Target project
    • key: Flag key (e.g., 'new-dashboard-beta')
    • name: Human-readable name
    • filters: Targeting rules and rollout percentage
    • active: Whether the flag is enabled

Pitfalls:

  • Feature flag key must be unique within a project
  • Flag keys should use kebab-case (e.g., 'my-feature-flag')
  • filters define targeting groups with properties and rollout percentages
  • Creating a flag with active: true immediately enables it for matching users
  • Flag changes take effect within seconds due to PostHog's polling mechanism
4. Manage Projects

When to use: User wants to list or inspect PostHog projects and organizations

Tool sequence:

  1. POSTHOG_LIST_PROJECTS_IN_ORGANIZATION_WITH_PAGINATION - List all projects [Required]

Key parameters:

  • organization_id: Organization identifier (may be optional depending on auth)
  • limit: Number of results per page
  • offset: Pagination offset

Pitfalls:

  • Project IDs are numeric; used as parameters in most other endpoints
  • Organization ID may be required; check your PostHog setup
  • Pagination is offset-based; iterate until results are empty
  • Project settings include API keys and configuration details
Show full SKILL.md (336 more words)Show less
5. User Profile and Authentication

When to use: User wants to check current user details or verify API access

Tool sequence:

  1. POSTHOG_WHOAMI - Get current API user information [Optional]
  2. POSTHOG_RETRIEVE_CURRENT_USER_PROFILE - Get detailed user profile [Optional]

Key parameters:

  • No required parameters for either call
  • Returns current authenticated user's details, permissions, and organization info

Pitfalls:

  • WHOAMI is a lightweight check; use for verifying API connectivity
  • User profile includes organization membership and permissions
  • These endpoints confirm the API key's access level and scope

Common Patterns

ID Resolution

Organization -> Project ID:

1. Call POSTHOG_LIST_PROJECTS_IN_ORGANIZATION_WITH_PAGINATION
2. Find project by name in results
3. Extract id (numeric) for use in other endpoints

Feature flag name -> Flag ID:

1. Call POSTHOG_LIST_AND_MANAGE_PROJECT_FEATURE_FLAGS with project_id
2. Find flag by key or name
3. Extract id for detailed operations
Feature Flag Targeting

Feature flags support sophisticated targeting:

json
{
  "filters": {
    "groups": [
      {
        "properties": [
          {"key": "email", "value": "@company.com", "operator": "icontains"}
        ],
        "rollout_percentage": 100
      },
      {
        "properties": [],
        "rollout_percentage": 10
      }
    ]
  }
}
  • Groups are evaluated in order; first matching group determines the rollout
  • Properties filter users by their traits
  • Rollout percentage determines what fraction of matching users see the flag
Pagination
  • Events: Use offset and limit (offset-based)
  • Feature flags: Use offset and limit (offset-based)
  • Projects: Use offset and limit (offset-based)
  • Continue until results array is empty or smaller than limit

Known Pitfalls

Project IDs:

  • Required for most API endpoints
  • Always resolve project names to numeric IDs first
  • Multiple projects can exist in one organization

Event Naming:

  • System events use $ prefix ($pageview, $identify, $autocapture)
  • Custom events should NOT use $ prefix
  • Event names are case-sensitive; maintain consistency

Feature Flags:

  • Flag keys must be unique within a project
  • Use kebab-case for flag keys
  • Changes propagate within seconds
  • Deleting a flag is permanent; consider disabling instead

Rate Limits:

  • Event ingestion has throughput limits
  • Batch events where possible for efficiency
  • API endpoints have per-minute rate limits

Response Parsing:

  • Response data may be nested under data or results key
  • Paginated responses include count, next, previous fields
  • Event properties are nested objects; access carefully
  • Parse defensively with fallbacks for optional fields

Quick Reference

TaskTool SlugKey Params
Capture eventPOSTHOG_CAPTURE_EVENTevent, distinct_id, properties
List eventsPOSTHOG_LIST_AND_FILTER_PROJECT_EVENTSproject_id, event, after, before
List feature flagsPOSTHOG_LIST_AND_MANAGE_PROJECT_FEATURE_FLAGSproject_id
Get flag detailsPOSTHOG_RETRIEVE_FEATURE_FLAG_DETAILSproject_id, id
Create flagPOSTHOG_CREATE_FEATURE_FLAGS_FOR_PROJECTproject_id, key, filters
List projectsPOSTHOG_LIST_PROJECTS_IN_ORGANIZATION_WITH_PAGINATIONorganization_id
Who am IPOSTHOG_WHOAMI(none)
User profilePOSTHOG_RETRIEVE_CURRENT_USER_PROFILE(none)

Powered by Composio

© davepoon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/all-skills/skills/posthog-automation of davepoon/buildwithclaude.

Open the folder on GitHubat commit 616deb5

Used in 7 other repositories

We found 17 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 7 other GitHub owners. This page covers the copy in davepoon/buildwithclaude, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Posthog Automation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Posthog Automation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Posthog Automation this skilldavepoon/buildwithclaude3.6k7 repos~2kAutomated safety check: PassMIT
Composioyc-software/qm15k—~1.6kAutomated safety check: PassMIT
Connect Apps with ComposioComposioHQ/awesome-claude-skills77k3 repos~557Automated safety check: PassNone
Abuselpdb AutomationComposioHQ/awesome-claude-skills77k3 repos~738Automated safety check: PassNone
Accredible Certificates AutomationComposioHQ/awesome-claude-skills77k3 repos~790Automated safety check: PassNone
Composio Cloud Toolsquarqlabs/argus279—~543Automated safety check: PassApache-2.0

Similar skills

  • Composio

    yc-software/qm

    Show the app connection picker or setup widget when users ask to connect apps, reopen setup, or need an app that isn't connected yet.

    15k GitHub stars~1.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Connect Apps with Composio

    ComposioHQ/awesome-claude-skills

    Connects an agent to 1000+ external apps through the Composio Tool Router plugin, so it can actually send emails, create issues and post messages instead of only drafting them.

    77k GitHub starsUsed in 3 repos~557 tokens
    Productivity & AutomationAuto-check passed
  • Abuselpdb Automation

    ComposioHQ/awesome-claude-skills

    Automate Abuselpdb tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Accredible Certificates Automation

    ComposioHQ/awesome-claude-skills

    Automate Accredible Certificates tasks via Rube MCP (Composio).

    77k GitHub starsUsed in 3 repos~790 tokens
    Productivity & AutomationAuto-check passed
  • Composio Cloud Tools

    quarqlabs/argus

    Routes requests to external SaaS apps such as GitHub, Gmail, Google Calendar, Slack, Notion and Linear through cloud tools, with safeguards on irreversible actions.

    279 GitHub stars~543 tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Active Campaign Automation

    ComposioHQ/awesome-claude-skills

    Automate ActiveCampaign tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~758 tokens
    Productivity & AutomationAuto-check passed

More from davepoon/buildwithclaude

All 246 skills in this repo
  • iOS Hig Design Guide

    davepoon/buildwithclaude

    Build, update, and apply iOS design specifications using Apple Human Interface Guidelines (HIG) source data.

    3.6k GitHub stars~735 tokensUpdated today
    Auto-check passed
  • Video Downloader

    davepoon/buildwithclaude

    Download YouTube videos with customizable quality and format options.

    3.6k GitHub starsUsed in 1 repo~871 tokens
    Auto-check passed
  • Qwen Vision

    davepoon/buildwithclaude

    A skill your agent uses when the user asks to "analyze video", "watch this video", "what happens in this video", "describe this clip", "review this footage", "classify these videos", "compare…

    3.6k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Atlas Cloud Media

    davepoon/buildwithclaude

    Discover Atlas Cloud image and video models, inspect their live schemas, and submit one confirmed media generation request with bounded GET polling.

    3.6k GitHub stars~852 tokensUpdated today
    Auto-check passed
  • Browser Extension Launch

    davepoon/buildwithclaude

    面向没有编程经验的用户,把想法做成可试用的浏览器插件,并完成检查、商店材料、审核提交和上线验证;也用于继续已有插件、排错和发布新版。用户说“帮我做个插件”“把插件上架”“继续我的插件”时使用。普通网站开发、仅查询插件知识不触发。

    3.6k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Slack Gif Creator

    davepoon/buildwithclaude

    Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives.

    3.6k GitHub starsUsed in 12 repos~4.3k tokens
    Auto-check passed

Works with

Questions about Posthog Automation

What does Posthog Automation do?

Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations. Posthog Automation is an agent skill from davepoon/buildwithclaude. Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations.

When should I use Posthog Automation?

Posthog Automation fits situations like: tasks that involve App automation through connectors.

How do I install Posthog Automation in Claude Code?

Run `npx skills add davepoon/buildwithclaude --skill posthog-automation -a claude-code`. Or copy the skill folder (plugins/all-skills/skills/posthog-automation in davepoon/buildwithclaude) into .claude/skills/posthog-automation in your project. Claude Code loads it when a task matches its description.

How do I install Posthog Automation in Codex?

Run `npx skills add davepoon/buildwithclaude --skill posthog-automation -a codex`. Or copy the skill folder (plugins/all-skills/skills/posthog-automation in davepoon/buildwithclaude) into .agents/skills/posthog-automation in your project. Codex loads it when a task matches its description.

Can I use Posthog Automation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davepoon/buildwithclaude --skill posthog-automation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/posthog-automation, .gemini/skills/posthog-automation, .github/skills/posthog-automation and .opencode/skills/posthog-automation in your project.

What does Posthog Automation need to run?

SKILL.md names no scripts, command-line tools or credentials: Posthog Automation is instructions for the agent only.

Does Posthog Automation access the network?

SKILL.md names 2 domains. In commands or code: rube.app; the agent is likely to contact it when it follows the instructions. As links in the text: composio.dev. This is read from the text; nothing was executed.

Is Posthog Automation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Posthog Automation use?

Posthog Automation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Posthog Automation use?

About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Posthog Automation?

Skills that share tags, products or a category with Posthog Automation: Composio (yc-software/qm, 15k stars), Connect Apps with Composio (ComposioHQ/awesome-claude-skills, 77k stars), Abuselpdb Automation (ComposioHQ/awesome-claude-skills, 77k stars) and Accredible Certificates Automation (ComposioHQ/awesome-claude-skills, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Posthog Automation?

davepoon (a GitHub user) maintains it in davepoon/buildwithclaude, which has 3,605 GitHub stars. The repository holds 246 skills in this directory. The repository was last updated on October 9, 2026.

Source: davepoon/buildwithclaude on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.