code review

Engineering Community v1.0.0
Fluxly profile Runtime and permissions are inferred by Fluxly static checks, not author declarations or runtime test results.
Domain
Engineering
Author-declared agents
No explicit declaration found; this is not inferred or tested compatibility
Static check
98 / 100 · heuristic scan, not runtime safety proof
Runtime evidence
Not run; no isolated runtime test evidence is currently recorded
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
Detected file/system behavior
  • Read-only
Network behavior
Local-only
Install commands
None (reference only)
Author source file SKILL.md

# 代码审查技能

本技能提供专业的代码审查能力,帮助发现潜在问题并提供改进建议。

## 审查维度

### 1. 代码质量
- **可读性**: 命名规范、注释完整性、代码结构
- **可维护性**: 模块化程度、耦合度、复杂度
- **一致性**: 代码风格、设计模式使用

### 2. 潜在问题
- **Bug 风险**: 空指针、边界条件、异常处理
- **安全漏洞**: 注入攻击、敏感数据泄露、权限问题
- **性能问题**: 算法复杂度、资源泄漏、并发问题

### 3. 最佳实践
- **设计原则**: SOLID、DRY、KISS
- **语言特性**: 现代语法、标准库使用
- **测试覆盖**: 单元测试、边界测试

## 审查流程

1. **概览分析**: 理解代码目的和结构
2. **逐行审查**: 检查每个函数和模块
3. **问题分类**: 按严重程度分为 Critical/Major/Minor
4. **建议生成**: 提供具体的改进方案

## 输出格式

```markdown
## 代码审查报告

### 概述
[代码的整体评价]

### 发现的问题

#### Critical(严重)
- [ ] 问题描述 (文件:行号)
  - 原因分析
  - 建议修复

#### Major(重要)
- [ ] ...

#### Minor(次要)
- [ ] ...

### 改进建议
1. 建议一
2. 建议二

### 总体评分: X/10
```

## 使用示例

用户: "帮我审查这段 Python 代码"
→ 加载此技能,按照上述流程进行代码审查

Discussion

Powered by GitHub Discussions. Sign in with GitHub to comment, react, or subscribe.