cleanup-unused

Identify unused files, dead code, and large commented-out blocks in a Gatsby website project.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/Gatsbyhateyou/gatsby-website --skill cleanup-unused
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-unused
Source: https://github.com/Gatsbyhateyou/gatsby-website/tree/main/.cursor/skills/cleanup-unused
Command: npx skills add https://github.com/Gatsbyhateyou/gatsby-website --skill cleanup-unused

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps maintain a clean and efficient codebase by identifying and removing files, images, and code blocks that are no longer in use after major version updates.

Core Features & Use Cases

  • Identify Unused Files: Scans the project to find files and resources not referenced by any entry points.
  • Detect Dead Code/Comments: Locates unused functions, variables, styles, and large commented-out code blocks.
  • User Confirmation: Presents a list of potential items for deletion and requires explicit user confirmation before any removal.
  • Use Case: After a large website redesign, run this Skill to get a list of old images and commented-out CSS that can be safely deleted, ensuring a leaner project.

Quick Start

Run the cleanup-unused skill to generate a list of potentially unused files and dead code for review.

Frequently Asked Questions about cleanup-unused

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

FAQPage Schema
How do I find unused files and dead code after a major website redesign?

To find unused files and dead code after a major redesign, scan project entry points to identify unreferenced resources, unused functions, and large commented-out code blocks for review.

What is the best way to clean up unreferenced images and assets in a Gatsby project?

The best way to clean up unreferenced images in a Gatsby project is to analyze entry points and their referenced assets, generating a list of unreferenced resources for safe deletion.

Does this code hygiene tool automatically delete dead code and commented blocks?

This code hygiene tool does not automatically delete dead code; it lists potentially unused files and large commented-out blocks, requiring explicit user confirmation before any removal.

Can I detect large commented-out CSS blocks and unused functions without breaking my website?

You can detect large commented-out CSS blocks and unused functions safely because the tool lists potential items for deletion and requires explicit user confirmation before removing anything.

When should I run a dead code analysis on my codebase?

You should run a dead code analysis after major version updates or large website redesigns to identify old images, unreferenced resources, and commented-out code, ensuring a leaner project.

Why does identifying unused files require adhering to specific project scope and reference rules?

Identifying unused files requires adhering to specific project scope and reference rules to accurately analyze entry points and distinguish truly unreferenced resources from active dependencies.