Skip to main content

backend-code-review

Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`.

来源信息

仓库
langgenius/dify
最近来源活动
2026年9月29日 13:53
检测到的 SKILL.md 语言
英语
星标
158,150
分支
24,983

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
backend-code-review
description
Use only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do not use for implementation-only requests, diagnosis without review intent, frontend code, or backend code outside `api/`.
# Backend Code Review Review the requested scope for concrete, reproducible defects. The nearest `AGENTS.md` owns package facts and commands; this skill owns the review workflow and routes to its bundled rule packs. ## Evidence First 1. Establish the requested review scope and inspect the relevant diff or files. 2. Read the changed lines, their behavior owner, nearby tests, and local docstrings or comments that define contracts. 3. Trace callers, persistence boundaries, authorization, generated schemas, or external I/O only when they decide correctness. 4. Report only findings tied to an observable failure, violated contract, security boundary, data integrity risk, or demonstrated maintenance problem. ## Rule Routing Read only the packs matched by the diff: - Models or migrations: [`references/db-schema-rule.md`][db-schema] - Controller, service, core/domain, library, or model dependency direction: [`references/architecture-rule.md`][architecture] - Table access outside an established repository boundary: [`references/repositories-rule.md`][repositories] - SQLAlchemy sessions, queries, transactions, CRUD, concurrency, or raw SQL: [`references/sqlalchemy-rule.md`][sqlalchemy] When no pack applies, review correctness, security, behavior changes, and test evidence directly. Check current official documentation only when local code and contracts do not settle framework or library behavior. ## Severity And Output - **P0**: security or privacy exposure, data loss, or a production-wide outage. - **P1**: user-visible regression, broken authorization or tenant isolation, invalid public contract, or failed primary workflow. - **P2**: concrete correctness, performance, maintainability, or test defect likely to cause incorrect behavior. - **P3**: minor actionable cleanup; omit unless the user requested a thorough audit. Lead with findings ordered by severity. Include a tight file and line reference, the failing contract or reproduction path, impact, and a concrete fix direction. If there are no findings, say `No issues found.` and state any material verification gap. Do not add praise sections, speculative risks, or an unsolicited offer to implement fixes. [architecture]: references/architecture-rule.md [db-schema]: references/db-schema-rule.md [repositories]: references/repositories-rule.md [sqlalchemy]: references/sqlalchemy-rule.md
在 GitHub 查看