代码精简

原名:code-simplification

简化代码以提高可读性。在重构代码时,在不改变行为的前提下提升清晰度。适用于代码功能正常但难以阅读、维护或扩展的场景,以及审查积累了不必要复杂性的代码。

分类
开发提效
版本
v1.0.0
作者
徐晨(@userb1o986)
下载
2
收藏
0
发布
2026-08-08
更新
2026-08-13
TRACE 评分
3.8 / 5

内容概览

Inspired by the Claude Code Simplifier plugin. Adapted here as a model-agnostic, process-driven skill for any AI coding agent. Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass a simple test: "Would a new team member understand this faster than the original?" - After a feature is working and tests pass, but the implementation feels heavier than it needs to be - During code review when readability or complexity issues are flagged - When you encounter deeply nested logic, long functions, or unclear names - When refactoring code written under time pressure - When consolidating related logic scattered across files - After merging changes that introduced duplication or inconsistency When NOT to use: - Code is already clean and readable — don't simpl…

查看 SKILL 详情