audit-env-variables
Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects…
Safely identifies and removes dead code in TypeScript/JavaScript projects using multi-agent analysis with automatic backup branches. Use when cleaning up unused exports, orphaned files, dead imports, unreachable functions, or unused dependencies.
Claude Code
$ npx -y skills add qdhenry/Claude-Command-Suite --skill remove-dead-code --agent claude-code
Codex
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a codex -y
Cursor
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a cursor -y
Gemini CLI
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a gemini-cli -y
GitHub Copilot
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a github-copilot -y
OpenCode
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a opencode -y
Windsurf
$ npx skills add qdhenry/Claude-Command-Suite --skill remove-dead-code -a windsurf -y
name: remove-dead-code description: Safely identifies and removes dead code in TypeScript/JavaScript projects using multi-agent analysis with automatic backup branches. Use when cleaning up unused exports, orphaned files, dead imports, unreachable functions, or unused dependencies.
<essential_principles>
**Safety-first dead code removal.** Every removal is protected by an automatic backup branch. Multi-agent analysis reduces false positives. No code is deleted without cross-validation.
**1. Backup Before Everything**
Before any modification, create a timestamped backup branch from the current HEAD. This is non-negotiable. The branch name format is `backup/dead-code-removal/{timestamp}`.
**2. Parallel Scout + Validator Pattern**
Multiple scout agents analyze different aspects of dead code in parallel. A validator agent then cross-checks all findings against the full codebase before anything is flagged for removal. Only code confirmed dead by both scouts AND validator gets removed.
**3. Conservative by Default**
When in doubt, keep the code. False negatives (missing some dead code) are acceptable. False positives (removing live code) are not. Dynamic imports, reflection, test utilities, and public API surface are always treated as potentially live.
**4. Never Remove Without Reporting First**
The scan workflow produces a report. The user reviews the report. Only then does the remove workflow execute against confirmed items.
</essential_principles>
<intake> What would you like to do?
1. **Scan** - Analyze codebase for dead code (read-only, produces report) 2. **Remove** - Remove confirmed dead code (requires prior scan report) 3. **Validate** - Verify removal didn't break anything (post-removal checks)
**Wait for response before proceeding.** </intake>
<routing> | Response | Workflow | |----------|----------| | 1, "scan", "analyze", "find", "detect", "report" | `workflows/scan-dead-code.md` | | 2, "remove", "delete", "clean", "prune" | `workflows/remove-dead-code.md` | | 3, "validate", "verify", "check", "test" | `workflows/validate-removal.md` | | Unclear | Ask: "Would you like to scan first (recommended) or do you already have a scan report?" |
**Default flow:** Scan → Review report → Remove → Validate
**After reading the workflow, follow it exactly.** </routing>
<safety_rules>
</safety_rules>
<reference_index> All domain knowledge in `references/`:
**Detection:** detection-patterns.md - What to scan for and how to identify dead code **Agents:** agent-coordination.md - How multi-agent parallel analysis works </reference_index>
<workflows_index> | Workflow | Purpose | |----------|---------| | scan-dead-code.md | Multi-agent analysis producing a dead code report | | remove-dead-code.md | Safe removal with backup branch and atomic commits | | validate-removal.md | Post-removal build, test, and type-check verification | </workflows_index>
<success_criteria> Dead code removal is successful when:
</success_criteria>
A comprehensive development toolkit designed following Anthropic's Claude Code Best Practices for AI-assisted software development.
Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects…
BigCommerce API expert for building integrations, apps, headless storefronts, and automations. Full lifecycle - REST APIs,…
Comprehensive Cloudflare account management for deploying Workers, KV Storage, R2, Pages, DNS, and Routes. Use when deploying…
Transcribes audio/video files using ElevenLabs Scribe v2 API. Use when transcribing audio files, generating transcripts, or…
Extracts frames and timestamped audio segments from video files (GIF, MP4, MOV) at configurable intervals and stores them in a…
Chokidar-based file watcher that triggers `claude -p` on changes. Useful for automated AI reactions to file changes — design…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.