What problem does it solve?
This Skill verifies that a feature branch has advanced its publishing version so that local/published artifacts for the same version cannot be unintentionally overwritten.
Core Features & Use Cases
- Strict version-advance guard: Blocks when
version.gradle.kts’s publishing version is unchanged or decreased compared to the configured base ref.
- Deterministic version key discovery: Extracts the publishing version key from Gradle build scripts (or uses
VERSION_BUMPED_KEY when provided) and compares versions via a strict greater-than check.
- Optional auto-recovery workflow: When blocked (exit code 1), it invokes
/bump-version and then re-runs the check once to confirm recovery.
Use case: On a feature branch with commits that include both code changes and a retry-ready version bump, ensure publishToMavenLocal won’t overwrite the artifact version that integration tests in consumer repos may rely on.
Quick Start
Run version-bumped on the current branch to confirm the Gradle publishing version is strictly greater than the base ref, or auto-recover by triggering the bump when it is not.