name: 'upgrade-packmind-chart' description: "Upgrade Packmind Helm Chart following a new Packmind app release"
Upgrade Packmind Chart
This skill upgrades the Packmind Helm chart to a new version.
Usage
/upgrade-packmind-chart [version]
Where [version] is the new Packmind application version in semver format (e.g., 1.8.0).
Instructions
When this skill is invoked:
Check if version is provided:
- If NO version argument is provided, use the AskUserQuestion tool to prompt the user: "What is the new Packmind version? (format: x.y.z, e.g., 1.8.0)"
- Wait for the user's response before proceeding
Validate the version format: Ensure the provided version matches the semver pattern
x.y.z(e.g.,1.8.0). If invalid, inform the user and stop.Read the current Chart.yaml at
packmind/Chart.yamlto get the current chart version.Calculate the new chart version:
- Parse the current chart
version(e.g.,0.21.0) - Increment the minor version by 1 (e.g.,
0.21.0→0.22.0) - Reset patch to 0 if incrementing minor
- Parse the current chart
Update
packmind/Chart.yaml:- Update
appVersionto the provided version - Update
versionto the new incremented chart version
- Update
Update
packmind/values.yaml:- Update
api.image.tagto the provided version - Update
frontend.image.tagto the provided version - Update
mcpServer.image.tagto the provided version
- Update
Report the changes:
- Show the old and new chart version
- Show the old and new app version
- List all updated image tags
Create a git commit:
- Stage the modified files:
packmind/Chart.yamlandpackmind/values.yaml - Create a commit with message:
Release <new_chart_version> for Packmind <new_app_version> - Example:
Release 0.22.0 for Packmind 1.8.0
- Stage the modified files:
Tag the commit:
- Create a git tag with format:
release/<new_chart_version> - Example:
release/0.22.0
- Create a git tag with format:
Push to remote:
- Push the commit to the remote repository
- Push the tag to the remote repository
Example
/upgrade-packmind-chart 1.8.0
This will:
- Update
Chart.yamlversion from0.21.0to0.22.0 - Update
Chart.yamlappVersion from1.7.0to1.8.0 - Update all image tags in
values.yamlfrom1.7.0to1.8.0 - Create a commit:
Release 0.22.0 for Packmind 1.8.0 - Tag the commit:
release/0.22.0 - Push commit and tag to remote