simplify-codebase

Analyze git history and dependency graphs to identify and archive dead code.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/wilrf/wilrf-marketplace --skill simplify-codebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simplify-codebase
Source: https://github.com/wilrf/wilrf-marketplace/tree/main/plugins/codebase-simplify/skills/simplify-codebase
Command: npx skills add https://github.com/wilrf/wilrf-marketplace --skill simplify-codebase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of cleaning up a codebase after refactoring, identifying and archiving stale or dead code, and simplifying active code to improve clarity and maintainability.

Core Features & Use Cases

  • Staleness Analysis: Identifies files as fresh, stale, or dead based on git history and dependency analysis.
  • Code Simplification: Cleans up active code for better readability and consistency.
  • Automated Archiving: Moves dead files to an archive directory while preserving history.
  • Use Case: After a major refactoring effort, run this skill to automatically remove unused files, simplify complex functions, and ensure the codebase is lean and maintainable.

Quick Start

Run the simplify-codebase skill to clean up the entire repository.

Frequently Asked Questions about simplify-codebase

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

FAQPage Schema
How do I identify and remove dead code after refactoring?

To identify and remove dead code after refactoring, this Skill analyzes git history and dependency graphs to classify files as fresh, stale, or dead, then archives unused files to a separate directory while preserving provenance.

What is the best way to clean up stale code in a repository?

The best way to clean up stale code in a repository is to orchestrate a multi-agent process that detects project type, resolves test commands, and simplifies active code according to project standards for improved maintainability.

Can I resume codebase cleanup across multiple sessions if the process is interrupted?

Yes, you can resume codebase cleanup across multiple sessions because the Skill includes built-in resume functionality, allowing you to continue the archiving and simplification tasks without restarting the entire analysis from scratch.

Does the codebase cleanup process preserve git history for archived files?

The codebase cleanup process preserves history for archived files by moving dead files to an archive directory with provenance, ensuring that the original context and git history remain intact for future reference.

How does code simplification handle different project types and standards?

Code simplification handles different project types by automatically detecting the project type and resolving the appropriate test commands, then cleaning up active code for better readability and consistency according to established project standards.

When should I avoid automating codebase cleanup and stale code removal?

You should avoid automating codebase cleanup if your repository lacks sufficient git history or dependency graphs for staleness analysis, as the Skill relies on these inputs to accurately classify files and safely archive unused code.