Stale File Cleanup

Classify repository files as required, stale, duplicate, generated, irrelevant, or needing a move.

1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/jimmymalhan/codereview-pilot --skill stale-file-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Stale File Cleanup
Source: https://github.com/jimmymalhan/codereview-pilot/tree/main/.claude/skills/stale-file-cleanup
Command: npx skills add https://github.com/jimmymalhan/codereview-pilot --skill stale-file-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps maintain a clean and organized codebase by identifying and classifying files that are no longer necessary, outdated, or duplicates, preventing repository bloat and improving navigation.

Core Features & Use Cases

  • File Classification: Categorizes files into 'required', 'stale', 'duplicate', 'generated', 'irrelevant', or 'needs-move'.
  • Evidence-Based Actions: Requires concrete evidence before suggesting deletion or movement, ensuring no critical files are lost.
  • Use Case: Regularly audit your repository to automatically flag old documentation files or unused script assets that haven't been modified in months and are not referenced by any active code or skills.

Quick Start

Run the stale file cleanup skill to classify all files in the repository.

Frequently Asked Questions about Stale File Cleanup

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

FAQPage Schema
How do I identify stale files and unused assets in my code repository?

To identify stale files in a repository, classify files based on modification dates, import statements, and package.json references. This flags outdated documentation or unused scripts that are no longer referenced by active code.

How does repository file classification work for code hygiene auditing?

Repository file classification works by analyzing modification dates and import mappings to categorize files as required, stale, duplicate, generated, irrelevant, or needing a move for evidence-based code hygiene auditing.

What is the best way to clean up duplicate and generated files in a project?

The best way to clean up duplicate and generated files is to audit the repository to classify files based on active references and modification dates, providing evidence-based actions before suggesting deletion or movement.

Can I use this stale file cleanup approach without any external dependencies?

Yes, you can use this stale file cleanup approach without external dependencies. It operates independently using internal scripts and references to analyze file modification dates and import mappings within your repository.

Does the file auditing process require concrete evidence before suggesting deletion?

Yes, the file auditing process requires concrete evidence before suggesting deletion or movement. It checks modification dates, import statements, and active skill mappings to ensure no critical files are lost.

When should I not use automated file classification for repository cleanup?

You should not use automated file classification when your repository lacks clear import statements, package.json references, or modification date tracking, as the tool relies on this evidence to prevent the loss of critical files.