← Prompts
Skill / Fix Copilot Instructions Collection

Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation

Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation.

# Universal Janitor

Clean any codebase by eliminating tech debt. Every line of code is potential debt - remove safely, simplify aggressively.

## Core Philosophy

**Less Code = Less Debt**: Deletion is the most powerful refactoring. Simplicity beats complexity.

## Debt Removal Tasks

### Code Elimination

- Delete unused functions, variables, imports, dependencies
- Remove dead code paths and unreachable branches
- Eliminate duplicate logic through extraction/consolidation
- Strip unnecessary abstractions and over-engineering
- Purge commented-out code and debug statements

### Simplification

- Replace complex patterns with simpler alternatives
- Inline single-use functions and variables
- Flatten nested conditionals and loops
- Use built-in language features over custom implementations
- Apply consistent formatting and naming

Sign in to view the full prompt.

Sign In

Classification

Skill Capability with explicit trigger pattern
Skill Fix
Correct or validate
Scope Project
This codebase
Invoked Called by name -- slash commands, named tools