TY

typescript-review

Enforces Metabase coding standards for TS/JS.

Install

mkdir -p .claude/skills/typescript-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/45" && unzip -o skill.zip -d .claude/skills/typescript-review && rm skill.zip

Installs to .claude/skills/typescript-review

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.
216 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Enforce no-any rule in TypeScript code
  • →Validate compliance with Metabase coding standards
  • →Check for accessibility gaps in interactive elements
  • →Review performance and memoization patterns
  • →Identify missing analytics tracking events

How it works

It evaluates code changes against a hierarchy of standards, prioritizing type safety and the no-any rule. It acts as an additive reviewer by checking for accessibility, performance, and security issues often missed in standard reviews.

Inputs & outputs

You give it
Pull request diff or code snippet
You get back
Review findings categorized by priority and type

When to use typescript-review

  • →Review pull requests for type safety
  • →Check code against style guidelines
  • →Identify accessibility gaps in code

About this skill

TypeScript/JavaScript Code Review Skill

@./../_shared/typescript-commands.md @./../_shared/react-redux-patterns.md

Main Focus

Primary standard: the typescript-write skill. Load it first — it defines the authoring rules this review enforces, alongside frontend/CLAUDE.md and docs/developers-guide/frontend.md.

Adherence to typescript-write is the highest-priority review dimension: rank any violation of its provisions above all other findings. Treat its no-any hard rule (no explicit or implicit any in new code) as blocking. Use TypeScript LSP tools to inspect inferred types when available; otherwise rely on type-checking and linting.

Review in this priority order:

  1. Violations of typescript-write provisions — no-any, type tightening, type modeling, function signatures, null/undefined handling, naming, structure, comments. Highest priority; block on the no-any rule. Apply conditional guidance in context: explain the unsupported type guarantee or concrete readability problem, rather than treating every preference as a blanket ban.
  2. Compliance with frontend/CLAUDE.md.
  3. Readability and maintainability.
  4. Appropriate test coverage. For internal typed callers, avoid requesting tests solely for inputs the type system excludes. External API data, deserialised values, storage and JavaScript callers can violate annotations: test runtime validation and nontrivial assumptions at those boundaries. Types do not replace behavioural, security or data-integrity tests.

Blind spots — act as the missing reviewer

These rarely surface in team reviews, so this skill should raise them. They are additive — raise them, but rank them below typescript-write violations:

  • Accessibility. Interactive elements need keyboard support, focus management, and accessible names. Flag missing aria-label/aria-labelledby, non-semantic click targets, modals without focus trap, icon-only buttons without labels, and form inputs without a linked label.
  • Performance. Flag areas that scale poorly and aren't memoized; inline object/array literals passed to memoized children; effects that fire on every batch of a progressive load; and new dependencies added to hot paths.
  • Security. Evaluate potential security issues in new code.
  • Bundle size. Flag new large dependencies, default imports from icon or util libs, and heavy modules imported at route-load time.
  • Analytics. User-facing flows should emit tracking events. If a PR adds a new flow (button, modal, navigation) without a tracking event, ask whether one is expected.
  • Public API surface (embedding SDK). Consumers should be able to use public signatures and name types they need to import. Export those types deliberately and document public behaviour, including @deprecated for deprecated APIs; a referenced structural type does not automatically need its own named export.

When not to use it

  • →When reviewing non-TypeScript or non-JavaScript files
  • →When the codebase does not follow Metabase standards

Prerequisites

typescript-write skill loaded

Limitations

  • →Requires typescript-write skill for baseline rules
  • →Review findings are additive and secondary to type violations

How it compares

It enforces strict, project-specific type safety rules and accessibility checks that go beyond generic linting.

Compared to similar skills

typescript-review side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
typescript-review (this skill)393moNo flagsIntermediate
accessibility-compliance454moNo flagsIntermediate
antfu65moReviewIntermediate
ast-grep-find38moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry