CtrlK
BlogDocsLog inGet started
Tessl Logo

adopting-generated-api-types

Use when migrating frontend code from manual API client calls (`api.get`, `api.create`, `api.surveys.get`, `api.dashboards.list`, `new ApiRequest()`) and handwritten TypeScript interfaces to generated API functions and types. Triggers on files importing from `lib/api`, files with `api.get<`, `api.create<`, `api.<entity>.<method>`, manual interface definitions that duplicate backend serializers, or any frontend file that constructs API URLs by hand. Covers the full replacement workflow — finding the generated equivalent, swapping imports, adapting call sites, and removing dead manual types.

80

Quality

100%

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

100%

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

The skill body is dense, actionable, and well-structured: a concrete pipeline explanation, three manual-pattern catalogues, a sequenced workflow with verification, a decision guide, and import conventions, with details correctly offloaded to two real reference files. It avoids explaining basic concepts and stays focused on the migration task.

DimensionReasoningScore

Conciseness

The body is lean and information-dense — concrete code blocks, a pipeline diagram, and a decision table — without explaining concepts Claude already knows (e.g., what TypeScript or an API is), so nearly every token earns its place.

3 / 3

Actionability

Provides executable commands (pnpm --filter=@posthog/frontend typescript:check, hogli build:openapi, hogli test), concrete import-path conventions, and a decision table mapping scenarios to explicit actions, giving copy-paste-ready guidance.

3 / 3

Workflow Clarity

A clear six-step workflow is sequenced with explicit validation (typescript:check, grep for leftover types, run tests) and a feedback loop (fix the backend first when no generated equivalent exists), satisfying the validation requirement for the destructive type-removal step.

3 / 3

Progressive Disclosure

Well-organized overview with two clearly signaled one-level-deep references (references/type-compatibility.md and references/migration-patterns.md), both real files, with detailed before/after material appropriately split out rather than inlined.

3 / 3

Total

12

/

12

Passed

Description

100%

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

The description is specific, trigger-rich, and complete, clearly stating both the migration workflow and the file/symbol conditions that should activate the skill. It uses the standard third-person/"Use when" trigger form with no voice issues.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — "finding the generated equivalent, swapping imports, adapting call sites, and removing dead manual types" — matching the anchor for multiple specific concrete actions.

3 / 3

Completeness

Explicitly answers both what (migrating manual API calls and handwritten types to generated equivalents, with the replacement workflow) and when ("Use when migrating…", "Triggers on files importing from lib/api") with explicit triggers.

3 / 3

Trigger Term Quality

Covers concrete trigger symbols a developer references (api.get, api.create, api.surveys.get, api.dashboards.list, new ApiRequest(), files importing from lib/api, api.<entity>.<method>), giving comprehensive natural trigger coverage for this domain.

3 / 3

Distinctiveness Conflict Risk

Tightly scoped to PostHog generated API-type migration with highly specific symbol-based triggers, making it unlikely to fire for the wrong skill.

3 / 3

Total

12

/

12

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.