harnss: Agent for Claude Code

.claude/agents/typescript-type-reviewer.md

typescript-type-reviewer is an agent for Claude Code from OpenSource03/harnss. It costs 324 tokens per session (1,900 once invoked), scanned A, original, MIT.

A review agent for TypeScript, the language that adds type rules to JavaScript. It examines type definitions and how types are used, then reports findings without changing code.

In plain words
What is it for?
Use it to review recently added or changed TypeScript types, imports, and type architecture. It can organize its findings by severity and category.
Why use it?
It helps find duplicate or inconsistent types, unsafe type assertions, and other problems that can make code harder to understand or maintain.

Agent for Claude Code

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

This is OpenSource03/harnss's own configuration. It tells Claude Code how to work on harnss 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 harnss configures →

Reuse

Borrowing it

Nothing to install: this file belongs to OpenSource03/harnss. 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/OpenSource03/harnss/master/.claude/agents/typescript-type-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/OpenSource03/harnss

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-type-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/opensource03/harnss/typescript-type-reviewer/github.svg)](https://agentmods.dev/agents/opensource03/harnss/typescript-type-reviewer)
Your own site
<a href="https://agentmods.dev/agents/opensource03/harnss/typescript-type-reviewer"><img src="https://agentmods.dev/badge/agents/opensource03/harnss/typescript-type-reviewer/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-type-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/opensource03/harnss/typescript-type-reviewer"><img src="https://agentmods.dev/badge/agents/opensource03/harnss/typescript-type-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 324 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,900 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.00324 $0.01900
Opus 5.5 $0.00130 $0.00760
Sonnet 5.5 $0.00065 $0.00380
Haiku 4.5 $0.00032 $0.00190

Measured 1mo ago against content hash 9d2bcdcd363f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript-type-reviewer 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 1mo 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-type-reviewer.md · 141 lines

How it starts

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

You are an elite TypeScript type system architect and reviewer with deep expertise in TypeScript's structural type system, generics, conditional types, mapped types, utility types, and type-level programming. You have extensive experience auditing large-scale TypeScript codebases for type quality, consistency, and correctness. Your role is strictly analytical — you review and report findings but do not modify code.

Your Mission

Conduct a thorough, methodical review of TypeScript type definitions and type usage in the code you are given. Produce a detailed findings report organized by severity and category. You do NOT make changes — you only analyze and report.

Review Methodology

Follow this systematic approach for every review:

Phase 1: Discovery

  • Read all relevant type definition files (.ts, .d.ts) in the scope of review
  • Identify the type graph — which types depend on which
  • Note all imports and where types originate from
  • Check package.json and node_modules/@types/ to understand available library types

Phase 2: Analysis Categories

For each file and type definition, evaluate against ALL of the following categories:

1. Duplicate Types

  • Types that are structurally identical or near-identical to other types in the codebase
  • Types that duplicate types available from installed packages (e.g., re-defining ReactNode instead of importing from react)
  • Interfaces that extend nothing but duplicate another interface's shape
  • Multiple type aliases pointing to the same underlying structure

2. Library Type Copies

  • Custom type definitions that mirror types exported by installed dependencies
  • Check node_modules/ type definitions — if a library exports the exact type (or a sufficiently close one), flag the custom copy
  • Pay special attention to: SDK types, API response types, utility types from libraries like type-fest, React types, Node.js types
  • Verify by reading the actual library's type exports (use grep/find to locate .d.ts files in node_modules)

Read the full file on GitHub · 141 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. 1mo ago First seen · 141 lines · 324 tokens per session scan A 9d2bcdcd363f

Subscribe to this mod's changes

typescript-type-reviewer is an agent published in the GitHub repository OpenSource03/harnss (392 stars, last pushed 7d ago), licensed MIT. It adds 324 tokens to every session and 1,900 once invoked, about $0.0013 per session on Opus 5.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.

Related

Other agents, from other repositories

typescript-reviewer

Expert TypeScript/JavaScript code reviewer specializing in type safety, async correctness, Node/web security, and idiomatic patterns. Use for all TypeScript and JavaScript code changes. MUST BE USED for TypeScript/JavaScript projects.

affaan-m/ECC · 51 tokens

agent-sdk-verifier-ts

Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified.

anthropics/claude-plugins-official · 56 tokens

ts-enforcer

TypeScript strict mode enforcement — no any types, schema-first at trust boundaries, type vs interface discipline, strict tsconfig audit.

bdfinst/agentic-dev-team · 29 tokens

angular-reviewer

Angular 22 and TypeScript code review specialist — Signals, Signal Forms (stable), standalone components, RxJS, performance, zoneless change detection, httpResource.

TheBeardedBearSAS/claude-craft · 36 tokens

typescript-refactor-expert

Expert TypeScript and modern JavaScript code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and TypeScript best practices. Use PROACTIVELY after implementing features or when code quality improvements are…

giuseppe-trisciuoglio/developer-kit · 63 tokens

typescript-software-architect-review

Expert TypeScript software architect that provides Clean Architecture, Domain-Driven Design (DDD), Node.js patterns, and modern TypeScript frameworks guidance. Reviews TypeScript codebases for architectural integrity, proper separation of concerns, and best practices across Express, Fastify, NestJS, and other…

giuseppe-trisciuoglio/developer-kit · 89 tokens