后端与数据库

backend-code-review

langgenius/dify

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/`.

  • 2084 次安装
  • 16万 星标
  • 收录于

安装命令

npx skills add https://github.com/langgenius/dify --skill backend-code-review

SKILL.md

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]
  • Controllers, application services, ports, adapters, the composition root, import-boundary contracts, libraries, or model behavior: [references/architecture-rule.md][architecture]
  • Table access outside a repository that implements a consumer-owned port: [references/repositories-rule.md][repositories]
  • SQLAlchemy sessions, queries, transactions, CRUD, concurrency, or raw SQL: [references/sqlalchemy-rule.md][sqlalchemy]