You are now executing the **plugin-update** command to check for and apply updates to the Nine-Step Workflow Plugin.
Checks for and applies updates to the Nine-Step Workflow Plugin from GitHub.
/plugin marketplace add binee108/nine-step-workflow-plugin/plugin install nine-step-workflow@lilylab-marketplaceYou are now executing the plugin-update command to check for and apply updates to the Nine-Step Workflow Plugin.
Perform the following steps to update the plugin:
Read the version configuration file:
.version.json
And the plugin metadata:
.claude-plugin/plugin.json
Extract:
Use the GitHub API to check the latest release:
# Fetch latest release information from GitHub
curl -s https://api.github.com/repos/{{REPO_OWNER}}/{{REPO_NAME}}/releases/latest
Parse the response to extract:
If no releases exist, check the latest commit on the main branch:
curl -s https://api.github.com/repos/{{REPO_OWNER}}/{{REPO_NAME}}/commits/main
Compare the current version with the latest version:
Version comparison logic:
Current: 1.1.0
Latest: 1.2.0
Result: Update available ā
Current: 1.2.0
Latest: 1.2.0
Result: Already up-to-date ā
If an update is available, present the information to the user:
š¦ Nine-Step Workflow Plugin Update Available
Current Version: v1.1.0
Latest Version: v1.2.0
Release Notes:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
[Display release notes from GitHub]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Would you like to update now? (yes/no)
If already up-to-date:
ā Nine-Step Workflow Plugin is up-to-date
Current Version: v1.1.0
Latest Version: v1.1.0
No updates available.
When user confirms the update:
Verify git repository exists:
cd /path/to/plugin && git rev-parse --git-dir
Check for uncommitted changes:
git status --porcelain
If there are uncommitted changes, warn the user:
ā ļø Warning: You have uncommitted changes in the plugin directory.
These changes will be preserved, but may conflict with the update.
Options:
1. Continue with update (may cause merge conflicts)
2. Stash changes and update
3. Cancel update
What would you like to do? (1/2/3)
Fetch latest changes:
git fetch origin
Pull updates:
git pull origin main
Or if the user chose to stash:
git stash
git pull origin main
git stash pop
Update version tracking:
Update .version.json with:
{
"currentVersion": "1.2.0",
"lastChecked": "2025-11-13T10:30:00Z",
...
}
Update plugin metadata:
Update .claude-plugin/plugin.json version field.
Display success message:
ā Successfully updated Nine-Step Workflow Plugin
v1.1.0 ā v1.2.0
Changes applied:
- 5 files changed
- 120 insertions(+)
- 45 deletions(-)
The plugin is now ready to use with the latest features!
If any errors occur during the update process:
Network errors:
ā Failed to connect to GitHub
Please check your internet connection and try again.
If the problem persists, you can manually update:
cd ~/.claude/plugins/nine-step-workflow
git pull origin main
Merge conflicts:
ā Update failed due to merge conflicts
The following files have conflicts:
- commands/workflow-exec.md
- agents/project-planner.md
Please resolve conflicts manually:
1. cd ~/.claude/plugins/nine-step-workflow
2. Resolve conflicts in the listed files
3. git add <resolved-files>
4. git commit -m "Merge update"
Or reset to latest version:
git reset --hard origin/main
Git errors:
ā Not a git repository
This plugin was not installed via git clone.
To enable auto-updates, please reinstall:
1. Remove current installation
2. git clone https://github.com/{{REPO_OWNER}}/{{REPO_NAME}}.git
3. Install to plugins directory
Support optional flags:
--check-only - Only check for updates, don't apply--force - Force update even if versions match--version <version> - Update to specific version/tag--dry-run - Show what would be updated without applyingExample:
/plugin-update --check-only
/plugin-update --version v1.1.0
/plugin-update --force
Always preserve user data:
Handle rate limits:
checkIntervalDays settingSecurity considerations:
User experience:
When configured with autoCheckUpdates: true, perform silent version check:
lastChecked is older than checkIntervalDaysā¹ļø Nine-Step Workflow Plugin update available (v1.2.0)
Run /plugin-update to upgrade
Use clear, formatted output:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Nine-Step Workflow Plugin Updater ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Current: v1.1.0
Latest: v1.2.0
Status: Update available
[Proceed with update? yes/no]
Remember: