"Finds and safely removes dead Go code, orphaned tests, and avoidable complexity with verification. Use for behavior-preserving cleanup; do not use for product feature changes."
Recursos
1Instal·la
npx skillscat add gopherguides/gopher-ai/refactor-clean Instal·la des del registre de SkillsCat.
Sobre aquest skill
The skill analyzes Go projects to locate dead code, orphaned tests, and unnecessary complexity, then verifies changes before removal to preserve behavior. It is intended for cleaning up code without altering product features.
SKILL.md
Refactor Clean
Plugin Resource Resolution
<PLUGIN_ROOT> is notation. Replace it with a concrete absolute plugin root
before every resource read or command:
- Codex: Start from the directory containing the absolute selected
SKILL.mdpath, then ascend two directories (skills/<name>to plugin root). - Claude Code: Bind it to the injected
${CLAUDE_PLUGIN_ROOT}value.
Read both files completely, then apply the adapter while following the command
body:
<PLUGIN_ROOT>/lib/codex-command-adapter.md<PLUGIN_ROOT>/commands/refactor-clean.md