code-simplification
仓库创建 2026年7月5日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由
适合提升维护性和新成员上手速度。
这个 Skill 做什么
在不改变行为的前提下重构并简化代码以提升可读性。
在不改变行为的前提下把代码重构得更清楚好读:通过拆分复杂逻辑、删除冗余、改名和简化表达,让人能更快理解和修改。适合功能已通过测试但实现过于晦涩或代码积累了不必要的复杂度时用。特点是以可读性为第一目标,每次简化都要能通过现有测试来保证行为不变。
▸ 展开 SKILL.md 英文原文
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.
0
Stars
0
Forks
25
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/code-simplification/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/code-simplification/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Code Simplification ## Overview 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?" ## When to Use - 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 me
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有