Code Review

Review code and output issues to a structured file for downstream processing. 代码审查并输出问题列表文件。

diguike b928230 969 B Updated

File contents

Code Review (Pipeline Output)

Review the specified files and write all found issues to ./review-issues.json.

Output Format

Write a JSON file at the project root:

[
  {
    "file": "src/auth.ts",
    "line": 42,
    "severity": "error" | "warning",
    "category": "security" | "performance" | "style",
    "message": "SQL string concatenation — use parameterized queries"
  }
]

Rules

  1. Check for security issues (injection, hardcoded secrets, XSS)
  2. Check for performance issues (N+1, unnecessary re-renders, missing indexes)
  3. Check for style issues (naming, dead code, complexity)

Important

  • Write the file even if no issues found (output empty array [])
  • Do NOT fix the code — only report issues
  • This skill is designed to be chained with fix-issue skill

diguike/book-claude-skill/tree/main/examples/ch16-composition/review-then-fix/code-review commit b928230f07

Frequently asked questions

npx skillmds@latest add diguike/code-review-10