Skip to main content

code-review

Use this skill when reviewing code for quality, security, and maintainability issues. Provides a structured checklist for thorough code reviews.

来源信息

仓库
oracle/locus
最近来源活动
2026年10月22日 18:48
检测到的 SKILL.md 语言
英语
星标
4
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
code-review
description
Use this skill when reviewing code for quality, security, and maintainability issues. Provides a structured checklist for thorough code reviews.
allowed-tools
read_file search_code
metadata
{"author":"locus","version":"1.0"}
# Code Review Checklist ## 1. Security - Check for hardcoded secrets (API keys, passwords, tokens) - Validate all user inputs before use - Check for SQL injection, XSS, command injection - Ensure sensitive data is not logged ## 2. Error Handling - All external calls wrapped in try/except - Errors logged with context (not just swallowed) - User-facing errors are safe (no stack traces leaked) ## 3. Code Quality - Functions are under 50 lines - No duplicated logic (DRY principle) - Clear variable and function names - Type hints on public functions ## 4. Testing - New code has corresponding tests - Edge cases covered (empty input, None, large data) - Tests are independent (no shared mutable state) ## 5. Performance - No N+1 queries - Large collections use generators, not lists - Expensive operations are cached where appropriate ## Summary Format After reviewing, provide: 1. **Critical issues** (must fix before merge) 2. **Suggestions** (improve quality but not blocking) 3. **Positives** (what was done well)
在 GitHub 查看