backend-code-review by langgenius/dify
npx skills add https://github.com/langgenius/dify --skill backend-code-review当用户要求审查、分析或改进 api/ 目录下的后端代码(例如 .py)时,使用此技能。支持以下审查模式:
api/...、api/app.py)。以下情况请勿使用此技能:
.tsx、.ts、.js、web/)。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
api/ 目录下(除非用户明确要求审查 api/ 之外的后端相关变更)。使用此技能时,请遵循以下步骤:
使用此技能时的注意事项:
File:Line 引用;否则,使用你能提供的最具体的标识符。api/models/ 或 api/migrations/ 下的代码/文件,请遵循 references/db-schema-rule.md 执行审查。select(...)、session.execute(...)、连接、CRUD)且不在 api/repositories、api/core/repositories 或 api/extensions/*/repositories/ 目录下,请遵循 references/repositories-rule.md 执行审查。检查以下内容:
检查以下内容:
检查以下内容:
检查以下内容:
当此技能被调用时,响应必须严格遵循以下两个模板之一:
# 代码审查摘要
发现 <X> 个需要修复的关键问题:
## 🔴 关键问题(必须修复)
### 1. <问题简要描述>
FilePath: <路径> 第 <行号> 行
<相关代码片段或指针>
#### 解释
<问题的详细解释和参考>
#### 建议修复
1. <建议修复的简要描述>
2. <代码示例>(可选,如不适用则省略)
---
...(为每个关键问题重复)...
发现 <Y> 个改进建议:
## 🟡 建议(应考虑)
### 1. <建议的简要描述>
FilePath: <路径> 第 <行号> 行
<相关代码片段或指针>
#### 解释
<建议的详细解释和参考>
#### 建议修复
1. <建议修复的简要描述>
2. <代码示例>(可选,如不适用则省略)
---
...(为每个建议重复)...
发现 <Z> 个可选细节优化:
## 🟢 细节优化(可选)
### 1. <细节优化的简要描述>
FilePath: <路径> 第 <行号> 行
<相关代码片段或指针>
#### 解释
<细节优化的解释和参考>
#### 建议修复
- <次要建议>
---
...(为每个细节优化重复)...
## ✅ 优点
- <对良好模式的积极反馈>
## 代码审查摘要
✅ 未发现问题。
每周安装次数
230
代码仓库
GitHub Stars
134.2K
首次出现
2026年2月28日
安全审计
安装于
github-copilot228
codex227
gemini-cli227
kimi-cli227
amp227
cline227
Use this skill whenever the user asks to review, analyze, or improve backend code (e.g., .py) under the api/ directory. Supports the following review modes:
api/..., api/app.py).Do NOT use this skill when:
.tsx, .ts, .js, web/).api/ (unless the user explicitly asks to review backend-related changes outside api/).Follow these steps when using this skill:
Notes when using this skill:
File:Line references when a file path and line numbers are available; otherwise, use the most specific identifier you can.api/models/ or api/migrations/, follow references/db-schema-rule.md to perform the reviewselect(...), session.execute(...), joins, CRUD) and is not under api/repositories, api/core/repositories, or api/extensions/*/repositories/, follow references/repositories-rule.md to perform the reviewCheck for:
Check for:
Check for:
Check for:
When this skill invoked, the response must exactly follow one of the two templates:
# Code Review Summary
Found <X> critical issues need to be fixed:
## 🔴 Critical (Must Fix)
### 1. <brief description of the issue>
FilePath: <path> line <line>
<relevant code snippet or pointer>
#### Explanation
<detailed explanation and references of the issue>
#### Suggested Fix
1. <brief description of suggested fix>
2. <code example> (optional, omit if not applicable)
---
... (repeat for each critical issue) ...
Found <Y> suggestions for improvement:
## 🟡 Suggestions (Should Consider)
### 1. <brief description of the suggestion>
FilePath: <path> line <line>
<relevant code snippet or pointer>
#### Explanation
<detailed explanation and references of the suggestion>
#### Suggested Fix
1. <brief description of suggested fix>
2. <code example> (optional, omit if not applicable)
---
... (repeat for each suggestion) ...
Found <Z> optional nits:
## 🟢 Nits (Optional)
### 1. <brief description of the nit>
FilePath: <path> line <line>
<relevant code snippet or pointer>
#### Explanation
<explanation and references of the optional nit>
#### Suggested Fix
- <minor suggestions>
---
... (repeat for each nits) ...
## ✅ What's Good
- <Positive feedback on good patterns>
## Code Review Summary
✅ No issues found.
Weekly Installs
230
Repository
GitHub Stars
134.2K
First Seen
Feb 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
github-copilot228
codex227
gemini-cli227
kimi-cli227
amp227
cline227
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
45,100 周安装