smithery.ai

typescript-reviewer

Review TypeScript code for type safety, null safety, and modern patterns. Enforces Studio-535 standards - no lazy any types, service layer pattern, proper error handling. Use when reviewing .ts/.tsx files or checking type definitions.

First seen Apr 6, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Grep, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,007 B
  • docs SUMMARY.md 261 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

TypeScript Best Practices Reviewer

Standards

Type Safety

  • ❌ No any types without explicit justification comment
  • ✅ Use unknown for truly unknown data
  • ✅ Proper generic constraints

Null Safety

  • ✅ Use optional chaining ?. and nullish coalescing ??
  • ✅ Explicit undefined handling in function returns
  • ❌ No loose equality checks (== instead use ===)

React Components

  • ✅ Prop types defined with interface or type
  • ✅ Event handlers typed properly (React.ChangeEvent, etc.)
  • ✅ Hooks dependency arrays complete

Service Layer Pattern

  • ✅ Business logic in server/services/
  • ❌ NO business logic in routers
  • ✅ Routers only: validation, auth, service calls

Error Handling

  • ✅ Use discriminated unions for error returns
  • ✅ Typed error responses in tRPC procedures
  • ❌ No throwing raw strings

Review Checklist

When reviewing a file:

  1. Check for any types - flag and suggest proper type
  2. Verify null/undefined handling
  3. Validate React hook dependencies if component
  4. Ensure service layer pattern if in server/
  5. Check error handling in tRPC procedures

Example Feedback Format

## Type Safety Issues

### File: server/routers.ts:45
- ❌ Using `any` for user parameter
- ✅ Suggested: `user: { id: string; email: string }`

### File: client/src/components/Form.tsx:22
- ❌ Missing dependency in useEffect: `userId`
- ✅ Add to dependency array: `[userId, fetchData]`

Auto-Invocation Triggers

This Skill should activate when:

  • Reviewing changes to .ts or .tsx files
  • User asks to "review TypeScript code"
  • User asks to "check types" or "improve type safety"
  • PR review requested