Upgrade
Role: worker. This command updates the dev-team plugin to the latest version and ensures its marketplace is set to auto-update going forward.
Arguments: none.
You have been invoked with the /upgrade command.
Worker constraints
- Use the official plugin update mechanism; do not hand-edit installed plugin files.
- Report available updates before applying.
- Be concise. Report version deltas only.
Steps
1. Read current version
Read the installed plugin's plugin.json to get the current version:
claude plugin list
Parse the output to find dev-team and its current version. Also read the installed plugin.json directly:
~/.claude/plugins/cache/*/dev-team/*/.claude-plugin/plugin.json
Report:
Current version: dev-team v{version} (installed from {marketplace})
2. Check auto-update status and ask the user
First, report the current auto-update status (enabled, disabled, or unknown):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/upgrade/scripts/enable_autoupdate.py" --check
Then ask the user:
Auto-update for the
{marketplace}marketplace is currently {enabled/disabled}.
Would you like to enable auto-update so future releases install automatically? (yes/no)
Wait for the user's answer before continuing. If they say yes, run the enable block below. If they say no, skip to step 3.
Enable block (run only if the user consents):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/upgrade/scripts/enable_autoupdate.py" --enable
This sets extraKnownMarketplaces.<marketplace>.autoUpdate: true (project settings first, else the config-dir user settings, seeding the entry from the marketplace registry when needed). It is idempotent — re-running reports "already enabled". Report the one-line result to the user, then continue to step 3.
The same script backs the cloud bootstrap (
.claude/cloud-setup.sh,
.claude/install-dev-team.sh), which runs--enablenon-interactively — one
implementation of the flag, no duplication to keep in sync.
3. Run the update
First, determine the install scope from claude plugin list output (the Scope: line for dev-team). It will be one of: user, project, local, managed.
claude plugin update --scope {scope} dev-team@{marketplace}
Where {scope} is the detected install scope (e.g., project) and {marketplace} is the marketplace name (e.g., bfinster). The --scope flag is required — the CLI defaults to user, which will fail if the plugin is installed at a different scope.
If the command succeeds with a version change, proceed to step 4.
Before concluding the update is broken or unnecessary, verify the catalog is current. An "already up to date" result or a failed update is often a stale marketplace catalog pinned behind the latest release — not a broken update mechanism. Diff the marketplace's pinned version against the latest published release before drawing a conclusion:
- Compare the version in the marketplace source's
.claude-plugin/marketplace.json(and the plugin's.claude-plugin/plugin.json) against the latest release tag/commit of the marketplace repo. - If the catalog is behind the release, the root cause is the stale catalog, not
claude plugin update. Refresh the marketplace (re-add it, or wait for its catalog to update) and re-run/upgrade.
If the output indicates already up to date:
Already running the latest version (v{version}).
Continue to step 5 (a restarted session after an update is where scaffolded files get refreshed), then exit.
If the command fails, report the error and suggest:
Update failed. You can try a manual reinstall:
```
claude plugin uninstall dev-team@{marketplace}
claude plugin install dev-team@{marketplace}
```
Exit.
4. Confirm the update
Read the new plugin.json to verify the version changed:
claude plugin list
Report:
## Upgrade Complete
Previous: v{old_version}
Updated: v{new_version}
Restart Claude Code to apply the update, then run `/upgrade` again to refresh the scaffolded lint config (step 5). The running session still resolves the old plugin version, so refreshing now would stamp the old version.
5. Refresh scaffolded lint config
Run only when the installed plugin version is the one this session is running (the "already up to date" path in step 3). /setup may have scaffolded eslint.devteam.config.js into this project. Ask the script for the state of each file; this step does not compare stamps itself:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/scaffold_lint_config.py" --project "$PWD" --check
The output is JSON, file name to status. No output entries means nothing was scaffolded here: say nothing and exit.
| Status | Report |
| --- | --- |
| current, current-edited | nothing |
| stale-unedited | "{file} is from an older dev-team version and unedited" |
| stale-edited | "{file} is from an older dev-team version and you edited it. Compare it with the shipped file before you change it: diff {file} "${CLAUDE_PLUGIN_ROOT}/templates/eslint/payload/{file}" (the first line of {file} is a stamp)" |
| unstamped | "{file} has no dev-team stamp, so /upgrade leaves it alone" |
| symlink | "{file} is a symlink, so /upgrade leaves it alone" |
When any file is stale-unedited, ask: "Refresh all unedited dev-team lint config files? (yes/no)". On yes, run:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/scaffold_lint_config.py" --project "$PWD" --refresh
The script rewrites only stale-unedited files and lists the others under skipped with their status. Report the refreshed list and, for each skipped file with a stale status, the diff pointer above. Never rewrite an edited file by hand.
Notes
- The
claude plugin updatecommand handles fetching, caching, and version management - Previous versions are kept for 7 days so active sessions continue working
- A restart of Claude Code is required for the new version to take effect
- Step 2 checks the current auto-update status and asks the user before enabling it. The flag is
extraKnownMarketplaces.<marketplace>.autoUpdate: trueinsettings.json(the same flag the/pluginUI toggles; there is no dedicatedclaude pluginCLI subcommand for it). With it on, routine releases land without running/upgrade.