typescript

typescript is a skill for Claude Code, Codex from nimadorostkar/Claude-Skills-collection. It costs 42 tokens per session (1,040 once invoked), scanned A, original, MIT.

A TypeScript coding guide for projects using strict type checking. It covers advanced type definitions, safe handling of external data, typed API clients, and removing unchecked values.

In plain words
What is it for?
Use it to tighten a TypeScript project, replace any, model complex domains, validate API responses, and debug generic type errors.
Why use it?
It helps catch invalid states and unexpected API, environment, or user-input data before they cause runtime failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to tighten a TypeScript project, replace any, model complex domains, validate API responses, and debug generic type errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/typescript
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.

Any agent
npx skills add nimadorostkar/Claude-Skills-collection --skill typescript
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code, Codex.

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 typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/typescript/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/typescript/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.

agentmods 80×15 button for typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,040 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.01040
Opus 5 $0.00021 $0.00520
Sonnet 5 $0.00008 $0.00208
Haiku 4.5 $0.00004 $0.00104

Measured 8d ago against content hash 728d43bc7898, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

typescript 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 8d 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.

skills/languages/typescript/SKILL.md · 118 lines

How it starts

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

TypeScript

Purpose

Use the type system to make invalid states unrepresentable. This skill covers strict-mode TypeScript, the advanced type features worth reaching for, and the discipline of validating untrusted data exactly once — at the boundary.

When to Use

  • Starting a TypeScript project or tightening tsconfig.json.
  • Removing any and unchecked casts from an existing codebase.
  • Modeling a domain with discriminated unions and exhaustive matching.
  • Writing a typed API client or SDK.
  • Debugging inference failures in generic code.

Capabilities

  • Strict compiler configuration and incremental adoption paths.
  • Discriminated unions, template literal types, conditional and mapped types.
  • Generic constraints, inference control, and satisfies.
  • Runtime schema validation with Zod, wired to inferred static types.
  • Type-safe error handling with Result-style unions.

Inputs

  • Source files and the current tsconfig.json.
  • Runtime target (Node, browser, edge, Deno, Bun).
  • External data shapes: API responses, environment variables, user input.

Outputs

  • Source that compiles under strict: true with zero any.
  • Schemas for every trust boundary, with static types derived from them.
  • A tsconfig.json reflecting the target runtime.

Workflow

  1. Set the gate — Enable strict, noUncheckedIndexedAccess, and exactOptionalPropertyTypes. Everything else follows from the compiler's complaints.
  2. Type the boundaries — Define schemas for every input that crosses into your program: HTTP payloads, env vars, config files, message queues.
  3. Model the domain — Replace boolean flags and optional grab-bags with discriminated unions.
  4. Implement inward — Internal code trusts its types because the boundary already validated them.
  5. Verifytsc --noEmit and lint with @typescript-eslint, no-explicit-any set to error.

Best Practices

  • Never use as to silence the compiler. It is an assertion, not a check; it lies at runtime.
  • Prefer unknown over any at every boundary, then narrow.
  • Derive types from schemas (z.infer), never maintain both by hand.
  • Use satisfies to validate an object literal against a type while preserving its narrow inferred type.
  • Add an exhaustiveness check (never) to every union switch — it turns a future missing case into a compile error.
  • Do not export types you do not intend to support. A public type is an API contract.

Read the full file on GitHub · 118 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. 8d ago First seen · 118 lines · 42 tokens per session scan A 728d43bc7898

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 42 tokens to every session and 1,040 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-03.

Related

Other skills, from other repositories

solana-kit

Complete guide for @solana/kit - the modern, tree-shakeable, zero-dependency JavaScript SDK from Anza. Covers RPC connections, signers, transaction building with pipe, signing, sending, and account fetching with full TypeScript support.

sendaifun/skills · 56 tokens

solana-kit-migration

Helps developers understand when to use @solana/kit vs @solana/web3.js (v1), provides migration guidance, API mappings, and handles edge cases for Solana JavaScript SDK transitions.

sendaifun/skills · 47 tokens

neo-typescript

Use this skill when writing, reviewing, debugging, or architecting TypeScript code. Trigger for tsconfig/compiler options, strict mode, generics, conditional/mapped/template literal types, structural typing, ESM/CJS interop, decorators, library typing, or TypeScript runtime boundary issues.

Benknightdark/neo-skills · 63 tokens

developing-genkit-js

Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.

google/skills · 60 tokens

nestjs-expert

Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating…

Jeffallan/claude-skills · 107 tokens

adk

Use this skill when you've got questions about the Botpress Agent Development Kit (ADK) - like when you're building a feature that involves tables, actions, tools, workflows, conversations, files, knowledge bases, triggers, or Zai.

majiayu000/claude-skill-registry · 34 tokens