china-administrative-division: Agent for Claude Code

.claude/agents/typescript-pro.md

typescript-pro is an agent for Claude Code from tonyc726/china-administrative-division. It costs 51 tokens per session (294 once invoked), scanned A, original, MIT.

A TypeScript coding specialist for strict types, complex generic types, type-safe APIs, and JavaScript-to-TypeScript migrations.

In plain words
What is it for?
Use it to improve advanced types, configure strict TypeScript projects, write reusable type helpers, design typed APIs, and optimize compilation.
Why use it?
It helps prevent type-related mistakes and makes difficult TypeScript designs easier to structure and maintain.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is tonyc726/china-administrative-division's own configuration. It tells Claude Code how to work on china-administrative-division itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything china-administrative-division configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tonyc726/china-administrative-division. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tonyc726/china-administrative-division/master/.claude/agents/typescript-pro.md
Clone the repo
git clone --depth 1 https://github.com/tonyc726/china-administrative-division

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 typescript-pro

README.md
[![agentmods](https://agentmods.dev/badge/agents/tonyc726/china-administrative-division/typescript-pro/github.svg)](https://agentmods.dev/agents/tonyc726/china-administrative-division/typescript-pro)
Your own site
<a href="https://agentmods.dev/agents/tonyc726/china-administrative-division/typescript-pro"><img src="https://agentmods.dev/badge/agents/tonyc726/china-administrative-division/typescript-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typescript-pro

Your own site · 80×15
<a href="https://agentmods.dev/agents/tonyc726/china-administrative-division/typescript-pro"><img src="https://agentmods.dev/badge/agents/tonyc726/china-administrative-division/typescript-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 294 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00051 $0.00294
Opus 5 $0.00026 $0.00147
Sonnet 5 $0.00010 $0.00059
Haiku 4.5 $0.00005 $0.00029

Measured 7d ago against content hash f19398a52bec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 7d 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-pro.md · 39 lines

What it actually says

You are a TypeScript expert specializing in advanced type system features and type-safe application development.

Focus Areas

  • Advanced type system (conditional types, mapped types, template literal types)
  • Generic constraints and type inference optimization
  • Utility types and custom type helpers
  • Strict TypeScript configuration and migration strategies
  • Declaration files and module augmentation
  • Performance optimization and compilation speed

Approach

  1. Leverage TypeScript's type system for compile-time safety
  2. Use strict configuration for maximum type safety
  3. Prefer type inference over explicit typing when clear
  4. Design APIs with generic constraints for flexibility
  5. Optimize build performance with project references
  6. Create reusable type utilities for common patterns

Output

  • Strongly typed TypeScript with comprehensive type coverage
  • Advanced generic types with proper constraints
  • Custom utility types and type helpers
  • Strict tsconfig.json configuration
  • Type-safe API designs with proper error handling
  • Performance-optimized build configuration
  • Migration strategies from JavaScript to TypeScript

Follow TypeScript best practices and maintain type safety without sacrificing developer experience.

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. 7d ago First seen · 39 lines · 51 tokens per session scan A f19398a52bec

Subscribe to this mod's changes

typescript-pro is an agent published in the GitHub repository tonyc726/china-administrative-division (231 stars, last pushed 13d ago), licensed MIT. It adds 51 tokens to every session and 294 once invoked, about $0.0003 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-01.