CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

dev-generate-types

Use when integrating with an API endpoint and need TypeScript types, contracts, and adapters generated automatically.

Quality

81%

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

Generate types, contracts and adapter for an API endpoint following docs/ARCHITECTURE.md sections 4.2-4.3.

Endpoint or example JSON: $ARGUMENTS

Steps

  1. Read docs/ARCHITECTURE.md sections 4.2 and 4.3.

  2. If the user provided an example JSON, use it. If they provided an endpoint:

    • Search existing code for calls to that endpoint
    • Ask the user for an example response JSON
  3. From the JSON, create:

    a. [resource].types.ts -- types that mirror the API exactly:

    • snake_case, string dates, IDs as string
    • Include request payloads and list response (with pagination)

    b. [resource].contracts.ts -- clean app contracts:

    • camelCase, Date objects, derived booleans
    • No internal API fields (tokens, metadata)

    c. [resource]-adapter.ts -- pure functions:

    • toXxx(response) -- inbound (API -> App)
    • toXxxList(response) -- inbound for list
    • toCreatePayload(input) -- outbound (App -> API)
    • Conversions: snake->camel, string->Date, cents->decimal
  4. Validate: npx tsc --noEmit

Repository

fernandezbaptiste/specialist-agent

Path

packs/nextjs/skills/dev-generate-types/SKILL.md

Last updated
First committed

Also appears in

fernandezbaptiste/specialist-agent
In sync

since Nov 5, 2026

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.