Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
How it works
Ask it something hard.
📎 ai-skill-for-typescript.txtLOADED ✓
Type this fetch wrapper so the response type is inferred from the endpoint, and add zod validation for the JSON.
CLAUDE · WITH THIS SKILLYou get: an endpoint map typed as const with request and response shapes -> a generic fetchApi function whose return type is inferred from the endpoint key -> zod schemas per endpoint with z.infer so runtime parsing and static types stay in sync -> a typed error union for network, HTTP and validation failures with an exhaustive switch at the call site -> a Vitest test using expectTypeOf for the inference and a mocked fetch -> a note that TS 5.x with strict is assumed and the single next command: npx tsc --noEmit.
Questions before you buy? A person answers, usually the same day: hello@kissmyskills.com
// the file itself
Read it before you buy it.
The first lines of the file your AI will read, exactly as delivered. Nothing rewritten for the page.
Use the name Once the file is loaded, talk to it by name: “Serge, check this page.” That is what the name is for. It also keeps several skills apart in one chat.
// the skill your AI runs on
You are a senior TypeScript developer acting as the user's pair programmer, fluent in strict mode, discriminated unions, generics, narrowing and zod validation at the boundary. You have been activated to type, review and debug TypeScript.
KissMySkills.com | Install: paste this whole file into Claude Projects (Project instructions), a custom GPT (Instructions), a Gemini Gem, or your AI's system prompt. Then just ask questions the way you normally would. You are a senior TypeScript developer acting as the user's pair programmer. You know the type system, the compiler and its options, and how TypeScript is used in React, Next.js, Node services and libraries. You optimise for types that catch real bugs without turning into puzzles, strict mode by default, and code that stays readable. You are a helper inside the language, not a job-role persona: you write, review, type, explain and debug TypeScript alongside the user. Tone: direct, practical, code first, one-line reason when a choice matters. · Compiler and config: tsc, tsconfig.json with strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes, target, module, moduleResolution (node16, nodenext, bundler), paths, declaration, isolatedModules, verbatimModuleSyntax, project references. · Core types: unknown versus any, never, literal types, unions and intersections, readonly, tuples, as const, unions of string literals over enum. · Narrowing: typeof, instanceof, in, discriminated unions, type guards (x is T), assertion functions, exhaustiveness with never, the satisfies operator. · Generics: constraints, inference, infer in conditional types, mapped types with as remapping, template literal types, keyof, NoInfer. · Modules: import type, ESM versus CommonJS, .d.ts files, declare module, declare global, @types/*. · Runtime validation: zod, valibot, io-ts, since types disappear at runtime; z.infer to derive types from schemas. · Tooling: tsx, esbuild, vite, tsup, typescript-eslint, Vitest, Jest, tsc --noEmit in CI, --traceResolution. · Framework typing: React props, hooks and event types; Node process.env with @types/node; Express and Next.js handlers; Prisma generated types. · Reading errors: TS2322 not assignable, TS2339 property does not exist, TS7006 implicit any, TS18048 possibly undefined. The last line is usually the useful one. · Gotchas: Object.keys returns string[], JSON.parse returns any, unchecked index access, as casts hiding bugs. · Ask for the TypeScript version when the answer depends on satisfies, const type parameters or NoInfer. · Ask whether the target is Node, browser, React/Next.js, a library, or Deno/Bun.
79 lines · .txt · instant download
// what's inside
What's inside this skill
Precise types: discriminated unions, generics, conditional and mapped types
Compiler errors explained in one line with a fix that keeps type safety
zod schemas and z.infer for validated API and form input
tsconfig, build scripts and JS to TS migration plans by strictness stage
Frontend, full-stack and Node developers who write TypeScript every day in React, Next.js, Express or libraries.
// two ways to get it
Use it inside your AI, or download it once.
Library plan
This skill and 2,500+ others, inside your chat
$9/mocancel anytime, or $59 a year
All 2,500+ skills, prompt packs and agents, loaded the moment you ask
Nothing to download or paste: connect once in Claude, ChatGPT, Claude Code or Cursor
New skills every week and 10 catalog files a month to download
Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
// ask your assistant
Or let your AI set up this skill for you.
Go to kissmyskills.com/pages/connector and set up the "AI Skill for TypeScript" skill (handle: ai-skill-for-typescript) for me
Paste it into Claude, ChatGPT, Claude Code, Cursor or Codex. Your AI walks you through connecting KissMySkills (about 3 minutes, 7-day free trial) and loads the skill. What your AI will read →
What you're actually buying
This Claude/ChatGPT skill works as a TypeScript AI pair programmer inside your daily coding. It types loosely written code with discriminated unions and generics, explains any tsc error in one line and fixes it without reaching for any, designs typed utilities and APIs, writes zod schemas with z.infer at the boundaries, produces a tsconfig.json for Node, Vite or a publishable library, and reviews your code with fixes ordered by impact.
It knows strict mode flags, narrowing and type guards, conditional and mapped types, template literal types, utility types, module resolution settings, declaration files, typescript-eslint, Vitest and Jest, and the typing patterns used in React, Next.js, Express and Prisma. It does not compile or run your project; it writes and reviews, and you confirm with npx tsc --noEmit.
Works the same way in Claude, ChatGPT and Gemini. One purchase, download the file, install in under 2 minutes, then paste the error or the code you want typed. Pairs with Lena, Frontend Developer, the persona skill; this one is the helper inside TypeScript.
// how to install
Under 2 minutes
Four steps. Any AI chat.
01
Download the file
After checkout, the download link lands in your inbox. Save the .txt file anywhere on your device.
02
Open your AI chat
Any AI chat you already use: Claude, ChatGPT, Gemini, Grok, Copilot or another.
03
Paste the prompt
Open the .txt file, copy the prompt section and paste it into Claude or ChatGPT - or add it to a Project so it is always there.
04
Start working
Your AI is now configured as a specialist. Ask it anything inside its domain.
No technical knowledge required.
With Library there is nothing to download. Connect your AI once, then ask for any skill by name.
It makes Claude or ChatGPT act as a TypeScript AI pair programmer. It adds precise types to your code, explains and fixes compiler errors, designs generic utilities and typed APIs, writes zod validation at boundaries, sets up tsconfig and build scripts, plans JavaScript to TypeScript migrations, writes tests, and reviews your TypeScript with fixes ordered by impact.
Does it compile or run my TypeScript for me?+
No. The skill does not execute tsc, your bundler or your tests. It writes and reviews the TypeScript code and tells you which command to run next, usually npx tsc --noEmit, marking any assumption about your TypeScript version or strictness so you can confirm locally.
Will it just use any to make TypeScript errors go away?+
No. The skill is written to keep type safety: it narrows with discriminated unions and type guards, prefers unknown at boundaries and satisfies over as, and only mentions any, ts-ignore or double casts while stating what they hide and offering the typed alternative.
Does it know React, Next.js and Node typing patterns?+
Yes. It covers React props and hook typing, event types, Next.js route handlers, Express request typing, process.env with @types/node, Prisma and Drizzle generated types, ESM versus CommonJS settings and moduleResolution options, and it asks which target you are on before writing TypeScript config.
Ready to give your AI a specialist?
This one and 2,500+ others, inside Claude, ChatGPT, Claude Code, Codex or Cursor. Cancel anytime.