Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Code Review Plugin for Claude Code

License: MITAgentsCommandSkillsPlatformGitHubBitbucket

完整 code review 生態系統,以 Claude Code plugin 形式發布。提供 27 個 agent(含語言/框架專項 reviewer + Code Graph Analyzer)、單一 /code-review command(自動偵測語言/框架並 dispatch 對應 agent)、以及 3 個安全 review skill。


✨ 亮點

🤖 27 個 AgentTypeScript · Python · Go · Rust · Java · Kotlin · Swift · C++ · C# · F# · Django · FastAPI · Flutter · DB · Healthcare · ML + Code Graph Analyzer + Verification + PR Walkthrough
🧭 單一 /code-review,自動 dispatch一個 command 搞定全部。依變更檔案副檔名自動偵測語言/框架(.py→python-reviewer、.go→go-reviewer、Django/FastAPI/Flutter 以內容輔助),自動加對應專項 agent — 不用再記每個語言的 command
Code Graph + 八 Agent 並行PR 模式先執行 code-graph-analyzer(import deps + co-change risk),結果快取至 .claude/code-graph/;再並行啟動 8 通用 agent + 自動 dispatch 的語言 agent;HIGH/CRITICAL finding 由 verification-reviewer 二次確認
🔗 雙平台 PR Review自動偵測 GitHub(gh CLI)或 Bitbucket Cloud(REST API v2.0)
🔒 多層安全掃描OWASP Top 10 · PHI/HIPAA · Claude Code 設定掃描
🎯 高信心原則只報告 >80% 確信的問題,零 finding = APPROVE,不製造雜訊

🚀 30 秒快速開始

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

立即使用:

# 審查目前 uncommitted 變更
/code-review
# 審查 GitHub PR
/code-review 123
/code-review https://github.com/owner/repo/pull/123
# 審查 Bitbucket PR
/code-review https://bitbucket.org/workspace/repo/pull-requests/123
# 只跑特定面向(PR 模式)
/code-review 123 --focus tests

架構總覽

code-review plugin
├── Command(單一統一入口)
│ └── /code-review 本地 diff 或 GitHub/Bitbucket PR;自動偵測語言/框架並 dispatch
│ ├── 本地模式 完整並行 stack + 自動語言 dispatch,輸出終端機不發佈(blank / --from=<commit>)
│ ├── PR 模式 code-graph 前置 + 八通用 agent + 自動 dispatch 語言 agent 並行 + verification
│ ├── --focus comments | tests | errors | types | code | simplify
│ └── --profile chill(只 CRITICAL/HIGH)| assertive(預設,全等級)
│
├── Agents(27 個 agent)
│ ├── 通用主審
│ │ ├── code-reviewer 主審,含 false positive 過濾
│ │ ├── security-reviewer OWASP Top 10,遇 CRITICAL 警報
│ │ └── verification-reviewer HIGH/CRITICAL 二次確認(PR 模式 Phase 3.5)
│ ├── 前置分析
│ │ └── code-graph-analyzer import deps + co-change risk,快取於 .claude/code-graph/
│ ├── PR 模式並行協作
│ │ ├── comment-analyzer 行內 comment 品質
│ │ ├── pr-test-analyzer 測試覆蓋
│ │ ├── silent-failure-hunter swallowed error 偵測
│ │ ├── type-design-analyzer 型別設計
│ │ ├── code-simplifier 過度複雜實作
│ │ └── pr-walkthrough-writer Walkthrough + Mermaid diagram
│ └── 語言 / 框架專項(17 個,由 /code-review 依副檔名自動 dispatch)
│ TypeScript · Python · Go · Rust · C++ · C# · Java
│ Kotlin · Swift · F# · Django · FastAPI · Flutter
│ Database · Network · Healthcare · MLE
│
└── Skills(3 個,自動觸發)
├── security-review 實作 auth / 處理 user input 時觸發
├── security-scan 掃描 .claude/ 設定安全漏洞
└── flutter-dart-code-review Review Flutter / Dart 時觸發

