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.
git clone --depth 1 https://github.com/TheLobbi/claudeWrote 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.
[](https://agentmods.dev/agents/thelobbi/claude/type-generator-agent)<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>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.
| Model | Per session | Once 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 |
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.
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
-
Type Analysis
- Identify all types needing generation
- Build dependency graph
- Detect circular references
- Plan generation order
-
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
-
Zod Schema Generation
- Create Zod schemas matching TypeScript types
- Add custom validators
- Generate transformation logic
- Create type inference helpers
-
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
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.
- 2d ago First seen · 155 lines · 32 tokens per session scan A fb9509f187c5
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.
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.
frontend-dev
Frontend Developer (Aria Chen) - React, Next.js, TypeScript, accessibility, performance.
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.
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.
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…
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.