Skip to main content

refactor-dead-code

Remove unused or unreachable code with safe reference checks.

来源信息

仓库
sunpar/agentic_development
最近来源活动
2026年5月22日 15:56
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
refactor-dead-code
description
Remove unused or unreachable code with safe reference checks.
# Refactor Dead Code ## Trigger Use when code appears unused and safe to delete. ## Inputs - Static search results or lints indicating dead symbols. ## Outputs - Deletions of obsolete symbols and updated references. ## Procedure 1. Confirm usage across repository. 2. Remove dead symbols and imports. 3. Run tests and targeted checks. ## Guardrails - Do not remove extension points without explicit confirmation. - Keep public API surfaces unless user approves. ## Success criteria - No remaining references and tests pass. ## Prefer Superpowers - Use `test-driven-development` for added safety checks. ## Avoid scope creep - Keep deletion scope tied to explicit task write set.
在 GitHub 查看