library/specializations/code-migration-modernization/skills/dead-code-eliminator/SKILL.md
Identify and safely remove dead, unused, and unreachable code from codebases
npx skillsauth add a5c-ai/babysitter dead-code-eliminatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Identifies and safely removes dead code, unused functions, unreachable code paths, and orphaned files from codebases to reduce complexity and maintenance burden.
Enable safe dead code removal for:
| Tool | Language | Integration Method | |------|----------|-------------------| | ts-prune | TypeScript | CLI | | unimported | JavaScript | CLI | | deadcode | Python | CLI | | UCDetector | Java | Eclipse Plugin | | unused | Rust | CLI | | deadcode | Go | CLI | | webpack-bundle-analyzer | JavaScript | CLI |
{
"analysisId": "string",
"timestamp": "ISO8601",
"deadCode": {
"functions": [
{
"file": "string",
"name": "string",
"line": "number",
"confidence": "high|medium|low",
"reason": "string"
}
],
"variables": [],
"files": [],
"unreachable": []
},
"impact": {
"filesAffected": "number",
"linesRemovable": "number",
"estimatedSizeReduction": "string"
},
"risks": [],
"recommendations": []
}
static-code-analyzer: Combined analysiscode-smell-detector: Related smell detectionlegacy-decommissioning-specialist: Uses for cleanupcode-transformation-executor: Executes removaldevelopment
Model documentation skill for generating model cards following Google's model card framework.
development
MLflow integration skill for experiment tracking, model registry, and artifact management. Enables LLMs to log experiments, compare runs, manage model lifecycle, and retrieve artifacts through the MLflow API.
data-ai
LIME-based local explanation skill for individual predictions across tabular, text, and image data.
devops
Kubeflow Pipelines skill for ML workflow orchestration, component management, and Kubernetes-native ML.