ojowwalker77/claude-matrix/nuke
Claude Code and agent skill by ojowwalker77/claude-matrix
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "nuke dead code", "find unused exports", "clean up imports", "find orphaned files", "detect circular deps", "cleanup codebase", "find unused packages", "remove dead code", "nuke this", "nuke unused", or needs comprehensive codebase hygiene analysis.
Install
npx vskill@latest install ojowwalker77/claude-matrix/nukeSKILL.md
Matrix Nuke
Comprehensive codebase hygiene analysis. Detects dead code, unused imports, orphaned files, circular dependencies, stale TODOs, unnecessary comments, overengineered dependencies, and more across 11 categories.
Tip: This skill runs in a forked context for unbiased analysis - clean slate, no conversation history bias.
Architecture
Usage
Parse user arguments from the skill invocation (text after the trigger phrase).
Expected format: /nuke [mode] [path]
Modes
| Mode | Command | Behavior | |
|---|---|---|---|
| Scan | /nuke or /nuke scan | Report only - touch nothing (default) | |
| This | /nuke this <file> | Single file analysis | |
| Safe | /nuke safe | Report HIGH confidence only (>90%) | |
| Aggressive | /nuke aggressive | Report MEDIUM+ confidence (>70%) |
Path Filtering
Append a path to any mode to limit scope:
/nuke scan src/api/- only scan src/api//nuke this src/utils/auth.ts- single file
Examples
Pipeline
Follow the orchestration detailed in references/nuke-pipeline.md:
- Pre-flight - Check index availability (
matrix_index_status), detect entry points from package.json, parse mode - Structural Analysis - Use
matrix_find_dead_codefor dead exports + orphaned files - Circular Dep Detection - Use
matrix_find_circular_depsfor import cycles - Dependency Analysis - Read package.json, cross-reference with actual imports via
Grep - Generative Analysis - AI inspection of files for comments, console.log, duplication, TODOs
- Triage - Apply safety rules, assign confidence scores, classify into tiers
- Report - Generate formatted output per
references/output-format.md
Early exit for `/nuke this`: Only run Structural + Generative agents on that single file. Skip dependency and circular dep analysis.
Graceful degradation: If index is unavailable, fall back to Grep-based analysis. Report reduced accuracy.
What Gets Detected (11 Categories)
Structural (deterministic, via MCP tools)
- Dead exports - exported symbols with zero callers across the codebase
- Orphaned files - files that nothing imports (excluding entry points)
- Circular dependencies - import cycles in the dependency graph
- Unused npm packages - in package.json but never imported
- Unused imports - imports brought in but never referenced in the file
Generative (AI judgment required)
- Unnecessary comments - obvious/redundant comments (
// increment i,// constructor) - Commented-out code - dead code hiding in comments (contains
{,=,function,return) - Console.log leftovers -
console.logandconsole.debugleft from debugging (NOTconsole.error) - Overengineered deps - libraries replaceable with native APIs (
lodash.get->?.,moment->Intl) - Copy-paste duplication - near-identical code blocks (5+ similar consecutive lines)
- Stale TODO/FIXME - ancient TODOs with no linked issues and old git blame dates
Safety Rules
See references/safety-rules.md for full details. Key rules:
- Never flag entry points - index.ts, main.ts, bin/*, package.json main/module/exports
- Never flag framework conventions - pages/, routes/, app/, .config., migrations/
- Never flag dynamically imported modules - import(), require() references
- Never flag public API surface - root barrel exports, @public JSDoc
- Respect .nukeignore - if present, honor it like .gitignore
Additional Resources
- `references/nuke-pipeline.md` - Full orchestrator pipeline
- `references/agents/structural-agent.md` - Dead code detection via MCP tools
- `references/agents/generative-agent.md` - AI-judged detection patterns
- `references/agents/dependency-agent.md` - Package analysis and native alternatives
- `references/agents/triage-agent.md` - Confidence scoring and safety filtering
- `references/safety-rules.md` - Entry point detection, what NOT to flag
- `references/output-format.md` - Report template
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nuke/SKILL.md
Popularity
- Repository stars
- 104
- Repository forks
- 9
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ojowwalker77/claude-matrix/nuke)