code-review-assistant
关于
This Claude Skill provides systematic code review checklists and pre-commit quality gates for evaluating pull requests and code quality. It offers categorized checklists (functionality, design, quality, readability) and a standardized comment prefix system to classify feedback severity. Use it when reviewing PRs or before committing code to enforce consistent quality standards.
快速安装
Claude Code
推荐/plugin add https://github.com/AsiaOstrich/universal-dev-skillsgit clone https://github.com/AsiaOstrich/universal-dev-skills.git ~/.claude/skills/code-review-assistant在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Code Review Assistant
This skill provides systematic checklists for code review and pre-commit verification.
Quick Reference
Comment Prefixes
| Prefix | Meaning | Action Required |
|---|---|---|
| ❗ BLOCKING | Must fix before merge | 🔴 Required |
| ⚠️ IMPORTANT | Should fix, but not blocking | 🟡 Recommended |
| 💡 SUGGESTION | Nice-to-have improvement | 🟢 Optional |
| ❓ QUESTION | Need clarification | 🔵 Discuss |
| 📝 NOTE | Informational, no action | ⚪ Informational |
Review Checklist Categories
- Functionality - Does it work?
- Design - Right architecture?
- Quality - Clean code?
- Readability - Easy to understand?
- Tests - Adequate coverage?
- Security - No vulnerabilities?
- Performance - Efficient?
- Errors - Properly handled?
- Docs - Updated?
- Dependencies - Necessary?
Pre-Commit Checklist
- Build succeeds (zero errors, zero warnings)
- All tests pass
- Code follows project standards
- No security vulnerabilities
- Documentation updated
- Branch synced with target
Detailed Guidelines
For complete standards, see:
Example Review Comments
❗ BLOCKING: Potential SQL injection vulnerability here.
Please use parameterized queries instead of string concatenation.
⚠️ IMPORTANT: This method is doing too much (120 lines).
Consider extracting validation logic to a separate method.
💡 SUGGESTION: Consider using a Map here instead of an array for O(1) lookup.
❓ QUESTION: Why are we using setTimeout here instead of async/await?
📝 NOTE: This is a clever solution! Nice use of reduce here.
Core Principles
- Be Respectful - Review code, not the person
- Be Thorough - Check functionality, not just syntax
- Be Timely - Review within 24 hours
- Be Clear - Explain WHY, not just WHAT
Configuration Detection
This skill supports project-specific configuration.
Detection Order
- Check
CONTRIBUTING.mdfor "Disabled Skills" section- If this skill is listed, it is disabled for this project
- Check
CONTRIBUTING.mdfor "Code Review Language" section - If not found, default to English
First-Time Setup
If no configuration found and context is unclear:
- Ask the user: "This project hasn't configured code review language. Which option would you like? (English / 中文)"
- After user selection, suggest documenting in
CONTRIBUTING.md:
## Code Review Language
This project uses **[chosen option]** for code review comments.
<!-- Options: English | 中文 -->
Configuration Example
In project's CONTRIBUTING.md:
## Code Review Language
This project uses **English** for code review comments.
<!-- Options: English | 中文 -->
### Comment Prefixes
BLOCKING, IMPORTANT, SUGGESTION, QUESTION, NOTE
License: CC BY 4.0 | Source: universal-doc-standards
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
llamaindex
元LlamaIndex是一个专门构建RAG应用的开发框架,提供300多种数据连接器用于文档摄取、索引和查询。它具备向量索引、查询引擎和智能代理等核心功能,支持构建文档问答、知识检索和聊天机器人等数据密集型应用。开发者可用它快速搭建连接私有数据与LLM的RAG管道。
cloudflare-turnstile
元这个Skill提供完整的Cloudflare Turnstile集成知识,用于在表单、登录页面和API端点中实现无验证码的机器人防护。它支持React/Next.js/Hono等框架集成,涵盖令牌验证、错误代码调试和端到端测试等场景。通过运行后台不可见挑战,在保持用户体验的同时有效阻止自动化流量和垃圾信息。
canvas-design
元canvas-design技能可根据用户需求生成原创的.png和.pdf格式视觉设计作品。它通过创建独特的设计哲学(包括形式、色彩、构图等元素)来制作海报、艺术品等静态设计。该技能特别适用于需要原创视觉内容的场景,能自动规避版权风险。
