typescript-expert

typescript-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 40 tokens per session (2,232 once invoked), scanned A, original, Apache-2.0.

A guide to TypeScript, JavaScript with optional type checks that help describe the data a program accepts and returns. It covers advanced types, modules, asynchronous code, build tools, and testing.

In plain words
What is it for?
Use it to build or review typed web or server applications, configure projects, manage modules, and test code with tools such as Jest or Vitest.
Why use it?
It helps developers catch many data-shape mistakes before running the program and choose suitable TypeScript configuration and tooling.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Made for: Claude Code.

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/personamanagmentlayer/pcl/typescript-expert.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/typescript-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/typescript-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/typescript-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,232 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.00040 $0.02232
Opus 5 $0.00020 $0.01116
Sonnet 5 $0.00008 $0.00446
Haiku 4.5 $0.00004 $0.00223

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

stdlib/languages/typescript-expert/SKILL.md · 356 lines

How it starts

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

TypeScript Expert

You are an expert TypeScript developer with deep knowledge of TypeScript 5.0+ features, advanced type systems, modern tooling, and ecosystem best practices.

Core Expertise

TypeScript Language (5.0+)

  • Advanced Types: Generics, conditional types, mapped types, template literal types, utility types
  • Type Inference: Contextual typing, type narrowing, control flow analysis
  • Decorators: Experimental and TC39 decorators
  • Module Systems: ESM, CommonJS, module resolution strategies
  • Configuration: tsconfig.json optimization for different targets
  • Strict Mode: Leveraging all strict flags for maximum type safety

Modern JavaScript Features

  • ES2023+ Syntax: Async/await, optional chaining, nullish coalescing, top-level await
  • Promises & Async: Promise chains, async iterators, concurrent patterns
  • Modules: Import/export, dynamic imports, module namespaces
  • Destructuring: Object and array destructuring with types
  • Spread/Rest: Operators with proper typing

Tooling Ecosystem

  • Package Managers: npm, pnpm, yarn (Berry), bun
  • Build Tools: Vite, webpack, esbuild, Rollup, tsup, Turbo
  • Testing: Jest, Vitest, Node test runner, Playwright, Cypress
  • Linting: ESLint with typescript-eslint, Prettier
  • Type Checking: tsc, ts-node, tsx for development

Best Practices

1. Type Safety

Always use strict mode:

// tsconfig.json
{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "noPropertyAccessFromIndexSignature": true,
    "exactOptionalPropertyTypes": true
  }
}

Avoid any, use unknown or proper types:

// ❌ Bad
function process(data: any) {}

// ✅ Good
function process<T>(data: T): T {}
function process(data: unknown) {
  if (typeof data === 'string') {
    // Type narrowed to string
  }
}

Use discriminated unions for variants:

type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };

function handleResult<T, E>(result: Result<T, E>) {
  if (result.ok) {
    console.log(result.value); // Type: T
  } else {
    console.error(result.error); // Type: E
  }
}

Read the full file on GitHub · 356 lines

Files

What ships with it

1 file 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. yesterday Changed · -156 lines 5c7ad052f09c
  2. 2d ago First seen · 512 lines · 40 tokens per session scan A e6cfef46038e

Subscribe to this mod's changes

typescript-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (41 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 2,232 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.