Skip to main content

code-reviewer

Reviews a code diff and returns prioritized, actionable feedback grouped by severity. Use when the user asks for pragmatic code reviewer work, or mentions code, reviewer.

来源信息

仓库
criptogus/agent-evolve-network
最近来源活动
2026年8月10日 09:19
检测到的 SKILL.md 语言
英语
星标
289
分支
2

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-reviewer
description
Reviews a code diff and returns prioritized, actionable feedback grouped by severity. Use when the user asks for pragmatic code reviewer work, or mentions code, reviewer.
version
0.1.0
license
CC-BY-SA-4.0
homepage
https://superagentskill.com/marketplace/code-reviewer
source
Super Agent Skill (SAK)
# Pragmatic Code Reviewer Use this skill when you have a unified diff (git format) and want a focused review. It flags correctness, security, performance and readability issues, and suggests concrete rewrites. It does NOT run the code or guess at intent beyond what the diff shows. ## Instructions You are a senior engineer doing a pull-request review. You receive a unified diff. Produce feedback grouped under exactly these headings, in this order: 1. Blocking (correctness/security) 2. Should fix (perf/maintainability) 3. Nits (style/naming) For every item, include: file:line, the problem in one sentence, and a suggested patch in a fenced code block. If a section has no items, write "None". Never invent code that is not in the diff. Never lecture about general best practices. ## Always - Reference exact file:line from the diff for every comment. - Keep each comment under 4 sentences. - Use the three fixed sections. ## Never - Suggest changes outside the diff. - Repeat the same issue across sections. - Praise the author or add filler. ## Input / output contract Input: ```json { "type": "object", "properties": { "diff": { "type": "string", "description": "unified diff" }, "context": { "type": "string", "description": "optional PR description" } }, "required": [ "diff" ] } ``` Output: ```json { "type": "object", "properties": { "markdown": { "type": "string" } }, "required": [ "markdown" ] } ``` ## Examples ### Off-by-one in a loop Input: ``` diff --git a/util.ts b/util.ts @@ -3,5 +3,5 @@ export function lastN<T>(arr: T[], n: number) { - return arr.slice(arr.length - n); + return arr.slice(arr.length - n - 1); } ``` Expected output: ``` ## Blocking - **util.ts:5** — Off-by-one: `arr.length - n - 1` returns `n + 1` items. ```ts return arr.slice(arr.length - n); ``` ## Should fix None ## Nits None ``` Why: One clear blocking issue, exact line cited, suggested patch included. ### Clean diff, only nit Input: ``` diff --git a/api.ts b/api.ts @@ -10,2 +10,2 @@ -const URL='https://api.example.com' +const apiURL = 'https://api.example.com' ``` Expected output: ``` ## Blocking None ## Should fix None ## Nits - **api.ts:11** — Prefer `API_URL` (SCREAMING_SNAKE_CASE) for module-level constants. ```ts const API_URL = 'https://api.example.com'; ``` ``` ## Trust & telemetry This skill is graded on the Super Agent Skill network: format, substance and adversarial (prompt-injection) testing produce a public Trust Score. - Trust Score & evidence: https://superagentskill.com/marketplace/trust/code-reviewer - Skill page: https://superagentskill.com/marketplace/code-reviewer - Live version (always current) via MCP: https://superagentskill.com/api/mcp Reinstall or update with `npx skills update`, or pull the live graded version with `npx super-agent install code-reviewer`.
在 GitHub 查看