Revue de code asynchrone entre agents

VérifiéSûr

Passe en revue un diff, une branche ou une PR, consigne les constats dans un Changelog, puis attend en boucle qu'un second agent corrige avant de re-réviser.

Spar Skills Guide Bot
DeveloppementIntermédiaire
20/09/2026
Claude Code
#code-review#async-collaboration#multi-agent#changelog#pull-request

Recommandé pour

Synthèse automatique

Relit un diff, une branche ou une PR pour vérifier qu'elle est prête à être fusionnée, consigne ses constats P0–P* en tête d'un Changelog partagé, puis revérifie toutes les cinq minutes (quatre vérifications maximum) dès qu'un agent collaborateur pousse des correctifs.

Points forts

  • Sort les constats du chat : chaque finding est daté, typé par sévérité et écrit en tête du Changelog de la PR ou du ticket, là où l'autre agent le lira.
  • Boucle de vérification bornée (4 contrôles de 5 minutes) qui s'arrête d'elle-même si le change est déjà mergeable ou si le worker ne répond plus.
  • Sert de pendant asynchrone à une revue one-shot : le reviewer et le worker avancent sans qu'un humain ait à relancer l'un ou l'autre.
  • Prévient l'autre agent qu'il est actif via une entrée « je relis » avant de reprendre la revue complète du diff.

Limites

  • Ne fonctionne que si l'agent en face écrit dans le même Changelog avec un rôle autre que « Reviewer » ; sinon la boucle ne détecte aucune réponse.
  • Fenêtre d'attente plafonnée à environ 20 minutes : au-delà, la revue s'arrête même si des correctifs sont encore en cours.
  • Suppose que le chemin du document cible (description de PR ou docs/tasks/<TICKET>.md) soit connu ou fourni ; l'exécution des tests et du lint reste conditionnée à l'environnement.

Analyse de sécurité

Sûr
Score qualité88/100

The skill instructs an agent to review code changes, write findings into a changelog, and use scheduled wakeups to re-check for updates. It does not include destructive commands, exfiltration, obfuscation, or instructions to disable safety. Running repository verification commands is a legitimate review activity, though it could execute project-specific scripts, the skill itself does not prescribe unsafe actions.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

Review a PR and wait for the worker agent
Review this PR for merge readiness and wait for the other agent to push fixes — leave your findings in the Changelog of docs/tasks/PAY-412.md and check back every few minutes.
Check merge readiness while fixes land
Is this branch ready to merge? Write your findings to the ticket doc's Changelog and keep re-reviewing as the other agent fixes things.
Resume a review loop
tony:reviews-code resume docs/tasks/PAY-412.md, check 2/4

name: reviews-code description: "Use when asked to review a code change (diff, branch, or PR) for merge readiness and collaborate asynchronously with another agent (often invoked with tony:does-work) that is or will be pushing fixes to the same change. Leaves P0-P* findings in a Changelog section, then sleeps in 5-minute checks (up to 4) waiting for the other agent to respond, re-reviewing whenever it does. Triggers: 'review this PR and wait for the other agent', 'reviews:code', 'is this ready to merge, check back as they fix it'."

Reviews Code (tony:reviews-code)

Purpose

Review a code change for merge readiness, leave findings inline in a target doc's own Changelog instead of only in chat, then keep checking back on a timer so a second agent (running tony:does-work on the same file, or pushing fixes to the reviewed branch) can pick up the findings, act, and hand back without either side needing to be polled by a human. The loop ends when the change needs nothing further to merge, or when the other agent goes quiet.

This is the async, collaborative counterpart to tony:is-review-ready: that skill produces a one-shot report for a human to read; this one keeps a running conversation with another agent until the change is mergeable.

Target doc

