본문으로 건너뛰기
Skillpedia
일반 코딩8.2k · #12527

code-review-checklist

하는 일

이 스킬은 AI에게 코드 변경을 검토하는 실용적인 체크리스트를 줍니다. 정확성, 보안, 속도, 코드 품질, 테스트, 문서를 다룹니다. 꼼꼼한 검토를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓병합 전에 풀 리퀘스트나 코드 변경을 검토해 달라고 요청할 때.
  • ✓인젝션이나 노출된 비밀 정보 같은 보안 문제를 확인하고 싶을 때.
  • ✓AI가 작성한 코드를 검토하며 프롬프트 인젝션이나 안전하지 않은 출력을 찾고 싶은 경우.

스킬 링크

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/code-review-checklist/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/code-review-checklist/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“병합하기 전에 이 코드 변경에서 보안 문제와 버그가 있는지 검토해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 영역별 질문 목록을 따라 AI가 코드를 하나씩 확인하게 합니다. 통과하지 못한 항목은 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Code Review Checklist

Quick Review Checklist

Correctness

  • Code does what it's supposed to do
  • Edge cases handled
  • Error handling in place
  • No obvious bugs

Security

  • Input validated and sanitized
  • No SQL/NoSQL injection vulnerabilities
  • No XSS or CSRF vulnerabilities
  • No hardcoded secrets or sensitive credentials
  • AI-Specific: Protection against Prompt Injection (if applicable)
  • AI-Specific: Outputs are sanitized before being used in critical sinks

Performance

  • No N+1 queries
  • No unnecessary loops
  • Appropriate caching
  • Bundle size impact considered

Code Quality

  • Clear naming
  • DRY - no duplicate code
  • SOLID principles followed
  • Appropriate abstraction level

Testing

  • Unit tests for new code
  • Edge cases tested
  • Tests readable and maintainable

Documentation

  • Complex logic commented
  • Public APIs documented
  • README updated if needed

AI & LLM Review Patterns

Logic & Hallucinations

  • Chain of Thought: Does the logic follow a verifiable path?
  • Edge Cases: Did the AI account for empty states, timeouts, and partial failures?
  • External State: Is the code making safe assumptions about file systems or networks?

Prompt Engineering Review

// ❌ Vague prompt in code
const response = await ai.generate(userInput);

// ✅ Structured & Safe prompt
const response = await ai.generate({
  system: "You are a specialized parser...",
  input: sanitize(userInput),
  schema: ResponseSchema
});

Anti-Patterns to Flag

// ❌ Magic numbers
if (status === 3) { ... }

// ✅ Named constants
if (status === Status.ACTIVE) { ... }

// ❌ Deep nesting
if (a) { if (b) { if (c) { ... } } }

// ✅ Early returns
if (!a) return;
if (!b) return;
if (!c) return;
// do work

// ❌ Long functions (100+ lines)
// ✅ Small, focused functions

// ❌ any type
const data: any = ...

// ✅ Proper types
const data: UserData = ...

Review Comments Guide

// Blocking issues use 🔴
🔴 BLOCKING: SQL injection vulnerability here

// Important suggestions use 🟡
🟡 SUGGESTION: Consider using useMemo for performance

// Minor nits use 🟢
🟢 NIT: Prefer const over let for immutable variable

// Questions use ❓
❓ QUESTION: What happens if user is null here?
자주 묻는 질문

체크리스트는 어떤 영역을 다루나요?

정확성, 보안, 성능, 코드 품질, 테스트, 문서를 다룹니다.

AI 기능에 대한 점검도 있나요?

네. 프롬프트 인젝션 항목과, 사용하기 전에 AI 출력을 정제하는 항목이 있습니다.

테스트도 확인하나요?

네. 새 코드에 단위 테스트가 있는지, 경계 사례를 테스트했는지 확인합니다.

상세 정보

작성자의 원본 설명

Code review guidelines covering code quality, security, and best practices.

repo: vudovn/ag-kit

인기도

GitHub 스타
8.2k
순위
#12527
라이선스
MIT
업데이트
2026. 10. 18.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