Logo: Review

Review

Organisatioun
TheBushidoCollective
review

Multi-agent code review with confidence-based filtering

Add to TypingMind

Iwwersiicht

EditeurTheBushidoCollective
Repositoryhan
Skill-Nummreview
Stären
195
Forks
20
Matgeliwwert Dateien
Nëmmen Instruktiounen
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    TheBushidoCollective huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Review an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/TheBushidoCollective/han/tree/main/plugins/core/skills/review
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TheBushidoCollective/han.git /tmp/han
mkdir -p .claude/skills
cp -r /tmp/han/plugins/core/skills/review .claude/skills/review
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Review an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Review automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Review net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Code Review Workflow

Name

han-core:review - Multi-agent code review with confidence-based filtering

Synopsis

/review [arguments]

Description

Multi-agent code review with confidence-based filtering

Implementation

Automated multi-agent code review with confidence-based filtering. Runs parallel specialized review agents to identify high-confidence issues across quality, security, and discipline-specific concerns.

Overview

This command orchestrates multiple review agents in parallel to provide comprehensive code review:

  • General Quality: Code correctness, maintainability, testing
  • Security: Vulnerabilities, auth/authz, input validation
  • Discipline-Specific: Frontend, backend, or specialized concerns

Key Features:

  • ✅ Parallel agent execution for speed
  • ✅ Confidence scoring (0-100) with ≥80% threshold
  • ✅ False positive filtering
  • ✅ Automatic de-duplication
  • ✅ Consolidated findings report

How It Works

1. Preparation

Gathers context about the changes:

bash
# Review scope of changes
git diff --stat main...HEAD

# Get full diff
git diff main...HEAD

# Check recent commits
git log main...HEAD --oneline

2. Parallel Review Agents

Launches multiple independent agents in parallel (single message, multiple Task calls):

Core Reviewer (Always Runs)
  • Agent: han-core:code-reviewer skill
  • Focus: General quality, correctness, maintainability, testing
  • Filters: Confidence ≥80%, false positive filtering
  • Output: Categorized issues (Critical ≥90%, Important ≥80%)
Security Reviewer (Always Runs)
  • Agent: security:security-engineer
  • Focus: Security vulnerabilities, auth patterns, input validation
  • Checks: SQL injection, XSS, CSRF, auth bypass, secrets exposure
  • Output: Security issues with severity and confidence scores
Discipline-Specific Reviewer (Auto-Selected)

Auto-detection based on changed files:

