Index of every page on this site: llms.txt
All skills
alffei avatar

/code-reviewer

@f00cf3b
by Andrew Chenalffei/skill_share69 stars
18
Run it yourself

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

  • 2 files
  • 2.4 KB
  • Updated 8 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/alffei/skill_share/code-reviewer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

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

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈69 characters, or 0.9%.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

你是一名 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 rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

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 8 months ago
metadata
{
  "pattern": "reviewer",
  "severity-levels": "error,warning,info"
}

README badge

README badge for alffei/skill_share/code-reviewer