posthog-desktop

posthog-desktop is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 176 tokens per session (1,634 once invoked), scanned A, original, MIT.

A set of working instructions for PostHog’s Electron desktop app, a desktop program built with web technologies. The app lives in its own nested workspace with separate dependencies, tools, and tests.

In plain words
What is it for?
Use it when working under products/desktop, including the Electron app, its agent framework, or related desktop packages and tests.
Why use it?
It prevents desktop work from being mixed up with PostHog’s main web, mobile, or Django codebases, where different rules apply.

Skill for Claude CodeCodex

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

Good fit Use it when working under products/desktop, including the Electron app, its agent framework, or related desktop packages and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/posthog-desktop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill posthog-desktop
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

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 posthog-desktop

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/posthog-desktop/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/posthog-desktop)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/posthog-desktop"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/posthog-desktop/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 posthog-desktop

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/posthog-desktop"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/posthog-desktop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 74
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Agent Snooping · line 88
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00176 $0.01634
Opus 5.5 $0.00070 $0.00654
Sonnet 5.5 $0.00035 $0.00327
Haiku 4.5 $0.00018 $0.00163

Measured 1mo ago against content hash 4a24686757ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

posthog-desktop scanned grade A with 0 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/posthog-desktop/SKILL.md · 105 lines

How it starts

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

Working in products/desktop

products/desktop/ is the PostHog desktop app (Electron + agent framework), imported from the now-archived PostHog/code repo and kept as a nested standalone workspace: own pnpm-workspace.yaml, own lockfile, own Biome config, Node 22. It is excluded from the root pnpm-workspace.yaml, from ruff/mypy, from root Jest, from oxlint/oxfmt, from stylelint and from pytest. posthog/posthog is the only source of truth: PRs, CI and publishing all happen here, never in PostHog/code.

Read products/desktop/AGENTS.md before writing code in this tree. It is the source of truth for architecture, layer boundaries, DI, and style. This skill only covers the scoping contract around it.

Scope contract

Default: everything you read, edit, run and test lives under products/desktop/. Run all commands with that as cwd. Do not go fishing in frontend/, posthog/, or other products/* for patterns — the desktop tree has its own, and copying monorepo idioms in is a defect.

Step outside only when one of these is true:

  1. The user explicitly tells you to.
  2. A backend API the app calls needs to change. The client is packages/api-client/; the endpoints it hits live in the Django monorepo (see below).
  3. Desktop CI / config that lives at the root by design. The list is fixed: .github/workflows/desktop-*.yml, .github/actions/desktop-*/, .github/scripts/desktop/, and the exclusion entries in pnpm-workspace.yaml, pyproject.toml, pytest.ini, package.json (lint:css), frontend/jest.config.ts, .dockerignore, .oxlintrc.json, .oxfmtrc.json, .config/.markdownlint-cli2.jsonc, .github/workflows/ci-{frontend,storybook}.yml, .depot/workflows/ci-backend.yml. Touch these only to keep an exclusion correct; say so when you do.
  4. The agent runtime changes. @posthog/agent, agent-contracts, enricher, git and harness live in a sibling workspace at packages/agent/ (same toolchain, own lockfile), because cloud sandboxes boot the agent without the desktop app. Work there, then run pnpm build:agent from products/desktop/ so desktop's turbo cache sees the change.

Read the full file on GitHub · 105 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. 1mo ago Changed · -3 tokens per session 4a24686757ce
  2. 1mo ago Changed 969d02db345b
  3. 2mo ago Changed · +4 lines fcf0244618eb
  4. 3mo ago Changed · +3 lines · +25 tokens per session 7f1a3af54dbd
  5. 3mo ago First seen · 98 lines · 154 tokens per session scan A 4757bc3b3467

Subscribe to this mod's changes

posthog-desktop is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 176 tokens to every session and 1,634 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

posthog-desktop compared with skills from other repositories

posthog-desktop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
posthog-desktopPostHog/posthog-fossSkill736todayMITA176Claude 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/superpowersSkill333k7d agoMITA21Claude Code