File PatternAgentFocus
*.tsx, *.jsx, *.cssfrontend:presentation-engineerUI/UX, accessibility, responsiveness
**/api/**, **/controllers/**backend:backend-architectAPI design, scalability, error handling
**/db/**, **/*schema*databases:database-designerQuery optimization, migrations, indexes
**/test/**, **/*.test.*quality:test-architectTest quality, coverage, patterns
**/infra/**, *.tfinfrastructure:devops-engineerInfrastructure, deployment, configuration

Manual override: Specify agent explicitly if auto-detection is incorrect.

3. Consolidation

Merges findings from all agents:

  1. Collect all issues from parallel agents
  2. De-duplicate identical findings
  3. Filter for confidence ≥80%
  4. Categorize by severity:
    • 🔴 Critical (confidence ≥90%): Must fix before merge
    • 🟡 Important (confidence ≥80%): Should fix before merge
  5. Format with file:line references

4. Report

Presents consolidated findings:

markdown
## Review Summary

Total files changed: X
Lines added: +X, removed: -X
Review agents: 3 (Core, Security, Frontend)

---

## Findings

### 🔴 Critical Issues (Must Fix)

**[Issue]** - `file.ts:42` - **Confidence: 95%**
- Problem: ...
- Impact: ...
- Fix: ...

### 🟡 Important Issues (Should Fix)

**[Issue]** - `file.ts:89` - **Confidence: 85%**
- Problem: ...
- Impact: ...
- Suggestion: ...

---

## Verification Status

- [ ] All automated checks passed
- [ ] Security review: 1 critical issue
- [ ] Quality review: 0 issues
- [ ] Frontend review: 2 important issues

---

## Decision: REQUEST CHANGES

Critical issues must be resolved before approval.

---

## Next Actions

1. Fix SQL injection vulnerability at `services/user.ts:42`
2. Add error handling to `components/UserForm.tsx:89`
3. Re-run /review after fixes

Usage

Review current branch

/review

Reviews all changes from main branch to HEAD.

Review specific PR

/review pr 123

Uses gh CLI to fetch PR #123 and review changes.

Review with specific agents

/review --agents security,performance

Override auto-detection and run only specified agents.

Review specific files

/review src/services/payment.ts

Review only specified files instead of entire diff.


Confidence Scoring

All findings include confidence scores to reduce noise:

ScoreMeaningAction
100%Absolutely certainAlways report (linter errors, type errors, failing tests)
90-99%Very high confidenceAlways report (clear violations, obvious bugs)
80-89%High confidenceReport (pattern violations, missing tests)
<80%Medium-low confidenceDo not report (speculative, subjective)

Filtering rules:

  • ❌ Pre-existing issues (not in current diff)
  • ❌ Linter-catchable issues (automated tools handle these)
  • ❌ Code with lint-ignore comments
  • ❌ Style preferences without documented standards
  • ❌ Theoretical concerns without evidence

Agent Details

Core Reviewer (han-core:code-reviewer)

Dimensions:

  1. Correctness - Does it solve the problem?
  2. Safety - Security and data integrity
  3. Maintainability - Readable, documented, follows patterns
  4. Testability - Tests exist and cover edge cases
  5. Performance - No obvious performance issues
  6. Standards - Follows coding standards

Red flags (never approve):

  • Commented-out code
  • Secrets/credentials in code
  • Breaking changes without coordination
  • Tests commented out or skipped
  • No tests for new functionality

Security Reviewer (security:security-engineer)

Focus areas:

  • Input validation and sanitization
  • SQL injection prevention
  • XSS/CSRF protection
  • Authentication and authorization
  • Secrets management
  • API security (rate limiting, CORS)
  • Dependency vulnerabilities

Severity levels:

  • Critical: Exploitable vulnerabilities
  • High: Security pattern violations
  • Medium: Potential security concerns

Discipline-Specific Reviewers

Each specialized agent brings domain expertise:

Frontend (presentation-engineer):

  • Accessibility (WCAG compliance)
  • Responsive design
  • Performance (bundle size, lazy loading)
  • User experience
  • Component patterns

Backend (backend-architect):

  • API design (RESTful, GraphQL)
  • Error handling and validation
  • Database transactions
  • Caching strategies
  • Scalability concerns

Database (database-designer):

  • Query optimization
  • Index usage
  • Migration safety
  • Data integrity
  • Schema design

Integration with Workflows

Part of /feature-dev workflow

Phase 6: Review (from /feature-dev)
  ↓
  Calls /review command
  ↓
  Reports findings
  ↓
  User fixes issues
  ↓
  Re-run /review until clean

Standalone usage

# Make changes
git add .

# Review before commit
/review

# Fix issues

# Review again
/review

# If clean, commit
/commit

PR review automation

# Fetch PR
gh pr checkout 123

# Review changes
/review

# Comment on PR
gh pr comment 123 --body "$(cat review-findings.md)"

Advanced Features

Redundant Review for Critical Code

For high-risk changes (auth, payments, security), run redundant reviewers:

/review --redundant

This runs:

  • 2x Core reviewers (independent evaluations)
  • 2x Security reviewers (double-check vulnerabilities)
  • 1x Discipline-specific reviewer

Consensus logic: Report issue only if ≥2 reviewers agree (reduces false positives).

Historical Context Review

Include git history analysis:

/review --with-history

Adds:

  • Blame analysis: Who wrote original code?
  • Change patterns: Frequently modified files (potential hot spots)
  • Regression risk: Areas with past bugs
  • Commit context: Related commits and their impact

Custom Agent Teams

Define custom agent combinations:

/review --team security-critical

Uses pre-defined team from .claude/review-teams.json:

json
{
  "security-critical": [
    "han-core:code-reviewer",
    "security:security-engineer",
    "security:security-engineer", // redundant
    "infrastructure:devops-engineer"
  ]
}

Configuration

.claude/settings.json

json
{
  "review": {
    "confidenceThreshold": 80,
    "autoSelectAgents": true,
    "enableRedundancy": false,
    "includeHistory": false,
    "maxIssuesPerCategory": 10
  }
}

Project-specific standards

Review agents check these files for project standards:

  • CLAUDE.md - Project-specific guidelines
  • CONTRIBUTING.md - Contribution standards
  • .github/PULL_REQUEST_TEMPLATE.md - PR requirements

Best Practices

DO

  • ✅ Run /review before creating PR
  • ✅ Fix critical issues (≥90%) before requesting human review
  • ✅ Re-run /review after fixing issues
  • ✅ Trust agent consolidation (de-duplication)
  • ✅ Let agents run in parallel for speed

DON'T

  • ❌ Ignore critical findings
  • ❌ Report issues with <80% confidence
  • ❌ Run agents sequentially (use parallel)
  • ❌ Second-guess agent findings without evidence
  • ❌ Skip re-review after fixes

Troubleshooting

"No issues found" but code has problems

Likely causes:

  • Issues have <80% confidence (adjust threshold?)
  • Pre-existing issues (not in current diff)
  • Automated tools already catch them

Solutions:

  • Check linter/type checker output
  • Run with --confidence-threshold 70 to see filtered issues
  • Manually review automated tool results

Too many low-value findings

Likely causes:

  • Agents reporting medium-confidence issues
  • No project-specific standards documented

Solutions:

  • Verify confidence threshold is ≥80%
  • Document standards in CLAUDE.md
  • Use false positive filters

Agents disagree on same issue

Normal: Different perspectives are valuable

Resolution:

  • Higher confidence score wins
  • Security concerns override others
  • Consolidation chooses most specific finding

See Also

  • /feature-dev - Full feature development workflow (includes review)
  • /commit - Smart commit after review passes
  • han-core:code-reviewer - Core review skill documentation
  • security - Security agent details

Heefeg gestallte Froen

Wat mécht de KI-Skill Review?

Multi-agent code review with confidence-based filtering

Firwat Review op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Review besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Review an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/TheBushidoCollective/han/tree/main/plugins/core/skills/review an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Review benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Review benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Review domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Review gratis?

TheBushidoCollective huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