creating-an-endpoint

Create a PostHog endpoint with the right shape on the first try - covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says "create an endpoint", "expose this query as an API", "turn this insight into an endpoint", or asks for help structuring a new endpoint. Steers away from...

Publisher type
Official
Repository
posthog/skills
Skill
creating-an-endpoint
GitHub repository stars
61
npx skills add https://github.com/posthog/skills --skill creating-an-endpoint

Agent skills can contain instructions that call tools or modify files. Review the source and permissions before installation.

What this resource does

creating-an-endpoint is a reusable AI-agent instruction package published by PostHog. It gives a compatible agent a repeatable procedure for work in this area: Product analytics.

Best for

  • Founders and teams using an AI coding or work agent for tasks in this area: Product analytics.
  • Repeatable work that matches this capability: Create a PostHog endpoint with the right shape on the first try - covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says "create an endpoint", "expose this query as an API", "turn this insight into an endpoint", or asks for help structuring a new endpoint. Steers away from...
  • Users who want a publisher-defined workflow they can inspect before running.

What to prepare

  • A compatible AI agent that supports Agent Skills.
  • Access to the project or files the task will use.
  • Any provider accounts, command-line tools, or credentials requested by the skill.
  • A safe branch or backup when the skill may modify files.

How to use it

  1. Open the original repository and review SKILL.md, referenced files, scripts, and requested permissions.
  2. Copy the install command and run it from the workspace where you want to use creating-an-endpoint.
  3. Reload or restart the agent if it does not discover the new skill immediately.
  4. Give the agent a concrete task in this area: Product analytics. Explicitly name creating-an-endpoint when you want to require its use.
  5. Review the proposed actions and output before approving file changes, shell commands, credentials, or external writes.

Example request

Use the creating-an-endpoint skill for this task. First inspect the available context, explain the proposed approach, and wait for approval before any sensitive or destructive action.

Before you continue: Publisher category: Official. Publication in this catalog is not a security guarantee. Review the current repository before installation.

Source and review

Source check: 2026-09-05.

PostHog