code-review-typescript

code-review-typescript is a skill for Claude Code from Jamie-BitFlight/claude_skills. It costs 70 tokens per session (1,071 once invoked), scanned A, original, MIT.

A set of review rules for TypeScript projects, covering strict typing, modules, asynchronous code, and safe handling of external values.

In plain words
What is it for?
Use it when reviewing TypeScript files or projects with tsconfig.json to check strict mode, unsafe any values, type assertions, error suppression, and async patterns.
Why use it?
It finds type-safety gaps and common TypeScript mistakes that can otherwise become runtime errors or hidden maintenance problems.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the dh plugin — 53 skills, 28 agents shipped together

Good fit Use it when reviewing TypeScript files or projects with tsconfig.json to check strict mode, unsafe any values, type assertions, error suppression, and async patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamie-bitflight/claude_skills/code-review-typescript
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.

Any agent
npx skills add Jamie-BitFlight/claude_skills --skill code-review-typescript
Clone the repo
git clone --depth 1 https://github.com/Jamie-BitFlight/claude_skills

Made for: Claude Code.

Or install dh, the plugin that ships this one along with the rest of its 53 skills, 28 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 code-review-typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/code-review-typescript.svg)](https://agentmods.dev/skills/jamie-bitflight/claude_skills/code-review-typescript)
Your own site
<a href="https://agentmods.dev/skills/jamie-bitflight/claude_skills/code-review-typescript"><img src="https://agentmods.dev/badge/skills/jamie-bitflight/claude_skills/code-review-typescript.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,071 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00070 $0.01071
Opus 5 $0.00035 $0.00535
Sonnet 5 $0.00014 $0.00214
Haiku 4.5 $0.00007 $0.00107

Measured 3d ago against content hash cadacef49bbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

code-review-typescript 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 3d 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/development-harness/skills/code-review-typescript/SKILL.md · 115 lines

How it starts

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

TypeScript Code Review Patterns

Stack-specific rules loaded by dh:code-reviewer when tsconfig.json, *.ts, or *.tsx files are detected.

Strict Mode

  • tsconfig.json must enable strict: true — this covers noImplicitAny, strictNullChecks, strictFunctionTypes, and others
  • exactOptionalPropertyTypes: true is required in new projects — prevents undefined from being assigned to optional properties
  • noUncheckedIndexedAccess: true is required when indexing arrays or records — prevents silent undefined propagation
  • Any @ts-ignore comment without an accompanying explanation comment is a blocking finding
  • @ts-expect-error is preferred over @ts-ignore — it fails if the error goes away

Type Safety

  • any type without an explanatory comment is a blocking finding
  • Type assertions (as SomeType) without runtime validation at the same boundary are a blocking finding
  • unknown is the correct type for values from external sources — validate before narrowing, not after
  • object as a type is not meaningful — use Record<string, unknown> or a specific interface
  • Non-null assertions (value!) without a comment explaining why null is impossible are a blocking finding

Discriminated Unions Over Booleans

  • Multiple boolean flags encoding state are a blocking finding — model as a discriminated union instead
  • State machine logic with isLoading, isError, isSuccess as separate booleans allows impossible combinations
// WRONG: boolean flags allow impossible states
interface State {
  isLoading: boolean;
  isError: boolean;
  data: User | null;
}

// RIGHT: discriminated union — impossible states are unrepresentable
type State =
  | { status: "loading" }
  | { status: "error"; error: Error }
  | { status: "success"; data: User };

Branded Types

  • Domain primitives that are structurally identical but semantically distinct must use branded types to prevent mix-ups
  • UserId and OrderId are both string at runtime — without brands, they are interchangeable to the type checker

Read the full file on GitHub · 115 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. 3d ago First seen · 115 lines · 70 tokens per session scan A cadacef49bbf

Subscribe to this mod's changes

code-review-typescript is a skill published in the GitHub repository Jamie-BitFlight/claude_skills (65 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 1,071 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-03.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

coding-standards

Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

hashgraph-online/awesome-codex-plugins · 28 tokens

plankton-code-quality

Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.

loulanyue/awesome-claude-notes · 34 tokens

typescript-style-guide

Apply, review, and explain the opinionated conventions in the TypeScript Style Guide. Use automatically only when TypeScript conventions are part of the requested task, including type modelling, discriminated unions, function APIs, variables and state, naming, source organization, React props, component APIs, state…

mkosir/typescript-style-guide · 79 tokens

architecture-audit

Systematic architecture audit and refactoring methodology for Rust + TypeScript codebases. Use when performing refactoring, cleanup, unification, code review, dead code removal, module reorganization, or tech debt elimination. Ensures no naming confusion, semantic overloading, hidden defaults, duplicate logic, or…

org2AI/ORG2 · 70 tokens

stale-comments-audit

Audit and fix JavaScript, TypeScript, and Go comments that are verified as stale, orphaned, misleading, or redundant.

PaulRBerg/agent-skills · 32 tokens