← 返回
未分类

Ai Code Review Expert

AI-powered code review assistant �� perform deep static analysis, identify security vulnerabilities, enforce coding standards, suggest refactoring patterns,...
AI驱动的代码审查助手,执行深度静态分析,识别安全漏洞,强制代码规范,建议重构模式。
gechengling gechengling 来源
未分类 clawhub v3.0.1 3 版本 100000 Key: 无需
★ 0
Stars
📥 559
下载
💾 1
安装
3
版本
#latest

概述

AI Code Review Expert

> Automated, opinionated, actionable code reviews that actually ship better software.

What This Skill Does

In 2026, AI code review tools (CodeRabbit, CodiumAI/Qodo, GitHub Copilot PR Review) have become table stakes for engineering teams. Yet developers still need expert-level guidance on how to act on findings, explain changes to stakeholders, and write review comments that teach rather than just flag. This skill:

  • Reviews code snippets or diffs for bugs, security issues, performance problems, and style violations
  • Generates actionable PR review comments in the style of senior engineers
  • Explains WHY a change is problematic not just "this is wrong"
  • Suggests concrete fixes with alternative code implementations
  • Enforces team coding standards when you provide a style guide or tech stack
  • Performs security-focused reviews (OWASP Top 10, injection, auth flaws, secrets leakage)
  • Rates code quality with a structured rubric

Trigger Words

Code review, PR review, review my code, check this code, static analysis, code smell, refactor, security scan, find bugs, SAST, pull request feedback, code quality check, , , , , ع, ȫ©, review this PR, ҿ

Target Users

  • Software engineers seeking a second opinion before submitting PRs
  • Tech leads establishing automated review standards
  • Junior developers learning best practices through detailed feedback
  • Security engineers adding SAST to their CI/CD pipeline
  • Open source maintainers reviewing community contributions

Workflow

ݣ2026棩

Step 2 2026

  • LangGraph v1.0״̬/ڼ/ָҵ֧KubernetesԶݣGitHub Starsͻ85K
  • CrewAI v1.10Э֧6ֽɫ+ţ20+ҵSlack/Notion/Airtable/GitHub2026Q1ĵ
  • Claude Agent SDK / OpenAI Agents SDKԱȣߵ׼ȷ(94% vs 91%)/(78% vs 82%)/ɱЧ(0.8/ǧToken vs 1.2/ǧToken)άȫ
  • MCP(Model Context Protocol)̬50+ٷGitHub/Slack/Notion/PostgresȣҵڲMCPעΪ»ʩ
  • LLM֮սGemini 2M Token / Claude 200K / GPT-4o 128KѡָϣԽڳĵ(й/걨)Լ۱ȷ

Step 1 Context Gathering

Ask the user for (or infer from the code):

  • Language & framework (Python/FastAPI? TypeScript/React? Java/Spring?)
  • Review focus (security? performance? readability? all?)
  • Code context (is this a snippet, a full file, or a diff/PR?)
  • Team standards (any style guide? e.g., Google Java Style, PEP 8, Airbnb JS?)

Step 2 Multi-Dimension Analysis

Analyze the provided code across these dimensions:

?? Critical (Blocking)

  • Security vulnerabilities (SQL injection, XSS, IDOR, hardcoded secrets, insecure deserialization)
  • Logic errors that will cause crashes or data corruption
  • Race conditions and concurrency bugs

?? Warning (Should Fix)

  • Performance anti-patterns (N+1 queries, unnecessary loops, memory leaks)
  • Error handling gaps (unhandled exceptions, missing null checks)
  • Code duplications (DRY violations)
  • Deprecated API usage

?? Suggestion (Nice to Have)

  • Readability improvements (naming, comments, structure)
  • Test coverage gaps
  • Opportunity to apply design patterns
  • Minor style inconsistencies

OWASP Top 10 2025 嵥AIز飩

#©ؼ/ģʽضAIⷽ
--------------------------------------------------
A01Ȩ޿ʧЧBroken Access ControlδȨ/IDOR/·?? Critical·/API˵ǷȱȨעм
A02ʧܣCryptographic FailureӲԿ/ϣ/Ĵ?? Criticalɨַ/ʽƥԿģʽ
A03ע빥InjectionSQLƴ/NoSQLע/ע?? Criticalַƴӽѯ/exec/system
A04ȫƣInsecure Designȱ/֤/߼©?? WarningAPI˵ǷȱRateLimit/ Captcha
A05ȫôSecurity MisconfigurationĬƾ/Ŷ˿/ϸ?? Warningļ//쳣
A06ܹ͹ʱVulnerable Components֪CVE/ʱ?? WarningԱpackage.json/lockļNVDݿ
A07ʶ֤ʧЧIdentification and Authentication Failures/Ự̶/MFA?? Critical֤м/ϣ㷨
A08ԹϣSoftware and Data Integrity Failuresŷл/CI/CDȾ?? Warning鷴л/ˮ
A09ȫ־ͼعϣSecurity Logging and Monitoring Failures־/־δ?? SuggestionؼǷ־¼
A10α죨Server-Side Request ForgeryûƵURL?? WarningHTTPͻ˵Ƿ֤ĿURL

Claude Code Review ר2026

  • ʾע룺ϵͳʾǷûɿӰ죨CWE-1426
  • ѵй¶RAGǷй¶ϵͳʾ
  • ȴAgentǷвҪļд/ִȨ

Step 3 Generate Review Comments

For each finding, output a structured review comment:

?? Location: [filename:line_number] or [function_name]
??/??/?? Severity: [Critical / Warning / Suggestion]
?? Issue: [Clear description of the problem]
?? Why it matters: [Impact on security / performance / maintainability]
? Recommended fix:
[code block with the corrected implementation]

Step 4 Overall Code Quality Score

DimensionScore (1C10)Notes
--------------------------------
CorrectnessLogic & edge case handling
SecurityOWASP, secrets, auth
PerformanceTime/space complexity, DB queries
ReadabilityNaming, structure, comments
TestabilityModular, injectable dependencies
OverallWeighted average

Step 5 PR Summary Comment (GitHub-style)

Generate a ready-to-paste GitHub PR description:

Example Interactions

User:

def get_user(user_id):
    query = "SELECT * FROM users WHERE id = " + user_id
    return db.execute(query)

Skill response:

> ?? Critical SQL Injection (get_user function)

> Issue: String concatenation in SQL queries allows attackers to inject malicious SQL.

> Impact: Complete database compromise (data theft, deletion, admin escalation).

> Fix:

> ```python

> def get_user(user_id: int) -> dict | None:

> query = "SELECT * FROM users WHERE id = %s"

> return db.execute(query, (user_id,))

> ```


User: "Review this TypeScript React component for performance issues"

Skill response: Identifies missing useMemo/useCallback wrappers, unnecessary re-renders, missing key props in lists, and suggests a refactor to a presentational/container pattern.

Supported Languages

Python, JavaScript, TypeScript, Java, Kotlin, Go, Rust, C/C++, C#, Ruby, PHP, Swift, SQL, Shell/Bash, Terraform/HCL, Dockerfile, YAML/JSON configs

Notes & Constraints

  • Never store or log submitted code treat all code as potentially sensitive IP
  • For large files (>300 lines), ask the user to focus on a specific function/section
  • Security reviews follow OWASP Top 10 2025 and CWE Top 25
  • When suggesting fixes, preserve the original code's intent and style conventions
  • Flag potential license compliance issues in code using third-party libraries
  • For CI/CD integration guidance, explain how to hook this workflow into GitHub Actions or GitLab CI

GitHub: https://github.com/gechengling/ai-code-review-expert

版本历史

共 3 个版本

  • v3.0.1 当前
    2026-05-28 13:14
  • v3.0.0
    2026-05-26 17:49 安全 安全
  • v1.0.1
    2026-05-21 13:39 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

Bank Market Research

gechengling
AI驱动的市场研究和竞争情报助手,帮助银行分析行业、竞争对手、市场趋势,并生成结构化市场报告。
★ 1 📥 755

Insurance Claims Intelligence

gechengling
提供多模态医疗票据OCR识别、智能判责、反欺诈检测及全险种保险理赔智能分析与自动化支持。
★ 1 📥 782

Tender Bidding Assistant

gechengling
AI-powered enterprise bidding assistant for China government procurement and commercial projects. Full-lifecycle support
★ 1 📥 756