Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计未展示

code-reviewer代码审查员

Agent Skill

code-reviewer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

759

周安装

31

GitHub Stars

公开资料未说明

下载量

246
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code-reviewer(代码审查员)
来源仓库:https://github.com/rickydwilson-dcs/claude-skills
仓库路径:skills/code-reviewer
安装命令:
npx skills add rickydwilson-dcs/claude-skills --skill "code-reviewer"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add rickydwilson-dcs/claude-skills --skill "code-reviewer"

简介

code-reviewer 用于查找、检索和筛选相关信息,支持代码审查流程。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中根据任务线索定位待审代码。
  • 通过 npx 命令从 rickydwilson-dcs/claude-skills 仓库安装并使用该技能。
  • 安装前需确认仓库路径正确性及是否涉及敏感文件操作或外部 API 调用。
  • 建议结合项目实际情况阅读原始文档以规避误用风险。

SKILL.md

name
code-reviewer
title
Code Reviewer Skill Package
description
Comprehensive code review skill for TypeScript, JavaScript, Python, Swift, Kotlin, Go. Includes automated code analysis, best practice checking, security scanning, and review checklist generation. Use when reviewing pull requests, providing code feedback, identifying issues, or ensuring code quality standards.
domain
engineering
subdomain
engineering-general
difficulty
intermediate
time-saved
TODO: Quantify time savings
frequency
TODO: Estimate usage frequency
use-cases
related-agents
[]
related-skills
[]
related-commands
[]
orchestrated-by
[]
dependencies
scripts
[]
references
[]
assets
[]
compatibility
python-version
3.8+
platforms
[macos, linux, windows]
tech-stack
[Python 3.8+, Markdown]
examples
title
Example Usage
input
TODO: Add example input for code-reviewer
output
TODO: Add expected output
stats
downloads
0
stars
0
rating
0.0
reviews
0
version
v1.0.0
author
Claude Skills Team
contributors
[]
created
2025-10-19
updated
2025-11-23
license
MIT
tags
[analysis, code, engineering, reviewer, security]
featured
false
verified
true

Code Reviewer

Expert code review skill with automated analysis tools for modern programming languages. Provides comprehensive review checklists, coding standards enforcement, and anti-pattern detection across TypeScript, JavaScript, Python, Swift, Kotlin, and Go.

Overview

This skill delivers production-ready code review capabilities through three Python automation tools and extensive reference documentation. Whether conducting pull request reviews, enforcing coding standards, or identifying common anti-patterns, this skill ensures consistent, high-quality code across your team.

Use this skill when:

  • Reviewing pull requests for quality and security
  • Enforcing language-specific coding standards
  • Identifying common anti-patterns and code smells
  • Generating comprehensive review reports
  • Training team members on best practices

Quick Start

Analyze a Pull Request

# Basic PR analysis
python scripts/pr_analyzer.py 123 --repo=company/project

# Full quality check on codebase
python scripts/code_quality_checker.py ./src --language=typescript

# Generate comprehensive review report
python scripts/review_report_generator.py 123 --format=markdown

Access Documentation

  • Review Checklist: references/code_review_checklist.md
  • Coding Standards: references/coding_standards.md
  • Anti-Patterns Guide: references/common_antipatterns.md

Core Capabilities

  • Automated Pull Request Analysis - Comprehensive PR analysis with metrics, complexity scores, and review priority recommendations
  • Multi-Language Code Quality Checking - Support for TypeScript, JavaScript, Python, Swift, Kotlin, and Go with SOLID principles validation
  • Security Vulnerability Detection - Identify SQL injection, XSS, authentication issues, and other security concerns
  • Best Practice Enforcement - Language-specific coding standards, naming conventions, and patterns
  • Anti-Pattern Detection - Catalog of common anti-patterns across languages, databases, and testing
  • Automated Review Report Generation - Detailed, actionable reports with categorized findings and feedback suggestions

Python Tools

1. PR Analyzer

Automated pull request analysis with comprehensive metrics and insights.

