Revue de code multi-agent

VérifiéPrudence

Revue de code multi-agent couvrant la correction, la qualité, l'architecture, la couverture de test et la sécurité.

Spar Skills Guide Bot
DeveloppementIntermédiaire
26/07/2026
Claude Code
#code-review#multi-agent#pre-push-gate#git-diff#adlc

Recommandé pour

Synthèse automatique

Lance cinq agents de revue spécialisés en parallèle sur un diff git pour couvrir la correction, la qualité, l'architecture, la couverture de tests et la sécurité avant le push.

Points forts

  • Couvre cinq dimensions en parallèle, dont une dimension architecture absente du workflow CI équivalent
  • Détermine le périmètre à partir de chemins de fichiers, d'un nom de branche ou d'un ID REQ/TASK
  • Charge les conventions du projet et classe les leçons par pertinence (composant, domaine, tags) plutôt que par date, avec citation de l'id de la leçon dans les constats
  • Prévoit des replis explicites : complément par leçons récentes si le jeu pertinent est trop petit, et gestion des leçons anciennes sans frontmatter

Limites

  • Suppose une structure `.adlc/` déjà initialisée (conventions.md, knowledge/lessons) et s'arrête sinon
  • Le SKILL.md fourni est tronqué au milieu de l'étape 2, donc la répartition des agents et la logique de sévérité ne sont pas visibles
  • Repose sur des mécanismes propres à Claude Code (slash command, injections `!` de shell pour charger les partials), donc peu portable
Quand l'utiliser

Juste avant de pousser une branche, quand vous voulez une revue locale structurée couvrant plusieurs dimensions.

Quand l'éviter

Sur un dépôt sans échafaudage `.adlc/`, ou pour un simple coup d'œil rapide sur un seul fichier.

Analyse de sécurité

Prudence
Score qualité88/100

The skill is a review orchestrator whose only execution paths are read-only git queries and two shell invocations of a local 'ethos' include script. Nothing sends data outward or damages state, and the review agents are constrained to report-only. The residual risk is that it runs a repository-controlled shell script and depends on unspecified external agent definitions with unknown tool grants, which warrants 'caution' rather than 'safe'.

Points d'attention
  • •Inline shell execution via `!` command substitution blocks at skill-load time (`git branch --show-current`, `git diff main --stat`, and crucially `sh .adlc/partials/ethos-include.sh || sh ~/.claude/skills/partials/ethos-include.sh`), with no `allowed-tools` declared to bound what runs.
  • •The ethos include executes a script from the repository under review (`.adlc/partials/ethos-include.sh`). If a contributor or dependency plants that file, arbitrary code runs in the reviewer's environment before any review happens — a supply-chain risk inherent to repo-local script sourcing.
  • •The skill delegates to five external agent definitions in `~/.claude/agents/` (`correctness-reviewer`, `quality-reviewer`, `architecture-reviewer`, `test-auditor`, `security-auditor`) whose tool restrictions are not visible here, so the effective blast radius cannot be assessed from this file alone.
  • •No exfiltration, destructive, obfuscated, or safety-disabling behavior present; git usage is read-only (`branch --show-current`, `diff`), and agents are explicitly instructed to report findings only, not apply fixes.
  • •Uses inline shell execution via `!` to run `sh .adlc/partials/ethos-include.sh` and fallback `sh ~/.claude/skills/partials/ethos-include.sh`; the included script contents are not validated here, so it could execute arbitrary commands with the agent's privileges.
  • •Instructs reading full diffs/changed files and passing them to review agents; repository content may include secrets, and the skill gives no explicit redaction guidance before agent/model context exposure.
  • •No `allowed-tools` are declared despite relying on shell commands, file reads, and the Agent tool; effective permissions depend on host defaults rather than explicit scoping.
Comment cette analyse est faite

Exemples

Review current branch
/review
Review a specific branch
/review feature/auth-login
Review by requirement ID
/review REQ-142

name: review description: Multi-agent code review covering correctness, quality, architecture, test coverage, and security argument-hint: Optional file paths, branch name, or REQ/TASK ID to scope the review

/review — Multi-Agent Code Review

You are performing a thorough code review of recent changes using multiple specialized review agents.

This skill is the pre-push ADLC review gate. It runs 5 specialized review agents in parallel, covering the same dimensions the CI llm-review workflow would cover if it ran (correctness, conventions, test coverage, security) plus an architecture dimension the CI workflow doesn't have. Running this before pushing means the ADLC gate catches issues regardless of whether the CI layer is available — CI-layer LLM reviews can be blocked (billing, infra, outages) and must not become the sole safety net.

Ethos

!sh .adlc/partials/ethos-include.sh 2>/dev/null || sh ~/.claude/skills/partials/ethos-include.sh

Context

  • Current branch: !git branch --show-current 2>/dev/null || echo "Not a git repo"
  • Recent changes: !git diff main --stat 2>/dev/null || echo "No diff available"

Context files loaded on demand: .adlc/context/conventions.md and recent lessons are loaded by Step 1 below — skip the Reads if they are already in the current conversation (e.g., when invoked from /proceed, which preloads conventions.md at Phase 0).

Input

Scope: $ARGUMENTS

Prerequisites

Before proceeding, verify that .adlc/context/conventions.md exists. If it doesn't, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init first to set up conventions."

Instructions

