Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

update-go-deps

/update-go-deps

Aktualizuje bezpośrednie zależności modułów Go do najnowszych wersji, porządkuje graf modułów, uruchamia testy i zapisuje commit.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Aktualizuje bezpośrednie zależności modułów Go do najnowszych wersji, porządkuje graf modułów, uruchamia testy i zapisuje commit.

Oryginalny opis (EN)

Update all direct Go module dependencies to their latest versions, tidy the module graph, verify tests pass, and commit the result. Use when you want to bump deps, address CVEs, or do routine dependency maintenance.

Jak działa

  1. Instructions
  2. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 61 linii, 383 słów
Podgląd SKILL.md
---
name: update-go-deps
description: Update all direct Go module dependencies to their latest versions, tidy the module graph, verify tests pass, and commit the result. Use when you want to bump deps, address CVEs, or do routine dependency maintenance.
user-invocable: true
disable-model-invocation: true
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
---

# Update Go Dependencies

Update all direct Go module dependencies to their latest versions, clean up the module graph, verify the build still works, and commit.

## Instructions

### Phase 0: Prepare

1. Confirm the working tree is clean: `git status`. If there are uncommitted changes, stop and ask the user how to proceed.
2. Identify all Go modules in the repo: `find . -name go.mod -not -path '*/vendor/*'`. Work through each module directory in turn.

### Phase 1: Update dependencies

For each module directory:

1. `cd` into the directory.
2. Run `go get -u ./...` to upgrade all direct dependencies to their latest minor/patch versions.
3. Run `go mod tidy` to prune unused indirect deps and update `go.sum`.
4. If a `vendor/` directory exists, run `go mod vendor` to sync it.

### Phase 2: Verify

1. Run `go build ./...` — fix any compilation errors before continuing.
2. Run `go test ./...` — if tests fail, investigate whether the failure is pre-existing or caused by the update.
   - Pre-existing failure: note it and continue.
   - Regression from the update: attempt to pin the offending dependency to the last working version using `go get <module>@<version>`, then re-tidy.
3. If a linter is configured (e.g. `golangci-lint`, `make check-style`), run it and fix new issues introduced by the updated deps.

### Phase 3: Summarise changes

Generate a human-readable summary of what changed:

```bash
git diff -- '*/go.mod'
```

Group changes by type:
- **Upgraded** — version bumped
- **Added** — new indirect dep pulled in
- **Removed** — dep no longer required

### Phase 4: Commit

1. Stage only `go.mod`, `go.sum`, and `vendor/` (if present): do **not** stage unrelated files.
2. Commit with a message like:

```text
chore(deps): update Go dependencies

<paste summary of notable upgrades here>
```

3. Print the commit hash and ask the user if they want to push or open a PR.

## Notes

- This skill upgrades to the **latest** version within each module's declared Go version constraint. It does not change the `go` directive in `go.mod` — use `/dev-workflows:update-go-version` to update the module's go directive.
- If the repo uses a `replace` directive in `go.mod`, preserve it unless the user explicitly asks to remove it.
- Security-sensitive upgrades (CVE fixes) should be called out explicitly in the commit message.

Wersje

W bazie nie ma innych skilli o nazwie update-go-deps.

Migawka bazy z 13.11.2026 · wersja paczki 84a4524bb68f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100deps-update
    Aktualizuje zależności Pythona do najnowszych wersji za pomocą uv, odtwarza lock i requirements.txt, sprawdza lint i testy oraz naprawia problemy po zmianach API.
  • 100rs-deps-visualizer
    Wizualizuje w Rust zależności projektu jako rysunek ASCII, pokazując graf zależności na żądanie.
  • 100upgrade-dependencies
    Podnosi wszystkie zależności gemów Ruby do najnowszych wersji z przeglądem notatek wydań i sprawdzeniem zgodności z kodem.
  • 100bump-deps
    Analizuje i aktualizuje zależności z wykrywaniem zmian łamiących zgodność, dla frontendu w pnpm i backendu w uv.
  • 100phx-deps-update
    Aktualizuje zależności Hex w Elixirze, dzieląc zmiany na przeglądalne PR: poprawki razem, duże wersje osobno.
  • 100analyze-deps
    Analizuje aktualizacje zależności i tworzy raport zmian ze zmianami łamiącymi, nowymi funkcjami i rekomendacjami po aktualizacji pakietów, przed planowanymi podniesieniami wersji lub przy porównaniu wersji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.