cleanup

Detect and remove unused code, dead imports, and console statements in TypeScript/JavaScript projects.

Updated Jun 23, 2025
One-click install
npx skills add https://github.com/Dayopt/app --skill cleanup-dayopt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup
Source: https://github.com/Dayopt/app/tree/main/.claude/skills/cleanup
Command: npx skills add https://github.com/Dayopt/app --skill cleanup-dayopt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

不要コードを安全に削除するプロセスを自動化・ガイドします。console.log検出、未使用import、死んだコードの検出などの自動発動条件を提供し、削除手順をサポートします。

Core Features & Use Cases

  • 自動検出と削除提案: コンソール出力・未使用import・デッドコードを検出し、削除候補を提示します。
  • 安全な削除ワークフロー: 見つかったコードを段階的に削除する手順と検証を提供します。
  • Dayopt固有のパターン: 具体例と安全対策を示します。

Quick Start

未使用コードを自動的に検出して安全に削除するために、リポジトリ全体を走査して削除候補を提示してください。

Frequently Asked Questions about cleanup

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

FAQPage Schema
How do I automatically detect and remove unused imports and dead code in a TypeScript project?

To remove unused imports and dead code in a TypeScript project, this Skill uses static analysis to scan your repository, identify dead exports and unused statements, and generate an auditable deletion workflow with validation steps.

Can I automatically strip console.log statements during a JavaScript code refactor?

Yes, you can strip console.log statements during a JavaScript code refactor. The Skill incorporates static analysis specifically for console usage detection and guides you through safely deleting the flagged statements.

What is the best way to automate dead code removal for pre-commit hooks?

The best way to automate dead code removal for pre-commit hooks is applying static analysis across your modern JavaScript or TypeScript project to detect unused code and execute a guided, validated deletion workflow before commits.

Does this static analysis tool support modern JavaScript and TypeScript repositories?

Yes, this static analysis tool supports modern JavaScript and TypeScript repositories. It is specifically designed to apply automated cleanup across these project types during code refactors and audits.

How does the guided deletion workflow ensure safe removal of unused exports?

The guided deletion workflow ensures safe removal of unused exports by providing step-by-step deletion procedures and validation checks. It identifies dead code through static analysis and guides you through an auditable cleanup process.

When should I use an automated cleanup tool instead of manually finding dead code?

You should use an automated cleanup tool instead of manually finding dead code when performing large-scale code refactors, audits, or pre-commit hook integrations, ensuring comprehensive static analysis and safe, validated deletion across the codebase.