code-review-specialist
Skill này làm gì
Nó hướng dẫn agent của bạn rà soát mã về rủi ro bảo mật, mẫu mã chạy chậm và các vấn đề chất lượng, rồi báo cáo từng phát hiện một cách rõ ràng. Nó dành cho lập trình viên muốn có một lần xem xét kỹ lưỡng mã hoặc pull request của mình.
Khi nào nên dùng
- ✓Khi bạn muốn mã hoặc pull request được rà soát về các vấn đề bảo mật.
- ✓Khi bạn muốn tìm mã chạy chậm hoặc vấn đề hiệu năng trước khi phát hành.
- ✓Khi bạn muốn kiểm tra chất lượng mã, chẳng hạn cách đặt tên, cấu trúc và độ phủ kiểm thử.
Liên kết skill
https://github.com/luongnv89/claude-howto/blob/main/03-skills/code-review-specialist/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể rà soát module đăng nhập này về các vấn đề bảo mật và cho tôi biết cách sửa những lỗi nghiêm trọng nhất không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc danh sách kiểm tra rà soát và mẫu báo cáo, rồi xem xét mã theo từng nhóm. Nó viết chi tiết từng phát hiện kèm mức độ nghiêm trọng, vị trí và tác động, và có thể chạy script đo lường trên mã.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Code Review Skill
This skill provides comprehensive code review capabilities focusing on:
Security Analysis
- Authentication/authorization issues
- Data exposure risks
- Injection vulnerabilities
- Cryptographic weaknesses
- Sensitive data logging
Performance Review
- Algorithm efficiency (Big O analysis)
- Memory optimization
- Database query optimization
- Caching opportunities
- Concurrency issues
Code Quality
- SOLID principles
- Design patterns
- Naming conventions
- Documentation
- Test coverage
Maintainability
- Code readability
- Function size (should be < 50 lines)
- Cyclomatic complexity
- Dependency management
- Type safety
Reference Files
This skill includes supporting files that you should read when performing reviews:
templates/review-checklist.md— Structured checklist covering security, performance, quality, and testing. Read this file and use it as a guide to ensure no category is missed during review.templates/finding-template.md— Standard template for documenting individual findings with severity, location, code examples, and impact analysis. Read this file and use its format when reporting issues.scripts/analyze-metrics.py— Python script that calculates code metrics (function count, class count, average line length, complexity score). Run this on the file under review to gather quantitative data.scripts/compare-complexity.py— Python script that compares cyclomatic and cognitive complexity between two versions of a file. Run this with the before and after versions when reviewing refactoring changes.
Review Template
For each piece of code reviewed, provide:
Summary
- Overall quality assessment (1-5)
- Key findings count
- Recommended priority areas
Critical Issues (if any)
- Issue: Clear description
- Location: File and line number
- Impact: Why this matters
- Severity: Critical/High/Medium
- Fix: Code example
Findings by Category
Security (if issues found)
List security vulnerabilities with examples
Performance (if issues found)
List performance problems with complexity analysis
Quality (if issues found)
List code quality issues with refactoring suggestions
Maintainability (if issues found)
List maintainability problems with improvements
Version History
- v1.0.0 (2024-12-10): Initial release with security, performance, quality, and maintainability analysis
Last Updated: August 4, 2026 Claude Code Version: 2.1.220 Sources:
- https://code.claude.com/docs/en/skills Compatible Models: Claude Fable 5, Claude Opus 5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Opus 4.8, Claude Haiku 4.5
Câu hỏi thường gặp
Nó kiểm tra những lĩnh vực nào?
Bảo mật, hiệu năng, chất lượng mã và khả năng bảo trì, bao gồm cả độ phủ kiểm thử.
Các phát hiện được báo cáo thế nào?
Mỗi phát hiện theo một mẫu chuẩn gồm mức độ nghiêm trọng, vị trí, ví dụ mã và tác động.
Nó có cần công cụ đặc biệt không?
Nó dùng một script đo lường Python đi kèm skill, nên cần có Python trên máy.
Chi tiết
Mô tả gốc của tác giả
Comprehensive code review with security, performance, and quality analysis. Use when users ask to review code, analyze code quality, evaluate pull requests, or mention code review, security analysis, or performance optimization.
repo: luongnv89/claude-howto
Độ phổ biến
- Sao GitHub
- 46k
- Vị trí xếp hạng
- #6322
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
lesson-quiz
46kKiểm tra bạn về một bài học hướng dẫn Claude Code với 10 câu hỏi, chấm điểm câu trả lời và chỉ ra các chủ đề nên ôn lại.
self-assessment
46kĐưa bạn qua một bài trắc nghiệm về 10 mảng tính năng của Claude Code, rồi cho điểm theo chủ đề và một lộ trình học tiếp theo.
blog-draft
46kHướng dẫn agent của bạn viết nháp bài blog từ ý tưởng và nguồn tài liệu của bạn, từng bước, với các phiên bản được theo dõi khi làm.
claude-md
46kGiúp agent của bạn tạo hoặc cải thiện file CLAUDE.md, tài liệu dự án giới thiệu codebase cho một agent AI.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.