Findings are written into the Changelog of a Markdown doc that both agents watch — the PR description, or (per this project's convention) the ticket anchor doc (docs/tasks/<TICKET>.md) referencing the linked spec/plan. Ask for this file if it isn't already named.

Changelog format

The Changelog lives at the bottom of the target doc, under a ## Changelog heading. Create the heading if it isn't there yet. New entries always go directly under the heading (top of the list), never appended at the bottom.

Each entry is one bullet:

## Changelog

- **2026-09-09T14:32Z — Reviewer:** <finding or note>

Use role Reviewer for every entry you write. Entries written by the other agent will say Worker (or whatever role they used) — that's how you tell "my own last entry" apart from "something new arrived".

Process

  1. Gather the change. Identify base and head (uncommitted work, a branch against its base, or a pull request). Read the PR/task description, linked spec, and existing review comments before forming a finding.
  2. Review the change for merge readiness using the same lenses as tony:is-review-ready: intent and behavior, contracts and safety, proof and operations (do the tests actually test this), structure and history. Run the repository's own verification (tests, typecheck, lint, build) where the environment allows it.
  3. Write findings into the Changelog, one bullet per finding, newest on top, role Reviewer, ISO 8601 UTC timestamp, each prefixed with its severity tag (see below). If nothing needs to change, skip to step 7 immediately — do not enter the sleep loop for a change that's already mergeable.
  4. Enter the check loop. Call ScheduleWakeup with delaySeconds: 300 and a prompt that names the file and the current check count, e.g. tony:reviews-code resume <file path>, check 1/4. Set noop based on whether anything changed this turn.
  5. On each wake, re-read the Changelog. Compare its top entry to the last one you wrote or saw.
    • No new entry above yours: this was one check. If this was check 4 with nothing new, stop — the other agent appears to have stopped — and tell the user so. Otherwise go back to step 4 with the count incremented.
    • A new entry from the other agent (role isn't Reviewer): go to step 6.
  6. Acknowledge, then re-review. a. Add a new top-of-Changelog entry, role Reviewer, timestamped now, saying you've seen their update and are re-reviewing — this tells the other agent you're active if they check back before you finish. b. Re-read the diff in full (not just the delta implied by their note), re-run verification where applicable, and check off each prior finding as closed, partially closed, or still open — verify the claim rather than taking the note at its word. c. If more changes are needed: go back to step 3 (new findings, reset the check count to 0, resume the loop at step 4). d. If nothing more is needed: go to step 7.
  7. Mark it ready. Add a final Changelog entry, role Reviewer, stating the change is ready to merge, and stop the loop (do not call ScheduleWakeup again).

Severity: P0-P*

Every finding gets a severity prefix so the other agent knows what's required versus optional. Use the fewest tiers actually needed for a given change — skip a tier entirely rather than force a finding into it.

| Tier | Requires | Action | |---|---|---| | P0 | Catastrophic or irreversible harm if merged (data loss, broken build, security hole) | Fix before merge, blocks the loop from closing | | P1 | A realistic material failure this change causes or worsens, no acceptable fallback | Fix before merge | | P2 | A real bounded issue, missing case, or open question a reviewer would raise | Fix, or answer it in the description | | P3 | Small objective cleanup, tiny cost | The other agent's call, never blocks merge readiness on its own |

A Changelog finding entry looks like:

- **2026-09-09T14:32Z — Reviewer:** P1 `path:line` <what breaks, for whom, and the fix>

The loop only reaches step 7 (ready to merge) once every open P0 and P1 is closed. P2/P3 entries left open do not block the "ready" verdict but should be named in the final entry.

Output

Changelog entries written directly into the target doc at each step above, plus a short chat message at the point the loop stops (ready to merge, or the other agent went quiet) summarizing the outstanding P-tier count. This skill only edits the target doc's Changelog section — it does not edit the reviewed code, commit, push, comment on the PR, or change labels.

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 annexes

Ce 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.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/async-agent-to-agent-code-review-mu99joka/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/async-agent-to-agent-code-review-mu99joka' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/async-agent-to-agent-code-review-mu99joka/download' --output '.skill-downloads/async-agent-to-agent-code-review-mu99joka/SKILL.md.part' && mv '.skill-downloads/async-agent-to-agent-code-review-mu99joka/SKILL.md.part' '.skill-downloads/async-agent-to-agent-code-review-mu99joka/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.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

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/async-agent-to-agent-code-review-mu99joka/SKILL.md' && test -s '.skill-downloads/async-agent-to-agent-code-review-mu99joka/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/reviews-code' && cp -R '.skill-downloads/async-agent-to-agent-code-review-mu99joka' '.claude/skills/reviews-code'

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’OpenSkills
openskills install './.skill-downloads/async-agent-to-agent-code-review-mu99joka'

openskills read 'async-agent-to-agent-code-review-mu99joka'

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 sync

Mode 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/async-agent-to-agent-code-review-mu99joka/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.

Skills similaires