ts-reviewer

Review TypeScript and JavaScript code for type safety and best practices.

2|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/zapabob/Skills --skill ts-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ts-reviewer
Source: https://github.com/zapabob/Skills/tree/main/registry/skills/ts-reviewer/variants/cursor
Command: npx skills add https://github.com/zapabob/Skills --skill ts-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and agents (resource) components.

What problem does it solve?

This Skill addresses the need for rigorous code quality checks in TypeScript projects, focusing on type safety, adherence to best practices, and framework-specific patterns to prevent bugs and improve maintainability.

Core Features & Use Cases

  • Type Safety Audits: Identifies potential type-related runtime errors.
  • Best Practice Enforcement: Checks for adherence to modern TypeScript, React/Next.js, and Node.js patterns.
  • Performance Suggestions: Offers optimizations for code execution and rendering.
  • Use Case: Review a complex React component to ensure all props are correctly typed, hooks are used efficiently, and no unnecessary re-renders occur.

Quick Start

Use the ts-reviewer skill to review the attached TypeScript file 'user-profile.ts'.

Frequently Asked Questions about ts-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review TypeScript code for type safety and strict mode adherence?

Review TypeScript code by analyzing potential type-related runtime errors and checking for strict mode compliance. This process ensures type safety and adherence to modern best practices in React, Next.js, and Node.js environments to prevent bugs and improve maintainability.

What's the best way to enforce React and Next.js best practices in my codebase?

Enforce React and Next.js best practices through static analysis and linters. This checks your codebase for framework-specific patterns, ensuring hooks are used efficiently, props are correctly typed, and no unnecessary re-renders occur in complex components.

Can I use static analysis to find performance bottlenecks in Node.js applications?

Yes, you can use static analysis to find performance bottlenecks in Node.js applications. This approach analyzes code execution and rendering, offering specific optimizations to improve performance while simultaneously verifying type safety and modern JavaScript patterns.

Does this code review process work with both JavaScript and TypeScript files?

Yes, this code review process works with both JavaScript and TypeScript files. It analyzes both languages for potential runtime errors, performance bottlenecks, and adherence to best practices, applying strict type safety audits specifically to TypeScript code.

How do I audit a complex React component for unnecessary re-renders and type errors?

Audit a complex React component by analyzing its props for correct typing, evaluating hook usage efficiency, and checking for unnecessary re-renders. This static analysis identifies potential type-related runtime errors and suggests rendering optimizations.