Step 1: Determine Review Scope and Load Context

  1. If given specific file paths, review those files
  2. If given a branch name, review all changes on that branch vs main
  3. If given a REQ/TASK ID, find the associated branch and review its changes
  4. If no argument, review all uncommitted changes + commits on the current branch vs main
  5. Get the full diff: git diff main...HEAD (or git diff for uncommitted changes)
  6. Conventions: if .adlc/context/conventions.md is NOT already in your conversation context, Read it now. Otherwise skip — it's already loaded.
  7. Relevant lessons (mirrors the spirit of llm-review.yml, but relevance-ranked instead of time-ranked): a. Derive the set of touched components from the diff. Components are inferred from file paths — e.g. api/auth/* → API/auth, app/Sources/Views/*.swift → iOS/SwiftUI, infrastructure/terraform/* → infra/terraform. Produce a short list of plausible component values and a broader list of domain values (e.g. API, iOS, infra). b. Glob .adlc/knowledge/lessons/*.md and read each file's frontmatter (domain, component, tags). Keep lessons where component matches any touched component exactly, OR where domain matches any touched domain AND component is a prefix of a touched component, OR where any tag matches a touched component/domain. This is the relevance set. c. If the relevance set has fewer than 5 entries, top it up with the most recently modified lessons from .adlc/knowledge/lessons/ (the previous time-based heuristic) until the set has up to 10 entries. This keeps small or cross-cutting diffs from losing context entirely. d. Cap the final list at 15 lessons. Read their bodies in full. e. Pass the content of every selected lesson as context to every review agent in Step 3. When a finding later matches one of these lessons, cite its id explicitly (Step 4 uses this to elevate severity). Fallback: if any lesson has no component / domain / tags frontmatter (legacy file), fall back to reading its title + first paragraph and include it only if the title contains any touched domain or component substring. Do not skip it silently — it may be load-bearing.

Step 2: Read All Changed Files

Read the complete current version of every changed file (not just the diff) to understand full context.

Step 3: Launch Review Agents

Launch 5 formal review agents in parallel using the Agent tool. Each agent is defined in ~/.claude/agents/ with its full checklist, model selection, and tool restrictions. Running in parallel minimizes wall-clock time.

  1. correctness-reviewer agent — provide it the list of changed files, the full diff, conventions.md content, and recent lessons. Focus: logic errors, null risks, race conditions, edge cases, concurrency bugs. Tell it: "Report findings only. Do not apply fixes."
  2. quality-reviewer agent — same inputs. Focus: naming, convention compliance, code duplication, complexity, maintainability. Tell it: "Report findings only. Do not apply fixes."
  3. architecture-reviewer agent — same inputs plus architecture.md content. Focus: layering, separation of concerns, API contracts, module boundaries, scope discipline. Tell it: "Report findings only. Do not apply fixes."
  4. test-auditor agent — same inputs. Focus: test coverage gaps for the changed code, mock completeness, edge case coverage, test isolation, determinism. Tell it: "Audit test coverage only for the diff under review. Report findings only. Do not apply fixes."
  5. security-auditor agent — same inputs. Focus: input validation, authentication/authorization gaps, data exposure (PII, secrets), injection risks, dependency issues, rate limiting. Tell it: "Audit security posture only for the diff under review. Report findings only. Do not apply fixes."

Each agent returns structured findings with severity (Critical/Major/Minor/Nit), file path, line number, and suggested fix.

Gate rule (mirrors llm-review.yml): if ANY agent reports a Critical finding, the review gate FAILS and the changes are not ready to merge. Fix critical findings before proceeding to push. Major findings should typically be fixed before merge but can be escalated to the user for judgment calls.

Step 4: Consolidate Findings

  1. Collect results from all 5 agents
  2. Deduplicate overlapping findings
  3. Categorize by severity:
    • Critical: Must fix before merge (bugs, security, data loss, test gaps that hide regressions)
    • Major: Should fix before merge (convention violations, missing tests, architectural smells)
    • Minor: Nice to fix (style, naming, minor improvements)
    • Nit: Optional suggestions
  4. Cross-reference findings against the loaded recent lessons — if a finding matches a known pitfall, escalate its severity by one level (e.g., a Minor finding that matches a prior LESSON becomes a Major). Flag this explicitly in the report.

Step 5: Present Review

Display findings organized by file, then by severity within each file. Include a dimension summary at the top so the user can see which of the 5 dimensions have issues at a glance:

## Dimension Summary

| Dimension | Critical | Major | Minor | Nit | Gate |
|---|---|---|---|---|---|
| Correctness | 0 | 1 | 2 | 0 | PASS |
| Quality | 0 | 0 | 3 | 1 | PASS |
| Architecture | 0 | 2 | 0 | 0 | PASS |
| Test Coverage | 0 | 0 | 1 | 0 | PASS |
| Security | 0 | 0 | 0 | 0 | PASS |

**Overall gate: PASS / FAIL**

## file/path.js

### Critical
- Line XX: description of issue

### Major
- Line XX: description of issue

Step 6: Summary

  1. Overall gate: PASS (ready to merge) / FAIL (fix criticals first) / RESHAPE (significant rework needed)
  2. Count of issues by severity and by dimension
  3. Top 3 most important things to address
  4. Any findings that matched recent lessons (elevated-severity items)
  5. If changes look good, say so clearly — an empty review is a valid result for small, well-scoped changes

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

Before proceeding, verify that .adlc/context/conventions.md exists. If it doesn't, stop and tell the user: "The .adlc/ structure hasn't been initialized. Run /init first to set up conventions."

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

openskills read 'multi-agent-code-review-ms1aw4om'

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-ms1aw4om/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