deslop

GitHub

用于审查代码变更,识别并移除 AI 生成的冗余注释、防御性检查及类型绕过等不规范代码,同时简化嵌套逻辑以符合本地编码风格,保持行为不变。

.agents/skills/deslop/SKILL.md FuturixAI-and-Quantum-Works/Prism-Legal-OS

Trigger Scenarios

审查包含 AI 生成代码的 PR 清理不符合项目风格的代码

Install

npx skills add FuturixAI-and-Quantum-Works/Prism-Legal-OS --skill deslop -g -y
More Options

Non-standard path

npx skills add https://github.com/FuturixAI-and-Quantum-Works/Prism-Legal-OS/tree/main/.agents/skills/deslop -g -y

Use without installing

npx skills use FuturixAI-and-Quantum-Works/Prism-Legal-OS@deslop

指定 Agent (Claude Code)

npx skills add FuturixAI-and-Quantum-Works/Prism-Legal-OS --skill deslop -a claude-code -g -y

安装 repo 全部 skill

npx skills add FuturixAI-and-Quantum-Works/Prism-Legal-OS --all -g -y

预览 repo 内 skill

npx skills add FuturixAI-and-Quantum-Works/Prism-Legal-OS --list

SKILL.md

Frontmatter
{
    "name": "deslop",
    "description": "Remove AI-generated code slop and clean up code style"
}

Remove AI code slop

Check the diff against main and remove AI-generated slop introduced in the branch.

Focus Areas

  • Extra comments that are unnecessary or inconsistent with local style
  • Defensive checks or try/catch blocks that are abnormal for trusted code paths
  • Casts to any used only to bypass type issues
  • Deeply nested code that should be simplified with early returns
  • Other patterns inconsistent with the file and surrounding codebase

Guardrails

  • Keep behavior unchanged unless fixing a clear bug.
  • Prefer minimal, focused edits over broad rewrites.
  • Keep the final summary concise (1-3 sentences).

Version History

  • fdb81bc Current 2026-10-18 15:43

Metadata

Files
0
Version
fdb81bc
Hash
2f7b7def
Indexed
2026-10-18 15:43

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 00:05
浙ICP备14020137号-1