Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

worktree-main-sync

/worktree-main-sync

Tworzy worktree i synchronizuje je z najnowszą gałęzią main z repozytorium zdalnego, także gdy jest za origin.

Repozytorium
cmmdstack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.11.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
4
Skrypty
2
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

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

Co sprawdzić przed instalacją
  • 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/create-worktree-from-origin-main.sh, scripts/sync-current-worktree-with-origin-main.sh

Co robi i kiedy

Tworzy worktree i synchronizuje je z najnowszą gałęzią main z repozytorium zdalnego, także gdy jest za origin.

Oryginalny opis (EN)

Create and sync git worktrees from the latest remote main branch. Use when asked to create a new worktree, branch from remote main, fix a worktree that is behind origin/main, or verify worktree and main parity before starting work.

Jak działa

  1. Quick start
  2. Rules
  3. What the scripts guarantee
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 297 słów
Podgląd SKILL.md
---
name: worktree-main-sync
description: Create and sync git worktrees from the latest remote main branch. Use when asked to create a new worktree, branch from remote main, fix a worktree that is behind origin/main, or verify worktree and main parity before starting work.
---

# Worktree main sync

Use this skill to guarantee worktrees start from the freshest `origin/main` and to sync existing branches safely. The scripts live in this skill's `scripts/` folder. Run them by the path where the skill is installed.

## Quick start

1. Create a new worktree from remote main:

```bash
<skill-dir>/scripts/create-worktree-from-origin-main.sh \
  --branch <prefix>/<name> \
  --path ../<worktree-dir>
```

2. Sync an existing branch or worktree with remote main:

```bash
<skill-dir>/scripts/sync-current-worktree-with-origin-main.sh
```

3. If the branch has local commits and must be rebased on the latest main:

```bash
<skill-dir>/scripts/sync-current-worktree-with-origin-main.sh --rebase
```

Both scripts take `--remote` and `--base` if the repo uses a remote or default branch other than `origin` and `main`.

## Rules

- Always run `git fetch --prune origin` before creating or syncing a worktree.
- For new worktrees, base from `origin/main`, not local `main`.
- Use the branch prefix the repo's instructions ask for.
- Never force reset (`git reset --hard`) as part of this flow.
- A clean automatic merge is not semantic validation. After syncing, run the repo's checks for every package or service whose files changed on main, not only the root checks. Some services have their own typecheck that a root check does not cover. Look for duplicate imports after merging a refactor on main with feature imports. If generated code (an ORM client, API types) depends on files that changed, regenerate it only after confirming its output is owned by this worktree. Generation is not permission to migrate a database or overwrite shared dependencies.

## What the scripts guarantee

- The new worktree branch is created from `origin/main`.
- Immediate ahead and behind validation against `origin/main` is printed.
- Existing worktree sync checks dirty state before merge or rebase.
- Sync uses non-destructive defaults (`--ff-only` unless `--rebase` is explicitly requested).
Pliki w paczce (4)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB
  • scripts/create-worktree-from-origin-main.sh 2 KB
  • scripts/sync-current-worktree-with-origin-main.sh 2 KB

Wersje

W bazie nie ma innych skilli o nazwie worktree-main-sync.

Migawka bazy z 13.11.2026 · wersja paczki 34f0f792083e (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

  • 100update
    Przesuwa lokalną gałąź main do main ze zdalnego origin po potwierdzeniu ścieżki repozytorium i źródła.
  • 100sync
    Synchronizuje lokalne repozytorium z origin/main: odkłada zmiany do schowka, pobiera aktualny main, przywraca je i usuwa nieaktualne gałęzie.
  • 100git-rebase-sync
    Synchronizuje gałąź funkcjonalną z najnowszą gałęzią bazową z origin przez git rebase.
  • 100new-branch
    Nazywa i tworzy gałąź zadania z aktualnego origin/main oraz przełącza worktree na nową gałąź po scaleniu pull requesta.
  • 100worktree
    Tworzy worktree z origin/trunk w katalogu ~/worktrees.nosync i kopiuje node_modules, żeby zacząć pracę na gałęzi.
  • 100fresh-branch
    Tworzy świeżą gałąź git z origin/main w izolowanym worktree w skonfigurowanym katalogu, bez ruszania drzewa roboczego wywołującego.

Uwagi i zgłoszenia

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