arabelatso/python-api-consistency-validator
Validate API consistency between two versions of Python libraries. Use when you need to compare API behavior, signatures, and exceptions between library versions to identify breaking changes, incompatible modifications, and behavior differences. The skill performs static analysis of Python code, compares function signatures, class definitions, parameter types, return types, and generates a detailed JSON report with breaking changes, warnings, and migration guidance. Supports Python libraries and packages.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill python-api-consistency-validator
This skill validates API consistency between two versions of Python libraries by comparing signatures, behavior, and exceptions. It identifies breaking changes, incompatible modifications, and provides detailed reports to guide safe API migration or upgrade.
# Compare two versions of a Python library
python scripts/validate.py /path/to/old_version /path/to/new_version
# Specify output file
python scripts/validate.py old_lib/ new_lib/ --output report.json
The tool generates a JSON report with:
Example report:
{
"summary": {
"breaking_changes": 3,
"warnings": 5,
"info": 2
},
"breaking_changes": [
{
"type": "function_removed",
"name": "deprecated_func",
"severity": "breaking",
"message": "Function 'deprecated_func' was removed"
}
]
}
python scripts/validate.py <old_version_path> <new_version_path> [--output <report.json>]
The validator exits with code 1 if breaking changes are found, 0 otherwise.
Take arabelatso/python-api-consistency-validator from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.