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.
npx skills add PostHog/posthog-foss --skill ingestion-pipeline-doctor-nodejsgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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.
[](https://agentmods.dev/skills/posthog/posthog-foss/ingestion-pipeline-doctor-nodejs)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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 |
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.
- 1mo ago Changed · +2 lines 674d7f775110
- 3mo ago First seen · 72 lines · 43 tokens per session scan A e80b4362325d
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.
ingestion-pipeline-doctor-nodejs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ingestion-pipeline-doctor-nodejsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 43 | Claude Code, Codex |
| data-manager-api-troubleshootinggoogle/skills | Skill | 26k | today | Apache-2.0 | A | 179 | Claude Code, Codex |
| api-integration-architectsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 33 | Claude Code |
| openai-api-troubleshootingasgeirtj/system_prompts_leaks | Skill | 74k | today | CC0-1.0 | A | 91 | Claude Code, Codex |
| printing-press-amendmvanhorn/cli-printing-press | Skill | 5.1k | today | MIT | A | 222 | Claude Code |
| mirrord-replaymetalbear-co/mirrord | Skill | 5.4k | today | MIT | A | 98 | Claude Code |
| convex-performance-auditopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 38 | Codex |