Audit Deadcode — Security skill for Claude Code
Comprehensive dead code audit — finds all unused files, functions, classes, and variables by walking the call graph from actual entry points.
How to install Audit Deadcode
Installs to ~/.claude/commands/frankray78-netpace-audit-deadcode.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/FrankRay78/NetPace/HEAD/.claude/commands/audit-deadcode.md -o ~/.claude/commands/frankray78-netpace-audit-deadcode.md Restart Claude Code, or start a new session, for it to be picked up.
What Audit Deadcode does
description: Comprehensive dead code audit — finds all unused files, functions, classes, and variables by walking the call graph from actual entry points. Run periodically (after several features merge, or before a release), not per-PR. Produces DEADCODE.md. reference: https://www.josecasanova.com/prompts/dead-code-audit
You will be conducting a comprehensive audit of a codebase to identify ALL dead code that can be safely deleted. This requires extremely thorough analysis from multiple
Alternatives in Security
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
- Maestro Odyssey — Long-running iterative cycle — one entry, seven modes (debug improve planex review security defensive ui) 530 ★
- Cross-Pollinate Hex MCP Servers — Diff-driven audit: find real transferable changes across hex-line-mcp, hex-ssh-mcp, hex-graph-mcp 238 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Threat Model Skill
Claude Code skill: write the project's security constitution (assets, roles, trust boundaries, invariants, ent
Diff Audit
PR / commit-scoped differential audit — audits only changed functions (plus 1-hop callers), flags removed secu
Deadcode Plan
Dead-code audit — configured Knip baseline plus ratchet plan, delete nothing until approved
Audit Instructions
Audit CLAUDE.md files, skills, and command files for vague, unenforceable, or drift-prone instructions. Run pe
Public Skills Builder
Generate Claude Code bug bounty skills from public HackerOne reports and GitHub writeups — 18 vuln classes, no
Security Audit Web App
Use when auditing a web app frontend/edge layer for common security mistakes — server vs client boundary leaks
Related Agents
Dead Code Detector
Find unused functions, methods, variables, and unreachable code blocks using reference checking
Tp Dead Code Finder
Use this when the user asks to find or remove dead / unused code ("clean up this file", "find unused exports",
Unused Code Cleaner
Detects and removes unused code (imports, functions, classes) across multiple languages. Use PROACTIVELY after