/claudops:update-setupfrom Claudops
Syncs local .claude/ workflow files with upstream claudops changes. Handles update checks, selective adoption, and conflict resolution for copied workflows.
Ships in Claudops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
If
.claude/skills/update-setup/SKILL.md.disabledexists, stop before reading a fallback. Project configuration: If the current project contains.claude/skills/update-setup/SKILL.md, read and apply it instead of this bundled default. The project copy is the capability source of truth. Repository context: Read../setup/references/task-context.mdwhen resolving a task, project commands, named agent roles, or legacy.claude/resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.
Sync local .claude/ workflow files with upstream claudops. The skill is
upstream-driven: local-only user files are ignored unless they are explicitly tracked in
the update manifest.
This workflow is for a legacy copied .claude/ installation. A managed plugin remains
authoritative; upgrade it through the host plugin manager instead of copying the plugin
into the project. Read ../setup/references/task-context.md when this update is
attached to a task; a check-only or standalone update does not create a task.
.claude/settings.json, .claude/settings.local.json, CLAUDE.md,
hook logs, .gitkeep, or local-only *.local.* files through this skill.Resolve scripts/update_setup.py relative to this loaded skill, including when it is
inside a plugin. Keep the consuming repository as the working directory. Set these
shell variables to the actual resolved paths for the commands below:
CLAUDOPS_UPDATE_SCRIPT="/absolute/path/to/loaded/update-setup/scripts/update_setup.py"
CLAUDOPS_TARGET="/absolute/path/to/target-repository"
python3 "$CLAUDOPS_UPDATE_SCRIPT" --help
The script's --local-root is a global option and belongs before scan, apply, or
verify. Its local state belongs to the target repository; never point it at a managed
plugin cache. An installed plugin upgrade is a separate operation through the host's
plugin manager. Read the installed plugin's identifier before constructing that command.
The script writes adoption state to:
.claude/skills/update-setup/claudops-upstream.lock.json
Tracked scope:
.claude/**Skipped scope:
.claude/settings.json.claude/settings.local.json.claude/hooks/logs/**.gitkeepCLAUDE.md*.local.*Create a deterministic report:
python3 "$CLAUDOPS_UPDATE_SCRIPT" --local-root "$CLAUDOPS_TARGET" scan \
--output .claudops-update-report.json
For local testing against an existing upstream clone:
python3 "$CLAUDOPS_UPDATE_SCRIPT" --local-root "$CLAUDOPS_TARGET" scan \
--upstream-root /tmp/claudops-upstream-sync \
--commit "$(git -C /tmp/claudops-upstream-sync rev-parse HEAD)" \
--output .claudops-update-report.json
Render the report:
python3 "$CLAUDOPS_UPDATE_SCRIPT" --local-root "$CLAUDOPS_TARGET" report \
--report .claudops-update-report.json
Explain statuses:
new: upstream file is not present locally.modified: upstream differs from local and local has no tracked conflict.conflicting: local changed since the last tracked adoption.disabled: upstream file exists, but local has <path>.disabled.removed: file was tracked in the manifest but is gone upstream.placeholder_only: differences are filled {{PLACEHOLDER}} values.unchanged: local matches upstream or the tracked adoption hash.If only unchanged and placeholder_only entries exist, report that the setup is up to
date and stop.
Present the exact paths and operations for approval unless that selection is already
authorized. Paths are relative to .claude/. Convert the approved selection into JSON:
{
"update": [
"skills/example/SKILL.md"
],
"refresh_disabled": [
"skills/disabled/SKILL.md"
],
"delete": [
"skills/removed/SKILL.md"
]
}
Rules:
update may include new and modified paths.refresh_disabled may include disabled paths and writes <path>.disabled.delete may include only removed paths.conflicting paths until the user chooses a conflict strategy.After approval:
python3 "$CLAUDOPS_UPDATE_SCRIPT" --local-root "$CLAUDOPS_TARGET" apply \
--report .claudops-update-report.json \
--selection /path/to/selection.json
The apply step updates selected files and refreshes the target repository's lock manifest. Use the source clone and local files from the reviewed scan. If either changes before application, rerun the scan and resolve any changed selection before writing. When a task is attached, link the scan, exact selection, apply result and verify read-back from the task directory. Preserve local customizations and disabled markers; never write the managed plugin cache.
Run:
python3 "$CLAUDOPS_UPDATE_SCRIPT" --local-root "$CLAUDOPS_TARGET" verify
When changing this helper or its command contract, run the tests/test_update_setup.py
file adjacent to the loaded skill. A report or successful script exit alone does not
prove the selected files were adopted: read back the result counts and destination hashes.
For conflicting files:
.claudops-update-report.json.Do not silently merge conflicts.
After applying selected updates:
verify..claude/settings.json and report unwired hooks
as manual follow-up. Do not auto-edit settings.{{PLACEHOLDER}}, tell the user to run /setup..claude/: route an authorized first configuration to setup; it can materialize
the bundled templates. A check-only request reports that there is no copied workflow.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alexandrbasis/claudops --plugin claudops40 skills in this plugin
/analyzeCompare a task's discovery or product requirements with its tech decomposition and report traceability gaps. Use when asked to 'analyze consistency', 'check alignment', 'verify spec matches plan', 'traceability check', 'spec drift', 'are my docs aligned', or after /ct completes to verify the plan covers the requirements. `/ct` may invoke this check when traceability is material; otherwise it remains an explicit read-only command. NOT for code review (use /sr), NOT for code analysis (use /code-analysis), NOT for debugging (use /dbg)./antigravity-cliRun Google Antigravity CLI (agy) for web-grounded research, cross-AI review, or validation when those capabilities are explicitly needed or another skill delegates to agy. One-shot only; do not select it for an ordinary review without an explicit provider choice./Other plugins' skills for the same job