dead-code-cleanup

Identify and remove unused code in TypeScript/React and Rust/Tauri projects.

25|3|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/AkaraChen/2code --skill dead-code-cleanup-akarachen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-code-cleanup
Source: https://github.com/AkaraChen/2code/tree/main/.claude/skills/dead-code-cleanup
Command: npx skills add https://github.com/AkaraChen/2code --skill dead-code-cleanup-akarachen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps identify and remove dead or unused code across frontend (TypeScript/React) and backend (Rust/Tauri), reducing maintenance burden and surface areas of unreferenced symbols or imports.

Core Features & Use Cases

  • Frontend dead code detection using knip to find unused exports, files, and dependencies.
  • Backend dead code detection by scanning Rust/Tauri code for unused commands, handlers, and dead code paths.
  • Safe cleanup workflow: verify findings, prune unused code, and re-run analysis until clean.

Quick Start

Run bunx knip to scan for dead code, verify findings, and iteratively apply fixes until the scan reports no dead code.

Frequently Asked Questions about dead-code-cleanup

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

FAQPage Schema
How do I find and remove dead code in a TypeScript and Rust Tauri project?

You can eliminate dead code across a TypeScript and Rust Tauri project by running frontend analysis with knip and backend analysis with Rust tooling. It identifies unused exports, files, dependencies, and dead code paths for cleanup.

What is the best way to detect unused exports and dependencies in a React frontend?

The best way to detect unused exports and dependencies in a React frontend is using knip. It scans your TypeScript project to find unreferenced files and symbols, reducing maintenance burden during refactoring sprints.

Can I scan a Rust Tauri backend for unused commands and dead code paths?

Yes, you can scan a Rust Tauri backend for unused commands and dead code paths using Rust tooling. The skill enforces verifying these findings before deletion to ensure safe removal during release preparation.

How do I safely clean up unused code without breaking my application?

To safely clean up unused code, you must verify all findings before deletion, prune the unused code, and iteratively re-run the analysis. Continue this workflow until the scan reports no dead code remains.

Do I need knip installed to scan for dead code in my frontend?

Yes, knip is required for frontend dead code detection. You run bunx knip to scan for dead code, verify the findings, and iteratively apply fixes until the scan reports no dead code is left.

When should I run a dead code cleanup sprint for my full stack application?

You should run a dead code cleanup sprint during refactoring, cleanup sprints, and before releases. This reduces the maintenance burden and surface area of unreferenced symbols across your TypeScript and Rust codebase.