Features:

  • Code diff analysis and impact assessment
  • Complexity metrics calculation
  • Test coverage evaluation
  • Security vulnerability detection
  • Breaking change identification
  • Review priority recommendations

Usage:

python scripts/pr_analyzer.py <pr-number> [--repo=owner/name]
python scripts/pr_analyzer.py 123 --repo=company/project --json

Output:

PR Analysis Report (#123):
- Files Changed: 12 files
- Lines Changed: +245 / -87
- Complexity Score: Medium (6/10)
- Test Coverage Impact: +3%
- Security Concerns: 1 medium issue
- Review Priority: High
- Estimated Review Time: 45 minutes

Recommendations:
1. Review authentication changes carefully (security-critical)
2. Verify test coverage for new UserService methods
3. Consider breaking into smaller PRs (>300 lines)

2. Code Quality Checker

Comprehensive code analysis across multiple languages with actionable recommendations.

Features:

  • Multi-language support (TS/JS/Python/Swift/Kotlin/Go)
  • SOLID principles validation
  • Code smell detection
  • Performance issue identification
  • Documentation quality assessment
  • Configurable rulesets

Usage:

python scripts/code_quality_checker.py <path> [--language=typescript]
python scripts/code_quality_checker.py ./src --verbose --json

Checks:

  • Cyclomatic complexity
  • Function/method length
  • Code duplication
  • Naming conventions
  • Error handling patterns
  • Test coverage

3. Review Report Generator

Generate detailed, actionable review reports with categorized findings.

Features:

  • Multi-level issue categorization (blocking/major/minor)
  • Language-specific best practice checks
  • Security vulnerability assessment
  • Performance concern flagging
  • Markdown/JSON output formats
  • Automated feedback suggestions

Usage:

python scripts/review_report_generator.py <pr-number> [options]
python scripts/review_report_generator.py 123 --format=markdown

Reference Documentation

Detailed guides available in the references/ directory:

Code Review Checklist

code_review_checklist.md - Comprehensive review guide covering:

  • Pre-review preparation and context gathering
  • Code quality assessment (functionality, readability, maintainability)
  • Language-specific checklists (TypeScript/JavaScript, Python, Swift, Kotlin, Go)
  • Testing requirements and best practices
  • Security review checklist (injection, auth, data protection)
  • Architecture and scalability considerations
  • Documentation standards
  • Git workflow and commit quality
  • Performance optimization checks
  • Feedback guidelines and review priorities

Coding Standards

coding_standards.md - Language-specific standards including:

  • Naming conventions across all supported languages
  • TypeScript/JavaScript best practices and modern patterns
  • React-specific standards (hooks, components, performance)
  • Python PEP 8 compliance and Pythonic patterns
  • Swift optionals handling and protocol-oriented design
  • Kotlin null safety and data classes
  • Go error handling and interfaces
  • Code formatting and file organization
  • Documentation standards (JSDoc, docstrings)
  • Linting and formatting tool recommendations

Common Anti-Patterns

common_antipatterns.md - Catalog of anti-patterns to avoid:

  • General anti-patterns (God objects, magic numbers, deep nesting, premature optimization)
  • TypeScript/JavaScript issues (callback hell, 'any' type abuse, React prop mutations)
  • Python problems (mutable defaults, bare except, context manager neglect)
  • Swift pitfalls (force unwrapping, retain cycles, IUO overuse)
  • Kotlin concerns (null assertion abuse, data class neglect)
  • Go mistakes (error ignoring, defer neglect, goroutine leaks)
  • Database anti-patterns (N+1 queries, missing indexes, SELECT *)
  • Security vulnerabilities (SQL injection, plaintext passwords, secret exposure)
  • Performance issues (unnecessary re-renders, bulk loading)
  • Testing anti-patterns (implementation testing, test interdependence)

Key Workflows

Workflow 1: Pull Request Review

# 1. Analyze the PR
python scripts/pr_analyzer.py 123 --repo=company/project

# 2. Review changed files with quality checker
python scripts/code_quality_checker.py ./src --language=typescript

# 3. Generate comprehensive review report
python scripts/review_report_generator.py 123 --format=markdown

# 4. Review output and provide feedback using checklist
# Reference: references/code_review_checklist.md

Workflow 2: Codebase Quality Audit

# 1. Run quality checker on entire codebase
python scripts/code_quality_checker.py ./ --verbose

# 2. Identify anti-patterns
grep -r "any" src/**/*.ts  # TypeScript: avoid 'any'
grep -r "except:" src/**/*.py  # Python: check bare excepts

# 3. Generate comprehensive report
python scripts/code_quality_checker.py ./ --json > quality-report.json

# 4. Prioritize fixes
# Review report and tackle blocking/major issues first

Workflow 3: Team Standards Enforcement

# 1. Configure linters based on standards
# ESLint for TypeScript/JavaScript
# pylint/flake8 for Python
# SwiftLint for Swift
# Reference: references/coding_standards.md

# 2. Setup pre-commit hooks
cat > .git/hooks/pre-commit << 'EOF'
#!/bin/bash
python scripts/code_quality_checker.py $(git diff --cached --name-only)
EOF
chmod +x .git/hooks/pre-commit

# 3. Add CI/CD quality gates
# GitHub Actions example:
# - name: Code Quality Check
#   run: python scripts/code_quality_checker.py ./src

Language Support

TypeScript/JavaScript

  • Type safety validation
  • React patterns and hooks
  • Async/await best practices
  • Modern ES6+ features
  • ESLint/Prettier integration

Python

  • PEP 8 compliance
  • Type hints validation
  • Pythonic patterns
  • Context managers
  • Import organization

Swift

  • Optional safety
  • Protocol-oriented design
  • Memory management
  • SwiftLint integration

Kotlin

  • Null safety
  • Data classes
  • Coroutines
  • Extension functions

Go

  • Error handling
  • Goroutine management
  • Interface design
  • Idiomatic Go

Best Practices Summary

Review Priorities

  1. Security - SQL injection, XSS, authentication issues
  2. Correctness - Logic errors, edge case handling
  3. Performance - N+1 queries, memory leaks, inefficient algorithms
  4. Maintainability - Code clarity, documentation, test coverage
  5. Style - Formatting, naming conventions (automated preferred)

Common Red Flags

  • Functions >50 lines
  • Cyclomatic complexity >10
  • Test coverage <70%
  • No error handling
  • Hardcoded secrets
  • Commented-out code
  • Missing documentation

Effective Feedback

DO:

  • Be constructive and specific
  • Explain the "why" behind suggestions
  • Acknowledge good practices
  • Suggest alternatives
  • Use questions to guide learning

DON'T:

  • Focus on personal preferences
  • Be vague or unclear
  • Nitpick trivial issues
  • Assume bad intentions
  • Skip positive feedback

Integration

CI/CD Pipeline

# .github/workflows/code-review.yml
name: Code Review
on: [pull_request]

jobs:
  quality-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
      - name: Run Quality Checker
        run: python scripts/code_quality_checker.py ./src
      - name: Generate Report
        run: python scripts/review_report_generator.py ${{ github.event.pull_request.number }}

Pre-commit Hooks

# Install pre-commit framework
pip install pre-commit

# Add .pre-commit-config.yaml
hooks:
  - repo: local
    hooks:
      - id: code-quality
        name: Code Quality Check
        entry: python scripts/code_quality_checker.py
        language: system

Additional Resources

Getting Help

  1. Review guidelines: See code_review_checklist.md
  2. Language standards: Consult coding_standards.md
  3. Pattern recognition: Review common_antipatterns.md
  4. Tool usage: Run any script with --help flag

Version: 1.0.0 Last Updated: 2025-11-08 Documentation Structure: Progressive disclosure with references/

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

31.07%
按下载量换算76

OpenCode

22.25%
按下载量换算55

windsurf

17.58%
按下载量换算43

Antigravity

13.23%
按下载量换算33

Codex

8.18%
按下载量换算20

Gemini CLI

4.04%
按下载量换算10

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills