CtrlK
BlogDocsLog inGet started
Tessl Logo

consuming-endpoints-from-client-code

Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api/openapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says "how do I call my endpoint", "generate a client for this", or "what auth header do I use".

70

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Highly actionable and well-sequenced content with concrete commands, payloads, and error handling. Its main weakness is progressive disclosure: a long monolithic file with no external references, where reference-grade detail is inlined rather than split out.

Suggestions

Move advanced/rarely-needed detail — the per-team rate-limit bucket numbers, the managed-warehouse pricing note, and the posthog-cli subcommand list — into a references/ file (e.g. RATE_LIMITS.md or ADVANCED.md) linked from a short summary in SKILL.md.

Trim conversational padding such as the 'known limitation the team plans to lift' roadmap note and the speculative future-pricing paragraph, keeping only what is actionable today.

Tighten the example interaction or relocate it to an EXAMPLES.md reference, so SKILL.md stays a lean overview pointing to deeper material.

DimensionReasoningScore

Conciseness

Mostly efficient and specific to PostHog endpoints without explaining basics Claude already knows, though a few passages (the materialised-limit roadmap note, the speculative pricing note, the full example interaction) are conversational padding that could be trimmed.

4 / 5

Actionability

Fully executable guidance throughout: exact endpoint URL, Authorization header, sample JSON payload, per-language generator commands, an error-status table with handling, and a copy-paste-ready example call.

5 / 5

Workflow Clarity

A clear 7-step Workflow with a verification checkpoint (optionally call 'endpoint-run' to confirm the payload works); error-recovery guidance lives in the error table rather than as explicit feedback loops inside the steps, leaving a minor gap.

4 / 5

Progressive Disclosure

Well-organized with clear section headers, but as a single ~228-line file with no bundle references, advanced detail (rate-limit bucket numbers, pricing forecasts, CLI subcommands, the full example interaction) is inlined that could be split into one-level-deep reference files.

3 / 5

Total

16

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong, specific description that clearly states both capabilities and trigger conditions, with concrete user-quoted phrases and a well-scoped niche. Only minor trigger-term synonym coverage keeps it from a perfect mark on that one dimension.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'fetching the OpenAPI spec, generating a typed client', 'sending the right auth header', 'shaping the variables payload', 'handling rate-limit and materialised-endpoint error responses' — with comprehensive coverage of the caller-side task.

5 / 5

Completeness

Explicitly answers both what (wire a PostHog endpoint into a client app/SDK with spec, client gen, auth, payload, errors) and when (concrete 'Use when the user says...' trigger phrases).

5 / 5

Trigger Term Quality

Includes natural user phrases ('how do I call my endpoint', 'generate a client for this', 'what auth header do I use') that users would actually say, though a few synonymous trigger terms (e.g. 'client SDK', 'TypeScript client') are absent.

4 / 5

Distinctiveness Conflict Risk

Occupies a clear niche as the caller-side counterpart to 'creating-an-endpoint', with distinct triggers and materialised/HogQL specifics that minimize overlap with other skills.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
PostHog/posthog
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.