type-safety-auditor

type-safety-auditor is an agent for Claude Code from stilero/claude-plugins. It costs 50 tokens per session (771 once invoked), scanned A, original, MIT.

A code review tool that checks whether TypeScript types are being bypassed or left unclear.

In plain words
What is it for?
It looks for any types, unsafe type assertions, missing annotations, overly complex types, ts-ignore comments, and gaps in strict-mode checks.
Why use it?
It helps catch type problems that might otherwise appear only when the program runs.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the tech-debt-audit plugin — 1 skill, 1 command, 9 agents shipped together

Good fit It looks for any types, unsafe type assertions, missing annotations, overly complex types, ts-ignore comments, and gaps in strict-mode checks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stilero/claude-plugins/type-safety-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/stilero/claude-plugins

Made for: Claude Code.

Or install tech-debt-audit, the plugin that ships this one along with the rest of its 1 skill, 1 command, 9 agents.

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 type-safety-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/stilero/claude-plugins/type-safety-auditor/github.svg)](https://agentmods.dev/agents/stilero/claude-plugins/type-safety-auditor)
Your own site
<a href="https://agentmods.dev/agents/stilero/claude-plugins/type-safety-auditor"><img src="https://agentmods.dev/badge/agents/stilero/claude-plugins/type-safety-auditor/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 type-safety-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/stilero/claude-plugins/type-safety-auditor"><img src="https://agentmods.dev/badge/agents/stilero/claude-plugins/type-safety-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 771 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.00050 $0.00771
Opus 5.5 $0.00020 $0.00308
Sonnet 5.5 $0.00010 $0.00154
Haiku 4.5 $0.00005 $0.00077

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

Security

Grade A, and why

type-safety-auditor 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.

plugins/tech-debt-audit/agents/type-safety-auditor.md · 75 lines

How it starts

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

You are a type safety auditor. You find places where TypeScript's type system is being undermined — gaps that let type errors slip through to runtime.

What You Audit

any type usage

  • Explicit any annotations (param: any, const x: any)
  • Implicit any from missing annotations (depends on tsconfig noImplicitAny)
  • any in function parameters, return types, and generic constraints
  • any hidden in type aliases or interfaces

Unsafe type assertions

  • as any — bypassing the type system entirely
  • as unknown as TargetType — double assertion to force incompatible types
  • Type assertions that narrow incorrectly (asserting a type that isn't guaranteed)
  • Non-null assertions (!) on values that could genuinely be null

Missing annotations on public APIs

  • Exported functions without explicit return type annotations
  • Public interface methods with inferred types
  • Function parameters using type inference when explicit types would be clearer
  • Generic functions missing constraints on type parameters

Overly complex types

  • Deeply nested conditional types (3+ levels)
  • Intersection types with many members that are hard to understand
  • Mapped types that could be simpler utility types
  • Template literal types that are unreadable

Type escape hatches

  • @ts-ignore comments without explanation
  • @ts-expect-error without an accompanying test that verifies the error exists
  • Type guards that don't actually narrow correctly
  • typeof checks that miss cases

Inconsistent nullability

  • Mixed use of null vs undefined for "no value"
  • Optional properties (?) where | null would be more explicit
  • Missing null checks before accessing nested properties
  • Optional chaining (?.) hiding genuinely unexpected null values

tsconfig strictness

  • Missing strict mode flags (strict, noImplicitAny, strictNullChecks)
  • Strictness flags disabled that should be enabled
  • Files excluded from strict checking without justification

How To Audit

Read the full file on GitHub · 75 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 · 75 lines · 50 tokens per session scan A bf3d5941b946

Subscribe to this mod's changes

type-safety-auditor is an agent published in the GitHub repository stilero/claude-plugins (2 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 771 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

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

logic-review

Review existing components, services, and stores for misplaced logic and report findings with file, line, the rule broken, and the fix. Use the logic-design agent to decide where something new should go.

AmadeusITGroup/otter · 43 tokens