审查 TypeScript 代码是否符合规范
Reviews TypeScript code for style compliance across naming, types, structure, and best practices.
/plugin marketplace add 15195999826/LomoMarketplace/plugin install typescript-style@LomoMarketplace<file-or-directory>使用 ts-code-reviewer agent 审查指定文件或目录的 TypeScript 代码。
/typescript-style:ts-review src/utils/helper.ts # 审查单个文件
/typescript-style:ts-review src/ # 审查整个目录
/typescript-style:ts-review . # 审查当前目录
使用 Task 工具启动 ts-code-reviewer agent,传入以下 prompt:
审查以下 TypeScript 代码: $ARGUMENTS
请按照四个维度(命名规范、类型规范、结构规范、最佳实践)进行检查,并生成结构化的审查报告。
agent 配置:
typescript-style:ts-code-revieweragent 会检查:
审查完成后会生成包含以下部分的报告: