code-review
하는 일
이 스킬은 코드 변경을 보안 문제, 느린 코드, 버그, 누락된 오류 처리 측면에서 검토합니다. 병합 전에 한 번 더 확인받고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓풀 리퀘스트나 코드 변경을 병합하기 전에 점검받고 싶을 때.
- ✓새 코드가 인젝션이나 인증 문제에 안전한지 알고 싶을 때.
- ✓느린 데이터베이스 쿼리나 빠진 예외 상황이 의심될 때.
스킬 링크
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/code-review/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“병합하기 전에 이 풀 리퀘스트를 보안 문제와 누락된 오류 처리 관점에서 검토해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 사용자가 알려 준 diff나 파일을 읽고, 보안, 성능, 정확성, 스타일을 점검합니다. 구체적인 발견 사항과 코드 수정 제안을 돌려줍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
- Provide context — "This is a hot path" or "This handles PII" helps me focus.
- Specify concerns — "Focus on security" narrows the review.
- Include tests — I'll check test coverage and quality too.
자주 묻는 질문
풀 리퀘스트 링크로도 읽을 수 있나요?
네. 풀 리퀘스트 URL, diff, 파일 경로를 줄 수 있습니다.
무엇을 찾나요?
인젝션 위험, N+1 쿼리, 메모리 누수, 빠진 예외 상황, 오류 처리 누락 같은 문제입니다.
무엇을 검토할지 말하지 않으면 어떻게 되나요?
에이전트는 시작하기 전에 무엇을 검토할지 묻습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 11k
- 순위
- #11643
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
polite-greeting
11k에이전트가 짧고 친근하며 공손한 인사로 대화를 열고, 필요한 것을 빠르게 묻도록 돕습니다.
medical-source-failover
11k주요 출처가 차단되거나 느리거나 읽기 어려울 때, 에이전트가 신뢰할 수 있는 중국 의학 지침, 약품 정보, 공중보건 문서를 찾도록 돕습니다.
cowork-plugin-customizer
11k에이전트가 기존 Claude 플러그인을 조직의 도구와 업무 흐름에 맞추도록 돕습니다. 자리 표시자를 바꾸고, 스킬과 설정을 조정합니다.
create-cowork-plugin
11k에이전트가 질문을 따라가며 스킬, 에이전트, 훅, 설치 가능한 패키지까지 포함한 새 Claude 플러그인을 처음부터 만들도록 돕습니다.