typescript-pro

typescript-pro is a skill for Claude Code, Codex from larsbaunwall/Unlinked. It costs 69 tokens per session (1,284 once invoked), scanned A, a copy of typescript-pro, MIT.

TypeScript development guidance for advanced type systems and end-to-end type safety. TypeScript is JavaScript with checks that help catch incorrect data and API usage before the program runs.

In plain words
What is it for?
Creating generics, type guards, utility types, branded types, discriminated unions, tRPC APIs, monorepo configurations, and type checks.
Why use it?
It provides a structured way to design safer types and verify that changes compile without type errors.

Skill for Claude CodeCodex

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/larsbaunwall/unlinked/typescript-pro
Any agent
npx skills add larsbaunwall/Unlinked --skill typescript-pro
Clone the repo
git clone --depth 1 https://github.com/larsbaunwall/Unlinked

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-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/larsbaunwall/unlinked/typescript-pro.svg)](https://agentmods.dev/skills/larsbaunwall/unlinked/typescript-pro)
Your own site
<a href="https://agentmods.dev/skills/larsbaunwall/unlinked/typescript-pro"><img src="https://agentmods.dev/badge/skills/larsbaunwall/unlinked/typescript-pro.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,284 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod 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 $0.00069 $0.01284
Opus 5 $0.00034 $0.00642
Sonnet 5 $0.00014 $0.00257
Haiku 4.5 $0.00007 $0.00128

Measured 3d ago against content hash 5f5bc47c167f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

typescript-pro 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 3d 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.

Origin

This is a copy

92% identical to typescript-pro — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/typescript-pro/SKILL.md · 148 lines

How it starts

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

TypeScript Pro

Core Workflow

  1. Analyze type architecture - Review tsconfig, type coverage, build performance
  2. Design type-first APIs - Create branded types, generics, utility types
  3. Implement with type safety - Write type guards, discriminated unions, conditional types; run tsc --noEmit to catch type errors before proceeding
  4. Optimize build - Configure project references, incremental compilation, tree shaking; re-run tsc --noEmit to confirm zero errors after changes
  5. Test types - Confirm type coverage with a tool like type-coverage; validate that all public APIs have explicit return types; iterate on steps 3–4 until all checks pass

Reference Guide

Load detailed guidance based on context:

Topic Reference Load When
Advanced Types references/advanced-types.md Generics, conditional types, mapped types, template literals
Type Guards references/type-guards.md Type narrowing, discriminated unions, assertion functions
Utility Types references/utility-types.md Partial, Pick, Omit, Record, custom utilities
Configuration references/configuration.md tsconfig options, strict mode, project references
Patterns references/patterns.md Builder pattern, factory pattern, type-safe APIs

Code Examples

Branded Types

// Branded type for domain modeling
type Brand<T, B extends string> = T & { readonly __brand: B };
type UserId  = Brand<string, "UserId">;
type OrderId = Brand<number, "OrderId">;

const toUserId  = (id: string): UserId  => id as UserId;
const toOrderId = (id: number): OrderId => id as OrderId;

// Usage — prevents accidental id mix-ups at compile time
function getOrder(userId: UserId, orderId: OrderId) { /* ... */ }

Discriminated Unions & Type Guards

type LoadingState = { status: "loading" };
type SuccessState = { status: "success"; data: string[] };
type ErrorState   = { status: "error";   error: Error };
type RequestState = LoadingState | SuccessState | ErrorState;

// Type predicate guard
function isSuccess(state: RequestState): state is SuccessState {
  return state.status === "success";
}

// Exhaustive switch with discriminated union
function renderState(state: RequestState): string {
  switch (state.status) {
    case "loading": return "Loading…";
    case "success": return state.data.join(", ");
    case "error":   return state.error.message;
    default: {
      const _exhaustive: never = state;
      throw new Error(`Unhandled state: ${_exhaustive}`);
    }
  }
}

Read the full file on GitHub · 148 lines

Files

What ships with it

5 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. 3d ago First seen · 148 lines · 69 tokens per session scan A 5f5bc47c167f

Subscribe to this mod's changes

typescript-pro is a skill published in the GitHub repository larsbaunwall/Unlinked (3 stars, last pushed 3mo ago), licensed MIT. It adds 69 tokens to every session and 1,284 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to typescript-pro, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

performance-optimization

Node.js/TypeScript API performance, MCP protocol optimization, European Parliament API caching, async operations, and memory efficiency.

Hack23/European-Parliament-MCP-Server · 27 tokens

typescript-strict-patterns

TypeScript strict mode patterns, branded types, discriminated unions, and type-safe architecture for MCP servers.

Hack23/European-Parliament-MCP-Server · 26 tokens

code-quality-excellence

Enforce code quality with ESLint, TypeScript strict mode, Knip unused detection, and quality gates for MCP servers.

Hack23/European-Parliament-MCP-Server · 29 tokens

typescript-lsp

Search TypeScript SYMBOLS (functions, types, classes) - NOT text. Use Glob to find files, Grep for text search, LSP for symbol search. Provides type-aware results that understand imports, exports, and relationships.

youdotcom-oss/dx-toolkit · 51 tokens

chapplin-mcp-app-builder

Build and debug MCP App-enabled tools in existing projects scaffolded by create-chapplin. Use when extending tools/.tsx with defineTool and defineApp , wiring structuredContent and meta for UI data flow, handling runtime differences across react/preact/solid/hono targets, or troubleshooting chapplin preview and…

ssssota/chapplin · 77 tokens

zod

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use…

jasonjgardner/blockbench-mcp-plugin · 71 tokens