Synthèse automatique
Exécute une revue de code multi-agents avant le push sur un diff donné, en combinant correction, qualité, architecture, couverture de tests et sécurité avec les conventions et leçons du projet.
Points forts
- Délimite la revue par fichiers, branche, ID REQ/TASK ou, par défaut, les changements non commités et les commits de la branche.
- Charge les conventions du projet et les leçons pertinentes pour ancrer les constats.
- Couvre cinq dimensions en parallèle, dont l'architecture, absente du workflow CI.
- Sert de garde-fou avant push lorsque la revue LLM en CI est indisponible.
Limites
- Nécessite une structure .adlc/ initialisée, notamment conventions.md, ainsi qu'un dépôt git.
- Les instructions fournies s'arrêtent après le filtrage des leçons : l'orchestration complète des agents et le format de sortie ne sont pas documentés ici.
- Le rapprochement des leçons repose sur des composants déduits des chemins de fichiers, ce qui peut manquer de contexte dans des arborescences inhabituelles.
À utiliser avant de pousser une branche ou d'ouvrir une PR lorsque vous voulez une revue structurée multidimensionnelle intégrant les conventions et leçons du projet.
À éviter dans un dépôt sans configuration .adlc/ ou lorsqu'il faut une simple vérification de style sur un fichier plutôt qu'une revue complète.
Analyse de sécurité
PrudenceThe skill is a reviewer, not a mutator: every instruction directs agents to report findings only, apply no fixes, and run no build/test tooling. Execution risk comes from legitimate but real shell usage (git inspection, a `cat` of the ethos file via the `!` prefix, and an awk-based frontmatter scan) plus the trust placed in repo-local `.adlc/` files that become instructions for dispatched subagents. Nothing exfiltrates data, fetches from the network, or destroys anything, so this is a powerful-tool-for-legitimate-purpose case rather than a dangerous one.
- •Automatic command execution at skill load: the Ethos section uses the `!` pre-execution prefix to run `test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md`, so merely invoking the skill runs a shell command and injects repo-controlled file content into the model context. The command is a read-only file read, but the execution is implicit.
- •Repo-controlled content is loaded and forwarded to subagents as instructions: `.adlc/context/conventions.md`, `.adlc/knowledge/lessons/*.md`, `.adlc/agents/<name>.md`, and (fallback) `$ADLC_TOOLKIT_ROOT/agents/<name>.md`. A compromised or malicious repository could plant instruction text in those files that the dispatched reviewer agents would treat as guidance. This is partially mitigated by the repeated, explicit constraints that agents must 'Report findings only. Do not apply fixes.' and that inline agent runs are 'read-only... run no test runner, build tool, package manager or interpreter.'
- •The skill has the agent execute non-trivial inline shell: git inspection commands, a multi-branch `find -exec awk` frontmatter scan, and `git diff-tree`/`git status`. All observed commands are read-only and bounded to the working tree; no network access, writes, deletes, or privilege changes are requested.
- •Positive control worth noting: the superseded-lesson lookup interpolates the lesson id into the awk program only after validating it against an explicit `case` pattern and passes it via `-v`, which avoids the obvious shell/awk injection path. No obfuscation, encoding, or secret-handling appears anywhere in the skill.
- •Explicit privilege boundaries are stated (if the harness cannot dispatch subagents, run checklists inline read-only; never improvise a checklist; stop if `.adlc/` is uninitialized), which limits blast radius. No prompt-injection or role-override attempt was present in the skill data itself.
- •Load-time shell execution: the `!`-prefixed line runs `test -s .adlc/ETHOS.md && cat ... || echo ...` when the skill loads, and the Context block runs git commands. Both are hardcoded, read-only, and interpolate no user input — benign, but worth noting since content executes before the agent reads the instructions.
- •The superseded-lookup snippet substitutes a lesson id into a `find -exec awk` command; it is guarded by a strict `case` pattern (LESSON-nnn only) and passes the id as `-v` data rather than into the program text, which is a correct mitigation.
- •No destructive, network, or exfiltration actions: agents are explicitly told "Report findings only. Do not apply fixes," and inline runs are constrained to read-only (no builds/tests/package managers).
Exemples
Run /review on my uncommitted changes and flag correctness, test coverage, security, and architecture issues before I push./review feature/payments-refactor/review TASK-142name: 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
!test -s .adlc/ETHOS.md && cat .adlc/ETHOS.md || echo No ethos found — run /init, or /adlc:init on the plugin install, to vendor .adlc/ETHOS.md
Context
Run this block first, with your shell tool, and read its output before you continue. Each read prints a notice instead of failing when its file is absent.
# adlc-context
echo '--- Current branch'
git branch --show-current 2>/dev/null || echo 'Not a git repo'
echo '--- Committed changes vs main'
git diff-tree --stat -r main HEAD 2>/dev/null || echo 'No diff available'
echo '--- Uncommitted changes'
git status --short 2>/dev/null || echo 'Not a git repo'
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
The scope is the argument: whatever follows /review in the invocation (on Claude Code it can also arrive as an ARGUMENTS: line appended to this text). With none, Step 1 reviews the uncommitted changes and the branch's commits.
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 (/adlc:init on the plugin install) first to set up conventions."
Instructions
Step 1: Determine Review Scope and Load Context
- If given specific file paths, review those files
- If given a branch name, review all changes on that branch vs
main - If given a REQ/TASK ID, find the associated branch and review its changes
- If no argument, review all uncommitted changes + commits on the current branch vs
main - Get the full diff:
git diff main...HEAD(orgit difffor uncommitted changes) - Conventions: if
.adlc/context/conventions.mdis NOT already in your conversation context, Read it now. Otherwise skip — it's already loaded. - 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 plausiblecomponentvalues and a broader list ofdomainvalues (e.g.API,iOS,infra). b. Glob.adlc/knowledge/lessons/*.mdand read each file's frontmatter (domain,component,tags,confidence,supersedes). Keep lessons wherecomponentmatches any touched component exactly, OR wheredomainmatches any touched domain ANDcomponentis a prefix of a touched component, OR where any tag matches a touched component/domain. This is the relevance set.confidenceandsupersedesplay no part in relevance — record them next to each lesson's id for Step 4. A lesson's ownsupersedesnames what it replaces; whether it has been replaced is Step 4's reverse lookup, run only for lessons a finding matched. 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 itsidexplicitly (Step 4 uses this to elevate severity). f. Lesson files this diff changes. From the item 5 diff, list the.adlc/knowledge/lessons/LESSON-*.mdpaths it adds or modifies (--name-onlyon the same diff, plus untracked lesson files when the scope includes uncommitted changes). Step 4 ignores theconfidenceandsupersedesthose files carry: a change under review must not switch off its own escalation. Fallback: if any lesson has nocomponent/domain/tagsfrontmatter (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 $ADLC_TOOLKIT_ROOT/agents/ with its full checklist, model selection, and tool restrictions. Running in parallel minimizes wall-clock time.
If this harness can run subagents, dispatch these agents in parallel; if it cannot, or you are a subagent, run each checklist inline from .adlc/agents/<name>.md. Agent names are bare on the symlink install and adlc:-prefixed on the plugin install (adlc:<name>): before dispatching, check which form the Agent tool lists and use that one, and do not wait for an error, because a name it does not list can silently run a generic agent without the checklist; if neither form is listed, say which agent is missing and run its checklist inline. When .adlc/agents/ is absent, say that /init (/adlc:init on the plugin install) vendors it, then read $ADLC_TOOLKIT_ROOT/agents/<name>.md (the toolkit root is the parent of this skill's base directory) where your file tool can reach it; never improvise a checklist. An inline run of a review or audit agent is read-only: report findings, apply no fixes, and run no test runner, build tool, package manager or interpreter.
- correctness-reviewer agent — provide it the list of changed files, the full diff,
conventions.mdcontent, and recent lessons. Focus: logic errors, null risks, race conditions, edge cases, concurrency bugs. Tell it: "Report findings only. Do not apply fixes." - quality-reviewer agent — same inputs. Focus: naming, convention compliance, code duplication, complexity, maintainability. Tell it: "Report findings only. Do not apply fixes."
- architecture-reviewer agent — same inputs plus
architecture.mdcontent. Focus: layering, separation of concerns, API contracts, module boundaries, scope discipline. Tell it: "Report findings only. Do not apply fixes." - 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."
- 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, class, and suggested fix. The class and the severity vocabulary are defined once, here; every reviewer agent carries this block byte for byte, and tools/delegate/tests/test_run_outcome_docs.py fails when a copy drifts:
Finding class and severity (REQ-648). Every finding names its defect class: a **Class**: line in a multi-line finding, a class: <name> token in a one-line one. The class names the defect pattern, not this instance: lowercase kebab-case, one to six words, matching ^[a-z0-9]+(-[a-z0-9]+){0,5}$ (for example unanchored-marker-regex, cross-fence-shell-state). When the finding matches a lesson you were given, also cite that lesson's id; consolidation then uses the id as the class. When a pattern you already classed in this run appears again, reuse that class exactly, because the sprint's Recurrence report counts exact equality and two spellings of one defect read as two defects. Severity is Critical, Major, Minor or Nit; a scale with other names maps on the way out: High → Major, Medium → Minor, Low → Nit, Critical unchanged, and a test-coverage gap with no other severity is Major.
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
-
Collect results from all 5 agents
-
Deduplicate overlapping findings, keeping each survivor's class: when two agents raised one defect under two classes, keep the first, and when a finding matches one of the loaded lessons, its class is that lesson's id (REQ-648 BR-6)
-
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
-
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. Escalation is gated on the matched lesson's standing (REQ-646 BR-6). It fires unless the matched lesson has
confidence: lowor another lesson supersedes it (the lookup below). Only the valuelowcounts:medium,high, an empty value and any value outside the enum all behave as absent. A matched lesson with absentconfidenceescalates as today — legacy lessons predate the field, and absence is notlow. Otherwise the finding keeps its severity, still cites the lesson id, and the report carries the matching annotation verbatim:confidence: low→(matched LESSON-xxx, confidence low — not escalated)- named in another lesson's
supersedes→(matched LESSON-xxx, superseded by LESSON-yyy — not escalated)
When both apply, use the superseded annotation — it names the lesson to read instead. This does not switch escalation off wholesale: a lesson backed by a finding-plus-fix or a reproduce-plus-fix is
medium/highand still escalates (the capture prompt's contrast rule, REQ-646 BR-4).Superseded lookup (REQ-646 ADR-6) — run it here, lazily: only for a lesson a finding matched, never for all 15 selected in Step 1. The superseding lesson is usually not in the selected set, so loaded frontmatter cannot answer this; run one corpus-wide reverse lookup per matched lesson. Substitute the lesson's id for
<id>only after it matches^LESSON-[0-9]{3,6}$— an id that does not match is skipped, never substituted — and thecasere-checks it before anything uses it:ID='<id>' case "$ID" in LESSON-[0-9][0-9][0-9]|LESSON-[0-9][0-9][0-9][0-9]|LESSON-[0-9][0-9][0-9][0-9][0-9]|LESSON-[0-9][0-9][0-9][0-9][0-9][0-9]) LC_ALL=C find .adlc/knowledge/lessons -maxdepth 1 -type f -name 'LESSON-*.md' -exec awk -v id="$ID" 'FNR==1{s=0;skip=0;c=0;sub(/^\357\273\277/,"")} {sub(/\r$/,"")} skip{next} s==0&&/^[ \t]*$/{next} s==0&&/^<!--/{c=1} c{ if(/-->/){c=0}; next } s==0&&!/^---$/{skip=1;next} s<2&&/^---$/{s++;next} s==1&&$(0)~("^supersedes:[ \t][^#]*" id "([^0-9]|$)"){print FILENAME;skip=1}' {} + 2>/dev/null ;; *) echo "superseded lookup: $ID is not a LESSON-nnn id — skipped" >&2 ;; esacEach printed path is a superseding lesson; its id is the
LESSON-<digits>prefix of the basename. Ignore a hit on the lesson's own file, and a hit on a file Step 1 item 7f listed. Every remaining hit is asuperseded byid, comma-separated; no output means not superseded. The id reachesawkas data (-v), so thecaseguards the only place it is substituted. The program is single-quoted and reads only the frontmatter block, found the wayadlc_lesson_checkfinds it: a leading BOM and each line's trailing CR are dropped, blank lines and HTML comments are skipped, and the block opens only when the first other line is---— a file that opens with anything else, such as a legacy lesson whose---lines are horizontal rules in its body, is skipped whole. The match needs a blank aftersupersedes:(the one key spelling the check accepts), and[^#]*stops at a trailing# comment, so neither a body line nor a comment that mentions the id is a hit.2>/dev/nullkeeps a missing lessons directory quiet — no output, so not superseded.-exec … {} +runs nothing when no file matches, where GNUxargswould run its command once on empty input; the quoted-namenever hands the shell an unmatched glob (zsh aborts on one — LESSON-335); and([^0-9]|$)stopsLESSON-40matchingLESSON-404without a word-boundary escape, which BSD tools silently ignore (LESSON-013).A lesson file this diff changes carries no standing (Step 1 item 7f). If the matched lesson's own file is on that list, treat its
confidenceas absent; a superseding hit on that list does not count. When that is what kept an exemption from applying, the finding escalates as today and the report says so:(matched LESSON-xxx, exemption ignored — lesson changed in this diff).
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
- Overall gate: PASS (ready to merge) / FAIL (fix criticals first) / RESHAPE (significant rework needed)
- Count of issues by severity and by dimension
- Top 3 most important things to address
- Any findings that matched recent lessons (elevated-severity items), and the matches Step 4 did not escalate, each with its
(matched LESSON-xxx, … — not escalated)annotation, plus any match whose exemption Step 4 ignored because the diff changes the lesson file, with its(matched LESSON-xxx, exemption ignored — lesson changed in this diff)annotation - 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 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/multi-agent-code-review-mwk700d4/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-mwk700d4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/multi-agent-code-review-mwk700d4/download' --output '.skill-downloads/multi-agent-code-review-mwk700d4/SKILL.md.part' && mv '.skill-downloads/multi-agent-code-review-mwk700d4/SKILL.md.part' '.skill-downloads/multi-agent-code-review-mwk700d4/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 (/adlc:init on the plugin install) 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-mwk700d4/SKILL.md' && test -s '.skill-downloads/multi-agent-code-review-mwk700d4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/review' && cp -R '.skill-downloads/multi-agent-code-review-mwk700d4' '.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’OpenSkillsopenskills install './.skill-downloads/multi-agent-code-review-mwk700d4'openskills read 'multi-agent-code-review-mwk700d4'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/multi-agent-code-review-mwk700d4/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.