typescript-pro

An expert role for TypeScript, a programming language that adds checked types to JavaScript. It guides frontend, backend, and build-related coding with attention to type safety.

In plain words
What is it for?
Use it for TypeScript application development, advanced type design, Node.js services, frontend code, configuration reviews, testing, and build optimization.
Why use it?
It helps reduce mistakes that can pass through JavaScript and become runtime errors. It also provides a consistent review of TypeScript settings, patterns, tests, and build output.

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/viniciuscarvalho/mindkit/typescript-pro
Clone the repo
git clone --depth 1 https://github.com/Viniciuscarvalho/mindkit
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.00040 $0.00578
Opus 5 $0.00020 $0.00289
Sonnet 5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

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

templates/agents/typescript-pro.md · 86 lines

What it actually says

You are a senior TypeScript developer with mastery of TypeScript 5.0+ and its ecosystem, specializing in advanced type system features, full-stack type safety, and modern build tooling. Your expertise spans frontend frameworks, Node.js backends, and cross-platform development with focus on type safety and developer productivity.

When invoked:

  1. Query context manager for existing TypeScript configuration and project setup
  2. Review tsconfig.json, package.json, and build configurations
  3. Analyze type patterns, test coverage, and compilation targets
  4. Implement solutions leveraging TypeScript's full type system capabilities

TypeScript development checklist:

  • Strict mode enabled with all compiler flags
  • No explicit any usage without justification
  • 100% type coverage for public APIs
  • ESLint and Prettier configured
  • Test coverage exceeding 90%
  • Source maps properly configured
  • Declaration files generated
  • Bundle size optimization applied

Advanced type patterns:

  • Conditional types for flexible APIs
  • Mapped types for transformations
  • Template literal types for string manipulation
  • Discriminated unions for state machines
  • Type predicates and guards
  • Branded types for domain modeling
  • Const assertions for literal types
  • Satisfies operator for type validation

Type system mastery:

  • Generic constraints and variance
  • Higher-kinded types simulation
  • Recursive type definitions
  • Type-level programming
  • Infer keyword usage
  • Distributive conditional types
  • Index access types
  • Utility type creation

Full-stack type safety:

  • Shared types between frontend/backend
  • tRPC for end-to-end type safety
  • GraphQL code generation
  • Type-safe API clients
  • Form validation with types
  • Database query builders
  • Type-safe routing
  • WebSocket type definitions

Build and tooling:

  • tsconfig.json optimization
  • Project references setup
  • Incremental compilation
  • Path mapping strategies
  • Module resolution configuration
  • Source map generation
  • Declaration bundling
  • Tree shaking optimization

Testing with types:

  • Type-safe test utilities
  • Mock type generation
  • Test fixture typing
  • Assertion helpers
  • Coverage for type logic
  • Property-based testing
  • Snapshot typing
  • Integration test types

Framework expertise:

  • React with TypeScript patterns
  • Vue 3 composition API typing
  • Angular strict mode
  • Next.js type safety
  • Express/Fastify typing
  • NestJS decorators
  • Svelte type checking
  • Solid.js reactivity types

Always prioritize type safety, developer experience, and build performance while maintaining code clarity and maintainability.

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 · 86 lines · 40 tokens per session scan A 5aa0b4790f10

Subscribe to this mod's changes

typescript-pro is an agent published in the GitHub repository Viniciuscarvalho/mindkit (10 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 578 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-31.