Agent skill · Audited from source
Remove Dead Code
skill · qdhenry/Claude-Command-SuiteLicence not declaredAudited 9 Oct 2026 · source 30765dd323e0
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 30765dd323e0 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 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…
Cite
Cite this page
ModelsAtlas. “Remove Dead Code (qdhenry/Claude-Command-Suite)”. Retrieved 9 Oct 2026. https://modelsatlas.com/skills/qdhenry/remove-dead-code
Trust audit
Audit 0.4.1 · source read 9 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 1 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass, no license.
Findings (1)
LOWInventory / provenanceinv.no_license
- Why
- no LICENSE file and no repo licence
- Fix
- add a licence
Audit 0.4.1 · source sha 30765dd323e0 · 9 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherqdhenry GitHub userOwner of the repository this skill is read from
- Source folderqdhenry/Claude-Command-Suite/.claude/skills/remove-dead-codeThe exact folder we audited
- LicenceNot declaredAs the repository states it
- Commit pinned for this verdict30765dd323e0A new audit runs when the source changes
- Repository statusNot archivedLast push 221 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its 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…
---
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>
- NEVER remove code without creating a backup branch first
- NEVER remove code that appears in test files as a test subject (test helpers ARE candidates)
- NEVER remove re-exported types that could be part of a public API
- NEVER remove files matching patterns: `*.config.*`, `*.setup.*`, `*.d.ts`, entry points
- ALWAYS preserve code referenced by dynamic imports (`import()` expressions)
- ALWAYS preserve code that might be used via string-based lookups or reflection
- ALWAYS check `package.json` `exports`, `main`, `types`, and `bin` fields before removing
- ALWAYS check framework conventions (Next.js pages/routes, Convex functions, etc.)
</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:
- Backup branch exists with pre-removal state
- All flagged items were cross-validated by multiple agents
- Build passes after removal (`tsc --noEmit`, `npm run build`)
- All tests pass after removal
- No new TypeScript errors introduced
- Removal summary report generated with what was removed and why
</success_criteria>Excerpt, first 3,940 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 30765dd
git clone https://github.com/qdhenry/Claude-Command-Suite git -C Claude-Command-Suite checkout 30765dd323e0
The author documents no install command, so this uses the repository directly. Our verdict covers commit 30765dd323e0 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
30765dd323e0
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/qdhenry/remove-dead-code/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →qdhenry/Claude-Command-Suite
Analyze environment variables in JavaScript/TypeScript projects. Identifies unused variables, infers permission scopes, detects specific services (Stripe, AWS, Supabase), and documents code paths. Includes optional…
qdhenry/Claude-Command-Suite
BigCommerce API expert for building integrations, apps, headless storefronts, and automations. Full lifecycle - REST APIs, GraphQL Storefront, webhooks, authentication, app development, and multi-storefront. Use when…
qdhenry/Claude-Command-Suite
Transcribes audio/video files using ElevenLabs Scribe v2 API. Use when transcribing audio files, generating transcripts, or converting speech to text.
qdhenry/Claude-Command-Suite
Extracts frames and timestamped audio segments from video files (GIF, MP4, MOV) at configurable intervals and stores them in a directory with a manifest file. Use when analyzing video content, preparing frames for…
qdhenry/Claude-Command-Suite
Chokidar-based file watcher that triggers `claude -p` on changes. Useful for automated AI reactions to file changes — design sync, code validation, config regeneration, etc.
qdhenry/Claude-Command-Suite
Professional slash commands for Claude Code that provide structured workflows for software development tasks including code review, feature creation, security auditing, and architectural analysis.
Add this badge to your README
[](https://modelsatlas.com/skills/qdhenry/remove-dead-code/)
<a href="https://modelsatlas.com/skills/qdhenry/remove-dead-code/"><img src="https://modelsatlas.com/skills/qdhenry/remove-dead-code/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Remove Dead Code
What does the Remove Dead Code skill do?
Is Remove Dead Code safe to install?
What can Remove Dead Code access on my machine?
How current is this page?
Sources
- github.com/qdhenry/Claude-Command-Suite/tree/main/.claude/skills — the audited source at commit 30765dd323e0 and every finding aboveObserved · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Remove Dead Code skill do?
- Is Remove Dead Code safe to install?
- What can Remove Dead Code access on my machine?