typescript

typescript is a skill for Claude Code, Codex from martinholovsky/claude-skills-generator. It costs 12 tokens per session (3,557 once invoked), scanned A, original, Unlicense.

A TypeScript development guide for building a type-checked AI assistant, including interfaces, runtime data checks, and strict compiler settings.

In plain words
What is it for?
Defining typed system data, validating external input with Zod, typing Vue components and API routes, and writing tests first.
Why use it?
It helps catch mismatched data and some errors before the program runs; TDD means writing tests before implementation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter.

Good fit Defining typed system data, validating external input with Zod, typing Vue components and API routes, and writing tests first.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/martinholovsky/claude-skills-generator/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 martinholovsky/claude-skills-generator --skill typescript
Clone the repo
git clone --depth 1 https://github.com/martinholovsky/claude-skills-generator

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/martinholovsky/claude-skills-generator/typescript.svg)](https://agentmods.dev/skills/martinholovsky/claude-skills-generator/typescript)
Your own site
<a href="https://agentmods.dev/skills/martinholovsky/claude-skills-generator/typescript"><img src="https://agentmods.dev/badge/skills/martinholovsky/claude-skills-generator/typescript.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,557 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.
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.00012 $0.03557
Opus 5 $0.00006 $0.01778
Sonnet 5 $0.00002 $0.00711
Haiku 4.5 $0.00001 $0.00356

Measured 4d ago against content hash 57c85d0b36f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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/typescript/SKILL.md · 501 lines

How it starts

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

TypeScript Development Skill

File Organization: This skill uses split structure. See references/ for advanced patterns and security examples.

1. Overview

This skill provides TypeScript expertise for the JARVIS AI Assistant, ensuring type safety across the entire codebase including Vue components, API routes, 3D rendering, and state management.

Risk Level: MEDIUM - Type system prevents runtime errors, enforces contracts, but misconfiguration can lead to security gaps

Primary Use Cases:

  • Defining type-safe interfaces for JARVIS system data
  • Runtime validation with Zod schemas
  • Generic patterns for reusable HUD components
  • Strict null checking to prevent crashes

2. Core Responsibilities

2.1 Fundamental Principles

  1. TDD First: Write tests before implementation - red, green, refactor
  2. Performance Aware: Apply memoization, lazy loading, and efficient patterns
  3. Strict Mode Always: Enable all strict compiler options - no shortcuts
  4. Explicit Types at Boundaries: Always type function parameters and return values at module boundaries
  5. Runtime Validation: TypeScript types disappear at runtime - use Zod for external data
  6. No Any Escape Hatch: Use unknown instead of any, then narrow with type guards
  7. Immutable by Default: Prefer readonly and as const for data integrity
  8. Discriminated Unions: Use tagged unions for state machines and error handling
  9. Branded Types: Create nominal types for IDs and sensitive values

3. Technology Stack & Versions

3.1 Recommended Versions

Package Version Security Notes
typescript ^5.3.0 Latest stable with improved type inference
zod ^3.22.0 Runtime validation, schema-first
@types/node ^20.0.0 Match Node.js version

3.2 Compiler Configuration

{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitOverride": true,
    "exactOptionalPropertyTypes": true,
    "noPropertyAccessFromIndexSignature": true,
    "forceConsistentCasingInFileNames": true,
    "verbatimModuleSyntax": true,
    "moduleResolution": "bundler",
    "target": "ES2022",
    "lib": ["ES2022", "DOM", "DOM.Iterable"]
  }
}

Read the full file on GitHub · 501 lines

Files

What ships with it

2 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.

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. 4d ago First seen · 501 lines · 12 tokens per session scan A 57c85d0b36f6

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository martinholovsky/claude-skills-generator (45 stars, last pushed 9mo ago), licensed Unlicense. It adds 12 tokens to every session and 3,557 once invoked, about $0.0001 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-test-writing

Use this skill when writing or modifying tests in the llxprt-code repository. Covers mandatory TDD, behavioral testing, bun:test conventions and file naming, mock hygiene (no mock theater), and what never to test. Distilled from dev-docs/RULES.md, which remains the source of truth.

vybestack/llxprt-code · 66 tokens

ts-library

Use when authoring TypeScript libraries or npm packages - covers project setup, package.json exports, build tooling (tsdown/unbuild), API design patterns, type inference tricks, testing, and publishing to npm. Use when bundling, configuring dual CJS/ESM output, or setting up release workflows.

YuDefine/nuxt-supabase-starter · 65 tokens

typescript-eval

Test TypeScript code snippets before persisting as skills.

vellum-ai/vellum-assistant · 14 tokens

Unit Test Scaffold (TypeScript)

Generate TypeScript unit test skeletons (Jest/Vitest) from specifications.

s977043/river-review · 23 tokens

ts-quality

A TypeScript quality-checking workflow that runs the TypeScript compiler, ESLint, Prettier, and tests. TypeScript is JavaScript with static type checking; ESLint checks code patterns, and Prettier checks formatting.

morodomi/dev-crew · 53 tokens

tdd-typescript

A TypeScript testing workflow based on test-driven development (TDD), where tests are written before the implementation. It uses Vitest, a JavaScript and TypeScript test runner, and proceeds through failing tests, working code, and cleanup.

forest6511/claude-code-recipes-v2 · 18 tokens