본문으로 건너뛰기
Skillpedia
테스트14k · #11244

adversarial-reviewer

하는 일

이 스킬은 일반 리뷰가 놓칠 수 있는 구체적인 결함을 찾기 위해 코드 변경을 꼼꼼히 분석합니다. 병합하거나 배포하기 전에 깊은 버그 탐색을 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓변경에 대한 심층 버그 탐색이나 적대적 리뷰를 명시적으로 요청할 때.
  • ✓제출하기 전에 내 변경에 숨은 실패 가능성이 있는지 확인하고 싶을 때.
  • ✓변경이 데이터, 오류, 동시성에 대해 안전하지 않은 가정을 한다고 의심될 때.

스킬 링크

https://github.com/emdash-cms/emdash/blob/main/skills/adversarial-reviewer/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/emdash-cms/emdash/blob/main/skills/adversarial-reviewer/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에서 그대로 가져왔습니다.

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

  1. Identify the exact diff, branch, pull request head, or files under review.
  2. Read the surrounding code needed to understand data flow and invariants.
  3. Check repository instructions and the tests that define expected behavior.
  4. 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.
  5. 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.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