Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

code-review代码审查

Agent Skill

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

总安装

945

周安装

39

GitHub Stars

公开资料未说明

下载量

309
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/blogic-cz/agent-tools --skill code-review

简介

code-review 用于执行模板 TypeScript 项目的预 PR 审查,适合在 Codex、Claude、Cursor、Gemini CLI 中保障代码质量时使用。

  • 它按风险等级分类问题:Critical、Major、Minor,并提供具体修复方案。
  • 使用时先界定审查范围,扫描变更后辅以外部查证不确定模式。
  • 安装前建议确认是否集成 CI/CD 流水线及自动化检查规则。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Review Methodology

Run a systematic pre-PR review for template-ts codebases. Identify critical risks first, then report major and minor issues with concrete fixes.

Review Process

  1. Identify scope — Determine exactly what to review.
  2. Scan changes — Analyze against template-ts review categories.
  3. Verify uncertain patterns — Use external lookup only when uncertainty remains.
  4. Categorize findings — Classify as Critical, Major, or Minor.
  5. Generate report — Produce an actionable review summary.
  6. Run automated checks — Run repository-standard quality gates.

Step 1: Identify Scope

Determine scope in this order:

  1. Use explicit user scope first. Review the exact files, PR, commits, or branch comparison provided by the user.
  2. Infer recent commits by default when scope is missing. Use git log -5 --oneline and git diff HEAD~5..HEAD --stat when no scope was given and repository context is available.
  3. Ask one precise scope question only when needed. Ask only when repository state is unavailable or multiple plausible scopes exist and inference would be unreliable.

Step 2: Apply Template-ts Review Categories

Use the full category checklist and examples in references/review-pattern-catalog.md.

Apply these category groups:

  • TRPC patterns
  • TanStack Router and Query patterns
  • Code deduplication (DRY)
  • Code quality and style conventions
  • Security
  • Performance
  • Testing
  • Effect patterns (when Effect code is in scope)

Load related skills when deeper specialization is required:

  • trpc-patterns
  • tanstack-frontend
  • effect-ts
  • scan-effect-solutions (for deep Effect audits)

Step 3: Verify Uncertain Patterns

Use lookup tools only when local codebase evidence is insufficient.

Use Exa to validate uncertain real-world usage patterns for external libraries or evolving APIs.

Use Context7 to confirm official documentation details (exact API names, version-specific behavior, deprecations).

Skip both when the repository already contains a clear canonical pattern.


Step 4: Apply Test Expectations Proportionally

Require tests for behavior changes.

Treat these as behavior changes:

  • New or changed business logic
  • API contract changes
  • Query/loader behavior changes
  • Security or authorization logic changes
  • User-visible component behavior changes

Treat these as low-risk changes where new tests are optional:

  • Documentation-only updates
  • Comment-only updates
  • Mechanical refactors with no logic change (for example rename-only, formatting-only, import reordering)

State test rationale explicitly in the final review summary.


Step 5: Run Automated Checks

Run bun run check when the repository uses the standard template-ts quality-gate script.

Run the repository-equivalent command set when a different convention is used (for example separate lint, typecheck, and test commands).

Capture command outcomes in the final report.


Severity Classification

CRITICAL (must fix before merge)

  • Security vulnerabilities
  • SQL injection or hardcoded secrets
  • Missing authentication on protected endpoints
  • Breaking changes to public APIs

MAJOR (should fix)

  • Wrong TRPC v11 patterns (.useQuery instead of .queryOptions)
  • N+1 database queries
  • Missing prefetch causing slow page loads
  • Manual types instead of RouterInputs/RouterOutputs
  • Code duplication violating DRY

MINOR (consider fixing)

  • Style inconsistencies
  • Missing documentation
  • Non-critical refactoring opportunities

Report Template

# Code Review Report

**Scope:** [What was reviewed]
**Date:** [Current date]

---

## CRITICAL ISSUES

[List with file:line, description, fix]

---

## MAJOR ISSUES

[List with file:line, description, fix]

---

## MINOR ISSUES

[List with file:line, brief description]

---

## TEST EXPECTATIONS

- Behavior-changing code paths covered: [Yes/No + details]
- Low-risk changes with test exemption: [Yes/No + rationale]

---

## AUTOMATED CHECKS

- Commands run: [List]
- Result: [Pass/Fail]

---

## POSITIVE OBSERVATIONS

- [Good patterns found]

---

## SUMMARY

**Assessment:** [APPROVE / NEEDS_WORK / REJECT]
**Next steps:** [Specific actions]

## Quick Stats

- Files reviewed: [N]
- Issues: Critical: [N], Major: [N], Minor: [N]

Assessment Criteria

APPROVE

  • No critical issues
  • Core TRPC and TanStack patterns are correct
  • Repository quality-gate checks pass

NEEDS_WORK

  • Major pattern violations exist
  • Required tests are missing for behavior changes
  • Performance issues impact reliability or UX

REJECT

  • Security vulnerabilities exist
  • Breaking changes are introduced without migration path
  • Fundamental design flaws make the change unsafe to merge

Related Skills

  • trpc-patterns — TRPC router patterns, procedures, error handling
  • tanstack-frontend — Router, Query, Form patterns
  • effect-ts — Effect services, layers, ManagedRuntime, error handling
  • scan-effect-solutions — Deep Effect compliance scan
  • production-troubleshooting — Performance investigation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

37.6%
按下载量换算116

Claude

30.74%
按下载量换算95

Cursor

16.28%
按下载量换算50

Gemini CLI

9.44%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills