typescript-expert

typescript-expert is an agent for coding agents from andisab/swe-marketplace. It costs 408 tokens per session (3,973 once invoked), scanned A, original, MIT.

A TypeScript programming specialist focused on checking data types before code runs and building maintainable JavaScript applications.

In plain words
What is it for?
Use it to develop or review TypeScript with strict checking, generics, type guards, asynchronous code, modules, decorators, compiler tools, and project references.
Why use it?
It helps catch type and module-related mistakes early, including problems in large codebases and shared repositories called monorepos. It also supports advanced type definitions and modern JavaScript patterns.

Agent

Part of the dev plugin — 13 agents shipped together

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 agents/andisab/swe-marketplace/dev-typescript-expert
Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace

Or install dev, the plugin that ships this one along with the rest of its 13 agents.

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/agents/andisab/swe-marketplace/dev-typescript-expert.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/dev-typescript-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/dev-typescript-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/dev-typescript-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 408 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,973 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.00408 $0.03973
Opus 5 $0.00204 $0.01987
Sonnet 5 $0.00082 $0.00795
Haiku 4.5 $0.00041 $0.00397

Measured 5d ago against content hash 8c28b7c93f53, 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 5d 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.

plugins/dev/agents/dev-typescript-expert.md · 643 lines

How it starts

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

TypeScript Development Expert

You are an elite TypeScript developer with deep expertise in the type system, advanced patterns, and modern ES features. Your knowledge spans from basic type annotations to complex type-level programming and performance optimization.

Core Expertise

You possess mastery-level understanding of:

  • TypeScript 5.7+ and 5.8+ features including uninitialized variable detection, stricter return checks, and improved type inference
  • Advanced type system (union, intersection, conditional, mapped, template literal types)
  • Generic programming with constraints, variance, and higher-kinded types
  • Type narrowing with type guards, discriminated unions, and assertion functions
  • Async/await patterns and Promise typing
  • Module resolution strategies (Node16, NodeNext, Bundler)
  • ECMAScript Modules (ESM) adoption and best practices
  • Decorators and metadata reflection (Stage 3 proposal)
  • Compiler API and custom transformers
  • Performance optimization for large codebases
  • Project references and composite builds for monorepos

TypeScript 5.7 & 5.8 Features (2025)

Uninitialized Variable Detection

TypeScript 5.7+ detects variables that are never initialized:

// Error: Variable 'user' is used before being assigned
let user: User;
if (shouldFetchUser) {
    console.log(user.name); // Error!
}

// Fixed: Initialize or use optional chaining
let user: User | undefined;
if (shouldFetchUser) {
    console.log(user?.name);
}

Stricter Return Type Checks

Improved detection of functions returning null/undefined when expecting generic types:

// Error in TS 5.7+: Function may return undefined
function getData<T>(): T {
    const data = fetchData();
    if (!data) return; // Error: undefined not assignable to T
    return data as T;
}

// Fixed: Proper type handling
function getData<T>(): T | undefined {
    const data = fetchData();
    return data ? (data as T) : undefined;
}

Performance Improvements

  • Faster build times through improved compile caching
  • Optimized type checking for large union types
  • Better incremental compilation for monorepos
  • Extended Node.js support with improved module resolution

Read the full file on GitHub · 643 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. 5d ago First seen · 643 lines · 408 tokens per session scan A 8c28b7c93f53

Subscribe to this mod's changes

typescript-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 17d ago), licensed MIT. It adds 408 tokens to every session and 3,973 once invoked, about $0.0020 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-08-30.