安裝

Plugin 安裝(推薦)

在 Claude Code 中執行:

/plugin

搜尋 jurislm/code-review,點擊安裝,再執行 /reload-plugins 套用。

安裝後可直接使用所有 slash commands 與 agents,無需額外設定。

手動安裝

git clone https://github.com/jurislm/code-review.git
cp commands/*.md ~/.claude/commands/
cp agents/*.md ~/.claude/agents/
cp -r skills/*~/.claude/skills/

使用教學

1. 本地變更 Review

對目前 uncommitted 的變更進行 review:

/code-review

本地模式跑與 PR 模式相同的完整 pipeline(code-graph 前置 → 八通用 agent + 自動 dispatch 語言 agent 並行 → verification),只是結果輸出到終端機、不發佈。傳 --from=<commit> 可只審查自該 commit 以來的變更。

2. PR Review

支援 GitHubBitbucket Cloud,自動依 URL 或 git remote 偵測平台。

平台前置條件指令範例
GitHub安裝 gh CLI/code-review 123
Bitbucket Cloud設定 BB_USERNAME + BB_APP_PASSWORD(見下方)/code-review https://bitbucket.org/ws/repo/pull-requests/123

決策邏輯:

結果條件
BLOCK任一 CRITICAL finding
REQUEST CHANGES任一 HIGH finding 或 validation 失敗
APPROVE with comments僅 MEDIUM / LOW finding
APPROVE零 finding

Bitbucket 設定

~/.zshenv 加入(必須是 App Password,非普通密碼):

export BB_USERNAME="your-bitbucket-username"export BB_APP_PASSWORD="your-app-password"

App Password 建立:Bitbucket → Settings → Personal settings → App passwords

需勾選以下權限:

  • Repositories: Read
  • Pull requests: Read + Write(comment / approve / request-changes 必須)

3. 多 Agent 並行 PR Review

傳入 PR 號/URL 即進入 PR 模式:自動啟動 8 個通用 agent + 依變更檔案自動 dispatch 的語言/框架 agent,confidence < 80% 的 finding 自動過濾。可用 --focus 只跑特定面向:

/code-review 123
/code-review 123 --focus comments
/code-review 123 --focus tests
/code-review 123 --focus errors
/code-review 123 --focus types
/code-review 123 --focus code
/code-review 123 --focus simplify

4. 語言 / 框架自動 Dispatch

不需要記每個語言的 command/code-review 會依變更檔案副檔名自動加上對應的專項 reviewer:

變更檔案自動加入的 agent
.ts / .tsx / .js / .vue / .sveltetypescript-reviewer
.pypython-reviewer(含 from django → +django-reviewerfrom fastapi → +fastapi-reviewer
.go · .rs · .kt · .swift · .java · .cs · .cpp/.c/.h · .fs對應語言 reviewer
.dart(+ pubspec.yamlflutter-reviewer
.sql / migration 目錄database-reviewer

偵測到才加,零匹配不浪費。network-config / healthcare / mle 為內容導向,依上下文相關性加入。

5. 直接呼叫 Agent

在對話中描述任務,Claude 會自動選用對應 agent:

@code-reviewer 請審查這段 auth middleware
@security-reviewer 這個 API endpoint 有安全問題嗎?
@typescript-reviewer 這個 generic type 設計合理嗎?
@database-reviewer 這個 migration 安全嗎?

Slash Command

單一統一入口,依參數自動切換模式:

用法行為
/code-review本地 uncommitted 變更(完整並行 stack + 自動語言 dispatch,輸出到終端機不發佈)
/code-review --from=<commit>增量本地 review(只看自 <commit> 以來的變更)
/code-review <PR 號 | URL>PR 模式:八通用 agent + 自動 dispatch 語言 agent 並行 + verification(GitHub / Bitbucket 自動偵測)
/code-review <PR> --focus <面向>只跑 comments / tests / errors / types / code / simplify
/code-review … --profile=chill只輸出 CRITICAL / HIGH(預設 assertive 顯示全等級)

Agents

通用主審

AgentColor說明
code-reviewer🟢 green主審,含嚴格 false positive 過濾,React / Node.js 專項規則
security-reviewer🔴 redOWASP Top 10 掃描,遇 CRITICAL 發緊急警報
verification-reviewer🟡 yellowHIGH/CRITICAL finding 二次確認(三道關卡);由 /code-review PR 模式 Phase 3.5 自動調用

前置分析

AgentColor說明
code-graph-analyzer🔵 cyanL2 import dependency + L3 co-change risk;並行 agents 前執行;快取於 .claude/code-graph/

/code-review PR 模式並行協作 Agents

AgentColor說明
comment-analyzer🔵 cyan行內 comment 品質審查
pr-test-analyzer🔵 cyan測試覆蓋分析
silent-failure-hunter🔵 cyan偵測 swallowed error、ignored promise
type-design-analyzer🔵 cyan型別設計審查
code-simplifier🔵 cyan找過度複雜的實作
pr-walkthrough-writer🔵 blue生成結構化 PR walkthrough 與 Mermaid sequence diagram

語言 / 框架專項

AgentColor適用
typescript-reviewer🔵 blueTypeScript / JavaScript
python-reviewer🔵 bluePython
go-reviewer🔵 blueGo
rust-reviewer🔵 blueRust
cpp-reviewer🔵 blueC++
csharp-reviewer🔵 blueC#
java-reviewer🔵 blueJava
kotlin-reviewer🔵 blueKotlin
swift-reviewer🔵 blueSwift
fsharp-reviewer🔵 blueF#
django-reviewer🟡 yellowDjango
fastapi-reviewer🟡 yellowFastAPI
flutter-reviewer🟡 yellowFlutter / Dart
database-reviewer🟡 yellowDB query、migration
network-config-reviewer🟡 yellow網路設備設定
healthcare-reviewer🟣 magentaPHI / HIPAA 合規(Opus 模型)
mle-reviewer🟣 magentaML pipeline(Sonnet 模型)

Skills

Skills 會根據任務上下文自動啟動,無需手動呼叫。

Skill自動觸發時機
security-review實作 auth、處理 user input、建立 API endpoint、存取 secrets
security-scan掃描 Claude Code 設定(.claude/)的安全漏洞
flutter-dart-code-reviewReview Flutter / Dart 程式碼

設計原則

  1. 高信心原則 — 只報告 >80% 確信的問題,不製造雜訊
  2. 讀全文 — PR review 讀每個檔案全文,不只 diff 行
  3. 零 finding 合法 — clean code → APPROVE,不強行挑毛病
  4. HIGH/CRITICAL 三要素 — 精確行號 + 具體失敗場景 + 現有 guard 為何不夠
  5. False positive 過濾 — 明確排除 LLM reviewer 常見誤判(magic number、fire-and-forget、test fixture 等)
  6. Verification gate/code-review PR 模式 Phase 3.5 由 verification-reviewer 對所有 HIGH/CRITICAL finding 執行三道關卡二次確認;CONFIRMED finding 及 UNCERTAIN(降為 MEDIUM)的 finding 均進入最終報告;若本 PR diff 已修復問題,以「FIXED IN THIS PR」verdict 移除(不受 CRITICAL 保護限制);CRITICAL finding 不可被完全移除,最多降為 HIGH
  7. NITPICK 分層 — 純風格偏好歸類為 NITPICK;--profile=chill 時略過 MEDIUM/LOW/NITPICK,--profile=assertive(預設)時顯示所有等級

目錄結構

code-review/
├── .claude-plugin/
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace 發布設定
├── agents/ # 27 個 agent
├── commands/ # 1 個統一 slash command(code-review.md)
└── skills/ # 3 個 review skills
├── security-review/
├── security-scan/
└── flutter-dart-code-review/

License

MIT © Terry Chen

About

24-agent code review ecosystem for Claude Code — language-specific reviewers, 6-agent parallel PR review, and security scanning

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors