Skip to main content

simplify

Review changed code for reuse, quality, and efficiency, then fix any issues found

来源信息

仓库
HeshamFS/swarmweaver
最近来源活动
2026年4月1日 20:10
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
simplify
description
Review changed code for reuse, quality, and efficiency, then fix any issues found
when_to_use
After completing a feature or refactor, to clean up and improve code quality
context
inline
allowed-tools
Read, Grep, Glob, Edit, Bash
# Code Simplification Review Review the recently changed code in this project for three aspects: ## 1. Reuse Opportunities - Are there duplicated patterns that could be extracted into shared utilities? - Are there existing project utilities that the new code could use instead of reimplementing? ## 2. Code Quality - Are there overly complex functions that should be split? - Are variable/function names clear and consistent with the project's conventions? - Are there unnecessary abstractions or premature optimizations? ## 3. Efficiency - Are there N+1 query patterns or unnecessary iterations? - Are there resource leaks (unclosed files, connections)? - Could any synchronous operations be async? After reviewing, fix any issues you find. Prioritize changes that reduce complexity.
在 GitHub 查看