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,243 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,243 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.01243
Opus 5.5 $0.00017 $0.00497
Sonnet 5.5 $0.00009 $0.00249
Haiku 4.5 $0.00004 $0.00124

Measured 1mo ago against content hash 674d7f775110, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/ingestion-pipeline-doctor-nodejs/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 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/timeout, side effects, 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 · 74 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 · +2 lines 674d7f775110
  2. 3mo 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 (736 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 1,243 once invoked, about $0.0002 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

ingestion-pipeline-doctor-nodejs compared with skills from other repositories

ingestion-pipeline-doctor-nodejs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ingestion-pipeline-doctor-nodejsPostHog/posthog-fossSkill736todayMITA43Claude Code, Codex
data-manager-api-troubleshootinggoogle/skillsSkill26ktodayApache-2.0A179Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill51ktodayMITA33Claude Code
openai-api-troubleshootingasgeirtj/system_prompts_leaksSkill74ktodayCC0-1.0A91Claude Code, Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1ktodayMITA222Claude Code
mirrord-replaymetalbear-co/mirrordSkill5.4ktodayMITA98Claude Code
convex-performance-auditopenclaw/clawhubSkill9.6ktodayMITA38Codex