Skip to content
dsh.fish
Bundle

dsh-code-reviewer

AI代码审查:找出代码中的bug、安全漏洞、性能问题和风格建议

Source
jetheaven
stars
1 stars
License
MIT
Updated
Updated 2 days ago

Readme

# dsh-code-reviewer

> DeepSeek Harness 代码审查插件 — AI驱动的多维度代码审查与修复建议

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![DSH Plugin](https://img.shields.io/badge/DSH-Plugin-blue)](https://github.com/deepseek-ai/deepseek-harness)

## ✨ 功能

- **四级问题分类**:
  - 🔴 **Critical(致命)**:安全漏洞、数据丢失风险、崩溃隐患
  - 🟡 **Warning(重要)**:逻辑错误、性能瓶颈、错误处理缺失
  - 🟢 **Suggestion(建议)**:代码风格、命名、可维护性改进
  - ℹ️ **Good(亮点)**:值得肯定的做法
- **多维度审查**:bug检测、安全漏洞、性能优化、代码风格
- **精准定位**:每个问题标注行号和代码片段
- **修复建议**:提供具体的修复代码示例
- **多语言支持**:自动识别编程语言

## 📦 安装

```bash
dsh plugin add github:jetheaven/dsh-code-reviewer
```

## 🚀 使用

直接粘贴代码:
```
帮我审查这段代码:
function getUserData(id) {
  var data = fetch('/api/user/' + id)
  if (data.status = 200) { return data.json() }
}
```

### 工具参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `code` | string | ✅ | 要审查的代码 |
| `language` | string | ❌ | 编程语言(不填则自动识别) |
| `focus` | string | ❌ | 审查重点:all(默认)/ bug / security / performance / style |

## 🛠 开发

```bash
tsc
dsh plugin add /path/to/dsh-code-reviewer
```

## 💬 社区

DSH 社区插件发布帖:[deepseek-harness/discussions/1381](https://github.com/deepseek-ai/deepseek-harness/discussions/1381)

## 📄 License

MIT

Install

dsh plugin --profile web add github:jetheaven/dsh-code-reviewer

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source