diagnosing-endpoint-performance

diagnosing-endpoint-performance is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 92 tokens per session (2,513 once invoked), scanned A, original, MIT.

A guide for finding why a PostHog endpoint is slow, expensive, or timing out. It examines the endpoint's query, cache settings, materialisation, variables, and execution history.

In plain words
What is it for?
Use it to decide whether to change cache duration, enable materialisation, restructure inputs, or rewrite a query.
Why use it?
It connects observed performance problems to specific configuration or query changes instead of leaving the cause unclear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to decide whether to change cache duration, enable materialisation, restructure inputs, or rewrite a query.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/diagnosing-endpoint-performance
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 diagnosing-endpoint-performance
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 diagnosing-endpoint-performance

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/diagnosing-endpoint-performance"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/diagnosing-endpoint-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,513 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: 1 finding, 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 Prompt Injection · line 28
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00092 $0.02513
Opus 5.5 $0.00037 $0.01005
Sonnet 5.5 $0.00018 $0.00503
Haiku 4.5 $0.00009 $0.00251

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

Security

Grade A, and why

diagnosing-endpoint-performance 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/endpoints/skills/diagnosing-endpoint-performance/SKILL.md · 194 lines

How it starts

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

Diagnosing endpoint performance

This skill walks through a specific endpoint that is slow, expensive, or unreliable, and produces a concrete recommendation. It is the deep-dive counterpart to auditing-endpoints (which finds candidates).

When to use this skill

  • "This endpoint is slow / timing out"
  • "Why is my endpoint hitting the cost cap?"
  • "Should I materialise X?"
  • An endpoint surfaced from auditing-endpoints as a failing materialisation or expensive caller
  • The user has a specific endpoint in mind and wants advice

If the question is project-wide ("what should I clean up?"), use auditing-endpoints first.

Available tools

Tool Purpose
endpoint-get Full endpoint config: query, current version, data_freshness_seconds, materialisation status
endpoint-versions History of every version (query + materialisation state); which version is current
endpoint-materialization-status Whether materialisation is eligible, current state, last run, last error
endpoints-materialization-preview What the materialised query would look like, plus the rejection reason if ineligible
endpoints-last-execution-times When was it last called (endpoint-level sanity-check that it is in active use)
execute-sql Query query_log for endpoint-level call frequency and per-call duration/bytes

The decision tree

When deciding what to recommend, walk these in order — the first one that applies is the cheapest fix.

Step 1 — Is it cached at all?

Fetch the endpoint and look at data_freshness_seconds (it sets both the cache TTL and, when materialised, the refresh cadence). If the user's traffic calls the same parameters repeatedly within that window, every call after the first is a cache hit and effectively free.

Read the full file on GitHub · 194 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 · +2 lines 58206a279089
  2. 1mo ago Changed · -24 lines 2bc38e8c1440
  3. 2mo ago First seen · 216 lines · 92 tokens per session scan A bac7ba1c2dd1

Subscribe to this mod's changes

diagnosing-endpoint-performance is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 2,513 once invoked, about $0.0004 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-09-03.

Related

diagnosing-endpoint-performance compared with skills from other repositories

diagnosing-endpoint-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagnosing-endpoint-performancePostHog/posthog-fossSkill734todayMITA92Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex