code-cleanup
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "code-cleanup":https://skillpi.com/zh/skills/deepskill-e35c3cc1984e3a570373c6e31194947c3c630c744fd2114fb370549631801185。安装前核对上游来源和版本:https://github.com/omer-metin/skills-for-antigravity。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
系统化的代码清理与重构代理,用于识别并修复代码质量问题而不改变功能。聚焦删除无用代码、整理导入语句、类型优化、统一代码模式与文件组织。适用于用户要求“清理”或“未使用代码”、整理导入、询问代码质量、要求不改变行为的重构、代码审查清理项、主要开发后清理或重构与维护场景。
介绍来源: third_party · omer-metin · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: code-cleanup
description: Simplify requested code or active changes while preserving behavior.Code Cleanup
Accept $code-cleanup with optional paths or functions. Use explicit targets
first, then changed files. With neither, select a concrete maintenance problem
with low behavior risk. Use $deep-code-cleanup for a requested exhaustive pass.
Remove duplication, dead code, redundant checks, and comments that obscure the code. Prefer existing utilities and direct control flow. Introduce helpers only when they clarify responsibility or remove meaningful repetition.
Preserve runtime behavior and public interfaces within the cleanup scope. Continue safe improvements while reporting changes that need a new behavior or design decision. Do not ask again for a change already authorized by the task.
Use characterization tests before refactoring weakly covered logic. They should pass on the baseline. For a reproducible bug within the authorized scope, confirm a failing regression before the fix.
Run affected tests and repository gates. Finish when the selected cleanup is complete and validated. Report what became simpler, why behavior is preserved, and unresolved risks. Include line counts only when they help explain the result.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 针对开发者高频刚需的代码清理与重构任务,显著提升代码质量和维护效率
- 明确聚焦于保留行为的优化,适用于代码审查后清理、重构等典型场景
亮点
- 触发词覆盖全面且边界清晰,有效引导用户在合适时机调用
待提升项
-
缺少 When to Use/示例章节 原报告严重程度:轻微
文档结构良好但未提供显式的使用示例章节
改进建议:建议补充 When to Use 章节和端到端使用示例以增强可读性
亮点
- Phase/步骤划分清晰,具备完整的执行流程和出口条件
亮点
- 具备完善的异常处理机制和安全保障(表征测试、回归确认、门禁验证)
- 强调保留运行时行为和公共接口,确保重构安全性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。