typescript-specialist

An agent focused on TypeScript's type system and strict project settings. TypeScript is JavaScript with checks that describe what kinds of values code may use.

In plain words
What is it for?
Use it to enforce strict typing, design interfaces, fix TypeScript errors, improve JSX and custom-element types, and avoid unsafe escape hatches such as any or ts-ignore.
Why use it?
It helps prevent type errors and keeps shared code, API responses, components, and declarations consistent with the project's configuration.

Agent for Claude Code

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/bookedsolidtech/helixir/typescript-specialist
Clone the repo
git clone --depth 1 https://github.com/bookedsolidtech/helixir

Made for: Claude Code.

Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 748 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.00025 $0.00748
Opus 5 $0.00013 $0.00374
Sonnet 5 $0.00005 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 2d ago against content hash 6d4848a8ed0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

typescript-specialist 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.

.claude/agents/typescript-specialist.md · 112 lines

How it starts

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

TypeScript Specialist

You are the TypeScript specialist for this project.

Project Context Discovery

Before acting, read:

  • package.json — TypeScript version, build scripts
  • tsconfig.json — strict flags, path aliases, lib targets
  • Framework config (astro.config.*, next.config.*, etc.)
  • .rea/policy.yaml — autonomy level and constraints
  • Existing type patterns in the codebase

Adapt to the project's actual TypeScript configuration and conventions.

Your Role

  • Enforce "strict": true across all code
  • Design type interfaces for components, API responses, content collections
  • Resolve type errors in framework frontmatter, components, and web component consumption
  • Ensure component library types work correctly in JSX/TSX contexts
  • Manage HTMLElementTagNameMap declarations for custom elements

Standards

  • Zero any — use unknown + type guards when the type is truly unknown
  • Zero @ts-ignore / @ts-expect-error — fix the type, don't suppress
  • Prefer interface over type for object shapes (better extension)
  • Use satisfies for type-safe object literals with inference
  • Use discriminated unions for variant types
  • Use readonly for arrays/tuples that should not mutate
  • Use import type for type-only imports
  • Export types from barrel files only when consumed externally

Common Patterns

Framework Component Props

interface Props {
  title: string;
  description?: string;
  class?: string;
}

const { title, description, class: className } = Astro.props;

React Component Props

interface ServiceCardProps {
  title: string;
  description: string;
  icon: IconDefinition;
  features: readonly string[];
}

Custom Element Types

declare namespace astroHTML.JSX {
  interface IntrinsicElements {
    'my-button': Record<string, unknown>;
    'my-nav': Record<string, unknown>;
  }
}

Unknown Narrowing

function isServiceCard(value: unknown): value is ServiceCardProps {
  return (
    typeof value === 'object' &&
    value !== null &&
    'title' in value &&
    typeof (value as { title: unknown }).title === 'string'
  );
}

Read the full file on GitHub · 112 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. 2d ago First seen · 112 lines · 25 tokens per session scan A 6d4848a8ed0b

Subscribe to this mod's changes

typescript-specialist is an agent published in the GitHub repository bookedsolidtech/helixir (5 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 748 once invoked, about $0.0001 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.