Synthèse automatique
Ce skill effectue une revue adverse d’un artefact — spécification, architecture, lot de tâches, diff/PR, plan, README ou affirmation en prose — en supposant qu’il est faux, cassé ou incomplet, puis en ne conservant que les constats qui résistent à ses propres tentatives de réfutation.
Points forts
- Fonctionne sur des artefacts très variés, sans se limiter aux diffs de code.
- Filtre ses propres constats par auto-réfutation, ce qui réduit les remarques spéculatives.
- Cherche explicitement les omissions, pas seulement les défauts visibles dans ce qui a été écrit.
- Reste en lecture seule et ne délègue pas la lecture de l’artefact ciblé.
Limites
- Une seule cible par invocation et aucun comportement par défaut si aucune cible n’est fournie.
- Les cibles de type PR nécessitent le CLI `gh` ; sans lui, cette voie est indisponible.
- Ne charge pas le contexte projet par défaut, sauf lecture manuelle des fichiers de conventions ou d’architecture.
- Ne remplace ni une revue de code complète, ni une auto-revue d’implémenteur, ni une porte de phase.
À utiliser lorsqu’on veut attaquer un artefact précis et obtenir une liste resserrée de problèmes réels, notamment des omissions, avant de valider ou de mettre en œuvre.
À ne pas utiliser comme substitut à une revue de code structurée, à une auto-revue d’implémentation ou à une validation formelle de phase.
Analyse de sécurité
PrudenceThe skill is fundamentally read-only and defensive: it attacks artifacts, does not modify them, and explicitly hardens input handling for REQ ids (anchored regex) and file paths (allowlist plus `..` rejection) against hostile identifiers. The only meaningful execution surface is the ethos-include shell partial, which runs a script from a repo-relative path that could be attacker-controlled in an untrusted checkout. No curl|sh, no exfiltration, no secret handling, no destructive commands. Rated caution rather than safe solely because of that repo-local shell invocation.
- •The Ethos section uses a dynamic shell include: `!`sh .adlc/partials/ethos-include.sh 2>/dev/null || sh ~/.claude/skills/partials/ethos-include.sh``. This executes a shell script from a repo-relative path (`.adlc/partials/`) before any sanitization; a cloned/untrusted repository could ship a malicious `ethos-include.sh` that runs with the agent's privileges. The fallback path under `~/.claude/skills` is more trustworthy, but the primary repo-local path is attacker-controllable.
- •Invokes `gh pr view` / `gh pr diff` for PR targets — network + GitHub API access, but read-only and gated on `gh` presence with graceful degradation.
- •Reads arbitrary user-specified file paths, though it correctly enforces a strict path allowlist regex and rejects `..` traversal segments before reading (good).
Exemples
/adversary REQ-142/adversary 238/adversary Attack this rollout plan: we will migrate all users to the new API next Friday without a rollback path.name: adversary description: Adversarial review of any artifact — a spec, architecture doc, task breakdown, diff/PR, plan, README, or plain prose claim. Assumes the artifact is wrong, broken, or incomplete, tries to prove it, and reports only the findings that survive its own refutation attempts. Read-only and artifact-agnostic. Use when the user says "attack this", "adversary", "red-team this spec/plan/PR", "try to break this", "what's wrong with this requirement", or wants a skeptical-by-default pass that hunts omissions, not just bugs in what was written. argument-hint: A REQ-xxx id, a PR number, a file path, or inline text to attack
/adversary — Adversarial Review of Any Artifact
You attack the artifact in front of you. You assume it is wrong, broken, or incomplete and you try to prove that — then you report only the findings that survive your own attempts to refute them.
This skill operationalizes Ethos #7 (Skeptical by Default) as an invocable gate. It is deliberately distinct from its siblings, and does not replace any of them:
/reviewis a code-review pipeline over a change set (5 reviewer agents, correctness/quality/architecture/tests/security)./adversaryis artifact-agnostic and adversarial by construction — its job is to break the thing, not to score a diff./reflectis the implementer's self-review (thereflectoragent)./adversaryis external and adversarial, not self-assessment./validateis a phase gate (pass/fail checklist per ADLC phase)./adversaryattacks rather than gate-checks; the two are complementary.
/adversary also fills a known gap: review passes catch bugs in what was written but miss what was omitted entirely. The spec lens explicitly hunts omissions. (LESSON-330, LESSON-009.)
Ethos
!sh .adlc/partials/ethos-include.sh 2>/dev/null || sh ~/.claude/skills/partials/ethos-include.sh
Context
This skill reads the target artifact at full fidelity — it does NOT delegate or summarize the artifact (summarization would weaken the attack). It loads no project context by default. If the target is a code diff or a spec and you need the project's declared conventions or architecture to judge it, Read .adlc/context/conventions.md and .adlc/context/architecture.md on demand — but only if they bear on the attack.
Input
Target: $ARGUMENTS
The target is polymorphic (see Step 1). One target per invocation. If $ARGUMENTS is empty, ask the user what to attack — there is no useful default.
Prerequisites
/adversary has no hard .adlc/ prerequisite — it can attack inline text or a bare file path in any repo. Two soft dependencies degrade gracefully:
ghCLI is needed only for PR-number targets. Ifghis absent, report "PR targets unavailable — installghor pass a file/REQ/text target" and stop, rather than guessing.- A report file is written only for REQ-id targets and only when
.adlc/exists in the invoking project (Step 6). Its absence is not an error — the in-conversation report is always the primary output.
Instructions
Step 1: Resolve and classify the target (BR-1)
Resolve $ARGUMENTS to a concrete artifact using strict sanitization for every externally-derived token (LESSON-008 — a hostile id/path must never reach a shell or a file read):
- REQ id — if the argument matches
^REQ-[0-9]{3,6}$exactly, resolve it to its spec directory by globbing.adlc/specs/<id>-*/. Do NOT widen the regex. Readrequirement.md(andarchitecture.md/tasks/if present). Classify as spec (or, if a diff is also in scope, diff/PR with the spec as the governing reference). - PR number — if the argument is all digits (
^[0-9]+$), treat it as a PR number and resolve viagh pr view <n> --json title,body,filesplusgh pr diff <n>(requiresgh; degrade per Prerequisites). Classify as diff/PR. - File path — if the argument names an existing file, attack that file. Before any read, reject the path unless it matches
^[A-Za-z0-9_./-]+$and contains no..segment: split on/and reject if any segment equals.., and additionally reject if the raw string contains..adjacent to any character. Classify by content/extension: arequirement.md→ spec; anarchitecture.md/ plan → plan/architecture; a.diff/.patch→ diff/PR; a README or other prose → prose claim. - Inline text — anything else is treated as a literal prose claim. Classify as prose claim.
State the resolved target and the classified type before attacking.
Step 2: Select attack lenses by artifact type (BR-2)
Choose the lens set for the classified type. You will report which lenses you ran and which you skipped (Step 5), so be deliberate.
- spec → omissions (what rule is missing?), untestable rules, contradictory BRs/ACs, unstated assumptions, scope holes. Enumerate every numbered BR and AC and mark each attacked / not-attacked (with a reason for any skip). No silent caps.
- plan / architecture → failure modes, unhandled topologies, hidden coupling, rollback story / blast radius.
- diff / PR → the BR→diff coverage cross-check (walk every BR/AC of the governing spec and confirm the diff implements it; a BR with no code is implemented-as-zero — a finding even when nothing in the diff looks wrong) plus a correctness attack (logic, null/empty, races, swallowed errors, injection, auth bypass).
- prose claim → counterexample search (construct a concrete case where the claim is false) and evidence demands (what evidence would make it true, and is that evidence present?).
Step 3: Run the attack (parallel when agents available, BR-6 / BR-8)
Read the target at full fidelity first. Then attack:
- When the Agent tool and the
adversaryagent (agents/adversary.md) are available (the normal case), dispatch theadversaryagent as the primary lens carrier. For a large or multi-faceted target you may fan out: dispatch theadversaryagent for the adversarial lenses and, optionally and supplementarily, the existing reviewer agents (correctness-reviewer,security-auditor, etc.) as additional executors for the diff/PR correctness surface. Give every dispatched agent the same read-only mandate: "Report findings only. Do not modify the target." - When agents are unavailable (no Agent tool, or running inside a subagent that cannot nest further subagents), degrade to single-context: run the lenses yourself, inline, against the artifact you read. Same lenses, same protocol — only the execution venue changes. This is the same soft-fallback philosophy as the delegation gates.
Step 4: Mandatory self-refutation (BR-3)
This step is not optional and runs before anything is reported. For every candidate finding:
- Record an explicit attempt to refute it — argue the artifact is actually fine here, find the guard you missed, construct the input that makes the concern moot.
- If the refutation kills the finding, drop it silently. Do not report killed findings and do not list them as "considered". A false positive costs trust as fast as a miss — Ethos #7 cuts both ways.
- If the finding survives, keep it and record the surviving refutation attempt — what you tried and why it did not save the artifact.
Step 5: Report (BR-4)
Emit the in-conversation report:
- Findings — each in the Finding schema:
severity(critical / major / minor),confidence(high / medium / low),break_scenario(required — the concrete sequence in which the artifact fails; no scenario, no finding),refutation_attempt(required — the surviving attempt to kill it). - Verdict — exactly one of
found problemsorcould not find a problem. The phrasing "there is no problem" (or any synonym) is prohibited: you attacked the artifact and did not breach it; that is a claim about your attack, not about the artifact's correctness. - Coverage statement — list the lenses you ran and the lenses you skipped (each with a reason). For spec targets, include the per-BR/AC attacked / not-attacked enumeration from Step 2. No silent caps.
Step 6: Optional report file (BR-5)
/adversary is strictly read-only with respect to the target — it never edits the artifact under attack.
The only file it may write is its own report, and only when a REQ id was the target and .adlc/ exists in the invoking project: write the report to .adlc/specs/<id>-*/adversary-report.md. For inline-text, PR, and other non-REQ targets, the report is stdout-only — do not write a file into a repo you were pointed at read-only.
Quality checklist
Before finishing, self-check:
- [ ] The target artifact is unchanged — its content and mtime are exactly as found (read-only proof). The only write, if any, is the optional report file for a REQ target.
- [ ] Every reported finding has a concrete
break_scenarioand a survivingrefutation_attempt— no bare assertions. - [ ] The verdict reads
found problemsorcould not find a problem— never "there is no problem". - [ ] The coverage statement lists lenses run and skipped; for spec targets every numbered BR/AC is marked attacked / not-attacked.
- [ ] Externally-derived ids and paths were sanitized (strict regex, no
..segments) before any read.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/adversarial-artifact-review-ms47vpbf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/adversarial-artifact-review-ms47vpbf/download' --output '.skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md.part' && mv '.skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md.part' '.skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Extrait original : Prerequisites
/adversary has no hard .adlc/ prerequisite — it can attack inline text or a bare file path in any repo. Two soft dependencies degrade gracefully:
ghCLI is needed only for PR-number targets. Ifghis absent, report "PR targets unavailable — installghor pass a file/REQ/text target" and stop, rather than guessing.- A report file is written only for REQ-id targets and only when
.adlc/exists in the invoking project (Step 6). Its absence is not an error — the in-conversation report is always the primary output.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md' && test -s '.skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/adversary' && cp -R '.skill-downloads/adversarial-artifact-review-ms47vpbf' '.claude/skills/adversary'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/adversarial-artifact-review-ms47vpbf'openskills read 'adversarial-artifact-review-ms47vpbf'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/adversarial-artifact-review-ms47vpbf/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.