# 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.

- Skill: `agentskillexchange/find-unused-python-code-before-cleanup-refactors-with-vultur` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/find-unused-python-code-before-cleanup-refactors-with-vultur`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/find-unused-python-code-before-cleanup-refactors-with-vultur/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/find-unused-python-code-before-cleanup-refactors-with-vultur

---


# 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:
- [![PyPI Version](https://img.shields.io/pypi/v/vulture.svg)](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/)

