Back to Get Shit Done

Update

commands/gsd/update.md

1.42.01.4 KB
Original Source
<objective> Check for GSD updates, install if available, and display what changed.

Routes to the update workflow which handles:

  • Version detection (local vs global installation)
  • npm version checking
  • Changelog fetching and display
  • User confirmation with clean install warning
  • Update execution and cache clearing
  • Restart reminder </objective>

<execution_context> @~/.claude/get-shit-done/workflows/update.md </execution_context>

<flags> - **--sync**: Sync managed GSD skills across runtime roots so multi-runtime users stay aligned after an update. Runs the sync-skills workflow (--from, --to, --dry-run, --apply flags supported). - **--reapply**: Reapply local modifications after a GSD update. Uses three-way comparison (pristine baseline, user-modified backup, newly installed version) to merge user customizations back. Runs the reapply-patches workflow. - **(no flag)**: Standard update — check for new version, show changelog, install. </flags> <process> Parse the first token of $ARGUMENTS: - If it is `--sync`: strip the flag, execute the sync-skills workflow (passing remaining args for --from/--to/--dry-run/--apply). - If it is `--reapply`: strip the flag, execute the reapply-patches workflow. - Otherwise: execute the update workflow end-to-end. </process>

<execution_context_extended> @/.claude/get-shit-done/workflows/sync-skills.md @/.claude/get-shit-done/workflows/reapply-patches.md </execution_context_extended>