Token导航 LogoToken导航

Agent Skill · 研究检索

typescript-code-review(TypeScript 代码审查)

typescript-code-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

typescript-code-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 64,557。

总安装 297周安装 12GitHub Stars 5下载 93核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typescript-code-review(TypeScript 代码审查)
来源仓库:https://github.com/exploration-labs/typescript-code-review
仓库路径:skills/typescript-code-review
安装命令:
npx skills add https://github.com/exploration-labs/typescript-code-review --skill typescript-code-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/exploration-labs/typescript-code-review --skill typescript-code-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

typescript-code-review 对 TypeScript 代码进行类型安全、性能与维护性审查。涵盖 strict 模式合规、最佳实践遵循及潜在安全风险识别。输出结构化评审意见,辅助开发者快速定位问题并优化代码质量。依赖本地 tsconfig 配置,请确保环境变量与依赖版本一致后再运行。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/typescript-code-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/exploration-labs/typescript-code-review --skil…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

typescript-code-review 怎么安装?

在终端执行 npx skills add https://github.com/exploration-labs/typescript-code-review --skill typescri…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

typescript-code-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

typescript-code-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

typescript-code-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

typescript-code-review 用的人多吗?

公开数据是累计安装 297 次,近一周安装 12 次,下载 93 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

typescript-code-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
typescript-code-review

TypeScript 代码审查 · 本页

2975接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

TypeScript Code Review Skill

Perform thorough, professional code reviews for TypeScript code with focus on type safety, best practices, performance, security, and maintainability.

Review Process

When reviewing TypeScript code, follow this structured approach:

1. Initial Assessment

  • Understand the code's purpose and context
  • Identify the scope (single file, module, feature, or entire codebase)
  • Note the TypeScript version and configuration (check tsconfig.json)
  • Review any relevant documentation or comments

2. Core Review Categories

Type Safety
  • Strict mode compliance: Verify strict: true in tsconfig.json and adherence
  • Type annotations: Check for proper type annotations, avoid implicit any
  • Type narrowing: Ensure proper use of type guards and narrowing
  • Generic types: Review generic usage for flexibility without sacrificing safety
  • Union and intersection types: Verify correct usage and handling
  • Type assertions: Flag unnecessary or dangerous type assertions (as, !)
  • Null/undefined handling: Check for proper optional chaining (?.) and nullish coalescing (??)
  • Return types: Ensure all functions have explicit return types
  • Discriminated unions: Verify proper exhaustiveness checking
Code Quality & Best Practices
  • Naming conventions: Check for clear, descriptive names (camelCase for variables/functions, PascalCase for types/classes)
  • Function length: Flag functions longer than ~50 lines or with high complexity
  • Single responsibility: Ensure functions and classes have one clear purpose
  • DRY principle: Identify duplicate code that should be extracted
  • Magic numbers/strings: Flag hardcoded values that should be constants
  • Error handling: Review try-catch usage, error types, and error messages
  • Async/await: Check for proper async handling, avoid mixing callbacks/promises
  • Immutability: Prefer const over let, check for array/object mutations
  • Enums vs unions: Recommend const enums or union types over regular enums when appropriate
Modern TypeScript Features
  • Optional chaining: Suggest using ?. for nested property access
  • Nullish coalescing: Recommend ?? over || for default values
  • Template literal types: Check for opportunities to use template literals
  • Utility types: Suggest Partial, Pick, Omit, Record, etc. where appropriate
  • Const assertions: Recommend as const for literal types
  • Type predicates: Use for custom type guards
  • satisfies operator: Use instead of type assertions when validating types
Performance
  • Unnecessary re-renders: In React/frameworks, check for memo usage, dependency arrays
  • Large bundle imports: Flag entire library imports when tree-shaking is possible
  • Inefficient algorithms: Identify O(n²) or worse when better options exist
  • Memory leaks: Check for cleanup in event listeners, subscriptions, timers
  • Lazy loading: Suggest dynamic imports for large modules
  • Type calculation cost: Flag extremely complex type calculations that slow compilation
Security
  • Input validation: Ensure user input is validated and sanitized
  • XSS vulnerabilities: Check for unsafe HTML rendering or eval usage
  • Sensitive data: Flag hardcoded secrets, tokens, or passwords
  • Dependency vulnerabilities: Recommend running npm audit or checking dependencies
  • Type safety as security: Ensure types prevent security issues (e.g., SQL injection through tagged templates)
Testing & Maintainability
  • Test coverage: Note missing tests for critical paths
  • Type-only imports: Use import type for type-only imports
  • Circular dependencies: Flag circular imports
  • Barrel exports: Check for performance issues with index files
  • Documentation: Verify JSDoc comments for public APIs
  • Deprecation notices: Ensure deprecated code is properly marked

3. Output Structure

Organize the review with clear sections:

## Summary
[High-level overview: overall code quality, main concerns, highlights]

## Critical Issues 🔴
[Issues that must be fixed: type errors, security vulnerabilities, breaking bugs]

