janitor

Remove unused code and standardize repository structure during maintenance.

15|6|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/lionbenjamin/agent-templates --skill janitor-lionbenjamin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: janitor
Source: https://github.com/lionbenjamin/agent-templates/tree/main/skills/janitor
Command: npx skills add https://github.com/lionbenjamin/agent-templates --skill janitor-lionbenjamin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clean up codebases by removing unused code, consolidating duplicates, and standardizing project structure to improve maintainability and readability.

Core Features & Use Cases

  • Automated cleanup: remove dead code, unused imports/exports, and redundant comments.
  • Structural standardization: enforce consistent file and folder layouts across the repo.
  • Safe refactoring guidance: preserve functionality with checks and documentation of changes.

Quick Start

Run a cleanup pass on your repository to remove unused code and standardize its structure.

Frequently Asked Questions about janitor

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

FAQPage Schema
How do I automatically remove dead code and unused imports from my codebase?

Automating codebase cleanup removes dead code, unused imports, and redundant comments while standardizing file and folder layouts. This process improves maintainability and readability across large repositories during maintenance or pre-release phases.

What is the best way to standardize project structure during a large refactoring effort?

Standardizing project structure during refactoring involves enforcing consistent file and folder layouts across the repository. This structural standardization streamlines large codebases and ensures consistent architecture for long-term maintainability.

Can I safely refactor dead code without breaking existing functionality?

Safe refactoring preserves functionality by validating builds and documenting changes to prevent regressions. This approach ensures that removing unused code and consolidating duplicates does not alter the operational behavior of the application.

When should I run a codebase cleanup pass on my repository?

Run a codebase cleanup pass during maintenance, pre-release preparation, or active refactoring phases. This timing allows you to streamline large codebases and ensure consistent architecture before deploying or expanding the project.

Does automated dead code removal require any specific dependencies or environment setup?

Automated dead code removal requires no specific dependencies or environment setup. It operates directly on the repository to identify and remove unused code, enforcing safety by validating builds and documenting changes.