clean-rx

Analyze Python, Next.js, and Supabase codebases for dead code and generate prioritized deletion plans.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/acardozzo/rx-suite --skill clean-rx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-rx
Source: https://github.com/acardozzo/rx-suite/tree/main/skills/clean-rx
Command: npx skills add https://github.com/acardozzo/rx-suite --skill clean-rx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires knip, depcheck, madge, vulture, ruff, pip-autoremove, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill acts as a comprehensive codebase garbage collector, identifying and helping you safely remove dead code, unused dependencies, orphan files, and stale configurations across your Python, Next.js, and Supabase projects.

Core Features & Use Cases

  • Dead Code Detection: Finds unused exports, functions, and commented-out code.
  • Dependency Auditing: Identifies phantom, misplaced, or duplicate dependencies.
  • File & Config Hygiene: Locates orphan files, stale configurations, and git hygiene issues.
  • Stack Support: Deep analysis for Python, Next.js/TypeScript, and Supabase.
  • Prioritized Cleanup Plan: Generates a tiered list of actionable, safe deletion steps.

Quick Start

Use the clean-rx skill to audit the project for dead code and tech debt.

Frequently Asked Questions about clean-rx

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

FAQPage Schema
How do I find and remove dead code in a Next.js and Python project?

Dead code removal in Next.js and Python projects is handled by scanning for unused exports, functions, and dependencies using tools like knip and vulture. The skill generates a prioritized, safe deletion plan to eliminate tech debt.

What is the best way to audit unused dependencies across Python and Next.js stacks?

Auditing unused dependencies across Python and Next.js stacks involves detecting phantom, misplaced, or duplicate packages. The skill uses depcheck and pip-autoremove to identify waste and outputs a tiered cleanup recommendation.

Does this dead code analysis support Supabase configurations and orphan files?

Yes, dead code analysis supports Supabase configurations and orphan files. It locates stale configurations, git hygiene issues, and isolated files alongside unused code in your Python, Next.js, and Supabase environments.

How do I safely plan tech debt refactoring without breaking existing imports?

Safely planning tech debt refactoring requires analyzing module dependencies to prevent breaking imports. The skill uses madge to map dependency trees and generates a tiered list of safe deletion steps for your codebase.

Can I use ruff to detect stale configurations and unused Python code?

Yes, ruff is utilized to detect unused Python code and enforce configuration hygiene. The skill integrates ruff alongside vulture to identify dead functions and stale setups, providing a comprehensive garbage collection plan.

What are the limitations of automated codebase garbage collection?

Automated codebase garbage collection limitations include potential false positives in dynamic code execution paths. The skill mitigates this by providing a prioritized, tiered deletion plan rather than automatically executing destructive removals.