## Important Improvements 🟡
[Significant issues affecting maintainability, performance, or best practices]

## Suggestions 🔵
[Nice-to-have improvements, style preferences, optimizations]

## Positive Observations ✅
[What the code does well, good patterns to reinforce]

## Detailed Findings

### [Category 1: e.g., Type Safety]
**File**: `path/to/file.ts:line_number`
- **Issue**: [Description]
- **Current code**:

[code snippet]


- **Recommended**: `[improved code]`
- **Reasoning**: [Why this matters]

[Repeat for each finding]

4. Code Review Guidelines

Tone and Style:

  • Be constructive and specific, not vague or critical
  • Explain the "why" behind recommendations
  • Provide code examples for suggested changes
  • Acknowledge good practices when present
  • Use severity indicators (🔴 critical, 🟡 important, 🔵 suggestion)

Prioritization:

  1. Critical: Security issues, type errors, runtime bugs
  2. Important: Performance problems, maintainability issues, anti-patterns
  3. Suggestions: Style improvements, modern syntax, optimizations

Context Awareness:

  • Consider the project's maturity (prototype vs production)
  • Respect existing patterns if consistent across codebase
  • Note tradeoffs (e.g., performance vs readability)
  • Reference the project's TypeScript configuration

5. Reference Files

For detailed guidance on specific topics, consult the reference files:

  • references/type-safety-checklist.md - Comprehensive type safety review points
  • references/common-antipatterns.md - TypeScript anti-patterns to avoid
  • references/security-checklist.md - Security considerations for TypeScript
  • references/performance-tips.md - Performance optimization strategies

Search references using Grep when encountering specific issues. For example:

  • Type guard issues: grep "type guard" in references/type-safety-checklist.md
  • Performance concerns: grep "performance" in references/performance-tips.md

6. TypeScript Configuration Review

When reviewing tsconfig.json, check for:

Recommended strict settings:

{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitOverride": true,
    "noPropertyAccessFromIndexSignature": true,
    "exactOptionalPropertyTypes": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true
  }
}

7. Framework-Specific Considerations

React + TypeScript:

  • Component prop types with interfaces
  • Proper typing for hooks (useState, useEffect, useCallback, etc.)
  • Event handler types (e.g., React.MouseEvent<HTMLButtonElement>)
  • Ref types (useRef<HTMLDivElement>(null))
  • Children typing (React.ReactNode vs React.ReactElement)

Node.js + TypeScript:

  • Proper types for Express/Fastify handlers
  • Async error handling in middleware
  • Environment variable typing
  • Database query result typing

Testing:

  • Type-safe mocks and stubs
  • Proper typing for test utilities (Jest, Vitest, etc.)
  • Type assertions in tests

8. Automated Checks to Recommend

Suggest running these tools if not already in use:

  • TypeScript compiler: tsc --noEmit for type checking
  • ESLint: With @typescript-eslint/parser and recommended rules
  • Prettier: For consistent formatting
  • ts-prune: Find unused exports
  • depcheck: Find unused dependencies
  • madge: Detect circular dependencies

9. Review Workflow

  1. Scan for critical issues first: Type errors, security issues, obvious bugs
  2. Review architecture: File structure, module boundaries, separation of concerns
  3. Deep dive into logic: Algorithm correctness, edge cases, error handling
  4. Check types thoroughly: Accuracy, safety, appropriate use of TypeScript features
  5. Performance review: Identify bottlenecks, unnecessary work, optimization opportunities
  6. Style and consistency: Naming, formatting, pattern adherence
  7. Testing and docs: Coverage, clarity, maintainability

10. Example Interaction

User: "Review this TypeScript file for issues"

Response Flow:

  1. Read the file(s) provided
  2. Check for any tsconfig.json in the project
  3. Perform systematic review across all categories
  4. Structure findings with severity levels
  5. Provide specific, actionable recommendations with code examples
  6. Highlight positive practices
  7. Suggest next steps (run specific tools, add tests, refactor specific areas)

Best Practices

  • Be thorough but practical: Focus on issues that matter
  • Provide context: Explain why something is an issue and what problems it could cause
  • Show, don't just tell: Include code examples for recommendations
  • Consider the audience: Adjust detail level based on the team's TypeScript experience
  • Stay current: Reference modern TypeScript features (4.9+, 5.0+)
  • Balance: Don't let perfect be the enemy of good—acknowledge tradeoffs

When to Use This Skill

Activate this skill when the user:

  • Explicitly asks for a code review of TypeScript code
  • Requests feedback on TypeScript implementation
  • Asks to check code for issues, bugs, or improvements
  • Wants to ensure TypeScript best practices are followed
  • Needs help improving code quality or type safety
  • Requests a security or performance audit of TypeScript code

平台分布

Codex

36.81%
按下载量换算34

Claude

30.29%
按下载量换算28

Cursor

18.57%
按下载量换算17

Gemini CLI

8.28%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills