code-review-expert

Run parallel 5-agent code reviews with Context7 verification and Markdown reports.

36.4k|7.5k|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/Wei-Shaw/sub2api --skill code-review-expert-wei-shaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review-expert
Source: https://github.com/Wei-Shaw/sub2api/tree/main/skills/code-review-expert
Command: npx skills add https://github.com/Wei-Shaw/sub2api --skill code-review-expert-wei-shaw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

通用代码审核专家 — 基于 git worktree 隔离的多 Agent 并行代码审核系统,集成 Context7 MCP 三重验证对抗代码幻觉。 语言无关,适用于任意技术栈(Go, Python, JS/TS, Rust, Java, C# 等)。 Use when: (1) 用户要求代码审核、code review、安全审计、性能审查, (2) 用户说"审核代码"、"review"、"检查代码质量"、"安全检查", (3) 用户要求对 PR、分支、目录或文件做全面质量检查, (4) 用户提到"代码审核专家"或"/code-review-expert"。 五大审核维度:安全合规、架构设计、性能资源、可靠性数据完整性、代码质量可观测性。 自动创建 5 个 git worktree 隔离环境,派发 5 个专项子 Agent 并行审核, 通过 Context7 MCP 拉取最新官方文档验证 API 用法,消除 LLM 幻觉, 汇总后生成结构化 Markdown 审核报告,最终自动清理所有 worktree。

Core Features & Use Cases

  • 高级并行审核:5 个子 Agent 同时对不同维度进行独立评估
  • Context7 验证:引入官方文档对照以避免幻觉
  • 完整报告:生成结构化 Markdown 审核报告并清理工作树
  • 语言无关:支持任意技术栈的代码库审查
  • 自动化清理:审核后确保完全清理产物

Quick Start

Submit a repository or PR to initiate the 5-agent code review workflow and generate the audit report.

Frequently Asked Questions about code-review-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate code review for a pull request across multiple dimensions?

You can automate code review by submitting a pull request to trigger 5 parallel agents that evaluate security, architecture, performance, reliability, and quality simultaneously. The system uses git worktree isolation and Context7 documentation checks to produce a structured Markdown report.

Can I run a security audit and architecture review on a repository written in any programming language?

Yes, the code review system is language-agnostic and applies to any tech stack including Go, Python, JS/TS, Rust, Java, and C#. It dispatches specialized agents to independently audit security compliance and architecture design, validating API usage against official documentation to eliminate hallucinations.

What is the best way to perform static analysis on an entire branch without hallucinated API references?

The best way to perform reliable static analysis is using Context7 MCP integration, which pulls the latest official documentation to verify API usage during the review. This anti-hallucination mechanism operates across 5 parallel agents analyzing branches in isolated git worktrees.

Does the multi-agent code review process automatically clean up git worktrees after generating the report?

Yes, the multi-agent code review process automatically creates isolated git worktrees for parallel analysis and completely cleans up all generated artifacts after producing the final structured Markdown audit report. This ensures no residual files remain in your repository.

How does Context7 MCP prevent LLM hallucinations during code quality checks?

Context7 MCP prevents LLM hallucinations by fetching and cross-referencing the latest official documentation to verify API usage and framework patterns during the code review. This triple-verification mechanism ensures the 5 agents produce reliable and accurate audit outputs.

Why use parallel agents for code review instead of a single-pass analysis?

Using 5 parallel agents enables independent, deterministic phase-based analysis across security, architecture, performance, reliability, and quality dimensions without cross-interference. This isolated approach provides a comprehensive Markdown report that covers more vulnerabilities and design flaws than single-pass analysis.