Revue de code et correction multi-agents

VérifiéPrudence

Lance cinq agents de revue sur les changements, synthétise les résultats, les valide, priorise selon les besoins du développeur et applique les corrections approuvées.

Spar Skills Guide Bot
DeveloppementIntermédiaire
08/08/2026
Claude Code
#code-review#multi-agent#git-diff#triage#embedded

Recommandé pour

Synthèse automatique

Lance cinq agents de revue en parallèle sur un diff Git, valide et synthétise leurs constats, puis corrige les points approuvés après triage.

Points forts

  • Détermine automatiquement le périmètre à réviser (fichier, dernier commit, modifications non commitées) à partir d'une simple consigne en langage naturel
  • Exécute les cinq agents en parallèle et impose une étape de validation manuelle pour écarter les faux positifs avant la table de synthèse
  • Le triage suit des critères explicites : bugs réels, sécurité, respect des standards du projet, gains d'efficacité sur matériel contraint
  • Laisse l'utilisateur choisir entre revue seule et mode « auto-fix » qui enchaîne directement sur les corrections

Limites

  • Fortement couplé à un contexte précis (C embarqué sur Jetson, CLAUDE.md, CODING_STYLE_GUIDE.md) et aux cinq agents nommés, qu'il faut adapter ailleurs
  • Le fichier fourni est tronqué au milieu de la section Triage, ce qui laisse les critères de décision incomplets
  • Nécessite l'outil Agent et un accès Git en écriture ; inutilisable sur un dépôt sans historique ni modifications
Quand l'utiliser

À utiliser lorsqu'un ensemble de changements doit être passé au crible par plusieurs spécialistes puis corrigé dans la foulée.

Quand l'éviter

À éviter pour une relecture ciblée d'une seule ligne ou sur un projet dont les conventions et les agents de revue ne sont pas déjà définis.

Analyse de sécurité

Prudence
Score qualité90/100

The skill orchestrates a code review and fix cycle using git, formatting, and build commands, along with file edits and agent launches. These are powerful tools but are used for a legitimate development workflow with no signs of malicious or unsafe instructions. The risk is moderate due to the ability to modify code and run shell commands, but the actions are scoped and expected.

Points d'attention
  • •Uses Bash to run git diff, format_code.sh, and make, which are powerful but legitimate for the review/fix workflow.
  • •Uses Edit/Write to modify code, and Agent to launch subagents; all within declared allowed-tools and for intended purpose.
  • •No destructive, exfiltrating, or obfuscated commands are present.
Comment cette analyse est faite

Exemples

Default uncommitted review
review
Scoped to last commit
full review of the last commit
Review and auto-fix
run all five agents on the OAuth changes and fix everything

name: review description: Run all five review agents on changes, synthesize findings, triage based on developer thinking, and fix approved items. Trigger when the user says "review", "run the agents", "run all four", "run all five", "full review", "code review", or similar. disable-model-invocation: false user-invocable: true allowed-tools: Read, Grep, Glob, Bash, Edit, Write, Agent argument-hint: "[scope description]"

Code Review + Fix Skill

You are performing a full review cycle: launch agents, synthesize results, validate, triage, and fix.

Scope

The user may specify scope in any way they like — a file path, "the last commit", "everything uncommitted", "the OAuth changes", "just the C files", or nothing at all. Interpret their intent and gather the right diff.

If no argument is given, default to all uncommitted changes (git diff + git diff --cached + new untracked source files from git status).

The user may also say something like "and fix everything" or "auto-fix" — this means skip the confirmation step and proceed directly to fixes after triage. The default is to wait for confirmation.

Step 1: Gather Changes

  1. Run the appropriate git commands for the scope
  2. Note which file types are involved — this determines which agents are relevant

Step 2: Launch Review Agents

Launch all five agents in parallel (single message, multiple Agent tool calls). Feed each one the actual diff content and the project context (embedded C on Jetson, CLAUDE.md standards).

The agents already know their domains and how to structure their output:

  1. architecture-reviewer
  2. embedded-efficiency-reviewer
  3. security-auditor
  4. ui-design-architect — relevant for ANY UI changes: web (JS/CSS/HTML), SDL, LVGL, or any other display/interaction layer
  5. coding-standards-auditor — audits compliance with CLAUDE.md and CODING_STYLE_GUIDE.md (return codes, naming, Doxygen, formatting, include hygiene)

If the changes clearly don't touch any UI surface at all, you may skip the ui-design-architect and note why.

