Add skill versioning and version management (#44)#67
Merged
devrimcavusoglu merged 2 commits intomainfrom Mar 17, 2026
Merged
Conversation
Owner
Author
Review Findings & ChangesReviewed the PR comprehensively — overall well-structured with good test coverage and clean separation of concerns. Two issues identified and fixed in commit f090062: 1. Default skill version was
|
Add semver parsing, bumping, and comparison in internal/skill/version.go. Add `skern skill version` command with --bump patch|minor|major support. Add --version flag to `skern skill create` for setting initial version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change default skill version from 0.1.0 to 0.0.1 (skills should start at 0.0.1, distinct from the CLI's own v0.1.0 release version) - Reject leading zeros in ParseVersion per strict semver spec (e.g. "01.2.3" is now invalid) - Update all tests and docs accordingly Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e9ed082 to
830adb9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
internal/skill/version.gowith semver parsing, bumping (patch/minor/major), and comparison — stdlib onlyskern skill version <name>command to show current versionskern skill version <name> --bump patch|minor|majorto bump and persist--versionflag toskern skill createfor setting initial version (validates semver format)SkillVersionResultandVersionCompareResultoutput types for--jsonsupportTest plan
make buildpassesmake testpasses (all packages)make lint— 0 issuesCloses #44
🤖 Generated with Claude Code