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

requesting-code-review代码审查请求

Agent Skill

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

总安装

11,330

周安装

451

GitHub Stars

公开资料未说明

下载量

5,130
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add chunkytortoise/enterprisehub --skill "requesting-code-review"

简介

用于生成标准化的代码审查请求内容。requesting-code-review 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合描述变更意图、影响范围及自测情况。
  • 使用时需关联具体 PR 并列出重点检查项。
  • 禁止伪造 reviewer 信息或隐瞒已知问题。
  • 输出模板应适配主流平台(如 GitHub、GitLab)格式。

SKILL.md

name
Requesting Code Review
description
This skill should be used when the user asks to "request code review", "prepare for PR review", "code review checklist", "pre-review validation", "review preparation", or needs guidance on preparing code for peer review.
version
1.0.0

Requesting Code Review: Pre-Review Preparation

Overview

Requesting Code Review ensures that code is thoroughly prepared before peer review, maximizing reviewer efficiency and code quality. This systematic approach reduces review cycles and helps catch issues early.

Pre-Review Checklist

Self-Review Phase

Code Quality Validation:

  • [ ] Code follows project style guidelines
  • [ ] No debugging code (console.log, print statements) left in
  • [ ] No commented-out code blocks
  • [ ] All TODO comments are addressed or documented
  • [ ] Variable and function names are descriptive
  • [ ] Complex logic has explanatory comments

Functionality Verification:

  • [ ] All acceptance criteria are met
  • [ ] Edge cases are handled
  • [ ] Error conditions are managed appropriately
  • [ ] Feature works as expected in all environments
  • [ ] No breaking changes to existing functionality

Testing Completeness:

  • [ ] Unit tests written for new functionality
  • [ ] Integration tests added where appropriate
  • [ ] Test coverage meets project standards (≥80%)
  • [ ] All tests pass locally
  • [ ] No test skipping or ignoring without justification

Documentation Requirements

Code Documentation:

  • [ ] Public functions have JSDoc/docstrings
  • [ ] Complex algorithms are explained
  • [ ] API endpoints are documented
  • [ ] Configuration changes are noted
  • [ ] Breaking changes are highlighted

Pull Request Documentation:

  • [ ] Clear, descriptive PR title
  • [ ] Comprehensive description explaining changes
  • [ ] Screenshots/videos for UI changes
  • [ ] Links to related issues/tickets
  • [ ] Migration instructions if applicable

Technical Validation

Performance Considerations:

  • [ ] No obvious performance regressions
  • [ ] Database queries are optimized
  • [ ] Large files/datasets handled efficiently
  • [ ] Memory usage is reasonable
  • [ ] API response times are acceptable

Security Review:

  • [ ] Input validation implemented
  • [ ] Authentication/authorization checked
  • [ ] No sensitive data in logs or commits
  • [ ] Dependencies are up to date
  • [ ] No hardcoded secrets or credentials

Pull Request Preparation

Branch Management

# Ensure branch is up to date
git checkout main
git pull origin main

# Rebase feature branch
git checkout feature/my-feature
git rebase main

# Clean up commit history
git log --oneline -10  # Review commits
git rebase -i HEAD~3   # Interactive rebase if needed

Commit Message Quality

Good Commit Messages:

feat: add user authentication with JWT tokens

- Implement login/logout endpoints
- Add password hashing with bcrypt
- Include refresh token rotation
- Update user model with auth fields

Closes #123

Bad Commit Messages:

fix bug
updated stuff
WIP
asdf

PR Description Template

## Summary
Brief description of what this PR accomplishes.

## Changes
- [ ] New feature X
- [ ] Bug fix for Y
- [ ] Refactor Z component
- [ ] Update documentation

## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests pass
- [ ] Manual testing completed
- [ ] Performance impact assessed

## Screenshots/Videos
(Include for UI changes)

## Breaking Changes
- None / List any breaking changes

## Deployment Notes
- Any special deployment instructions
- Environment variable changes
- Database migrations required

## Checklist
- [ ] Code follows style guidelines
- [ ] Self-review completed
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changes (or documented)

Code Review Request Process

1. Pre-Request Validation

Run automated checks before requesting review:

#!/bin/bash
# scripts/pre-review-check.sh

echo "🔍 Running pre-review validation..."

# Style and formatting
npm run format
npm run lint

# Type checking
npm run type-check

# Tests
npm run test

# Build verification
npm run build

# Security scan
npm audit

echo "✅ Pre-review checks complete!"

2. Reviewer Selection

Choose appropriate reviewers based on:

  • Domain expertise: Familiar with the code area
  • Availability: Can review within reasonable timeframe
  • Team distribution: Spread knowledge across team
  • Code ownership: Maintain code quality standards

Typical reviewer matrix:

  • Senior developer: Architecture and design review
  • Domain expert: Business logic validation
  • Security expert: Security-sensitive changes
  • Tech lead: Major architectural changes

3. Review Request Context

Provide context in the PR:

  • Why this change is needed
  • What alternatives were considered
  • Any trade-offs made
  • Areas needing special attention
  • Timeline expectations

Review-Ready Indicators

Green Flags (Ready for Review)

  • ✅ All automated checks pass
  • ✅ Feature is complete and tested
  • ✅ Documentation is updated
  • ✅ PR description is comprehensive
  • ✅ Self-review completed
  • ✅ No known issues remaining

Red Flags (Not Ready)

  • ❌ Automated checks failing
  • ❌ WIP or incomplete features
  • ❌ Missing or inadequate tests
  • ❌ No description or context
  • ❌ Known bugs or issues
  • ❌ Performance concerns unaddressed

Common Review Feedback Categories

Code Quality Issues

Naming and Clarity:

// ❌ Poor naming
function calc(u, p) {
    return u * p * 1.08;
}

// ✅ Clear naming
function calculateTotalWithTax(unitPrice, quantity) {
    const TAX_RATE = 0.08;
    return unitPrice * quantity * (1 + TAX_RATE);
}

Error Handling:

# ❌ Poor error handling
def process_user_data(data):
    return data["user"]["email"].lower()

# ✅ Proper error handling
def process_user_data(data):
    try:
        user = data.get("user")
        if not user:
            raise ValueError("User data is required")

        email = user.get("email")
        if not email:
            raise ValueError("User email is required")

        return email.lower()
    except (KeyError, TypeError, AttributeError) as e:
        raise ValueError(f"Invalid user data format: {e}")

Architecture and Design

Single Responsibility Principle:

# ❌ Too many responsibilities
class UserManager:
    def create_user(self, data):
        # Validate data
        # Hash password
        # Send email
        # Log activity
        # Update analytics
        pass

# ✅ Separated concerns
class UserCreator:
    def __init__(self, validator, hasher, emailer, logger, analytics):
        self.validator = validator
        self.hasher = hasher
        self.emailer = emailer
        self.logger = logger
        self.analytics = analytics

    def create_user(self, data):
        validated_data = self.validator.validate(data)
        user = self._create_user_record(validated_data)
        self.emailer.send_welcome_email(user)
        self.logger.log_user_creation(user)
        self.analytics.track_user_signup(user)
        return user

Testing and Coverage

Test Quality:

// ❌ Poor test
test('user test', () => {
    const result = something();
    expect(result).toBeTruthy();
});

// ✅ Good test
describe('UserService.createUser', () => {
    it('should create user with valid data and return user object', async () => {
        // Arrange
        const userData = {
            email: ' [email protected] ',
            password: 'SecurePass123!',
            name: 'Test User'
        };

        // Act
        const result = await userService.createUser(userData);

        // Assert
        expect(result).toMatchObject({
            id: expect.any(String),
            email: ' [email protected] ',
            name: 'Test User'
        });
        expect(result.password).toBeUndefined();
    });
});

Advanced Review Techniques

Checklist-Driven Reviews

Create specific checklists for different types of changes:

API Changes Checklist:

  • [ ] Backwards compatibility maintained
  • [ ] Input validation implemented
  • [ ] Error responses standardized
  • [ ] Rate limiting considered
  • [ ] Documentation updated
  • [ ] Versioning strategy followed

Database Changes Checklist:

  • [ ] Migration is reversible
  • [ ] Performance impact assessed
  • [ ] Indexes added where needed
  • [ ] Data integrity constraints
  • [ ] Backup strategy considered

Security Changes Checklist:

  • [ ] Authentication requirements met
  • [ ] Authorization checks implemented
  • [ ] Input sanitization applied
  • [ ] Audit logging included
  • [ ] Security headers configured

Automated Review Tools

Setup GitHub Actions for automated review:

name: Automated Review

on: [pull_request]

jobs:
  automated-review:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Run ESLint
      run: npx eslint src/ --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif

    - name: Upload ESLint results
      uses: github/codeql-action/upload-sarif@v2
      with:
        sarif_file: eslint-results.sarif

    - name: Run security scan
      uses: securecodewarrior/github-action-add-sarif@v1
      with:
        sarif-file: security-scan-results.sarif

Review Etiquette and Communication

Requesting Reviews

Good review requests:

@reviewer Hi! Could you please review this PR when you have time?

It adds user authentication to the API. I'd especially appreciate feedback on:
- The security approach in auth.js
- The error handling strategy
- Whether the tests cover the edge cases adequately

No rush - sometime this week would be great. Thanks!

Poor review requests:

@reviewer review pls

Responding to Feedback

Constructive response:

Thanks for the feedback! You're right about the error handling. I've:

1. Added proper try-catch blocks in lines 45-52
2. Standardized error response format
3. Added tests for error scenarios

The performance concern is valid - I've optimized the query and added an index.
Let me know if you'd like me to explain the approach.

Defensive response (avoid):

This works fine. The performance is not that bad.

Metrics and Improvement

Review Quality Metrics

Track these metrics to improve the review process:

  • Average time from PR creation to first review
  • Number of review cycles per PR
  • Percentage of PRs with issues found in production
  • Reviewer participation and distribution
  • Time to merge after approval

Continuous Improvement

Regular retrospectives on review process:

  • What types of issues are commonly missed?
  • Are reviews taking too long?
  • Do reviewers need training in specific areas?
  • Are automated tools catching the right issues?
  • Is the review checklist comprehensive?

Additional Resources

Reference Files

For detailed review patterns and standards, consult:

  • references/review-standards.md - Detailed code review standards and guidelines
  • references/feedback-patterns.md - Effective feedback communication patterns
  • references/pr-templates.md - Pull request templates for different change types

Example Files

Working review examples in examples/:

  • examples/pr-description-examples.md - Good and bad PR description examples
  • examples/review-comments.md - Effective review comment examples
  • examples/self-review-checklist.md - Comprehensive self-review checklist

Scripts

Review preparation scripts in scripts/:

  • scripts/pre-review-check.sh - Automated pre-review validation
  • scripts/generate-pr-template.sh - Generate PR template based on changes
  • scripts/review-metrics.py - Generate review process metrics

Tools and Integration

IDE Integration

  • VS Code: GitLens extension for better Git history
  • IntelliJ: Built-in code review tools
  • Vim: Fugitive plugin for Git integration

Review Platforms

  • GitHub: Built-in review tools with suggestions
  • GitLab: Merge request reviews with approval rules
  • Bitbucket: Pull request reviews with automatic merging
  • Azure DevOps: Pull request policies and branch protection

Use this systematic approach to prepare high-quality code reviews that maximize team collaboration and code quality while minimizing reviewer burden and review cycles.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

windsurf

29.34%
按下载量换算1,505

OpenCode

22.61%
按下载量换算1,160

Codex

18.31%
按下载量换算939

Claude Code

10.65%
按下载量换算546

Antigravity

8.05%
按下载量换算413

Gemini CLI

3.58%
按下载量换算184

安全审计

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

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills