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

code-review代码审查

Agent Skill

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

总安装

303

周安装

13

GitHub Stars

公开资料未说明

下载量

106
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add jaredlander/freshbooks-speed --skill "code-review"

简介

code-review 用于代码审查相关信息的查找与筛选。

  • 适合在开发过程中辅助理解最佳实践或常见问题。
  • 使用 npx skills add jaredlander/freshbooks-speed --skill "code-review" 安装。
  • 安装前建议确认权限及是否触发外部命令执行。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review Skill

Review code for correctness, security, performance, testing, documentation, and architecture. Produces two outputs:

  1. Structured findings for Claude Code to act on
  2. REVIEW.md human-readable summary

Review Workflow

0. MANDATORY: Use context7 Before Any Code Changes

CRITICAL: Before creating, editing, or suggesting code changes, ALWAYS use context7 to look up current documentation.

When to use context7:

  • Before suggesting fixes or improvements
  • When reviewing library/framework usage
  • Before writing code examples or snippets
  • When uncertain about API behavior or best practices

How to use:

1. Resolve library: context7 resolve <library-name>
2. Get docs: context7 get-library-docs --library <library> --topic <topic>

Example:

context7 resolve react
context7 get-library-docs --library react --topic "useEffect dependencies"

1. Determine Review Scope

Identify what's being reviewed:

  • Single file: Review that file
  • Directory: Review all relevant files
  • Diff/PR: Focus on changed lines with surrounding context
  • Entire codebase: Start with entry points, follow dependencies

2. Select Review Depth

Choose automatically based on context, or accept user override:

DepthWhen to UseFocus
QuickSmall changes, trivial files, time-sensitiveCritical issues only
StandardMost reviews, single files, typical PRsAll categories, balanced
DeepPre-production, security-sensitive, complex systemsExhaustive, security-focused

3. Detect Languages and Load References

Identify languages present, then load relevant reference files:

4. Use context7 MCP for Documentation (MANDATORY)

ALWAYS query context7 when:

  • Reviewing ANY library/framework usage (not just unfamiliar ones)
  • Before suggesting code changes or fixes
  • Checking if APIs are used correctly
  • Verifying deprecated patterns
  • Confirming best practices for specific versions
  • Writing code examples or snippets in review feedback

Process:

  1. Identify libraries/frameworks in the code being reviewed
  2. Use context7 resolve <library> for each one
  3. Use context7 get-library-docs to verify API usage and patterns
  4. Only THEN proceed with review findings

Example queries:

  • context7 resolve react then context7 get-library-docs --library react --topic "hooks"
  • context7 resolve tensorflow then context7 get-library-docs --library tensorflow --topic "layers"
  • context7 resolve tidyverse for R tidyverse patterns
  • context7 resolve kubernetes for K8s manifest validation
  • context7 resolve express for Node.js API patterns

Never skip this step - outdated or incorrect documentation can lead to poor review suggestions.

5. Spawn Subagents for Parallel Review

Use subagents to parallelize review work:

Language Subagent (one per language detected):

Task: Review [language] code in [files] for idioms, patterns, and language-specific issues.
Focus: Style, idioms, language-specific performance, common pitfalls.
Reference: Load references/[language].md
Output: Structured findings list

Security Subagent:

Task: Analyze [files] for security vulnerabilities.
Focus: Injection, auth issues, secrets exposure, unsafe operations, dependency risks.
Output: Security findings with severity and remediation

Architecture Subagent:

Task: Review overall structure and design of [files/project].
Focus: Coupling, cohesion, separation of concerns, design patterns, testability.
Output: Architecture findings and recommendations

6. Review Categories

Each category produces findings with severity ratings.

Correctness

  • Logic errors and bugs
  • Edge cases not handled
  • Off-by-one errors
  • Null/undefined handling
  • Type mismatches
  • Race conditions

Security

  • Injection vulnerabilities (SQL, command, XSS)
  • Authentication/authorization flaws
  • Secrets in code
  • Unsafe deserialization
  • Path traversal
  • Dependency vulnerabilities

Performance

  • Algorithmic complexity issues
  • Unnecessary allocations
  • N+1 queries
  • Missing caching opportunities
  • Blocking operations
  • Memory leaks

Testing

  • Missing test coverage
  • Untested edge cases
  • Brittle tests
  • Missing integration tests
  • Inadequate mocking

Documentation

  • Missing function/class docstrings
  • Outdated comments
  • Unclear variable names
  • Missing README updates
  • Undocumented public APIs

Architecture

  • Tight coupling
  • God objects/functions
  • Circular dependencies
  • Layer violations
  • Missing abstractions
  • Poor separation of concerns

7. Classify Findings

Rate each finding:

SeverityDefinitionAction
CriticalSecurity vulnerability, data loss risk, crash in productionMust fix before merge
MajorSignificant bug, performance issue, maintainability blockerShould fix before merge
MinorCode smell, style issue, minor inefficiencyFix when convenient
NitpickPreference, very minor style, optional improvementConsider fixing

8. Generate Outputs

Output 1: Claude Code Action Format

Produce structured findings Claude Code can act on directly:

## File: [filepath]

### [Line X-Y]: [Brief title]
**Severity**: Critical|Major|Minor|Nitpick
**Category**: Correctness|Security|Performance|Testing|Documentation|Architecture

**Issue**: [Clear description of the problem]

**Current code**:
[relevant code snippet]

**Suggested fix**:
[corrected code snippet]

**Rationale**: [Why this change improves the code]

---

Group findings by file, ordered by severity (Critical first).

Output 2: REVIEW.md Human Summary

Write to REVIEW.md in the project root:

# Code Review Summary

**Reviewed**: [files/scope]
**Depth**: Quick|Standard|Deep
**Date**: [timestamp]

## Overview

[2-3 sentence summary of overall code quality and key concerns]

## Findings by Severity

### Critical ([count])
- [one-line summary with file:line reference]

### Major ([count])
- [one-line summary with file:line reference]

### Minor ([count])
- [one-line summary with file:line reference]

### Nitpicks ([count])
- [one-line summary with file:line reference]

## Category Breakdown

| Category | Critical | Major | Minor | Nitpick |
|----------|----------|-------|-------|---------|
| Correctness | X | X | X | X |
| Security | X | X | X | X |
| Performance | X | X | X | X |
| Testing | X | X | X | X |
| Documentation | X | X | X | X |
| Architecture | X | X | X | X |

## Recommendations

[Prioritized list of recommended actions]

## Positive Observations

[Things done well - important for balanced feedback]

9. Iterate on Critical/Major Issues

After generating outputs:

  1. Use context7 to verify fix approaches before implementing
  2. If user confirms, apply fixes for Critical and Major issues
  3. Re-review changed code to verify fixes don't introduce new issues
  4. Update REVIEW.md with resolution status

REMINDER: Use context7 to look up correct API usage before suggesting or implementing any code changes.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

29.89%
按下载量换算32

windsurf

21.96%
按下载量换算23

trae

19.07%
按下载量换算20

OpenCode

13.18%
按下载量换算14

Codex

7.58%
按下载量换算8

Antigravity

3.17%
按下载量换算3

安全审计

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

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add jaredlander/freshbooks-speed --skill "code-review" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills