본문으로 건너뛰기
Skillpedia
테스트48k · #4627

five-axis-code-review

하는 일

이 도구는 프로그래밍 코드를 검토해 정확하고, 안전하고, 읽기 쉽고, 빠르고, 테스트가 잘 되어 있는지 확인합니다. 문제마다 구체적인 수정 방법을 제안합니다.

사용하는 경우

  • ✓누군가에게 코드 검토를 받고 싶을 때.
  • ✓프로젝트에 작은 변경 사항(diff)을 제출할 때.
  • ✓풀 리퀘스트를 확인해 달라고 요청할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/five-axis-code-review/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/five-axis-code-review/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분.

작동 방식

도구는 정확성, 보안, 가독성, 성능, 테스트의 다섯 영역에서 코드를 분석합니다. 발견된 문제마다 구체적인 해결책을 제안하며, 사소한 스타일 수정보다 유용한 수정에 집중합니다.

기술 내용 (원본 SKILL.md)

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

Code Review Checklist

One review answers a single question: "Will this code become someone else's problem within three months?" Walk the five axes in order; each axis gets pass / fail / N-A, and every failure must come with a concrete fix.

When to Use

  • Use when the user asks to review code, a diff, or a pull request.
  • Use when a review should stay actionable and skip style nitpicks.

Workflow

  1. Check the scope first: look at the diff size. Over ~400 changed lines, ask for a split before reviewing — review quality on huge diffs always collapses.
  2. Check axis by axis (order = priority):
    • Correctness: edge cases (null, empty, zero, negative, oversized), concurrency/timing assumptions, error handling (are exceptions swallowed?). The only axis that can block a merge.
    • Security: is user input concatenated into SQL / shell commands / HTML; are secrets or tokens hard-coded; does logging leak sensitive data.
    • Readability: do names say what things are; does each function do one thing; are magic numbers named. Flag only what you can't understand — not "I'd write it differently."
    • Performance: repeated queries or recomputation inside loops; N+1 problems; avoidable large-object copies. No data-free performance speculation ("this might get slow" is not a comment).
    • Test coverage: does new logic have tests; do edge cases have cases. All-green tests with the critical path uncovered still get sent back.
  3. Write the comments: fixed format — [axis] file:line problem → suggested fix. Only actionable suggestions; "could be optimized" is not one.
  4. Triage: Must fix (correctness / security) vs Should fix (readability / performance / tests). "Should fix" doesn't block the merge, but say so explicitly.

Rules

  • At most 10 comments per review. More than that means the code is too broken — send it back for a rewrite instead of grading 50 items.
  • No style policing: indentation, quotes, semicolons — that's the linter's job, not a human's.
  • Speak with the diff: every comment must cite a concrete line of code. A comment without a code reference is invalid.

Checklist (minimal executable version)

## Code review checklist

- [ ] Correctness: edge cases (null/0/negative/oversized) handled, exceptions not swallowed
- [ ] Correctness: concurrency/timing assumptions hold, no races
- [ ] Security: no SQL/shell/HTML injection points, no hard-coded secrets, no sensitive data in logs
- [ ] Readability: names are descriptive, functions have a single responsibility, no magic numbers
- [ ] Performance: no repeated queries/computation in loops, no N+1, no evidence-free performance worries
- [ ] Tests: new logic is covered, edge cases have cases
- [ ] Scope: diff ≤ ~400 lines, otherwise split first

Example review comments:

[Must fix][Correctness] order.py:87 empty order list triggers IndexError → guard for empty before taking [0]
[Should fix][Readability] order.py:92 magic number 86400 → name it SECONDS_PER_DAY

Limitations

  • Covers five review axes, not every quality dimension. Domain-specific correctness (financial rounding, protocol conformance, accessibility conformance) still needs its own specialist review.
  • The five axes are heuristics for a human reviewer. A clean pass on the checklist does not prove the change is correct, secure, or performant.
  • Security review here is a reading checklist, not a scanner. Static analysis, dependency audit and secret scanning run as separate tools.
  • The skill reviews diffs; it cannot establish that requirements were met, and an empty findings list only means no finding was evidenced in the reviewed scope.

Anti-patterns

  • ❌ Drive-by LGTM: approving before reading the whole diff — the review is theater.
  • ❌ Style police: 18 of 20 comments about quotes and line breaks while a null-pointer dereference slips through.
  • ❌ Comments without code: "this logic looks off" — which logic? Which line? Unsaid means invalid.
  • ❌ Performance speculation: "this loop might be slow at scale" — a performance comment without data is noise.
  • ❌ Grading 50 items: when there are too many problems to list, the right move is "rewrite and resubmit", not playing teacher.
자주 묻는 질문

스타일 「사소한 지적(nitpick)」이란 무엇인가요?

간격이나 세미콜론 같은 코드 외관에 관한 작은 제안입니다. 작동에는 영향을 주지 않지만 거슬릴 수 있습니다.

「병합 차단」은 무슨 뜻인가요?

지적된 문제가 해결될 때까지 변경 사항을 메인 프로젝트에 추가할 수 없다는 뜻입니다.

도구가 모든 종류의 오류를 찾나요?

아닙니다. 다섯 가지 주요 영역에 집중합니다. 매우 특수한 분야의 오류(예: 정확한 금융 계산)나 복잡한 보안 문제는 추가 전문가 검토가 필요할 수 있습니다.

상세 정보

작성자의 원본 설명

Five-axis code review checklist (correctness, security, readability, performance, test coverage) producing actionable comments instead of style nitpicks. Use when the user asks to review code, a diff, or a pull request.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4627
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