← 返回
数据分析 中文

Simplify Code

Refactor code for clarity, consistency, and maintainability without changing behavior. Use when the user types /simplify or asks to simplify code.
在不改变行为的前提下重构代码,以提升清晰度、一致性和可维护性。当用户输入 /simplify 或要求简化代码时使用。
bestisblessed
数据分析 clawhub v1.0.2 1 版本 99682.8 Key: 无需
★ 3
Stars
📥 3,083
下载
💾 27
安装
1
版本
#latest

概述

Simplify Code

Refactor code to make it easier to read, simpler to maintain, and more consistent with the surrounding codebase without changing what it does.

Invoke this skill with /simplify.

Purpose

Use this skill when a user wants cleaner code, a more direct implementation, or a readability pass that preserves exact functionality.

Working Principles

Preserve functionality. Never change behavior, outputs, side effects, or public interfaces unless the user explicitly asks for that.

Apply project standards. Match the existing conventions, patterns, naming style, and architectural expectations of the codebase.

Reduce unnecessary complexity. Flatten avoidable nesting, remove redundant abstractions, and prefer the most direct implementation that remains clear.

Keep variables intentional. Avoid introducing extra state unless it materially improves readability or is reused enough to justify it.

Improve naming and structure. Prefer clear variable and function names, and group related logic so the code reads in a straightforward way.

Default Scope

Focus on recently modified code unless the user points to a different file, module, or diff.

Reference

Inspired by the new Claude Code /simplify command:

https://x.com/bcherny/status/2027534984534544489?s=20

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 22:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,030
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,892
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,712