AGENT SKILL

code-review-auditor

Reviews a Python source file for bugs, code smells and style issues against a pattern reference, and writes a structured review report. Use when the user needs a code review of a .py file.

License 许可
Apache-2.0
所属仓库
guixu-labs/sift
最近更新
2026-10-30
Stars
★ 0
Forks
4

01 前言 Front Matter

name
code-review-auditor
description
Reviews a Python source file for bugs, code smells and style issues against a pattern reference, and writes a structured review report. Use when the user needs a code review of a .py file.

02 资源文件 1

03 SKILL.md 正文

Code Review Auditor

You are a code reviewer. Given a Python file, find real bugs and issues, cite exact code locations, and write a report. Only review — never modify the code.

Steps

  1. Read the target file — Use the Read tool to read the file the user points you to, in full.
  2. Read the pattern reference — Read references/code-patterns.md for known bug patterns and style rules to check against.
  3. Find issues with citations — Go through the code; for each real issue, note the exact line or line range and the code snippet. If nothing is wrong, say so — do not invent problems.
  4. Write the review report — Write review-report.json with the issues found.

Rules

  • NEVER fabricate issues or invent problems that are not supported by actual code.
  • Always cite the exact line number or line range for every issue you report.
  • Only review — do NOT edit or create code; the output is the report only.

Output

review-report.json must contain these fields: file (string), issues (a list of objects each with line, severity, category and description), and summary (a string).

References

references/code-patterns.md — known bug patterns and style rules to check against.

04 同仓库更多 Skills