creating-an-endpoint

creating-an-endpoint is a skill for Claude Code, Codex from PostHog/ai-plugin. It costs 131 tokens per session (2,607 once invoked), scanned A, original, no licence file.

A workflow for creating a PostHog endpoint, which is an API address that exposes a saved query to other software. It covers how to shape the query, its variables, freshness, and materialisation choices.

In plain words
What is it for?
Turning a HogQL or insight query into an API route, choosing the query type, naming it, defining variables, and deciding whether to materialise it immediately.
Why use it?
It helps create an endpoint with the intended inputs and data-update behaviour instead of correcting its design later.

Skill for Claude CodeCodex

Part of the posthog plugin — 51 skills, 3 commands, 1 agent, 2 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/posthog/ai-plugin/creating-an-endpoint
Any agent
npx skills add PostHog/ai-plugin --skill creating-an-endpoint
Clone the repo
git clone --depth 1 https://github.com/PostHog/ai-plugin

Made for: Claude Code, Codex.

Or install posthog, the plugin that ships this one along with the rest of its 51 skills, 3 commands, 1 agent, 2 hooks, 1 MCP server.

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 creating-an-endpoint

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/ai-plugin/creating-an-endpoint.svg)](https://agentmods.dev/skills/posthog/ai-plugin/creating-an-endpoint)
Your own site
<a href="https://agentmods.dev/skills/posthog/ai-plugin/creating-an-endpoint"><img src="https://agentmods.dev/badge/skills/posthog/ai-plugin/creating-an-endpoint.svg" alt="Measured on agentmods" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00131 $0.02607
Opus 5 $0.00066 $0.01303
Sonnet 5 $0.00026 $0.00521
Haiku 4.5 $0.00013 $0.00261

Measured 4d ago against content hash bc63e6db5588, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-an-endpoint 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 4d 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.

skills/creating-an-endpoint/SKILL.md · 225 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 225 lines · 131 tokens per session scan A bc63e6db5588

Subscribe to this mod's changes

creating-an-endpoint is a skill published in the GitHub repository PostHog/ai-plugin (80 stars, last pushed yesterday), with no licence file. It adds 131 tokens to every session and 2,607 once invoked, about $0.0007 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

domscribe

Work with Domscribe — the pixel-to-code bridge. Use when setting up, initializing, or configuring Domscribe for a project, OR when editing or modifying UI components (React, Vue, Next.js, Nuxt), implementing features from captured UI annotations, querying runtime context for source locations, exploring component…

patchorbit/domscribe · 94 tokens

proctor

Honest-completion ruleset for changes that touch tests or the code they cover. Use before deleting, skipping, renaming, or rewriting a test, before weakening an assertion, and before hardcoding or stubbing an implementation to make a test pass. Also covers what to do when a test looks genuinely wrong.

catfish-1234/proctor · 66 tokens

wavedash

Use when building, integrating, testing, uploading, publishing, or preparing a browser game for Wavedash, including CLI setup, Wavedash SDK features, multiplayer, achievements, leaderboards, cloud saves, player identity, user-generated content, store metadata, monetization, and content guidelines.

wvdsh/ai · 63 tokens

motherduck-build-cfa-app

Design a MotherDuck-backed customer-facing analytics app. Use for embedded analytics, multi-tenant SaaS reporting, or product analytics for external users -- whenever the decision depends on per-customer isolation, backend routing, service-account boundaries, read scaling, or Hypertenancy-style patterns.

motherduckdb/agent-skills · 63 tokens

motherduck-build-dashboard

Build a live MotherDuck dashboard as a Dive. Use when composing one shareable KPI, trend, and breakdown story over existing MotherDuck data, especially when the result should stay a saved workspace artifact rather than a full application.

motherduckdb/agent-skills · 50 tokens

motherduck-build-data-pipeline

Design an end-to-end MotherDuck data pipeline. Use for ETL/ELT workflows -- choosing raw, staging, and analytics boundaries, bulk ingestion paths, transformation sequencing, dlt/dbt integration, publication targets, or whether DuckLake is actually required.

motherduckdb/agent-skills · 59 tokens