← 返回 Skills 市场
wimi321

Code Simplifier

作者 wimi321 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
188
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install claude-code-code-simplifier
功能描述
Use when changed code should be reviewed for reuse, code quality, and efficiency, then cleaned up before finalizing.
使用说明 (SKILL.md)

Code Simplifier

Use this skill after making changes and before wrapping up.

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.

安全使用建议
This skill appears low-risk and does what it claims: review and simplify changed code. Before using it, provide only the diffs or changed files you want analyzed (avoid handing the agent an entire repository containing secrets). Because it's instruction-only, it won't install software or ask for credentials. If you are concerned about autonomous invocation, ensure your agent's skill invocation policies are configured to require approval before the agent runs skills autonomously. Also note source/homepage metadata are minimal—if provenance matters to you, prefer skills with verifiable upstream sources or a published homepage.
功能分析
Type: OpenClaw Skill Name: claude-code-code-simplifier Version: 1.0.0 The 'code-simplifier' skill is a standard utility designed to review and refactor code changes for efficiency and quality. The instructions in SKILL.md and agents/openai.yaml are well-scoped, focusing on reducing duplication and technical debt within modified files, and include explicit guardrails to prevent unnecessary churn or broad codebase modifications.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the skill asks to inspect a diff or changed files and produce focused cleanup changes and a summary. No unrelated capabilities or credentials are requested.
Instruction Scope
SKILL.md confines work to the relevant diff/changed files and explicitly discourages whole-repo sweeping changes. It does not instruct the agent to read system files, environment variables, or transmit data to external endpoints. The instructions ask for user-supplied diffs/changed files as inputs.
Install Mechanism
There is no install spec and no code files to write or execute. Being instruction-only reduces the attack surface because nothing is downloaded or installed by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. That matches the described purpose of local code review and cleanup.
Persistence & Privilege
The skill does not request permanent presence (always is false) and does not modify other skills or system-wide configs. Note: disable-model-invocation is false (the platform default), so the agent could invoke it autonomously if the platform allows; this is normal but worth awareness.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claude-code-code-simplifier
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claude-code-code-simplifier 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial extraction from local Claude Code source
元数据
Slug claude-code-code-simplifier
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Code Simplifier 是什么?

Use when changed code should be reviewed for reuse, code quality, and efficiency, then cleaned up before finalizing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 188 次。

如何安装 Code Simplifier?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-code-code-simplifier」即可一键安装,无需额外配置。

Code Simplifier 是免费的吗?

是的,Code Simplifier 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code Simplifier 支持哪些平台?

Code Simplifier 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code Simplifier?

由 wimi321(@wimi321)开发并维护,当前版本 v1.0.0。

💬 留言讨论