360 Secure SkillHub
360 安全技能中心

deslop

该 Skill 对比分支基线及未提交改动,清理多余注释、异常防御性检查、绕过类型检查的 any 断言和过深嵌套等 AI 生成代码痕迹;偏好最小改动,修改后重跑测试、类型检查和 UI 检查,检查失败则回滚。

分类:开发
jgorgs
热度 0.00
最近更新 2026-11-10 05:18:42

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jgorgs/jstack/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 UI check for UI work) and report their results.
  • Revert any edit whose check fails.
  • Keep the final summary concise (1-3 sentences).