Find Unused Python Code Before Cleanup Refactors With Vulture
ASecurity
Run a dead-code pass on Python repositories before refactors so agents can flag unused functions, classes, imports, and variables instead of deleting blindly.
36 stars
0 votes
0 copies
0 views
Added June 8, 2026
ai-agentspythongogitsecuritydocumentation
Works with
cli
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Are you the author of Find Unused Python Code Before Cleanup Refactors With Vulture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-find-unused-python-code-before-cleanup-refactors-w)
---
name: "Find unused Python code before cleanup refactors with Vulture"
slug: "find-unused-python-code-before-cleanup-refactors-with-vulture"
description: "Run a dead-code pass on Python repositories before refactors so agents can flag unused functions, classes, imports, and variables instead of deleting blindly."
github_stars: 4521
verification: "security_reviewed"
source: "https://github.com/jendrikseipp/vulture"
author: "jendrikseipp"
publisher_type: "individual"
category: "Code Quality & Review"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "jendrikseipp/vulture"
github_stars: 4521
---
# Find unused Python code before cleanup refactors with Vulture
Run a dead-code pass on Python repositories before refactors so agents can flag unused functions, classes, imports, and variables instead of deleting blindly.
## Prerequisites
Python 3, pip, Vulture CLI
## Installation
Use the upstream install or setup path that matches your environment:
- $ pip install vulture
- make some modifications.
- make it harder to read.
Requirements and caveats from upstream:
- [](https://pypi.python.org/pypi/vulture)
- Vulture finds unused code in Python programs. This is useful for
- Due to Python's dynamic nature, static code analyzers like Vulture are
Basic usage or getting-started notes:
- cleaning up and finding errors in large code bases. If you run Vulture
- $ vulture myscript.py # or
- $ python3 -m vulture myscript.py
- Source: https://github.com/jendrikseipp/vulture
- Extracted from upstream docs: https://raw.githubusercontent.com/jendrikseipp/vulture/HEAD/README.md
## Documentation
- https://github.com/jendrikseipp/vulture
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/find-unused-python-code-before-cleanup-refactors-with-vulture/)