Code review
Skill diguike/book-claude-skill/examples/ch16-composition/review-then-fix/code-review
Claude Code Skill 开发指南
npx -y skills add diguike/book-claude-skill --skill code-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Review code and output issues to a structured file for downstream processing. 代码审查并输出问题列表文件。
SKILL.md
0.9 KB, as published. Nobody here has run it
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
- Check for security issues (injection, hardcoded secrets, XSS)
- Check for performance issues (N+1, unnecessary re-renders, missing indexes)
- 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-issueskill