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

code-review代码审查

Agent Skill

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

总安装

636

周安装

26

GitHub Stars

114

下载量

206
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shawnpang/startup-founder-skills --skill code-review

简介

code-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 通过 npx skills add 命令从 GitHub 仓库安装,支持主流 AI 宿主环境。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前顶部介绍为空,需结合原始 SKILL.md 内容进一步核验功能细节和使用限制。

SKILL.md

Code Review

When to Use

  • The user shares code (file, snippet, or diff) and asks for feedback
  • They paste a pull request or want to know if code is production-ready
  • Pre-merge quality gate or bug hunting
  • Reviewing architectural decisions in a PR

Context Required

From startup-context: tech stack, product stage, team size. Also need from the user:

  • The code or diff to review
  • What the code is supposed to do (PR purpose or feature context)
  • Any specific concerns (performance, security, correctness)
  • Language and framework if not obvious from the code

Workflow

Follow a structured five-step methodology. Each step must be completed before moving to the next.

  1. Context — Understand and summarize the PR's purpose before any analysis. Recap the intent back to the user in 1-2 sentences. If unclear, ask before proceeding. Never start reviewing without understanding what the code is trying to accomplish.
  2. Structure — Evaluate architectural decisions and design patterns:

- Does the code belong in the right module/layer? - Are abstractions appropriate (not too many, not too few)? - Does this change align with the existing codebase patterns? - For non-obvious design choices, acknowledge the author's reasoning before proposing alternatives.

  1. Details — Assess code quality across multiple dimensions:

- Correctness: Logic errors, off-by-one bugs, null/undefined handling, race conditions, edge cases - Security: OWASP Top 10 baseline — injection, broken auth, data exposure, XSS, access control, misconfig, insecure deserialization, vulnerable components - Performance: N+1 queries, unnecessary re-renders, O(n^2) on large datasets, missing caching, memory leaks - Naming and clarity: Do names communicate intent? Are functions focused on a single responsibility?

  1. Tests — Validate test coverage with equal rigor as code review:

- Are behavioral assertions present (not just implementation testing)? - Are edge cases and error paths covered? - Are tests brittle or resilient to refactoring? - What test cases are missing?

  1. Feedback — Generate a prioritized, categorized report with specific code examples and concrete improvements. Recognize strong patterns and good decisions explicitly.

Output Format

# Code Review: [Feature/File Name]

## Summary
One-paragraph assessment: what the PR does, whether it is ready to merge, needs minor fixes, or needs rework.

## Findings

### Critical (must fix before merge)
- **[CRT-1] Title** — file:line — description, why it matters, suggested fix with code example

### Major (should fix before merge)
- **[MAJ-1] Title** — file:line — description, why it matters, suggested fix

### Minor (fix when convenient)
- **[MIN-1] Title** — file:line — description, suggestion

### Positive (things done well)
- **[POS-1] Title** — file:line — what was done well and why it matters

## Questions
Clarifying questions about non-obvious design choices before blocking on them.

## Suggested Tests
- Test case 1
- Test case 2

Frameworks & Best Practices

Severity Definitions

SeverityDefinitionAction
CriticalSecurity vulnerability, data loss risk, crash in production, broken core functionalityBlock merge
MajorSignificant bug, performance regression, missing error handling on critical path, architectural violationShould fix before merge
MinorStyle issue, naming improvement, minor optimization, documentation gapFix when convenient
PositiveWell-written code, good pattern usage, thoughtful error handlingAcknowledge and reinforce

Review Principles

  • Always ground feedback in specifics. Every finding must reference a file, line, and include a concrete improvement — not just "this could be better."
  • Recognize good work explicitly. Call out strong patterns, clean abstractions, and thoughtful error handling. Reviews that only flag problems are demoralizing and incomplete.
  • Acknowledge author reasoning. For non-obvious choices, assume the author had a reason. Ask before overriding. Phrase as "I see you chose X — was that because of Y? If so, consider Z as an alternative."
  • Do not block on style when automated tooling handles it. Linting and formatting are the job of CI, not reviewers. Focus on logic, architecture, and correctness.
  • Treat test review with equal weight. Tests are not an afterthought. Missing tests for critical paths is a major finding, not a minor one.

OWASP Top 10 Quick Checks

  1. Injection — Are user inputs parameterized? Check SQL, NoSQL, OS command, LDAP
  2. Broken Auth — Sessions secure? Tokens rotated? Passwords hashed (bcrypt/argon2)?
  3. Sensitive Data Exposure — Secrets in env vars (not code)? PII encrypted at rest?
  4. XXE — XML parsing disabled or configured to reject external entities?
  5. Broken Access Control — Every endpoint checks authorization, not just authentication?
  6. Misconfiguration — Debug modes off? CORS restrictive? Security headers set?
  7. XSS — Outputs encoded? No dangerouslySetInnerHTML / v-html with user data?
  8. Insecure Deserialization — Serialized objects from untrusted sources validated?
  9. Vulnerable Components — Dependencies up to date? Any known CVEs?
  10. Insufficient Logging — Auth failures, access violations, and errors logged?

N+1 Query Detection

  • Looping over a collection and making a DB call per item
  • ORM lazy loading inside a loop (e.g., user.posts in a for user in users loop)
  • GraphQL resolvers fetching related data per parent without DataLoader
  • Fix: Eager loading, batch queries, or DataLoader pattern

Language-Agnostic Red Flags

  • Functions longer than 40 lines or more than 3 levels of nesting
  • Boolean params that change behavior (use separate functions)
  • Catch blocks that swallow exceptions silently
  • Hardcoded values that should be configuration
  • Missing input validation on public API boundaries

Related Skills

  • security-review — chain for a deep-dive security audit when critical security findings surface
  • architecture-design — chain when code review reveals structural problems that need architectural rethinking

Examples

Example prompt: "Review this Express route handler for creating users."

Good output snippet:

# Code Review: POST /api/users Handler

## Summary
The handler creates users but has a critical SQL injection vulnerability and missing
input validation. Needs fixes before merge. Clean async/await usage is a positive.

## Findings
### Critical
- **[CRT-1] SQL Injection** — routes/users.js:14 — Email interpolated
  directly into SQL string. Use parameterized queries:
  `db.query('INSERT INTO users (email) VALUES ($1)', [email])`

### Major
- **[MAJ-1] No input validation** — routes/users.js:12 — Email from
  `req.body` used with no validation. Add zod/joi schema validation.
- **[MAJ-2] Missing error handling** — routes/users.js:18 — DB errors
  propagate as 500 with stack trace. Wrap in try/catch, return generic error.

### Positive
- **[POS-1] Clean async/await** — routes/users.js:11 — Easy to follow,
  no callback nesting.

## Questions
- Is there a validation middleware already in the project that should be reused here?

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.11%
按下载量换算79

Claude

27.89%
按下载量换算57

Cursor

20.83%
按下载量换算43

Gemini CLI

8.81%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills