typescript

typescript is a skill for Claude Code, Codex from dhaupin/vant. It costs 6 tokens per session (254 once invoked), scanned A, original, MIT.

A programming language that adds declared types to JavaScript, helping describe what kind of values code should accept and return.

In plain words
What is it for?
Use it to define data shapes, write typed functions and generics, compile .ts files, and configure strict type checking.
Why use it?
It can reveal many mistakes while code is being written or compiled, especially in large projects.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/dhaupin/vant/vant-skill-typescript
Any agent
npx skills add dhaupin/vant --skill vant-skill-typescript
Clone the repo
git clone --depth 1 https://github.com/dhaupin/vant

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/dhaupin/vant/vant-skill-typescript.svg)](https://agentmods.dev/skills/dhaupin/vant/vant-skill-typescript)
Your own site
<a href="https://agentmods.dev/skills/dhaupin/vant/vant-skill-typescript"><img src="https://agentmods.dev/badge/skills/dhaupin/vant/vant-skill-typescript.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00006 $0.00254
Opus 5 $0.00003 $0.00127
Sonnet 5 $0.00001 $0.00051
Haiku 4.5 $0.00001 $0.00025

Measured 2d ago against content hash c0d7004a254f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

models/public/skills/vant-skill-typescript/SKILL.md · 74 lines

What it actually says

TypeScript

Typed JavaScript.


When To Use

  • Type safety needed
  • Large codebases
  • Modern JS projects

What To Do

1. Types

interface User {
  id: number
  name: string
  email?: string  // optional
}

function getUser(id: number): User {
  return { id, name: 'User' }
}

2. Generics

function first<T>(arr: T[]): T {
  return arr[0]
}

3. Compile

npx tsc --init
npx tsc
npx tsc --watch

4. Config

{
  "compilerOptions": {
    "target": "ES2020",
    "module": "commonjs",
    "strict": true
  }
}

Role: TypeScript Developer
Input: .ts files
Output: .js files

Typed JS.

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 · 74 lines · 6 tokens per session scan A c0d7004a254f

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository dhaupin/vant (9 stars, last pushed 7d ago), licensed MIT. It adds 6 tokens to every session and 254 once invoked, about $0.0000 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

typescript-strict

TypeScript strict mode patterns with interfaces, type guards, generics, and utility types. Use when defining types, creating type-safe functions, handling nullable values, or implementing generic components.

BlackBeltTechnology/pi-agent-dashboard · 41 tokens

python-run

Run and debug Python scripts in the project. Use when the user says "run python", "execute this script", "debug this py file", or wants to run/modify a .py file. Handles dependency checks, linting, execution, and error analysis.

congchuanling-dot/Cohort · 56 tokens

goga-lang-disp

Detects the project language and dispatches execution to the matching language-specific skill. Apply this specification within the calling skill's context. Do not restate the contents — use them for decision-making.

qarium/goga · 9 tokens

react-dev

This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React…

saajunaid/caddis-plugin · 66 tokens

react-best-practices

Modern React development guidelines covering hooks, component patterns, state management, performance optimization, and TypeScript integration.

saajunaid/caddis-plugin · 27 tokens

javascript-typescript

JavaScript and TypeScript development with ES6+, Node.js, React, and modern web frameworks. Use for frontend, backend, or full-stack JavaScript/TypeScript projects.

saajunaid/caddis-plugin · 40 tokens