Chuyển đến nội dung
Skillpedia
Lập trình chung46k · #6322

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/luongnv89/claude-howto/blob/main/03-skills/code-review-specialist/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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:

  1. Security Analysis

    • Authentication/authorization issues
    • Data exposure risks
    • Injection vulnerabilities
    • Cryptographic weaknesses
    • Sensitive data logging
  2. Performance Review

    • Algorithm efficiency (Big O analysis)
    • Memory optimization
    • Database query optimization
    • Caching opportunities
    • Concurrency issues
  3. Code Quality

    • SOLID principles
    • Design patterns
    • Naming conventions
    • Documentation
    • Test coverage
  4. 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:

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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự