cleanup

Remove extraneous files, obsolete code, and outdated documentation before commit.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/sizukutamago/claude-code-harness --skill cleanup-sizukutamago
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/sizukutamago/claude-code-harness/tree/main/.claude/skills/cleanup
Command: npx skills add https://github.com/sizukutamago/claude-code-harness --skill cleanup-sizukutamago

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common issue of cluttered project workspaces before committing changes, eliminating temporary files, obsolete debug code, and outdated documentation to ensure clean and professional commits.

Core Features & Use Cases

  • Code Cleanup: Remove unused files, handled TODOs, and commented-out code to maintain project hygiene.
  • Documentation Update: Align project documents with the final state of the implementation.
  • Verification Step: Run full test suites to ensure no functionality is broken after cleanup.
  • Use Case: After completing a feature and verifying it through tests, use this Skill to clean residual artifacts and update related docs before pushing changes.

Quick Start

Use the cleanup skill after verification to remove unnecessary files and update documentation for the finalized implementation.

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I clean up my project repository before submitting a pull request?

To clean up a project repository before a pull request, remove temporary files, obsolete debug code, and outdated documentation. This ensures that your commits remain professional and adhere to coding standards prior to submission.

What is the best way to remove obsolete code and outdated documentation before a commit?

The best way to remove obsolete code and outdated documentation is to use an automated cleanup workflow. This process eliminates unused files, resolves handled TODOs, and aligns docs with the final implementation state.

When should I perform code cleanup and repository hygiene in my development workflow?

Code cleanup and repository hygiene should be performed immediately after feature verification and before pushing changes. This ensures functional integrity is maintained by removing residual artifacts right before commit preparation.

Does repository cleanup remove functional code or break my existing test suite?

Repository cleanup does not break your test suite if executed correctly. It removes extraneous files and commented-out code, then runs a full test suite execution to verify functional integrity and ensure no functionality is broken.

Can I use a cleanup skill to align project documents with my final code implementation?

Yes, you can use a cleanup skill to align project documents with your final code implementation. It updates outdated documentation to match the finalized implementation, ensuring documentation accuracy after development.