dmsobtl/dsh-tool-code-review ↗★ 0
dsh-tool-code-review
DSH plugin: structured code review tool — Agent reads git diff, reviews for bugs/security/style, outputs actionable findings.
AI 분석
核心用途是辅助代码审查。适合需要 AI 自动分析代码改动、指出潜在 Bug 和安全隐患的开发团队。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
使用示例
User: 帮我 review 一下当前的改动
Agent:
→ review_diff({ target: "main" })
// 获取与 main 分支的 diff,了解改了什么
→ review_checklist({ checks: ["bugs", "security"] })
// 生成要检查的点
→ review_file({ path: "src/auth.ts", startLine: 45, endLine: 80 })
// 深入看可疑的代码段
审查结果:
1. [Security] src/auth.ts:52 — 用户输入直接拼接到 SQL,存在注入风险
2. [Bug] src/handler.ts:28 — async 函数缺少 try/catch,错误会被吞掉
3. [Style] src/utils.ts:15 — 未使用的 import
配置
- id: code-review
plugin: dsh-tool-code-review
config:
maxDiffLines: 500
defaultChecks: [bugs, security, style, performance]