2511快速审查Ce49ff17

tools-only2026-10-24查看 153复制 597

快速单遍代码审查(不使用子代理,速度更快但不够彻底)

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1182 chars
---
allowed-tools: Read, Grep, Glob, Bash(git:*), Bash(find:*), Bash(wc:*)
description: Quick single-pass code review (no sub-agents, faster but less thorough)
argument-hint: [files, commit range, or branch]
---

# Quick Code Review

Perform a fast, single-pass code review without spawning sub-agents. This is
for rapid feedback during development, not for pre-merge thoroughness.

## Scope

Determine what to review from `$ARGUMENTS`:
- Git ref / range → `git diff $ARGUMENTS`
- File paths → review those files
- Empty → uncommitted changes, or last commit if clean

## Review

Read each changed file and its diff. For each file, check for:

1. **Obvious bugs**: null/nil dereference, off-by-one, logic inversions, typos
2. **Security red flags**: hardcoded secrets, unsanitized input, `eval`/`exec`
3. **Error handling gaps**: unchecked returns, swallowed exceptions, missing cleanup
4. **Clear style violations**: inconsistent naming, dead code, TODO/FIXME/HACK markers

## Output

For each finding:
```
**[SEVERITY]** `file:line` — Brief description. Suggested fix.
```

Keep it concise. If the code looks fine, say "No issues found" with a brief
summary of what you reviewed.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