code-review
- Repo stars 1,522
- Author updated Live
- Author repo NagaAgent
- Domain
- Engineering · code · review · quality
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 98 / 100 · audit passed
- Author / version / license
- @RTGS2017 · v1.0.0 · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- Python
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
---
name: code-review
description: 本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。 用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查 runs entirely locall…
category: engineering
runtime: Python
---
# code-review output preview
## PART A: Task fit
- Use case: 本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。 用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查 runs entirely locally; runs on Python. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “审查维度 / 1. 代码质量 / 2. 潜在问题” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。 用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查 runs entirely locally; runs on Python. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “审查维度 / 1. 代码质量 / 2. 潜在问题” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “审查维度 / 1. 代码质量 / 2. 潜在问题”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: code-review
description: 本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。 用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查 runs entirely locall…
category: engineering
source: RTGS2017/NagaAgent
---
# code-review
## When to use
- 本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。 1. 代码质量 可读性: 命名规范、注释完整性、代码结构 可维护性: 模块化程度、耦合度、复杂度 一致性: 代码风格、设计模式使用 2. 潜在问题 Bug 风险: 空指针…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “审查维度 / 1. 代码质量 / 2. 潜在问题” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "code-review" {
input -> user goal + target files + boundaries + acceptance criteria
context -> 审查维度 / 1. 代码质量 / 2. 潜在问题
rules -> SKILL.md triggers / order / output contract
runtime -> Python | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} 代码审查技能
本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。
审查维度
1. 代码质量
- 可读性: 命名规范、注释完整性、代码结构
- 可维护性: 模块化程度、耦合度、复杂度
- 一致性: 代码风格、设计模式使用
2. 潜在问题
- Bug 风险: 空指针、边界条件、异常处理
- 安全漏洞: 注入攻击、敏感数据泄露、权限问题
- 性能问题: 算法复杂度、资源泄漏、并发问题
3. 最佳实践
- 设计原则: SOLID、DRY、KISS
- 语言特性: 现代语法、标准库使用
- 测试覆盖: 单元测试、边界测试
审查流程
- 概览分析: 理解代码目的和结构
- 逐行审查: 检查每个函数和模块
- 问题分类: 按严重程度分为 Critical/Major/Minor
- 建议生成: 提供具体的改进方案
输出格式
## 代码审查报告
### 概述
[代码的整体评价]
### 发现的问题
#### Critical(严重)
- [ ] 问题描述 (文件:行号)
- 原因分析
- 建议修复
#### Major(重要)
- [ ] ...
#### Minor(次要)
- [ ] ...
### 改进建议
1. 建议一
2. 建议二
### 总体评分: X/10
使用示例
用户: "帮我审查这段 Python 代码" → 加载此技能,按照上述流程进行代码审查
Decide Fit First
Design Intent
How To Use It
Boundaries And Review