code-review
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 13
02 资源文件 6
- 参考文档references/bla.md5 B
- 参考文档references/bla2.md26 B
- 其他rust-analyzer/cargo.lock15.7 KB
- 其他rust-analyzer/cargo.toml395 B
- 脚本rust-analyzer/src/file1.rs5 B
- 脚本scripts/analyze.py5 B
03 SKILL.md 正文
name: Code Review description: Review code for bugs, security issues, and best practices. allowed-tools: Read, Grep, Glob
Code Review Skill
When invoked, systematically analyze the target codebase for quality, correctness, and maintainability.
Analysis Checklist
-
Bug Detection: Look for off-by-one errors, null/undefined dereferences, race conditions, and improper error handling. Trace control flow for edge cases and boundary conditions.
-
Security Issues: Identify SQL injection, XSS, CSRF, insecure deserialization, hardcoded secrets, and improper authentication/authorization. Check input validation and output encoding.
-
Best Practices: Verify naming conventions, DRY violations, appropriate use of design patterns, and adherence to language/framework idioms. Flag magic numbers and unclear abstractions.
-
Performance: Spot N+1 queries, unnecessary allocations, blocking I/O in async paths, and inefficient algorithms. Suggest caching or batching where appropriate.
-
Maintainability: Assess testability, coupling, cohesion, and documentation. Recommend extracting complex logic into well-named functions or modules.
Workflow
- Use Read to load the files under review.
- Use Grep to search for patterns (e.g.,
eval,exec,dangerouslySetInnerHTML,password,secret). - Use Glob to discover related files (tests, configs, dependencies) for context.
- Provide actionable, prioritized feedback with file:line references and concrete suggestions.
04 同仓库更多 Skills
sds-plugin-a11y-check
暂无简介
endpoint-review
暂无简介
schema-draft
暂无简介
doc-outline
暂无简介
sds-plugin-a11y-check
暂无简介
endpoint-review
暂无简介