adversarial-reviewer
하는 일
이 스킬은 일반 리뷰가 놓칠 수 있는 구체적인 결함을 찾기 위해 코드 변경을 꼼꼼히 분석합니다. 병합하거나 배포하기 전에 깊은 버그 탐색을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓변경에 대한 심층 버그 탐색이나 적대적 리뷰를 명시적으로 요청할 때.
- ✓제출하기 전에 내 변경에 숨은 실패 가능성이 있는지 확인하고 싶을 때.
- ✓변경이 데이터, 오류, 동시성에 대해 안전하지 않은 가정을 한다고 의심될 때.
스킬 링크
https://github.com/emdash-cms/emdash/blob/main/skills/adversarial-reviewer/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 최신 변경을 적대적으로 리뷰해서, 실제 버그나 안전하지 않은 가정이 있는지 찾아 줄 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경의 목적을 파악하고, 주변 코드를 읽으며, 각 가정을 검증해야 할 대상으로 봅니다. 경계 사례, 오류 처리 누락, 상태 문제를 찾고, 증거가 뒷받침하는 문제만 보고합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Adversarial code review
Look for defects that survive an ordinary review. Treat the implementation's assumptions as claims to verify, while keeping every finding tied to evidence.
Establish the review boundary
- Identify the exact diff, branch, pull request head, or files under review.
- Read the surrounding code needed to understand data flow and invariants.
- Check repository instructions and the tests that define expected behavior.
- Compare the change with its stated purpose. Trace the scenario and configuration from the issue, discussion, or accepted design it addresses through the real code, and treat each claim in the description and changeset as something to verify.
- Separate defects introduced by the reviewed change from unrelated observations. Report an out-of-scope issue only when it materially affects the change's safety.
Do not modify code, post a review, or expand the review target unless the user asks.
Hunt for failures
Choose the checks that fit the change instead of mechanically applying every category.
- Logic and boundaries: empty and single-item inputs, pagination edges, invalid state transitions, locale handling, Unicode, maximum values, and repeat invocation.
- Errors and cleanup: swallowed failures, partial cleanup, misleading status codes, exposed internals, missing timeouts, and unbounded retries.
- State and concurrency: stale reads, lost updates, time-of-check/time-of-use races, duplicate delivery, non-idempotent retries, leaked listeners, and shared mutable state.
- Authorization and trust: missing permission checks, confused caller identity, CSRF, unsafe redirects, injection, path traversal, secret exposure, and trust transferred across a boundary without validation.
- Data integrity: partial writes, migration restart behavior, dialect differences, uniqueness assumptions, destructive cascades, and old/new version compatibility.
- Resources and performance: unbounded collections, repeated round trips, retained resources, logged-out hot-path regressions, and work that scales with attacker-controlled input.
- Scope: the same defect left in place elsewhere, such as sibling call sites, other storage backends or render paths, and data already stored in the old shape.
- Interfaces: exported types, generated schemas, generated types, and documentation that no longer match the new behavior.
Trace concrete inputs and event sequences through the real implementation. Run focused tests or a minimal reproduction when that is the fastest way to establish a claim. Do not infer a bug solely from an unfamiliar pattern.
Findings standard
A finding needs all of the following:
- the violated behavior or invariant;
- the exact code location;
- a concrete trigger or execution path;
- the observable consequence;
- a proportionate fix direction.
Use calibrated language. State confirmed defects directly. Label an unresolved concern as uncertain and explain what evidence is missing. Do not turn naming, formatting, optional hardening, or personal design preference into a correctness finding.
Prioritize by impact and likelihood:
- Critical: exploitable security issue, unrecoverable data loss, or broad production outage.
- High: likely user-visible wrong behavior, authorization bypass, or recoverable data corruption.
- Medium: real failure under a plausible edge case, race, or sustained load.
- Low: limited correctness issue with small impact. Omit purely cosmetic observations.
Report
Lead with findings, ordered by severity. For each finding, include a short title, file and line, the failing scenario, impact, and fix direction. Keep line ranges tight.
If no actionable defects are supported by the evidence, say so. Mention meaningful residual risks or untested boundaries, but do not manufacture findings to make the review appear thorough.
자주 묻는 질문
어떤 문제를 찾나요?
빈 입력 같은 경계 사례, 오류 처리와 정리 누락, 상태나 타이밍 문제입니다.
내 코드를 바꾸나요?
아니요. 검토하고 보고만 하며, 요청하지 않으면 코드를 수정하거나 리뷰를 게시하지 않습니다.
일반 코드 리뷰와 어떻게 다른가요?
스타일에 대한 피드백이 아니라, 일반 리뷰에서 살아남은 결함을 깊이 찾기 위한 것입니다.
상세 정보
작성자의 원본 설명
Stress-test a code change for concrete correctness defects, unsafe assumptions, and failure modes. Use when the user explicitly asks for an adversarial review, a deep bug hunt, or to tear a change apart, or to check your own change before submitting it. Do not use for ordinary review, style feedback, or general improvement suggestions.
repo: emdash-cms/emdash
인기도
- GitHub 스타
- 14k
- 순위
- #11244
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-browser
14k에이전트가 실제 브라우저에서 웹 페이지를 열어 동작을 확인하고, 증거로 스크린샷을 남기도록 돕습니다.
building-emdash-site
14k에이전트가 Astro 기반 EmDash CMS 프로젝트의 사이트 부분을 만들도록 돕습니다. 콘텐츠, 스키마, 메뉴, 분류, 배포를 다룹니다.
creating-plugins
14k에이전트가 EmDash CMS용 플러그인을 만들도록 돕습니다. 안전한 훅, 경로, 저장소, 관리자 화면을 포함합니다.
emdash-cli
14k에이전트가 명령줄에서 EmDash 사이트를 관리하도록 돕습니다. 콘텐츠, 미디어, 메뉴, 마이그레이션, 전체 사이트 내보내기와 가져오기를 포함합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.