Langsung ke konten
Skillpedia
Pemrograman umum11k Β· #11643

code-review

Fungsinya

Skill ini meninjau perubahan kode untuk mencari masalah keamanan, kode yang lambat, bug dan penanganan error yang belum ada. Skill ini ditujukan untuk developer yang ingin pemeriksaan kedua sebelum perubahan digabungkan.

Kapan dipakai

  • βœ“Saat Anda ingin pull request atau perubahan kode diperiksa sebelum digabungkan.
  • βœ“Saat Anda ingin tahu apakah sebuah potongan kode aman dari masalah injeksi atau autentikasi.
  • βœ“Saat Anda curiga ada kueri database yang lambat atau kasus khusus yang terlewat dalam kode baru.

Link skill

https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTinjau pull request ini untuk masalah keamanan dan penanganan error yang belum ada sebelum saya menggabungkannya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent membaca diff atau berkas yang Anda tunjuk dan memeriksanya untuk keamanan, performa, kebenaran dan gaya. Hasilnya berupa temuan spesifik beserta usulan perubahan kode.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

/code-review

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Review code changes with a structured lens on security, performance, correctness, and maintainability.

Usage

/code-review <PR URL or file path>

Review the provided code changes: @$1

If no specific file or URL is provided, ask what to review.

How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      CODE REVIEW                                   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  STANDALONE (always works)                                       β”‚
β”‚  βœ“ Paste a diff, PR URL, or point to files                      β”‚
β”‚  βœ“ Security audit (OWASP top 10, injection, auth)               β”‚
β”‚  βœ“ Performance review (N+1, memory leaks, complexity)           β”‚
β”‚  βœ“ Correctness (edge cases, error handling, race conditions)    β”‚
β”‚  βœ“ Style (naming, structure, readability)                        β”‚
β”‚  βœ“ Actionable suggestions with code examples                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  SUPERCHARGED (when you connect your tools)                      β”‚
β”‚  + Source control: Pull PR diff automatically                    β”‚
β”‚  + Project tracker: Link findings to tickets                     β”‚
β”‚  + Knowledge base: Check against team coding standards           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Review Dimensions

Security

  • SQL injection, XSS, CSRF
  • Authentication and authorization flaws
  • Secrets or credentials in code
  • Insecure deserialization
  • Path traversal
  • SSRF

Performance

  • N+1 queries
  • Unnecessary memory allocations
  • Algorithmic complexity (O(nΒ²) in hot paths)
  • Missing database indexes
  • Unbounded queries or loops
  • Resource leaks

Correctness

  • Edge cases (empty input, null, overflow)
  • Race conditions and concurrency issues
  • Error handling and propagation
  • Off-by-one errors
  • Type safety

Maintainability

  • Naming clarity
  • Single responsibility
  • Duplication
  • Test coverage
  • Documentation for non-obvious logic

Output

## Code Review: [PR title or file]

### Summary
[1-2 sentence overview of the changes and overall quality]

### Critical Issues
| # | File | Line | Issue | Severity |
|---|------|------|-------|----------|
| 1 | [file] | [line] | [description] | πŸ”΄ Critical |

### Suggestions
| # | File | Line | Suggestion | Category |
|---|------|------|------------|----------|
| 1 | [file] | [line] | [description] | Performance |

### What Looks Good
- [Positive observations]

### Verdict
[Approve / Request Changes / Needs Discussion]

If Connectors Available

If ~~source control is connected:

  • Pull the PR diff automatically from the URL
  • Check CI status and test results

If ~~project tracker is connected:

  • Link findings to related tickets
  • Verify the PR addresses the stated requirements

If ~~knowledge base is connected:

  • Check changes against team coding standards and style guides

Tips

  1. Provide context β€” "This is a hot path" or "This handles PII" helps me focus.
  2. Specify concerns β€” "Focus on security" narrows the review.
  3. Include tests β€” I'll check test coverage and quality too.
Pertanyaan umum

Bisakah skill membaca pull request dari tautan?

Bisa. Anda bisa memberikan URL pull request, diff atau jalur berkas.

Apa yang dicari?

Masalah seperti risiko injeksi, kueri N+1, kebocoran memori, kasus khusus yang terlewat, dan celah penanganan error.

Apa yang terjadi jika saya tidak menyebutkan apa yang harus ditinjau?

Agent menanyakan apa yang harus ditinjau sebelum mulai.

Detail

Deskripsi asli dari pembuat

Review code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when checking a change for N+1 queries, injection risks, missing edge cases, or error handling gaps.

repo: TencentCloud/Octop

Popularitas

Bintang GitHub
11k
Peringkat
#11643
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa