Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/claude-dev-suite/claude-dev-suitenpx agentmods add skills/claude-dev-suite/claude-dev-suite/type-safe-apiWrote 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/skills/claude-dev-suite/claude-dev-suite/type-safe-api)<a href="https://agentmods.dev/skills/claude-dev-suite/claude-dev-suite/type-safe-api"><img src="https://agentmods.dev/badge/skills/claude-dev-suite/claude-dev-suite/type-safe-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/claude-dev-suite/claude-dev-suite/type-safe-api"><img src="https://agentmods.dev/badge/skills/claude-dev-suite/claude-dev-suite/type-safe-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00147 | $0.03114 |
| Opus 5.5 | $0.00059 | $0.01246 |
| Sonnet 5.5 | $0.00029 | $0.00623 |
| Haiku 4.5 | $0.00015 | $0.00311 |
Grade A, and why
type-safe-api 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 3mo 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 — 474 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Type-Safe API Core Knowledge
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:type-safe-apifor comprehensive documentation.
Zod to OpenAPI
Generate OpenAPI specs from Zod schemas for type-first development.
npm install @asteasolutions/zod-to-openapi zod
Define Schemas
import { z } from 'zod';
import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
extendZodWithOpenApi(z);
// Schema with OpenAPI metadata
export const UserSchema = z.object({
id: z.string().openapi({ example: 'user_123' }),
name: z.string().min(1).openapi({ example: 'John Doe' }),
email: z.string().email().openapi({ example: '[email protected]' }),
role: z.enum(['user', 'admin']).openapi({ example: 'user' }),
createdAt: z.date().openapi({ example: '2024-01-01T00:00:00Z' }),
}).openapi('User');
export const CreateUserSchema = UserSchema.omit({ id: true, createdAt: true })
.openapi('CreateUser');
export type User = z.infer<typeof UserSchema>;
export type CreateUser = z.infer<typeof CreateUserSchema>;
Generate OpenAPI Document
import { OpenAPIRegistry, OpenApiGeneratorV3 } from '@asteasolutions/zod-to-openapi';
const registry = new OpenAPIRegistry();
// Register schemas
registry.register('User', UserSchema);
registry.register('CreateUser', CreateUserSchema);
// Register endpoints
registry.registerPath({
method: 'get',
path: '/users/{id}',
summary: 'Get user by ID',
request: {
params: z.object({ id: z.string() }),
},
responses: {
200: {
description: 'User found',
content: {
'application/json': { schema: UserSchema },
},
},
404: {
description: 'User not found',
},
},
});
registry.registerPath({
method: 'post',
path: '/users',
summary: 'Create user',
request: {
body: {
content: {
'application/json': { schema: CreateUserSchema },
},
},
},
responses: {
201: {
description: 'User created',
content: {
'application/json': { schema: UserSchema },
},
},
},
});
// Generate OpenAPI document
const generator = new OpenApiGeneratorV3(registry.definitions);
const openApiDocument = generator.generateDocument({
openapi: '3.0.0',
info: {
title: 'User API',
version: '1.0.0',
},
servers: [{ url: 'https://api.example.com' }],
});
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 474 lines · 147 tokens per session scan A b53721ac539d
type-safe-api is a skill published in the GitHub repository claude-dev-suite/claude-dev-suite (51 stars, last pushed yesterday), licensed MIT. It adds 147 tokens to every session and 3,114 once invoked, about $0.0006 per session on Opus 5.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-08-30.
type-safe-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| type-safe-apiclaude-dev-suite/claude-dev-suite | Skill | 51 | yesterday | MIT | A | 147 | Claude Code |
| stripe-projectsNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 15 | Claude Code, Codex |
| cqrs-implementationwshobson/agents | Skill | 43k | 2d ago | MIT | A | 35 | Claude Code |
| gemini-api-agent-platformdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 61 | Claude Code, Codex |
| microservices-patternswshobson/agents | Skill | 43k | 2d ago | MIT | A | 38 | Claude Code |
| memstack-automation-webhook-designercwinvestments/memstack | Skill | 433 | 19d ago | MIT | A | 74 | Claude Code |
| csharp-patternssoftspark/ai-toolkit | Skill | 180 | 14d ago | Apache-2.0 | A | 61 | Claude Code |