跳到主要内容
知仓学习社ZHICANG

performance-review

Review code changes only for performance and efficiency risks (N+1 queries, repeated work, bad asymptotics, missing batching/caching, blocking I/O, …

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Performance Review

<!-- include: _common/dimension-scope.md -->

<!-- include: _common/tool-usage.md -->

<!-- include: _common/reviewer-grounding.md -->

In rag-reviewer:review-pr use the PR-session tools above. Standalone (no PR session): use

the session-less tools per the reviewer-grounding block when reviewer is connected and the

index is fresh; otherwise fall back to grep/Read.

Goal

Look only for performance and efficiency risks in the selected changes. Ignore style,

architecture, tests, and general correctness unless they materially affect performance.

Prioritize findings such as:

  • N+1 queries and repeated remote calls;
  • unnecessary loops or repeated work;
  • bad asymptotic behavior on hot paths;
  • redundant rendering, serialization, parsing, allocations, or avoidable copies;
  • missing batching, caching, pagination, or streaming where the diff makes that risk

likely;

  • blocking I/O or CPU-heavy work on latency-sensitive paths;
  • memory growth or large payload handling.

Method

  1. Read the diff first.
  2. Open only the nearby code needed to understand whether the changed path is

performance-sensitive. In rag-reviewer:review-pr use the reviewer MCP tools: read_file,

search_code, find_callers.

  1. Prefer concrete findings over vague perf speculation.
  2. If a concern depends on an assumption, state that assumption explicitly.
  3. If a path is probably not performance-sensitive, do not invent issues.

Severity

  • critical / high: likely severe latency, throughput, or resource regression on

an important path.

  • medium: meaningful inefficiency or scaling risk that should probably be fixed.
  • low: worthwhile optimization or preventive note, not a blocker.

Output

Return only actionable findings.

Return ONLY the findings JSON used by the review pipeline, with

"category": "performance":

<!-- include: _common/findings-schema.md -->

  • Calibrate confidence against a measurable, reproducible effect: a hot path you can point

to (loop bound, query inside a loop) → 0.8+; a plausible but data-dependent cost → 0.5–0.7;

no measurable/reproducible effect → ≤ 0.4 (drop).

Set "category" to "performance"; "side" is always "RIGHT".

<!-- include: _common/dimension-output-tail.md -->

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。