/git-workflow:update [--host <claude|codex|both>] [--dry-run] [--prune] [--force] [--source <path-or-git-url>]from git-workflow
Updates Git Workflow skills and Claude/Codex project agents from a source checkout or installed plugin, with dry-run, pruning, customization detection, and legacy migration support.
Ships in git-workflow. 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.
None: SKILL.md is the whole skill.
Follow runtime compatibility. Claude Code users invoke this as /update; Codex users invoke it as $update.
--dry-run: calculate and display changes without writing.--prune: include previously managed files that no longer exist in the source as removal candidates.--force: overwrite customized managed files after still showing their diffs.--host <claude|codex|both>: synchronize only the selected host assets; otherwise infer installed hosts and ask if ambiguous.--source <path-or-git-url>: use an explicit Git Workflow checkout, plugin directory, or Git URL.Unknown options are errors. Destructive pruning is never implied by --force alone.
Resolve the project root from Git, then accept either .git-workflow/, .claude/, or .codex/ as evidence of an existing installation. Resolve the source in this order:
--source{PACKAGE_ROOT}, derived from the absolute physical directory containing this loaded
SKILL.md as {SKILL_DIR}/../.., when it contains .codex-plugin/plugin.jsonPLUGIN_ROOT, then CLAUDE_PLUGIN_ROOT, as compatibility fallbacks only when the host cannot
expose the loaded skill path; verify the manifest before accepting either valuesource recorded in .git-workflow/version.jsonNever substitute an empty package variable or silently fall back to /scripts. If no complete
source resolves, stop before writing and report every candidate checked.
For an explicit Git URL, clone it shallowly into a newly created temporary directory, validate it, and remove the temporary clone on success or failure. Do not perform a default network clone when an installed package root or ledger source is available. Validate that the source contains skills/, agents/, .codex/agents/, and a valid .codex-plugin/plugin.json. Stop without writing if it is incomplete.
Use the synchronizer bundled with setup, resolved relative to this skill as
{SKILL_DIR}/../setup/scripts/sync-project.mjs, to calculate and apply this set. Always run it
first with --dry-run; after the user reviews changes, rerun without --dry-run. Add --force
only when changed files were approved, and add --confirm-prune only after separate confirmation
of listed prune candidates.
node "{SKILL_DIR}/../setup/scripts/sync-project.mjs" --source <source> --target <project> --host <codex|claude|both> --dry-run
Synchronize only components relevant to the installation:
| Source | Target | When |
|---|---|---|
skills/*/ | .claude/skills/*/ | Manual Claude installation |
agents/*.md | .claude/agents/*.md | Manual Claude installation |
references/*.md | .claude/references/*.md | Manual Claude installation |
.codex/agents/*.toml | .codex/agents/*.toml | Codex project agents |
Codex plugin skills are updated by the plugin manager and must not be copied into .codex/skills/ by this workflow.
For every target, classify it as missing (+), changed (~), identical (=), or orphaned (?). Show a unified diff for changed text files.
--force, ask once before overwriting the listed changed files. A rejection preserves all changed files while still allowing missing files to install.--force, overwrite changed managed files only after showing the summary.--prune may remove only paths recorded as managed in the version ledger. Never remove an untracked local skill or agent merely because the source lacks the same name.--force.--dry-run performs no writes, removals, directory creation, or ledger updates.Use atomic per-file replacement where practical. A failure must not truncate the previous target.
If .git-workflow/config.yaml is absent and .claude/config.yaml exists, offer the same non-destructive copy used by $setup; do not make migration a prerequisite for updating agents.
After a successful non-dry-run update, the synchronizer rewrites .git-workflow/version.json with version 2.5.2, the resolved source, timestamp, hosts, and the exact relative paths managed by this run. Preserve the user's workflow configuration, local hook opt-in, PR context, status report, and reviewed-SHA ledger.
Report installed, updated, unchanged, preserved, pruned, and failed files separately. If any item fails, return a non-success summary with the exact recovery command. Otherwise suggest /status for Claude Code or $status for Codex.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rlajous/claude-code-commands --plugin git-workflow22 skills in this plugin
/change-briefTurn a pull request into a concise, self-contained HTML decision brief with business logic, diagrams when useful, conditional UI/mobile screenshots, API cURL request/response evidence, risks, verification, and representative before/after code. Use when the user asks to "explain this change as HTML", "before/after html", "change brief", "html explainer for a PR", "explain what changed", or wants a shareable, human-readable snapshot of a code change. Args a PR number/URL, or nothing to use the current branch's PR./clean-goneDelete local Git branches whose upstream was deleted on the remote ("[gone]"), and remove any worktrees attached to them. Use when the user asks to clean up merged/stale branches, prune gone branches, tidy local branches after merging PRs, or "delete branches that are gone on the remote"./close-customer-loopClose the loop with a customer or partner after their reported bug/request ships. Use whenever a customer/partner-reported fix reaches production, a ticket that came from a customer report is about to be marked Done/closed, or you're deciding whether follow-up is still owed. Enforces verify-in-prod-then-reply-in-the-original-thread, and adds the two acceptance-criteria lines when creating customer/partner tickets./commitStage and commit changes with proper formatting following repo conventions/finishCreate a pull request with comprehensive description following repo best practices/notificationsConfigure and diagnose opt-in desktop notifications for completed Claude Code or Codex turns and new reviews on pull requests you authored. Use when the user asks to enable agent-finished alerts, watch approvals or requested changes on their PRs, inspect notification configuration, or get the background daemon command.Other plugins' skills for the same job