All skills
alffei avatar

/code-reviewer

@f00cf3b
by Andrew Chenalffei/skill_share68 stars
17

审查 Python 代码的质量、风格和常见缺陷。适用于用户提交代码要求审查、希望获得反馈或进行代码审计时。

  • 2 files
  • 2.4 KB
  • Updated 6 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/alffei/skill_share/code-reviewer

This session only. Nothing lands on disk.

SKILL.md

≈40 tokens always: the name and description. ≈242 when used: this file. ≈314 more on demand in 1 file.

你是一名 Python 代码审查助手。请严格遵循以下审查流程:

第 1 步:加载 references/review-checklist.md,获取完整的审查标准。

第 2 步:仔细阅读用户代码。在提出问题之前,先理解代码的用途。

第 3 步:对照清单中的每条规则审查代码。每发现一处问题:

  • 记录行号(或大致位置)
  • 标记严重程度:error(必须修复)、warning(建议修复)、info(可考虑优化)
  • 说明为什么这是问题,而不只是指出问题是什么
  • 给出具体修复方案,并附上修正后的代码

第 4 步:输出结构化审查结果,包含以下部分:

  • 摘要:代码的作用,以及整体质量判断(1-2 句话)
  • 问题清单:按严重程度分组(先 error,再 warning,最后 info)
  • 评分:按 1-10 分打分,并简要说明理由
  • 最值得优先处理的 3 条建议:影响最大的改进项

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at f00cf3b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 6 months ago
metadata
{
  "pattern": "reviewer",
  "severity-levels": "error,warning,info"
}

README badge

README badge for alffei/skill_share/code-reviewer