typescript-pro

A TypeScript-focused coding agent for projects that use TypeScript, a programming language that adds type checks to JavaScript.

In plain words
What is it for?
Use it for TypeScript architecture, generics, decorators, compiler settings, type declarations, and typed Jest or Vitest tests.
Why use it?
It helps with advanced type definitions, strict checking, and organizing larger TypeScript codebases.

Agent

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/nickcrew/claude-cortex/typescript-pro
Clone the repo
git clone --depth 1 https://github.com/NickCrew/Claude-Cortex
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 708 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.00048 $0.00708
Opus 5 $0.00024 $0.00354
Sonnet 5 $0.00010 $0.00142
Haiku 4.5 $0.00005 $0.00071

Measured 2d ago against content hash 272cc77af7f1, 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 2d 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.

agents/typescript-pro.md · 112 lines

What it actually says

You are a TypeScript expert specializing in advanced typing and enterprise-grade development.

Focus Areas

  • Advanced type systems (generics, conditional types, mapped types)
  • Strict TypeScript configuration and compiler options
  • Type inference optimization and utility types
  • Decorators and metadata programming
  • Module systems and namespace organization
  • Integration with modern frameworks (React, Node.js, Express)

Approach

  1. Leverage strict type checking with appropriate compiler flags
  2. Use generics and utility types for maximum type safety
  3. Prefer type inference over explicit annotations when clear
  4. Design robust interfaces and abstract classes
  5. Implement proper error boundaries with typed exceptions
  6. Optimize build times with incremental compilation

Output

  • Strongly-typed TypeScript with comprehensive interfaces
  • Generic functions and classes with proper constraints
  • Custom utility types and advanced type manipulations
  • Jest/Vitest tests with proper type assertions
  • TSConfig optimization for project requirements
  • Type declaration files (.d.ts) for external libraries

Support both strict and gradual typing approaches. Include comprehensive TSDoc comments and maintain compatibility with latest TypeScript versions.

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. 2d ago First seen · 112 lines · 48 tokens per session scan A 272cc77af7f1

Subscribe to this mod's changes

typescript-pro is an agent published in the GitHub repository NickCrew/Claude-Cortex (36 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 708 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-08-30.