360 Secure SkillHub
360 安全技能中心

deslop

该 Skill 对比分支与基线的 diff(含未提交改动),删除多余或不一致的注释、异常防御性检查、仅用于绕过类型问题的 any 转换,并简化深层嵌套代码;编辑后重跑原有测试与类型检查,失败则回退,最后给出 1-3 句总结。

分类:开发
michael-denyer
热度 0.00
最近更新 2026-11-05 23:54:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add michael-denyer/pstack-claude/deslop
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据不出本机
Metadata
name
deslop
description
Remove AI-generated code slop and clean up code style

Remove AI code slop

Check the diff against the branch's base and remove AI-generated slop introduced in the branch. The base is the PR's base branch, else the branch this one was cut from, else the repository's default branch. Include uncommitted changes.

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.
  • After editing, rerun the checks that verified the change (tests, type check, and the driver skill for UI work) and report their results.
  • Revert any edit whose check fails.
  • Keep the final summary concise (1-3 sentences).