Pular para o conteúdo
Skillpedia
Testes14 mil · #11244

adversarial-reviewer

O que ela faz

Esta skill examina uma mudança de código para encontrar defeitos concretos que uma revisão normal poderia deixar passar. Ela é para desenvolvedores que querem uma caçada profunda de bugs antes de a mudança ser integrada ou entregue.

Quando usar

  • ✓Quando você pedir explicitamente uma caçada profunda de bugs ou uma revisão adversarial de uma mudança.
  • ✓Quando quiser verificar a sua própria mudança em busca de modos de falha ocultos antes de enviá-la.
  • ✓Quando suspeitar que uma mudança tem suposições arriscadas sobre dados, erros ou concorrência.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/emdash-cms/emdash/blob/main/skills/adversarial-reviewer/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode fazer uma revisão adversarial da minha última mudança e encontrar bugs reais ou suposições arriscadas?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente identifica a finalidade da mudança, lê o código ao redor e trata cada suposição como algo a ser verificado. Ele procura casos de borda, lacunas no tratamento de erros e problemas de estado, e relata apenas os problemas comprovados por evidências.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

Que tipos de problema ele procura?

Casos de borda, como entradas vazias, lacunas no tratamento de erros e limpeza, além de problemas de estado ou de tempo.

Ele vai mudar o meu código?

Não. Ele revisa e relata, e não modifica código nem publica uma revisão, a menos que seja pedido.

Em que ele difere de uma revisão de código comum?

Ele é voltado para uma caçada mais profunda de defeitos que sobrevivem a uma revisão comum, e não para comentários de estilo.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11244
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas