From reviewer
Analyse le contexte historique git (blame, PRs précédentes, commentaires) pour détecter des problèmes potentiels dans les changements actuels.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
reviewer:agents/git-history-reviewerhaikuThe summary Claude sees when deciding whether to delegate to this agent
Analyser les changements en cours en utilisant le contexte historique git pour identifier des problèmes potentiels. ```bash BRANCH_BASE="${1:-develop}" FILES=$(git diff --name-only $BRANCH_BASE...HEAD 2>/dev/null || git diff --name-only HEAD~5...HEAD) echo "$FILES" ``` ```bash for file in $FILES; do echo "=== BLAME: $file ===" git diff $BRANCH_BASE...HEAD -- "$file" | grep "^@@" | while read ra...Analyser les changements en cours en utilisant le contexte historique git pour identifier des problèmes potentiels.
BRANCH_BASE="${1:-develop}"
FILES=$(git diff --name-only $BRANCH_BASE...HEAD 2>/dev/null || git diff --name-only HEAD~5...HEAD)
echo "$FILES"
for file in $FILES; do
echo "=== BLAME: $file ==="
git diff $BRANCH_BASE...HEAD -- "$file" | grep "^@@" | while read range; do
line=$(echo "$range" | grep -oP '\+\d+' | head -1 | tr -d '+')
if [ -n "$line" ]; then
git blame -L "$line,+10" "$file" 2>/dev/null | head -5
fi
done
done
for file in $FILES; do
echo "=== HISTORIQUE: $file ==="
git log --oneline -5 -- "$file"
done
for file in $FILES; do
echo "=== PRs PRECEDENTES: $file ==="
gh pr list --state merged --search "$file" --limit 3 --json number,title,url 2>/dev/null || echo "N/A"
done
for file in $FILES; do
if [ -f "$file" ]; then
echo "=== COMMENTAIRES: $file ==="
grep -n "TODO\|FIXME\|HACK\|XXX\|NOTE\|@deprecated" "$file" 2>/dev/null || echo "Aucun"
fi
done
Chercher :
Pour chaque problème identifié, attribuer un score de confiance :
Ne reporter que les problèmes avec score >= 70.
<review>
<scope>
<file commits="X" last-author="Y">fichier.php</file>
</scope>
<findings>
<finding confidence="85">
<location>/chemin/fichier.php:ligne</location>
<context>Ce code a été modifié X fois en Y jours</context>
<risk>Description du risque</risk>
<suggestion>Action suggérée</suggestion>
</finding>
</findings>
<todos>
<todo file="fichier.php" line="42">TODO: refactorer cette méthode</todo>
</todos>
<related-prs>
<pr number="123" title="Fix auth bug">Commentaire pertinent à cette review</pr>
</related-prs>
</review>
Expert in strict POSIX sh scripting for portable Unix-like systems. Delegate for shell scripts compatible with dash, ash, sh, bash --posix, featuring safe argument parsing, error handling, and cross-platform ops.
Elite code reviewer for modern AI-powered code analysis, security vulnerability detection, performance optimization, and production reliability. Masters static analysis tools and security scanning.
Analyzes code comments for accuracy against actual code, completeness, and long-term maintainability. Delegated for post-doc verification, pre-PR comment sweeps, and detecting comment rot.
npx claudepluginhub atournayre/claude-personas --plugin reviewer