Token导航 LogoToken导航

Agent Skill · 研究检索

deslop-simplify-ai-code(deslop 简化 ai 代码)

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

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

总安装 559周安装 24GitHub Stars 2下载 196核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/adibfirman/dotfiles --skill deslop-simplify-ai-code

这个 Skill 是做什么的

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

该技能简化代码复杂度,提升可读性与一致性,保留原有功能不变。识别冗余模式、魔法数字与不必要抽象,匹配项目现有风格与命名约定。适用于 PR 审查或代码重构,聚焦消除“代码 slop”而非最小化改动。安装前需确认项目上下文,建议结合 git diff 提供具体变更范围。

deslop-simplify-ai-code 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/deslop-simplify-ai-code

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

deslop-simplify-ai-code 怎么安装?

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

deslop-simplify-ai-code 支持哪些 AI 工具?

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

deslop-simplify-ai-code 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

deslop-simplify-ai-code 是免费的吗?

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

deslop-simplify-ai-code 用的人多吗?

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

deslop-simplify-ai-code 安全吗?

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

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

值得选的地方

  • 同时适配 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-simplify-ai-code

deslop 简化 ai 代码 · 本页

5592需要联网未明确通过

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

SKILL.md 原文

Deslop: Simplify Code

Expert code simplification focused on clarity, consistency, and maintainability while preserving exact functionality. Analyze code for unnecessary complexity, redundant patterns, and opportunities to make code more readable and idiomatic. Match existing code style, naming conventions, and patterns in the codebase.

Workflow

  1. Understand project context: Review existing code style, patterns, and conventions in the codebase
  2. Get the code to review: via git diff, PR review, file selection, or paste — don't assume branch naming or tooling
  3. Identify slop patterns across the entire file if it's been touched
  4. Simplify: Remove or refactor each instance to match project idioms
  5. Verify: Run tests if available. If not, review the diff carefully and manually verify behavior. For frontend code, visually verify UI still renders correctly. Provide a summary report of what changed and why.

Slop Patterns

Comments

Rule: Prefer WHY over WHAT.

Remove:

  • Comments restating what code does: // increment counter above counter++
  • Section dividers: // ========== VALIDATION ==========
  • Redundant docstrings documenting self-evident parameters
  • "Note:" or "Important:" prefixes that add nothing
  • Comments explaining language basics

Carve-out: WHAT comments are acceptable for:

  • Complex regex patterns
  • Non-obvious bit manipulation
  • Mathematical formulas where the code IS the implementation
  • Cases where the logic genuinely can't be simplified further

Transform WHAT → WHY:

# SLOP: describes what
# Check if user is active
if user.is_active:

# CLEAN: explains why
# Inactive users can't access billing portal
if user.is_active:
// SLOP: restates the code
// Loop through all items and process each one
for item in items:
    process(item)

// CLEAN: no comment needed, or explain why this approach
// Process sequentially - parallel causes rate limit errors
for item in items:
    process(item)

Null/Error Handling

Remove redundant checks:

# SLOP: checking what's already guaranteed
if user is not None and user is not empty and is_valid_type(user):
    if user.name is not None and user.name is not empty:

# CLEAN: trust the type system or add one meaningful check
if user and user.name:

Simplify excessive try-catch:

# SLOP: catch-log-rethrow adds nothing
try:
    do_thing()
catch error:
    log("Error doing thing:", error)
    throw error

# CLEAN: let it propagate or handle meaningfully
do_thing()

Also watch for:

  • Swallowed errors: try {...} catch {} — at minimum log it, ideally handle or propagate
  • Generic error messages: catch (e) {throw new Error("Something went wrong")} — preserves no context; include the original error or relevant details
  • Error string parsing: checking error.message === "not found" instead of using error types, codes, or structured error objects

Abstractions

Flatten unnecessary layers — but match the codebase's testing patterns:

  • In Python/JS/TS: prefer direct calls; use monkey-patching or test fixtures for mocking
  • In Java/C#: interfaces and wrapper classes are idiomatic for testability via DI — keep if they serve that purpose
  • In Go: keep if it implements an interface for testing; flatten otherwise

General rule: remove abstractions that do nothing AND aren't required by the language/framework. Keep if there are 2+ callers or a test that depends on it.

Watch for:

  • Single-use helper functions that obscure rather than clarify
  • Wrapper classes around simple operations
  • "Manager", "Handler", "Service" suffixes on thin wrappers
  • Config objects for 1-2 values

Verbosity

# SLOP
is_user_valid = user.is_active == true
if is_user_valid == true:
    return true
else:
    return false

# CLEAN
return user.is_active

Common patterns:

  • == true / == false comparisons
  • Intermediate variables used once
  • if x: return true; else: return false → return x
  • Unnecessary destructuring then reassembly
  • Unused imports, wildcard imports (import *), importing entire libraries for one function

Naming

Fix over-descriptive names:

  • userDataResponseObject → user
  • isCurrentlyProcessingData → processing
  • handleOnClickButtonEvent → onClick

Structure

Remove:

  • Constructors that do nothing AND aren't required by the language/framework
  • Getters/setters that just proxy fields
  • Interfaces implemented by one class
  • Abstract classes with one child
  • Enums with one value

Logs/Debug

Remove:

  • Bare print() / console.log() / System.out.println() debug statements
  • Verbose entry/exit logging: Entering function X with params...
  • Success logs that spam output: Successfully processed item 1 of 10000

Keep:

  • Structured logging with levels (logger.debug(...)) — these are controlled by log level config and useful for ops/debugging
  • Error logging with context
  • Audit logs for important operations

Review Checklist

Must Fix

  1. Does this comment explain WHY, not WHAT? (with carve-outs for complex logic)
  2. Is this null check protecting against something that can actually happen?
  3. Could this be expressed more directly?

Should Fix

  1. Does this abstraction earn its complexity? (consider language context)
  2. Is this name proportional to the scope?

Nice to Have

  1. Does this match existing patterns in the codebase?
  2. Would a maintainer find this clearer or more confusing?

Guiding Principles

  • Preserve behavior: Never change what the code does, only how it's expressed
  • Match the codebase: New code should look like it belongs — follow existing conventions, including testing patterns
  • Simplify, don't clever: Prefer obvious solutions over clever ones
  • Earn complexity: Every abstraction, check, or layer must justify its existence
  • Readable > short: Clarity beats brevity when they conflict

Edge Cases

Don't remove:

  • Defensive checks at API boundaries (external input)
  • Comments required by linters or documentation generators
  • Abstractions that enable testing or future extension (if there's a concrete existing use case — not hypothetical)
  • Explicit type annotations in ambiguous contexts
  • Structured debug-level logging (logger.debug(...))

平台分布

Codex

36.84%
按下载量换算72

Claude

30.95%
按下载量换算61

Cursor

16.57%
按下载量换算32

Gemini CLI

9.43%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills