run-posthog

run-posthog is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 58 tokens per session (3,357 once invoked), scanned C, original, MIT.

A runbook for starting, inspecting, and checking the PostHog development environment. PostHog is a software product for product analytics, and its development stack includes the services needed to run it locally.

In plain words
What is it for?
Use it to launch PostHog, check its local services, inspect running processes, and verify UI changes through the running application.
Why use it?
It helps developers tell whether the development stack is reachable and healthy before testing changes. It also provides a consistent way to inspect running processes and verify interface changes in the live app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is hogli devbox:exec -- bash -lc 'cd ~/posthog && ./bin/hogli up -d -y'.

Good fit Use it to launch PostHog, check its local services, inspect running processes, and verify UI changes through the running application.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss
agentmods
npx agentmods add skills/posthog/posthog-foss/run-posthog

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for run-posthog

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/run-posthog/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/run-posthog)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/run-posthog"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/run-posthog/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for run-posthog

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/run-posthog"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/run-posthog.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,357 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.03357
Opus 5.5 $0.00023 $0.01343
Sonnet 5.5 $0.00012 $0.00671
Haiku 4.5 $0.00006 $0.00336

Measured 16d ago against content hash a6ae53e6ec68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

run-posthog scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **flox** 1.16+ provisions the toolchain — `curl -fsSL https://get.flox.dev | sh`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **flox** 1.16+ provisions the toolchain — `curl -fsSL https://get.flox.dev | sh`
.agents/skills/run-posthog/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PostHog is Django + Vite + Celery + plugin-server, backed by Postgres, ClickHouse, Kafka, Redis, and Temporal in Docker, fronted by an Envoy-style proxy at http://localhost:8010. The dev stack runs in detached mode under phrocs so the running processes are inspectable from this session via the phrocs MCP server. Browser MCP servers (chrome-devtools-mcp, playwright) drive the UI; nothing about this skill ships its own driver.

For /run: get the app reachable so the user can drive it. Success = http://localhost:8010 serves and the core units are ready. Do not chase crashed migration units, do not seed data unless asked.

For /verify: build (Vite HMR handles this automatically for frontend; backend changes need no build), run the same launch as /run, then drive the live app via a browser MCP to observe the change. The observation is the verification — tests and type checks don't substitute. For frontend/UI changes, the deep version of this workflow is the repo-local qa-frontend skill in local mode: scenario design from the diff, reproducibility retries, and annotated evidence.

All paths below are relative to the repo root.

Prerequisites

  • flox 1.16+ provisions the toolchain — curl -fsSL https://get.flox.dev | sh
  • Docker — OrbStack preferred on macOS (brew install --cask orbstack)
  • 1Password CLI (optional) — brew install 1password-cli, only if .env.local contains op:// refs

Launch

For a normal developer stack, use the saved interactive setup:

hogli dev:setup          # first time only — interactive wizard picks which workers to run
hogli up -d -y           # start the stack detached under phrocs
hogli services:ready -y  # wait for Docker services (Postgres, CH, Kafka, Redis)
hogli wait -y            # broad all-process signal; confirm with the checks below
hogli doctor             # optional: stale migrations, zombie phrocs, disk pressure

For agent-managed QA, use the normal background stack unless the user asks to tune services. On a devbox, prefer hogli devbox:start --start-app for a new/stopped box; if it is already running without the app, start PostHog inside it:

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +1 lines a6ae53e6ec68
  2. 23d ago Changed scan D → C cccf94ffc5f6
  3. 1mo ago Changed b1fc742271f3
  4. 2mo ago Changed 4d99986a08e7
  5. 2mo ago Changed b1523f4016ba
  6. 3mo ago First seen · 148 lines · 58 tokens per session scan D 7a4205cec65b

Subscribe to this mod's changes

run-posthog is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 3,357 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

run-posthog compared with skills from other repositories

run-posthog next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-posthogPostHog/posthog-fossSkill736todayMITC58Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code