update
/update
Aktualizuje skille Git Workflow i projektowe agenty Claude i Codex ze źródłowego checkoutu lub zainstalowanego pluginu, z dry-run, wykrywaniem własnych zmian i migracją starszych wersji.
- Autor
- rlajous ↗
- Repozytorium
- claude-code-commands ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 01.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Aktualizuje skille Git Workflow i projektowe agenty Claude i Codex ze źródłowego checkoutu lub zainstalowanego pluginu, z dry-run, wykrywaniem własnych zmian i migracją starszych wersji.
Argumenty
/update [--host <claude|codex|both>] [--dry-run] [--prune] [--force] [--source <path-or-git-url>]
Oryginalny opis (EN)
Update 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. Use when the user asks to update, refresh, or synchronize Git Workflow.
Jak działa
- 1. Parse options
- 2. Resolve project and source
- 3. Build the synchronization set
- 4. Protect customizations
- 5. Migrate and record state
- Output
Podgląd SKILL.md
---
name: update
description: Update 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. Use when the user asks to update, refresh, or synchronize Git Workflow.
argument-hint: "[--host <claude|codex|both>] [--dry-run] [--prune] [--force] [--source <path-or-git-url>]"
disable-model-invocation: false
allowed-tools: Read, Bash, Write, Glob, Grep, AskUserQuestion
user-invocable: true
---
# Update Git Workflow
Follow [runtime compatibility](../../references/runtime-compatibility.md). Claude Code users invoke this as `/update`; Codex users invoke it as `$update`.
## 1. Parse options
- `--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.
## 2. Resolve project and source
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:
1. `--source`
2. `{PACKAGE_ROOT}`, derived from the absolute physical directory containing this loaded
`SKILL.md` as `{SKILL_DIR}/../..`, when it contains `.codex-plugin/plugin.json`
3. `PLUGIN_ROOT`, then `CLAUDE_PLUGIN_ROOT`, as compatibility fallbacks only when the host cannot
expose the loaded skill path; verify the manifest before accepting either value
4. `source` recorded in `.git-workflow/version.json`
Never 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.
## 3. Build the synchronization set
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.
```bash
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.
## 4. Protect customizations
- Without `--force`, ask once before overwriting the listed changed files. A rejection preserves all changed files while still allowing missing files to install.
- With `--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.
- Show prune candidates and require explicit confirmation even with `--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.
## 5. Migrate and record state
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.
## Output
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.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · rlajous/claude-code-commands | 100 | MIT |
| nimbalyst/nimbalyst | 100 | MIT |
| nimbalyst/nimbalyst | 100 | MIT |
| nimbalyst/nimbalyst | 100 | MIT |
| jl-cmd-projects/claude-dev-env | 100 | MIT |
| abatyuk/okf | 100 | MIT |
| tony/skills | 100 | MIT |
| crisandrews/clawcode | 100 | MIT |
| nextwork-projects/ai-video-editor-cooked | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 891e5a1e0e04 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100setup
Konfiguruje Git Workflow dla Claude Code lub Codex, migruje starszą konfigurację, instaluje agentów projektowych Codex i opcjonalnie serwery MCP systemów do śledzenia zgłoszeń. - 90skill-update
Sprawdza, czy zainstalowane skille są aktualne, i je aktualizuje, niezależnie od tego, czy zainstalowano je przez npx, klony Git czy wtyczki. - 100update-installed-skills
Synchronizuje wcześniej zainstalowane skille do najnowszej wersji, zawsze z próbą dry-run przed zastosowaniem i sprawdzeniem zmian łamiących zgodność. - 100update-project-skills
Odświeża zainstalowany katalog wtyczek i pokazuje, które skille dodano, zmieniono lub usunięto po aktualizacji. - 100port-to-codex
Przenosi konfigurację Claude Code projektu do Codex: wspólny plik AGENTS.md, skille, agenty, MCP i hooki. - 95aos-update
Sprawdza, pobiera i weryfikuje aktualizację zainstalowanego AOS, z podglądem zmian przed uruchomieniem samej aktualizacji.