首页龙虾技能列表 › Code Simplifier

Code Simplifier

v1.0.0

Use when changed code should be reviewed for reuse, code quality, and efficiency, then cleaned up before finalizing.

0· 113·1 当前·1 累计
by @wimi321·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/2
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
This instruction-only skill is internally consistent with its stated purpose: it reviews and simplifies changed code and requests no credentials, binaries, or installs.
评估建议
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...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
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.
凭证需求
The skill declares no required environment variables, credentials, or config paths. That matches the described purpose of local code review and cleanup.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/4/2

Initial extraction from local Claude Code source

● 无害

安装命令 点击复制

官方npx clawhub@latest install claude-code-code-simplifier
镜像加速npx clawhub@latest install claude-code-code-simplifier --registry https://cn.clawhub-mirror.com

技能文档

Use this skill after making changes and before wrapping up.

Workflow

  • Inspect the relevant diff or latest modified files.
  • Review for existing utilities that should be reused.
  • Review for code smell: parameter sprawl, copy-paste, leaky abstractions, or unnecessary comments.
  • Review for efficiency problems: repeated work, unnecessary reads, event churn, and hot-path bloat.
  • 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.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务