Token导航 LogoToken导航

Agent Skill · 研究检索

deslop(文本去水化)

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

deslop 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 64,068。

总安装 306周安装 13GitHub Stars 2下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:deslop(文本去水化)
来源仓库:https://github.com/bmsuisse/skills
仓库路径:skills/deslop
安装命令:
npx skills add https://github.com/bmsuisse/skills --skill deslop
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bmsuisse/skills --skill deslop

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

deslop 清理 AI 生成代码中的冗余与风格不一致问题。适用于 Codex、Claude、Cursor、Gemini CLI,识别无意义注释与过度防御。支持主动预防与被动修复两种使用模式。使用前请熟悉项目中 slop 的具体表现形式。deslop 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/deslop

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/bmsuisse/skills --skill deslop;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

deslop 怎么安装?

在终端执行 npx skills add https://github.com/bmsuisse/skills --skill deslop。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

deslop 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

deslop 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

deslop 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

deslop 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

deslop 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
deslop

文本去水化 · 本页

3062只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Deslop

AI-generated code often *works* but doesn't *belong*. It is technically correct but inconsistent — stuffed with comments nobody would write, defensive checks that don't match the codebase's trust model, abstractions added "just in case", and style that clashes with the surrounding file.

This skill helps you either reactively clean up existing AI-written code, or proactively structure your AI workflow so slop never reaches the PR in the first place.


What AI slop looks like

Before fixing anything, recognise the patterns:

CategoryExamples
Redundant comments# increment counter by 1, // returns the user
Over-defensive codeif value is not None and value!= "" and value!= [] where if value suffices; unnecessary try/except wrapping happy paths
Type escapesSpurious casts, as any, ! non-null assertions added "just to be safe"
Inconsistent styleNaming conventions, import ordering, or patterns that differ from the surrounding file
Premature abstractionHooks, interfaces, base classes, or configuration keys that serve no current requirement
Vibe extrasLogging statements, TODO comments, or fallback branches that weren't asked for

Reactive cleanup — the subtractive review

Use this when you have a diff, file, or snippet to clean up right now.

Ask yourself one question: "Would someone who has been in this codebase for six months write this?"

Checklist

Work through the diff/file systematically:

  • Comments: Remove any comment a competent maintainer wouldn't need. Keep comments that explain *why*, delete ones that restate *what*.
  • Defensive checks: Remove guards that don't match the existing trust model. If the rest of the codebase already validates inputs at the boundary, don't re-validate deep inside a helper.
  • Type escapes: Remove as any, !, unnecessary casts, or # type: ignore unless there is a documented reason. Fix the root cause instead.
  • Naming: Rename anything that clashes with the file's existing conventions (casing, prefixes, abbreviations).
  • Abstractions: Delete layers of indirection that exist "just in case". YAGNI — You Aren't Gonna Need It.
  • Style: Re-align imports, spacing, and formatting to match the surrounding file. Run the project's linter/formatter after changes.
  • Extras: Remove stray print, console.log, TODO comments, and boilerplate the user didn't ask for.

Output format

After cleanup, produce a brief report:

## Deslop report

### Removed
- <what was removed and why, one line each>

### Changed
- <what was adjusted and why, one line each>

### Kept (and why)
- <anything that looked like slop but was intentional, with justification>

If the diff is already clean, say so explicitly — "No slop found."


Proactive loop — Research → Plan → Execute → Review → Revise

Use this when starting a new AI-assisted coding task. The goal is to prevent slop from entering the PR rather than cleaning it up afterwards.

1. Research

Narrow the problem before writing a single line.

  • Which files are relevant? Read them.
  • What patterns already exist in the codebase? (naming, error handling, logging)
  • Where are the trust boundaries? (what is validated, and where)
  • What assumptions does this part of the code make?

Output a short context summary:

  • Relevant files
  • Key constraints and patterns
  • Open questions (and answers)

Use this summary as your prompt context for the next steps.

2. Plan

Turn the research into intent. A good plan stops slop before the model generates it.

  • What must change? What must *not* change?
  • What naming and style conventions apply?
  • What error-handling pattern does the codebase use?
  • Are comments needed? At what level of detail?
  • What abstractions already exist that should be reused?

Review the plan the way you would review an architecture decision — if something feels off here, it is cheap to fix.

3. Execute

Let the AI work, but narrowly. Scope each prompt to the plan. Avoid open-ended "implement this feature" prompts without constraints.

Good execution feels boring. If the output surprises you, something was under-specified in the plan.

4. Review

Apply the reactive checklist above to everything that was generated. Then ask: "Does this feel like it belongs here?"

Also verify:

  • Tests pass
  • Linting is clean
  • Code matches the plan
  • Style matches the file

5. Revise (the step most people skip)

When output doesn't match expectations, identify the root cause:

  • What context was missing?
  • What rule wasn't explicit enough?
  • What assumption did the model make?

Then feed the learning back:

  • Update project rules / .cursor/rules / system prompts
  • Update agent instructions or slash commands
  • Document the pattern so it doesn't recur

This step compounds. Each revision makes the next PR cleaner than the last without any extra effort at generation time.


Quick reference — what not to write

# ❌ Comment restating the code
# Get the user by ID
user = get_user(user_id)

# ✅ No comment needed — the code is self-explanatory
user = get_user(user_id)

# ❌ Over-defensive guard inconsistent with the codebase trust model
def process(value):
    if value is None:
        return None
    if not isinstance(value, str):
        raise TypeError("value must be str")
    if len(value) == 0:
        return ""
    return value.strip()

# ✅ Trust the caller; validate at the boundary, not deep inside
def process(value: str) -> str:
    return value.strip()

# ❌ Premature abstraction
class BaseProcessor(ABC):
    @abstractmethod
    def process(self, value: str) -> str: ...

class StringProcessor(BaseProcessor):
    def process(self, value: str) -> str:
        return value.strip()

# ✅ Just write the function
def process(value: str) -> str:
    return value.strip()
// ❌ Type escape
const result = (someValue as any).property;

// ✅ Fix the type
const result = (someValue as MyType).property;

// ❌ Vibe extra — logging nobody asked for
console.log("Processing user", userId);
const user = await getUser(userId);
console.log("Got user", user);

// ✅ Just the code
const user = await getUser(userId);

Key principle

The goal is not "remove all AI fingerprints". The goal is code that reads as if a thoughtful engineer who knows this codebase wrote it. Sometimes that means keeping a guard or a comment — but only when it genuinely serves the reader.

When in doubt, delete it and see if anything breaks.

平台分布

Codex

36.42%
按下载量换算39

Claude

30.55%
按下载量换算33

Cursor

16.48%
按下载量换算18

Gemini CLI

9.39%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills