developing-the-cli

developing-the-cli is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 186 tokens per session (1,474 once invoked), scanned A, original, MIT.

A repository-specific guide for changing PostHog's two command-line programs: one written in Rust and one written in TypeScript. It explains how to keep their behaviour aligned while both are in use.

In plain words
What is it for?
Use it before writing, fixing, or reviewing code for the two CLIs, including uploads, error handling, flags, and security fixes.
Why use it?
A change made to only one command line can leave users with different results, bugs, or security fixes depending on which program they run. The guide identifies when both must be changed and when a command exists on only one side.

Skill for Claude CodeCodex

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

Good fit Use it before writing, fixing, or reviewing code for the two CLIs, including uploads, error handling, flags, and security fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/developing-the-cli
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 developing-the-cli
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 developing-the-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/developing-the-cli"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/developing-the-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,474 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.
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.00186 $0.01474
Opus 5.5 $0.00074 $0.00590
Sonnet 5.5 $0.00037 $0.00295
Haiku 4.5 $0.00019 $0.00147

Measured today against content hash 868236518dc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

developing-the-cli 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 today.

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/developing-the-cli/SKILL.md · 96 lines

How it starts

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

Developing the CLI

PostHog has two command lines in this repo:

CLI Folder Language Status
posthog-cli cli/ Rust Published. Customers and the SDK build integrations run it today
hog hog/ TypeScript, Bun Version 1, the successor. Not published yet; see hog/README.md

Both stay in use until every caller moves to hog, so both must behave the same.

Change both CLIs

A change to one CLI is REQUIRED to land in the other one, in the same PR. This covers features, bug fixes, error handling, new flags, and security fixes. A fix that lands only in cli/ leaves the bug in hog, and the reverse ships a hog that posthog-cli users never get.

The only exceptions are commands that exist on one side:

  • hog/src/commands/legacy.ts lists the commands posthog-cli still owns (logs, tasks, upgrade). A change to those touches only cli/.
  • hog-only commands, such as hog setup, hog api, hog ci and hog auth migrate, have no Rust counterpart.
  • The "Not planned" list in hog/README.md names posthog-cli commands hog will not port.

When a change does not apply to the other CLI, say why in the PR description, for example "hog prints only the error message, which never contains the URL". Reviewers: a PR that touches cli/src/ or hog/src/ without the other side, and without that sentence, is incomplete.

Find the matching code

Port the behavior, not the code. The two CLIs are laid out differently.

  1. Map the command with the table in hog/MIGRATING.md (sourcemap upload becomes error-tracking upload, and so on).

  2. Find the hog side with the layout table in hog/AGENTS.md. Common pairs:

    posthog-cli hog
    cli/src/api/symbol_sets.rs (upload protocol) hog/src/error-tracking/upload.ts
    cli/src/sourcemaps/, cli/src/debug_symbols/ hog/src/error-tracking/kinds/, .../native/
    cli/src/release/ hog/src/error-tracking/release.ts, git.ts
    cli/src/login.rs hog/src/commands/auth/, hog/src/posthog/
    cli/src/experimental/ hog/src/commands/query/, endpoints/, schema/

Read the full file on GitHub · 96 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. today Changed · +11 lines 868236518dc2
  2. yesterday First seen · 85 lines · 186 tokens per session scan A 2276ac83efc3

Subscribe to this mod's changes

developing-the-cli is a skill published in the GitHub repository PostHog/posthog-foss (731 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 1,474 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-11-12.

Related

developing-the-cli compared with skills from other repositories

developing-the-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
developing-the-cliPostHog/posthog-fossSkill731todayMITA186Claude Code, Codex
update-v8-versionopeninterpreter/openinterpreterSkill69ktodayApache-2.0A86Codex
ax-rust-signatureax-llm/axSkill3.0ktodayApache-2.0A36Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
releaseyologdev/yoyo-evolveSkill1.9ktodayMITA9Claude Code, Codex
ax-rust-llmax-llm/axSkill3.0ktodayApache-2.0A37Claude Code, Codex
developing-the-cliPostHog/posthogSkill41ktodaynoneA186Claude Code, Codex