action

Execute a small batch of conditional actions only after verifying they are safe and unused.

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 25, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill automates the safe removal of unused code, dependencies, and files by performing rigorous verification checks before execution. It ensures codebase cleanliness and reduces technical debt without the risk of breaking functionality by cross-referencing imports and usage patterns across the project.

Use Cases

  • Automated Codebase Cleanup: Safely identify and remove deprecated functions or unused variables by verifying their absence in the global scope using grep or AST checks.
  • Dependency Management: Streamline project size and security by detecting and uninstalling unused npm, pip, or other package manager dependencies after confirming they aren't imported anywhere.
  • Refactoring Safety: Execute batch deletions of legacy files or assets during a migration, ensuring each item is truly orphaned and safe to delete before taking action.
  • Dead Code Elimination: Periodically scan and prune unreachable code blocks or unused configuration files to maintain a high-quality, readable codebase.
nameaction
descriptionExecute a small batch of conditional actions only after verifying they are safe and unused.

Intent

Use for small cleanup actions like removing unused deps.

Steps

  1. Verify each target independently (rg search, import checks).
  2. If used, skip with reason.
  3. If unused, execute the action safely.
  4. Report executed vs skipped.

Limits

  • Max 5 items per batch.