Code Cleanup

Remove deprecated implementations and dead exports after verified usage searches and test runs.

54|7|Updated Sep 19, 2021
One-click install
npx skills add https://github.com/Vrooli/Vrooli --skill code-cleanup-vrooli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Code Cleanup
Source: https://github.com/Vrooli/Vrooli/tree/main/scenarios/prompt-manager/store/skills/packs/core/code-cleanup
Command: npx skills add https://github.com/Vrooli/Vrooli --skill code-cleanup-vrooli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI development agents leave behind duplicates, deprecated shims, and backward-compatibility cruft that inflate maintenance workload and obscure the true structure of each scenario.

Core Features & Use Cases

  • Legacy Marker Detection: Follow the guidance to hunt for deprecated, legacy, Old, and V1 tagged implementations plus stale TODO/FIXME comments across scenario files.
  • Verified Removal Workflows: Require exhaustive usage searches, test suites, and cross-scenario import checks before eliminating any candidate to avoid regression.
  • Cleanup Tracking: Use tidiness-manager to prioritize high-impact files, log visits, and exclude shared code or already clean files while documenting residual questions for future review.

Quick Start

Ask Code Cleanup to scan the target scenario for legacy markers, verify usages, and prune safely documented dead code.

Frequently Asked Questions about Code Cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove deprecated shims and dead exports left by AI agents?

To remove deprecated shims and dead exports left by AI agents, scan scenario files for legacy markers, perform exhaustive usage searches, run test suites, and document verification before deleting the code.

What is the best way to find stale TODO comments and legacy markers for code refactor?

Finding stale TODO comments and legacy markers for a code refactor involves detecting tags like deprecated, legacy, Old, and V1 across scenario-specific files while excluding shared packages to identify safe removal candidates.

How do I safely prune dead code without breaking cross-scenario imports?

To safely prune dead code without breaking cross-scenario imports, execute cross-scenario import checks, validate usages, and run test suites prior to eliminating any candidate code to prevent regressions.

Can I clean up forwarding shims and compatibility re-exports in scenario files without affecting shared packages?

Yes, you can clean up forwarding shims and compatibility re-exports in scenario files without affecting shared packages by targeting analysis exclusively at scenario-specific files and excluding shared code from deletion.

How do I track code cleanup progress and prioritize high-impact files for dead code removal?

Track code cleanup progress and prioritize high-impact files for dead code removal by logging visits, excluding already clean files, and documenting residual questions for future review during the refactor process.

When should I not use automated code cleanup for removing deprecated implementations?

You should not use automated code cleanup for removing deprecated implementations when exhaustive usage searches and test runs cannot be performed, as deleting code without verified removal workflows risks regression.