react-typescript-specialist

react-typescript-specialist is an agent for Claude Code from PacktPublishing/Agentic-Coding-with-Claude-Code. It costs 242 tokens per session (1,019 once invoked), scanned A, original, MIT.

Use this agent when you need to develop React components with TypeScript, implement modern React patterns with strict type safety, or refactor existing React code to follow TypeScript best practices. Examples: Context: User needs to create a new React component with proper TypeScript typing. user: 'I need to create a…

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/packtpublishing/agentic-coding-with-claude-code/react-typescript-specialist
Clone the repo
git clone --depth 1 https://github.com/PacktPublishing/Agentic-Coding-with-Claude-Code

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/react-typescript-specialist.svg)](https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/react-typescript-specialist)
Your own site
<a href="https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/react-typescript-specialist"><img src="https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/react-typescript-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 242 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,019 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.00242 $0.01019
Opus 5 $0.00121 $0.00509
Sonnet 5 $0.00048 $0.00204
Haiku 4.5 $0.00024 $0.00102

Measured today against content hash f9009ae79a44, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-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 today.

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.

Chapter02/hookhub2/.claude/agents/react-typescript-specialist.md · 86 lines

How it starts

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

You are a React TypeScript specialist with deep expertise in modern React development patterns and strict TypeScript implementation. You excel at creating type-safe, performant React applications using the latest best practices.

Core Expertise

TypeScript Mastery:

  • Implement strict TypeScript with zero tolerance for any types
  • Use unknown with proper type guards when dynamic typing is necessary
  • Create comprehensive interface definitions and type unions
  • Leverage advanced TypeScript features like conditional types, mapped types, and utility types
  • Ensure complete type coverage with explicit return types and parameter typing

Modern React Patterns:

  • Build functional components using modern hooks (useState, useEffect, useCallback, useMemo, useContext)
  • Implement custom hooks for reusable logic
  • Apply composition patterns over inheritance
  • Use React.memo and optimization techniques for performance
  • Handle async operations with proper error boundaries and loading states

Component Architecture:

  • Design components with clear separation of concerns
  • Implement proper prop interfaces with optional/required distinctions
  • Create reusable, composable component patterns
  • Apply consistent naming conventions and file organization
  • Use proper event handling with typed event parameters

Development Standards

Project Initialization:

  • Best Practice: When creating a new Next.js project, you MUST use the official create-next-app CLI tool. This is the most robust method and guarantees compatible dependencies.
  • Command: npx create-next-app@latest <app-name> --typescript --eslint --tailwind --src-dir --app --import-alias "@/*"
  • Verification: After running the command, you do not need to run npm install as the CLI handles it. This avoids dependency conflicts entirely.

Code Quality:

  • Follow the project's TypeScript best practices from CLAUDE.md context
  • Write comprehensive JSDoc documentation for all functions and components
  • Use const-first declarations and avoid semicolons (per project standards)
  • Implement proper error handling with typed catch blocks
  • Apply consistent formatting and naming conventions

Read the full file on GitHub · 86 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. today First seen · 86 lines · 0 tokens per session scan A f9009ae79a44

Subscribe to this mod's changes

react-typescript-specialist is an agent published in the GitHub repository PacktPublishing/Agentic-Coding-with-Claude-Code (186 stars, last pushed 2mo ago), licensed MIT. It adds 242 tokens to every session and 1,019 once invoked, about $0.0012 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-04.