ingestion-pipeline-doctor-nodejs

ingestion-pipeline-doctor-nodejs is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 43 tokens per session (1,041 once invoked), scanned A, original, MIT.

A reference guide to PostHog's event-ingestion pipeline, which receives messages and processes them through ordered steps. It also explains which checking agents and source files cover different pipeline concerns.

In plain words
What is it for?
Use it when changing message parsing, enrichment, per-user processing, batching, warnings, results, side effects, or the related convention checks.
Why use it?
It gives developers a quick map of a large data-processing system, so they can find the right code and review checks without tracing the whole pipeline first.

Skill for Claude CodeCodex

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

Good fit Use it when changing message parsing, enrichment, per-user processing, batching, warnings, results, side effects, or the related convention checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/ingestion-pipeline-doctor-nodejs
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 ingestion-pipeline-doctor-nodejs
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 ingestion-pipeline-doctor-nodejs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/ingestion-pipeline-doctor-nodejs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/ingestion-pipeline-doctor-nodejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,041 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 pass 7 Sept 2026
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.00043 $0.01041
Opus 5 $0.00022 $0.00521
Sonnet 5 $0.00009 $0.00208
Haiku 4.5 $0.00004 $0.00104

Measured 12d ago against content hash e80b4362325d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ingestion-pipeline-doctor-nodejs 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 12d 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/ingestion-pipeline-doctor-nodejs/SKILL.md · 72 lines

How it starts

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

Pipeline Doctor

Quick reference for PostHog's ingestion pipeline framework and its convention-checking agents.

Architecture overview

The ingestion pipeline processes events through a typed, composable step chain:

Kafka message
  → messageAware()
    → parse headers/body
    → sequentially() for preprocessing
    → filterMap() to enrich context (e.g., team lookup)
    → teamAware()
      → concurrentlyPerGroup(token:distinctId) for per-entity processing
      → gather()
      → pipeChunk() for chunk operations
      → handleIngestionWarnings()
    → handleResults()
  → handleSideEffects()
  → build()

See nodejs/src/ingestion/pipelines/analytics/joined-ingestion-pipeline.ts for the real implementation.

Key file locations

What Where
Step type nodejs/src/ingestion/framework/steps.ts
Result types nodejs/src/ingestion/framework/results.ts
Doc-test chapters nodejs/src/ingestion/framework/docs/*.test.ts
Joined pipeline nodejs/src/ingestion/pipelines/analytics/joined-ingestion-pipeline.ts
Doctor agents .claude/agents/ingestion/
Test helpers nodejs/src/ingestion/framework/docs/helpers.ts

Which agent to use

Concern Agent When to use
Step structure pipeline-step-doctor Factory pattern, type extension, config injection, naming
Result handling pipeline-result-doctor ok/dlq/drop/redirect, side effects, ingestion warnings
Composition pipeline-composition-doctor Builder chain, concurrency, grouping, branching, retries
Testing pipeline-testing-doctor Test helpers, assertions, fake timers, doc-test style

Read the full file on GitHub · 72 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. 12d ago First seen · 72 lines · 43 tokens per session scan A e80b4362325d

Subscribe to this mod's changes

ingestion-pipeline-doctor-nodejs is a skill published in the GitHub repository PostHog/posthog-foss (715 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,041 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

convex-performance-audit

Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read amplification.

openclaw/clawhub · 38 tokens

convex-insights

Query a running Convex app's logs + health in natural language (official MCP): failures, slow/expensive functions, deploy causality — scoped, evidence-backed, with a dashboard deep link.

openclaw/clawhub · 45 tokens

ssl-proxy-troubleshoot

Systematic workflow for troubleshooting SSL/proxy connectivity issues with government websites.

HKUDS/OpenSpace · 20 tokens

diagnose-backend-bug

Diagnose a bounded backend or multi-service failure from GitHub Issues, Jira, Aone, user-provided exports, logs, traces, responses, stack traces, or job records. Use when a service, API, RPC, worker, queue, CLI, or scheduled job bug needs correlation through the project's existing observability route before repair; do…

QoderAI/better-harness · 87 tokens

axiom-networking

Use when implementing or debugging ANY network connection, API call, or socket. Covers URLSession, Network.framework, NetworkConnection, connection diagnostics.

CharlesWiltgen/Axiom · 33 tokens