typescript-expert

typescript-expert is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 83 tokens per session (2,985 once invoked), scanned A, original, MIT.

A guide to advanced TypeScript, a programming language that adds static type checking to JavaScript.

In plain words
What is it for?
It helps design generics, utility and branded types, type-safe API contracts, strict configurations, and reusable type helpers.
Why use it?
It helps prevent unclear or unsafe types and resolve difficult type errors in strict projects.

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/roedyrustam/vibes-plug/typescript-expert
Any agent
npx skills add roedyrustam/vibes-plug --skill typescript-expert
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/typescript-expert.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/typescript-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/typescript-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/typescript-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,985 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 $0.00083 $0.02985
Opus 5 $0.00042 $0.01492
Sonnet 5 $0.00017 $0.00597
Haiku 4.5 $0.00008 $0.00298

Measured yesterday against content hash e672e5c5157d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

typescript-expert 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 yesterday.

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-expert/SKILL.md · 331 lines

How it starts

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

TypeScript Expert (TypeScript 5.8+ Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

Connects and orchestrates with relevant domain skills like brainstorming, zero-to-prod-orchestrator, and project-context-mapper to ensure cohesive execution.

Description

Expert-level TypeScript development covering the advanced type system, strict mode enforcement, generic programming, utility types, branded types, and type-safe patterns for production applications. Targets TypeScript 5.8+ features including inferred type predicates, isolated declarations, NoInfer, using declarations, variadic tuple improvements, and const type parameters.

Trigger Conditions

  • Writing TypeScript with advanced generic constraints.
  • Enforcing strict type safety in existing codebases.
  • Designing type-safe API contracts (REST, tRPC, Zod schemas).
  • Implementing branded types for domain modeling.
  • Resolving complex type errors or any pollution.
  • Setting up tsconfig.json for strict projects.
  • Writing TypeScript utility types or type helpers.

TypeScript 5.x — Key Features

using Declarations (Explicit Resource Management, TS 5.2)
// Automatically calls [Symbol.dispose] on scope exit
function processFile(path: string) {
  using handle = openFile(path); // disposed when function exits
  handle.write('data');
}

// Async version with [Symbol.asyncDispose]
async function processDatabase() {
  await using conn = await getConnection();
  await conn.query('SELECT 1');
} // conn.close() called automatically
NoInfer<T> Utility Type (TS 5.4)
// Prevents unintended type widening in generic inference
function createState<T>(initial: T, fallback: NoInfer<T>): T {
  return initial ?? fallback;
}

// TS now errors if fallback type doesn't match initial
createState('hello', 42); // Error: Argument of type 'number' is not assignable to type 'string'

Read the full file on GitHub · 331 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. yesterday First seen · 331 lines · 83 tokens per session scan A e672e5c5157d

Subscribe to this mod's changes

typescript-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (49 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 2,985 once invoked, about $0.0004 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

fastify-best-practices

指导用 TypeScript 或 JavaScript 开发 Fastify Node.js 后端服务与 REST API。在构建、配置或调试 Fastify 应用时使用——包括定义路由、实现插件、配置 JSON Schema 校验、处理错误、优化性能、管理认证、配置 CORS 与安全头、集成数据库、使用 WebSocket 以及生产部署。覆盖完整 Fastify 请求生命周期(hooks、序列化、Pino 日志)与通过 strip types 的 TypeScript 集成。.

sutchan/Agent-Skills-Hub · 0 tokens

bun

使用 Bun 替代 Node.js、npm、pnpm 或 vite。提供命令映射、Bun 特有 API 与开发模式。.

sutchan/Agent-Skills-Hub · 32 tokens

typescript-security

Guideline for designing, implementing, and verifying secure TypeScript and JavaScript applications following OWASP Top 10 best practices. Use when the user wants to: (1) review TypeScript or JavaScript code for security vulnerabilities, (2) design a secure Node.js, Deno, or browser application architecture, (3)…

jim60105/copilot-prompt · 183 tokens

drizzle-orm

Expert knowledge for Drizzle ORM - the lightweight, type-safe SQL ORM for edge and serverlessUse when "drizzle, drizzle orm, drizzle-kit, drizzle schema, drizzle migration, drizzle relations, sql orm typescript, edge database, d1 database, orm, database, typescript, sql, edge, serverless, d1, postgres, mysql, sqlite"…

omer-metin/skills-for-antigravity · 82 tokens

nextjs-react-typescript

TypeScript、Node.js、Next.js App Router、React、Shadcn UI、Radix UI 与 Tailwind 专家,提供相关技术栈的深入指导与最佳实践。.

sutchan/Agent-Skills-Hub · 45 tokens

typescript-best-practices

TypeScript best practices. Use when reading or editing any .ts or .tsx file.

painhardcore/pstack · 24 tokens