code-style-reviewer by devstefancho/claude-plugins
npx skills add https://github.com/devstefancho/claude-plugins --skill code-style-reviewer一个基于代码风格原则提供专业代码审查的技能。Claude 直接分析代码并生成专注于 5 个核心原则的详细报告。
类、函数和模块应只有一个职责。复杂函数应拆分为更小的函数。
相同的逻辑不应重复出现。通用逻辑应提取到单独的函数或工具中。
优先选择简单、易于理解的代码,而非复杂的抽象。避免过度设计。
不要添加当前不需要的功能。移除为未来使用而编写的不必要代码。
尽量减少使用 any 类型。使用 TypeScript 时,定义清晰的类型。
识别目标文件
逐原则分析
生成详细报告
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
提供代码示例
any 类型?interface 和 type?查看 EXAMPLES.md 获取详细示例和模式 查看 PRINCIPLES.md 获取详细原则解释
# 代码风格审查报告
## 📄 文件: [filename]
### ✅ 优点
- [良好实践]
### ⚠️ 严重问题
**问题 1: [标题]**
- 位置: [行号或函数名]
- 原则: [适用原则]
- 描述: [详细解释]
- 如何改进:
// 之前 [当前代码]
// 之后 [改进代码]
### 📢 警告
[警告级别的问题]
### 💡 建议
[建议级别的改进]
## 📊 整体评估
- 整体代码质量评分: [X/10]
- 最重要的改进: [前 3 项]
此技能在以下情况下会自动使用:
每周安装数
1
仓库
GitHub 星标数
3
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
A skill that provides professional code review based on code style principles. Claude directly analyzes code and generates detailed reports focusing on 5 core principles.
Classes, functions, and modules should have only one responsibility. Complex functions should be split into smaller functions.
The same logic should not be repeated. Common logic should be extracted into separate functions or utilities.
Prefer simple, easy-to-understand code over complex abstractions. Avoid over-engineering.
Do not add features that are not currently needed. Remove unnecessary code written for future use.
Minimize the use of any type. When using TypeScript, define clear types.
Identify Target Files
Principle-by-Principle Analysis
Generate Detailed Report
Provide Code Examples
any type used?interface and type used appropriately?See EXAMPLES.md for detailed examples and patterns See PRINCIPLES.md for detailed principle explanations
# Code Style Review Report
## 📄 File: [filename]
### ✅ Good Points
- [Good practices]
### ⚠️ Critical Issues
**Issue 1: [Title]**
- Location: [Line or function name]
- Principle: [Applicable principle]
- Description: [Detailed explanation]
- How to improve:
// Before [Current code]
// After [Improved code]
### 📢 Warnings
[Warning-level issues]
### 💡 Suggestions
[Suggestion-level improvements]
## 📊 Overall Assessment
- Overall code quality score: [X/10]
- Most important improvements: [Top 3]
This skill is automatically used in the following situations:
Weekly Installs
1
Repository
GitHub Stars
3
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Node.js 环境配置指南:多环境管理、类型安全与最佳实践
10,500 周安装