type-generator-agent

type-generator-agent is an agent for Claude Code from TheLobbi/claude. It costs 32 tokens per session (994 once invoked), scanned A, original, MIT.

A TypeScript type generator that turns API schemas into types and Zod schemas. Zod is a TypeScript library that checks data while a program is running, rather than only during compilation.

In plain words
What is it for?
Use it to create TypeScript definition files, runtime validation schemas, type guards, utility types, and generated documentation comments from OpenAPI schemas.
Why use it?
It keeps API data definitions consistent and catches invalid responses or requests earlier. It also handles advanced shapes such as alternative object forms, recursive types, and custom identifiers.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Part of the api-integration-helper plugin — 10 agents shipped together

Good fit Use it to create TypeScript definition files, runtime validation schemas, type guards, utility types, and generated documentation comments from OpenAPI schemas.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/thelobbi/claude/type-generator-agent
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.

Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install api-integration-helper, the plugin that ships this one along with the rest of its 10 agents.

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 type-generator-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/thelobbi/claude/type-generator-agent.svg)](https://agentmods.dev/agents/thelobbi/claude/type-generator-agent)
Your own site
<a href="https://agentmods.dev/agents/thelobbi/claude/type-generator-agent"><img src="https://agentmods.dev/badge/agents/thelobbi/claude/type-generator-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.00032 $0.00994
Opus 5 $0.00016 $0.00497
Sonnet 5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00099

Measured 2d ago against content hash fb9509f187c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

type-generator-agent 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 2d 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.

.claude/plugins/api-integration-helper/agents/type-generator-agent.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Type Generator Agent

Callsign: Typer Model: Sonnet Specialization: Production-ready TypeScript type generation with Zod schemas

Purpose

Generates fully-typed TypeScript definitions from API schemas with Zod validation, branded types, discriminated unions, and strict type safety.

Capabilities

  • Generate TypeScript interfaces and types from OpenAPI schemas
  • Create Zod schemas for runtime validation
  • Generate branded types for primitives (UserId, Email, etc.)
  • Build discriminated unions for polymorphic types
  • Create type guards and assertion functions
  • Generate utility types (Partial, Required, Pick, etc.)
  • Handle recursive and circular type references
  • Generate JSDoc comments from schema descriptions
  • Create const enums for string literal unions
  • Generate type narrowing helpers

Inputs

  • Parsed schema from Schema Parser Agent
  • Type generation configuration
  • Naming conventions and preferences
  • Custom type mappings

Outputs

  • TypeScript type definition files (.d.ts or .ts)
  • Zod schema definitions
  • Type guard functions
  • Utility type helpers
  • Import/export declarations

Process

  1. Type Analysis

    • Identify all types needing generation
    • Build dependency graph
    • Detect circular references
    • Plan generation order
  2. Type Generation

    • Generate base interfaces from schemas
    • Create branded types for identifiers
    • Build discriminated unions for oneOf/anyOf
    • Generate enums from enum values
    • Create readonly types for responses
    • Generate optional types for partial updates
  3. Zod Schema Generation

    • Create Zod schemas matching TypeScript types
    • Add custom validators
    • Generate transformation logic
    • Create type inference helpers
  4. Quality Assurance

    • Ensure strict TypeScript compatibility
    • Validate Zod schemas match types
    • Check for naming conflicts
    • Verify all imports are resolvable

Integration Points

  • Schema Parser Agent: Receives type definitions
  • Client Generator Agent: Provides types for method signatures
  • Validation Builder Agent: Provides Zod schemas
  • Mock Server Agent: Provides types for mock data

Read the full file on GitHub · 155 lines

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. 2d ago First seen · 155 lines · 32 tokens per session scan A fb9509f187c5

Subscribe to this mod's changes

type-generator-agent is an agent published in the GitHub repository TheLobbi/claude (21 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 994 once invoked, about $0.0002 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-09-05.

Related

Other agents, from other repositories

Next.js Expert

Expert Next.js 16 developer specializing in App Router, Server Components, Cache Components, Turbopack, and modern React patterns with TypeScript.

github/awesome-copilot · 33 tokens

frontend-dev

Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.

vibeeval/vibecosystem · 22 tokens

typescript-spec

A TypeScript specialist for advanced types, including generics, conditional types, utility types, and type inference. TypeScript is JavaScript with optional type checking, and generics let code work with several related types.

Dannykkh/skill-olympus · 57 tokens

effect-architecture-reviewer

Reviews TypeScript system architecture to determine whether Effect (effect-ts) should be used, where it applies, and to what extent. Use when reviewing implementation plans, evaluating proposed architectures, or providing guidance to downstream implementation agents.

bengous/claude-code-plugins · 50 tokens

mainframe-typescript-backend-engineer

Use for server-side TypeScript work in Node.js applications: NestJS, Express, Fastify, Next.js server code, PostgreSQL access, Prisma, TypeORM, Drizzle, authentication, HTTP contracts, background jobs, realtime gateways, storage, resilience, and backend tests. Not for Python services, substantial client-only React UI…

CATWILLgh/MAINFRAME · 83 tokens

FAI Deno Expert

Deno runtime specialist — TypeScript-first with permissions model, Deno KV for edge state, Deno Deploy for serverless, secure-by-default AI service development.

frootai/frootai · 39 tokens