Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

reducing-entropy减少熵

Agent Skill

reducing-entropy 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

26,574

周安装

1,075

GitHub Stars

公开资料未说明

下载量

8,342
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:reducing-entropy(减少熵)
来源仓库:https://github.com/wpank/reducing-entropy
安装命令:
openclaw skills install reducing-entropy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install reducing-entropy

简介

通过无情的简化来最小化总代码库大小。通过最终代码量而不是工作量来衡量成功。偏向于删除。

SKILL.md

name
reducing-entropy
model
reasoning
category
testing
description
Minimize total codebase size through ruthless simplification. Measure success by final code amount, not effort. Bias toward deletion.
version
1.0
keywords
[simplification, deletion, refactoring, complexity, entropy, YAGNI, less code, minimalism]
activation
manual # Only activate when explicitly requested

Reducing Entropy

More code begets more code. Entropy accumulates. This skill biases toward the smallest possible codebase.

WHAT This Skill Does

Provides a mindset and checklist for:

  • Evaluating whether changes reduce or increase total code
  • Finding opportunities to delete code
  • Resisting premature abstraction
  • Choosing the simplest solution that solves the problem

Core question: "What does the codebase look like *after*?"

WHEN To Use

Activate this skill when:

  • Refactoring code and considering options
  • Adding a new feature and choosing implementation approach
  • Reviewing PRs to challenge unnecessary complexity
  • Paying down tech debt and prioritizing what to simplify
  • User explicitly asks for code reduction or simplification

The Goal

The goal is less total code in the final codebase — not less code to write right now.

ScenarioVerdict
Writing 50 lines that delete 200 linesNet win
Keeping 14 functions to avoid writing 2Net loss
"Better organized" but more codeMore entropy
"More flexible" but more codeMore entropy
"Cleaner separation" but more codeMore entropy

Measure the end state, not the effort.


Before You Begin

Load a mindset from references/:

  1. List files in references/
  2. Read frontmatter descriptions
  3. Pick at least one that applies
  4. State which you loaded and its core principle

Available mindsets:

  • simplicity-vs-easy.md — Simple is objective; easy is subjective. Choose simple.
  • design-is-taking-apart.md — Good design separates concerns, removes dependencies.
  • data-over-abstractions.md — 100 functions on one structure beats 10 on 10.
  • expensive-to-add-later.md — When YAGNI doesn't apply (PAGNI exceptions).

Three Questions

1. What's the smallest codebase that solves this?

Not "what's the smallest change" — what's the smallest *result*.

  • Could this be 2 functions instead of 14?
  • Could this be 0 functions (delete the feature)?
  • What would we delete if we did this?

2. Does the proposed change result in less total code?

Count lines before and after. If after > before, challenge it.

Before: 847 lines across 12 files
After:  623 lines across 8 files
Verdict: ✓ Net reduction of 224 lines

3. What can we delete?

Every change is an opportunity to delete. Ask:

  • What does this make obsolete?
  • What was only needed because of what we're replacing?
  • What's the maximum we could remove?

Red Flags

PhraseWhat It HidesChallenge
"Keep what exists"Status quo bias"Total code is the metric, not churn"
"This adds flexibility"Speculative generality"Flexibility for what? Is it needed now?"
"Better separation of concerns"More files = more code"Separation isn't free. Worth how many lines?"
"Type safety"Sometimes bloats code"Worth how many lines? Could runtime checks work?"
"Easier to understand"More things ≠ easier"14 things are not easier than 2 things"
"This is the pattern"Pattern worship"Does the pattern fit, or are we forcing it?"
"We might need this later"YAGNI violation"Delete it. Git remembers."

Deletion Checklist

Before completing any refactor, ask:

  • [ ] Did I count lines before and after?
  • [ ] Did I delete everything this change makes obsolete?
  • [ ] Did I remove any now-unnecessary abstractions?
  • [ ] Did I consolidate files that are too small to stand alone?
  • [ ] Did I delete tests for deleted code?
  • [ ] Did I update imports to remove dead dependencies?

When This Doesn't Apply

  • The codebase is already minimal for what it does
  • You're in a framework with strong conventions (don't fight it)
  • Regulatory/compliance requirements mandate certain structures
  • The "simpler" version would be genuinely unmaintainable (rare)

NEVER Do

  1. NEVER keep code "in case we need it" — delete it; git has history
  2. NEVER add abstractions for fewer than 3 use cases — wait for the pattern to emerge
  3. NEVER create new files for single functions — colocate with usage
  4. NEVER preserve code just because someone wrote it — evaluate on merit
  5. NEVER accept "more organized" as justification for more code — organization should reduce, not increase
  6. NEVER skip the line count — measure before and after; feelings lie
  7. NEVER add "flexibility" without immediate need — YAGNI applies
  8. NEVER refactor without deleting something — if nothing becomes obsolete, question the value

Quick Wins

PatternAction
Wrapper that just forwards callsInline the wrapped code
Config file with 2 settingsMove to environment variables
Utils file with 1 functionMove function to where it's used
Interface with 1 implementationDelete the interface
Abstract class with 1 subclassMerge into concrete class
Module that re-exports everythingDelete; import from source
Comments explaining obvious codeDelete comments; code is clear

The Grug Perspective

"complexity very very bad. say again: complexity very bad. you think you not, but you are."

Grug brain developer knows:

  • Complexity demon hides in abstraction
  • More code = more bugs = more complexity
  • Best code is no code
  • Second best code is simple code
  • If you can't understand it in your head, it's too complex

References

Philosophical foundations for simplicity thinking:

ReferenceCore Principle
simplicity-vs-easy.mdSimple (objective) vs easy (subjective) — choose simple
design-is-taking-apart.mdGood design separates; composition beats construction
data-over-abstractions.mdGeneric data + many functions beats many custom types
expensive-to-add-later.mdPAGNI exceptions — what you probably are gonna need

External resources:

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.95%
按下载量换算7,670

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills