7dgroup-ai/dsh-skill-7d-code-reviewer ↗★ 1
@7dgroup/dsh-skill-7d-code-reviewer
Installable composition bundle contributing the 7DGroup template-driven code review skill to DeepSeek Harness
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:7dgroup-ai/dsh-skill-7d-code-reviewer说明文档
阅读完整 README ↗💡 Usage
The skill activates whenever you ask for a code review — either with the slash command or in natural language:
/7d-code-reviewer Review this module: ...
The five-step review flow:
| Step | What happens |
|---|---|
| 1. Accept the task | Take the submitted code or file paths; determine the language and business context |
| 2. Quick scan | Classify the change (new feature / bugfix / refactor); locate the core files and key logic |
| 3. Line-by-line review | Load the matching references on demand; check naming, security, performance and error handling |
| 4. Severity grading | 🔴 critical — must fix · 🟡 medium — should fix · 🟢 minor — optional improvement |
| 5. Report generation | Fill the placeholder HTML template; output the text summary plus code-review-report-{timestamp}.html |
Output example (text summary)
✅ 优点
- 函数意图明确,返回用户数据
⚠️ 问题
🔴 严重:SQL 注入风险
位置:get_user() 第 2 行
描述:直接使用 f-string 拼接用户输入到 SQL 语句
建议修复:使用参数化查询,如 cursor.execute("SELECT * FROM users WHERE id=?", [uid])
📊 总体评分:3/10
代码质量: 5/10 | 安全性: 1/10 | 性能: 7/10 | 可维护性: 4/10
The full HTML report is saved to code-review-report-{timestamp}.html and the file path is reported back to you.