bump-dependency
Installation
SKILL.md
Bump Python Package Dependency in Home Assistant Core
Follow these systematic steps to successfully bump a python package requirement in the repository, regenerate necessary derivative files, verify the integration, and raise a pull request.
Gotchas & Non-Obvious Constraints
- PR Template Integrity: Follow Home Assistant's Pull Request template (
.github/PULL_REQUEST_TEMPLATE.md) exactly as written, including any instructions inside the template itself. Preserve all sections, comments, and unchecked checkboxes unless the template explicitly says otherwise; the only allowed removal is the Breaking change section when the template instructs you to remove it if not applicable. - GitHub Tag Volatility: Release tags on GitHub are highly inconsistent (e.g.,
v1.2.3vs1.2.3vsrelease-1.2.3). Always use the automated resolverresolve_dependency.pyto check HEAD status for correct tags before hardcoding comparison URLs.
Step-by-Step Workflow Checklist
Phase A: Research and Plan
- 1. Identify Targets: Note the requested target package and target version to bump.
- 2. Discover Codebase References: Search the codebase to find all
manifest.jsonand requirements files referencing the package. - 3. Resolve Version/Tag Details: Run the integrated validation helper script to resolve version details, GitHub repo, release tag format, and formatted PR links:
uv run python3 ./.claude/skills/bump-dependency/scripts/resolve_dependency.py <package> <old_version> [--new-version <new_version>] - 4. Plan-Validate-Execute (Draft Plan): Before modifying any files, write a brief, structured plan outlining the integrations to change, old version, new version, and the resolved comparison link. Show this draft plan to the user.