ruthless-refactorer

Remove dead code, consolidate duplicates, and verify tests after refactoring.

454|45|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/galz10/pickle-rick-extension --skill ruthless-refactorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruthless-refactorer
Source: https://github.com/galz10/pickle-rick-extension/tree/main/skills/ruthless-refactorer
Command: npx skills add https://github.com/galz10/pickle-rick-extension --skill ruthless-refactorer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill eliminates technical debt and AI-generated bloat from codebases.

Core Features & Use Cases

  • Identify and remove dead or redundant code to simplify logic and reduce maintenance burden.
  • Consolidate duplicates and enforce DRY to promote consistency across the codebase.
  • Verify functionality by running tests, linters, and parity checks after each atomic change.

Quick Start

Refactor the target codebase to remove AI-generated comments, consolidate duplicate logic, replace any with explicit types, and verify parity with tests after changes.

Frequently Asked Questions about ruthless-refactorer

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

FAQPage Schema
How do I refactor code to remove AI-generated comments and technical debt?

To refactor code and remove AI-generated comments, apply a disciplined workflow of reconnaissance, planning, execution, and verification. This process enforces DRY principles, replaces any with explicit types, and validates parity using tests after changes.

What is the best way to consolidate duplicate logic and enforce DRY principles across a large project?

Consolidating duplicate logic to enforce DRY requires identifying redundant code, simplifying it, and verifying functionality with linters and parity checks. This reduces maintenance burden while preserving existing behavior across the codebase.

How do you ensure behavioral parity when cleaning up dead code?

To ensure behavioral parity when cleaning up dead code, run tests and linters after each atomic change. This verification phase confirms the refactored code maintains identical functionality to the original implementation.

Can I use an automated workflow to replace any with explicit types in my codebase?

Yes, an automated refactoring workflow can replace any with explicit types. It executes this replacement alongside removing AI-generated bloat, requiring test validation afterward to guarantee type changes do not break existing behavior.

When should I avoid a ruthless refactor of my codebase?

Avoid a ruthless refactor if your project lacks adequate test coverage. The workflow mandates verifying parity with tests and linters after each atomic change, making it unsuitable for codebases where functionality cannot be validated.