Code Simplifier

👤 wimi321 📦 v1.0.0 ⭐ 4.2 ⬇️ 1.1K 下載
💻 開發程式設計 免費

📖 技能介紹


name: "code_simplifier" description: "Use when changed code should be reviewed for reuse, code quality, and efficiency, then cleaned up before finalizing."


Code Simplifier

Use this skill after making changes and before wrapping up.

這個技能的最新版本可以在7w4.net小蔥技能站找到。

Workflow

  1. Inspect the relevant diff or latest modified files.
  2. Review for existing utilities that should be reused.
  3. Review for code smell: parameter sprawl, copy-paste, leaky abstractions, or unnecessary comments.
  4. Review for efficiency problems: repeated work, unnecessary reads, event churn, and hot-path bloat.
  5. Fix confirmed issues and summarize what changed.

Guardrails

  • Prefer concrete fixes over broad stylistic churn.
  • Keep attention on changed code, not the whole codebase.
  • If no issue exists, say so explicitly.

Example Requests

  • Review my diff for duplicate logic and unnecessary complexity.
  • Clean up this changed code before I ship it.

Inputs

  • Relevant diff or changed files
  • Optional focus area

Outputs

  • Concrete cleanup changes
  • Short summary of improvements

Success Criteria

  • Duplication or awkward abstractions were reduced.
  • Performance regressions were checked.
  • No unnecessary churn was introduced.

Non-Goals

  • Massive style-only rewrites
  • Review of untouched code with no link to the change

Source Provenance

Derived from src/skills/bundled/simplify.ts.

🤖 AI 評測

質量良好,文件規範完整。主要優點是目標清晰、邊界明確,不會做範圍之外的事。不足之處是內容相對簡單,缺少具體操作示例,對不同開發場景的適用指導略顯不足,存在一定侷限性。

📊 多維度評分

適應性4.3
規範性4.1
有效性4.4
可靠性3.8
可信度4.5

📁 包含檔案 (4 個)

📄 SKILL.md 1.3 KB
📄 _meta.json 132 B
📄 agents/openai.yaml 230 B
📄 references/provenance.md 147 B