AGENT SKILL

backend-review

Review backend changes for production correctness, layer boundaries, data access risk, API compatibility, operational safety, and PR readiness. Use for services, handlers, workers, migrations, config, or backend infrastructure.

License 许可
MIT
最近更新
2026-07-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
backend-review
description
Review backend changes for production correctness, layer boundaries, data access risk, API compatibility, operational safety, and PR readiness. Use for services, handlers, workers, migrations, config, or backend infrastructure.

02 资源文件 4

03 SKILL.md 正文

When to Use

  • Backend service, API, worker, or migration changes.
  • Changes crossing API, data, config, CI, or infra layers.
  • PRs that need production-safety review before merge.
  • AI-generated backend changes needing review evidence.

When NOT to Use

  • Frontend-only UI review.
  • Generic formatting or copy edits.
  • Product ideation without a backend change.
  • Organization-private incident or scoring policy review.

Workflow

  1. Identify touched backend layers.
  2. Check whether the diff should be split.
  3. Review behavior, data access, and API contract risk.
  4. Review failure behavior, rollback, logs, and metrics.
  5. Produce blockers, risks, and test gaps.

Review Steps

  • Confirm validation and authorization boundaries.
  • Look for N+1 queries and unbounded loops.
  • Check missing pagination.
  • Check schema, index, backfill, and deploy order.
  • Check API compatibility and generated client drift.
  • Verify errors, retries, idempotency, and rollback.
  • Confirm tests or evidence cover the risky behavior.

Constraints

  • Do not invent organization-specific policy.
  • Do not expose secrets, hostnames, or incidents.
  • Do not expose internal runbooks.
  • Prefer small, reviewable batches over broad rewrites.
  • Treat scanner output as evidence, not as the whole review.

Expected Outputs

  • Touched backend layers.
  • Blockers and high-risk findings first.
  • Suggested PR split when scope is too broad.
  • Required tests or validation evidence.
  • Residual risk after available checks.

04 同仓库更多 Skills