Step 3: Synthesize and Validate

After all agents complete, review each finding yourself before including it in the table. Read the relevant code and confirm the issue is real — agents sometimes misread context, flag code that's actually correct, or raise concerns already handled elsewhere. Drop false positives and note if a finding is valid but already mitigated.

Create a consolidated findings table of validated issues:

| # | Severity | Agent | File | Finding | Action | |---|----------|-------|------|---------|--------|

Step 4: Triage

The goal is to fix things that genuinely improve the code — real bugs, real security issues, real architectural problems, real efficiency wins on constrained hardware. Not to chase perfection or pad a list.

How the developer thinks about this:

  • If it's broken, unsafe, or violates the project's own standards (CLAUDE.md coding style, error handling patterns, memory management rules) — fix it. That's why we have standards.
  • If it's a real efficiency problem on embedded (unnecessary allocations in hot paths, unbounded buffers, things that'll hurt on a Jetson with limited RAM) — fix it. Abstract "could be more efficient" observations on cold paths aren't worth touching.
  • If it's a genuine code quality improvement that makes the code clearer or more correct, and the fix is localized and low-risk — fix it. Good engineering.
  • If it's a UI consistency issue — mismatched styling between parallel components, accessibility gaps, broken patterns that work in one module but not the mirrored one — fix it. UI quality matters as much as backend quality. Don't dismiss visual or interaction bugs just because they're "only UI."
  • If it's a real bug — even low-severity — and the fix is easy and localized, fix it. Don't skip real issues just because they're low priority. The cost of a one-line fix is near zero; the cost of a known bug sitting around is not.
  • Pre-existing issues: fix them. If an agent surfaces a real issue — bug, missing validation, inaccurate docs, security gap — fix it regardless of whether this diff introduced it. The review found it; that's the opportunity. If we don't fix it now, when will we? The only valid skip reason is if the fix is genuinely invasive (touches many files outside the diff, changes public APIs, high risk of regression). Never use "pre-existing" as an automatic skip. Triage on merit: severity + fix effort, not on when it was introduced.
  • If it's a nitpick, a style opinion beyond what CLAUDE.md specifies, or a "nice to have" future improvement unrelated to the code being changed — skip it. Mention it in the table for awareness, but don't touch working code to satisfy a preference.
  • If fixing something would change a public API, ripple across multiple modules, or feel like scope creep — flag it but don't fix it without asking.

Use your judgment. The developer trusts you to tell the difference between "this matters" and "this is technically correct but not worth the diff noise."

Step 5: Present Triage

Show the developer:

  1. The findings table with your Action column filled in (Fix / Skip / Ask)
  2. A brief summary: "X findings total, fixing Y, skipping Z"
  3. Which items you're about to fix and a short rationale

Default: wait for confirmation before proceeding. The developer may override triage decisions. If the user indicated auto-fix (e.g., "fix everything", "don't ask"), proceed directly to Step 6.

Step 6: Execute Fixes

For each approved fix:

  1. Read the file first (always)
  2. Make the minimal change needed — don't refactor surrounding code
  3. After all fixes, run ./format_code.sh
  4. Run make -C build-debug -j8 to verify the build
  5. If the build fails, fix it before continuing

Step 7: Summary

  1. List what was fixed (file:line + one-line description)
  2. List what was skipped and why
  3. Confirm build + format pass
  4. Do NOT commit — the developer handles git

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/multi-agent-code-review-and-fix-msjwk4mk/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/multi-agent-code-review-and-fix-msjwk4mk' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/multi-agent-code-review-and-fix-msjwk4mk/download' --output '.skill-downloads/multi-agent-code-review-and-fix-msjwk4mk/SKILL.md.part' && mv '.skill-downloads/multi-agent-code-review-and-fix-msjwk4mk/SKILL.md.part' '.skill-downloads/multi-agent-code-review-and-fix-msjwk4mk/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.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Grep, Glob, Bash, Edit, Write, Agent

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/multi-agent-code-review-and-fix-msjwk4mk/SKILL.md' && test -s '.skill-downloads/multi-agent-code-review-and-fix-msjwk4mk/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/review' && cp -R '.skill-downloads/multi-agent-code-review-and-fix-msjwk4mk' '.claude/skills/review'

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/multi-agent-code-review-and-fix-msjwk4mk'

openskills read 'multi-agent-code-review-and-fix-msjwk4mk'

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/multi-agent-code-review-and-fix-msjwk4mk/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