remove-deadcode

仓库创建 2025年12月3日最近提交 3 小时前SkillHot 收录 20 天前
▸ 精选理由

用 LSP 保障删除决策并支持原子回退

▸ 风险提示

会修改代码库并提交变更,存在误删风险,需 CI 与人工复核

这个 Skill 做什么

基于 LSP 验证的并行死代码检测与安全移除工具,支持原子提交

帮你扫描并安全移除项目里用不到的“死代码”,适合做大规模清理或瘦身时使用。所有删除决策都会用 LSP 验证引用,严格避开入口点和配置文件,并以并行 agents 批量处理、原子提交来保证安全可回滚。重点是把验证、批次和提交都自动化,降低误删风险。

▸ 展开 SKILL.md 英文原文

Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits. Triggers: remove dead code, dead code, cleanup, remove unused.

开发编程自动重构删除死代码LSP核验通用
6.7w
Stars
5.4k
Forks
40
仓库内 Skill
+1.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/.agents/skills/remove-deadcode/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/.agents/skills/remove-deadcode/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
Dead code removal via massively parallel deep agents. You are the ORCHESTRATOR — you scan, verify, batch, then delegate ALL removals to parallel agents.

<rules>
- **LSP is law.** Verify with `LspFindReferences(includeDeclaration=false)` before ANY removal decision.
- **Never remove entry points.** `src/index.ts`, `src/cli/index.ts`, test files, config files, `packages/` — off-limits.
- **You do NOT remove code yourself.** You scan, verify, batch, then fire deep agents. They do the work.
</rules>

<false-positive-guards>
NEVER mark as dead:
- Symbols in `src/index.ts` or barrel `index.ts` re-exports
- Symbols referenced in test files (tests are valid consumers)
- Symbols with `@public` / `@a
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有