Matrix Nuke

Detect dead exports, orphaned files, unused imports, and circular dependencies in JavaScript and TypeScript repositories.

110|9|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/ojowwalker77/Claude-Matrix --skill matrix-nuke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Matrix Nuke
Source: https://github.com/ojowwalker77/Claude-Matrix/tree/main/skills/nuke
Command: npx skills add https://github.com/ojowwalker77/Claude-Matrix --skill matrix-nuke

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Matrix Nuke locates and prioritizes dead code and code hygiene problems across a repository so teams can reduce technical debt, shrink maintenance surface area, and avoid regressions from unsafe removals.

Core Features & Use Cases

  • Deterministic structural analysis: Detects dead exports, orphaned files, and unused imports using the Matrix code index with a Grep fallback.
  • Dependency and cycle checks: Identifies unused npm packages and import cycles and cross-references package.json and config files.
  • Generative AI inspection: Flags unnecessary comments, commented-out code, console.log leftovers, duplicated code, and stale TODOs with confidence scoring and triage.
  • Safety-first reporting: Applies explicit safety rules, respects .nukeignore, treats entry points and framework conventions as filtered, and supports scan/safe/aggressive modes.

Quick Start

Run /nuke scan to generate a full codebase hygiene report or run /nuke this path/to/file for a single-file analysis.

Frequently Asked Questions about Matrix Nuke

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

FAQPage Schema
How do I find and safely remove dead code in a JavaScript or TypeScript repository?

To find and safely remove dead code, use Matrix Nuke to detect dead exports, orphaned files, and unused imports. It requires a code index when available and reads package.json to enforce safety rules before reporting issues.

How do I detect circular dependencies and unused npm packages in a JavaScript project?

Detect circular dependencies and unused npm packages by running a structural analysis that cross-references your package.json and config files. Matrix Nuke identifies import cycles and flags unused dependencies for triage.

Can I scan a single file for unused imports and dead exports instead of the whole project?

Yes, you can run a single-file analysis instead of a full scan. Matrix Nuke supports path-limited scans, allowing you to target specific files for dead exports, unused imports, and code-hygiene issues.

What is the best way to identify commented-out code and stale TODOs across a codebase?

The best way to identify commented-out code and stale TODOs is using generative AI inspection. Matrix Nuke flags unnecessary comments, console.log leftovers, and duplicated code with confidence scoring for triage.

Does dead code removal respect gitignore or framework entry points to prevent unsafe deletions?

Dead code removal respects .nukeignore files and treats framework entry points as filtered. Matrix Nuke applies explicit safety rules and supports scan, safe, and aggressive modes to prevent unsafe deletions.

Does static analysis for dead code work without a Matrix code index?

Yes, static analysis for dead code works without a Matrix code index by falling back to Grep. Matrix Nuke prefers using a code index but fully supports deterministic structural analysis using the Grep fallback.