AgentSkillsCN

simplify

通过去除冗余代码、统一代码风格,让代码更加精简高效。当你需要整合逻辑、减少间接引用、清理重复模式,或使代码更简洁明了时,可选用此方法。

SKILL.md
--- frontmatter
name: simplify
description: Streamline code by removing redundancy and aligning with repo style. Use when you need to consolidate logic, reduce indirection, clean up repeated patterns, or make code more concise.

Simplify

Streamline code by removing redundancy and aligning with repo style.

Steps

  1. Identify redundant logic, unnecessary indirection, or repeated patterns
  2. Consolidate or refactor to smaller, clearer units with meaningful names
  3. Align structure and formatting with existing repo conventions
  4. If input is provided, apply changes only within the specified target

Notes

  • Prefer minimal, behavior-preserving changes unless input requests otherwise