Skip to content

Add skill versioning and version management (#44)#67

Open
devrimcavusoglu wants to merge 1 commit intomainfrom
feature/skill-versioning
Open

Add skill versioning and version management (#44)#67
devrimcavusoglu wants to merge 1 commit intomainfrom
feature/skill-versioning

Conversation

@devrimcavusoglu
Copy link
Owner

Summary

  • Add internal/skill/version.go with semver parsing, bumping (patch/minor/major), and comparison — stdlib only
  • Add skern skill version <name> command to show current version
  • Add skern skill version <name> --bump patch|minor|major to bump and persist
  • Add --version flag to skern skill create for setting initial version (validates semver format)
  • Add SkillVersionResult and VersionCompareResult output types for --json support

Test plan

  • 35 unit tests for version parsing, string conversion, bump operations, and comparison (including edge cases)
  • 14 CLI tests for show, bump (all levels), invalid input, sequential bumps, scoped resolution, create with version
  • make build passes
  • make test passes (all packages)
  • make lint — 0 issues

Closes #44

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skill versioning and history management

1 participant