Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

worktree

/worktree

Zarządza worktree gita z własnymi portami dev, dowiązanymi plikami env i piaskownicą, przy tworzeniu i usuwaniu.

Repozytorium
rhesis ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.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 27.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

Zarządza worktree gita z własnymi portami dev, dowiązanymi plikami env i piaskownicą, przy tworzeniu i usuwaniu.

Oryginalny opis (EN)

Manage git worktrees with their own dev ports, symlinked .env files, playground, and simulations. Use when the user asks to create, set up, list, enter, or remove a worktree.

Jak działa

  1. --init on an existing worktree
  2. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 53 linii, 381 słów
Podgląd SKILL.md
---
name: worktree
description: Manage git worktrees with their own dev ports, symlinked .env files, playground, and simulations. Use when the user asks to create, set up, list, enter, or remove a worktree.
---

# Worktrees

Run `./rh worktree $ARGUMENTS` from the repo root. Why worktrees must go through this command at
all — and how the `WorktreeCreate` hook routes `EnterWorktree` into it — is in `AGENTS.md`; this
skill is the command surface.

If the user gave no arguments, ask which operation they want:

| Command | What it does |
| --- | --- |
| `./rh worktree <name>` | Create a worktree branching from current HEAD, with its own dev ports |
| `./rh worktree --init` | Give an existing worktree the same setup — run it from inside that worktree |
| `./rh worktree <name> --load` | Launch a shell in the worktree |
| `./rh worktree <name> --remove` | Remove the worktree, its dev containers and volumes, and its branch |
| `./rh worktree --list` | List all worktrees |

`./rh worktree help` prints the same list with per-flag detail.

## `--init` on an existing worktree

For a worktree made with a bare `git worktree add`, or one the hook only partly set up. Run it
from inside the worktree — it locates the main checkout itself:

```bash
cd ~/worktrees/rhesis/<name> && ./rh worktree --init
```

From the main checkout, name the target instead: `./rh worktree <name> --init`.

It allocates a free port block into `.rhesis-ports`, symlinks `playground/`, `simulations/`,
`domain.local/`, the `.env` files and the Claude config, then copies `apps/backend/.env` and
`apps/frontend/.env.local` and shifts their ports. It's idempotent — re-running reports what's
already linked and leaves it alone.

Two things it won't do: run in the main checkout, or touch a directory git doesn't list as a
worktree. Both exit with an error rather than provisioning the wrong tree.

If the worktree's branch predates the `--init` flag, its own `./rh` won't have it. Run the main
checkout's copy instead — it resolves the target from your current directory, not from where the
script lives:

```bash
/path/to/main/rh worktree --init
```

## Notes

- A worktree outside `~/worktrees/rhesis/` gets provisioned fine, but `--load` and `--remove`
  can't find it by name — remove it with `git worktree remove` after `./rh dev clean` inside it.
- `--remove` deletes the branch too, and only deletes it if it's fully merged.
- After creating or adopting one, `./rh dev status` inside it shows the ports it actually got.

Wersje

RepozytoriumWynikLicencja
Ta strona · rhesis-ai/rhesis100MIT
vanducng/skills100MIT
tony/skills100MIT
zts212653/clowder-ai100MIT
duronext/jig100MIT
guangshinhaha/shinstack100MIT
PranamRDoshi/dotclaude100MIT
kronael/tools100Unlicense
zipstack/unstract100AGPL-3.0

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

  • 100task-onboarding
    Podłącza repozytorium git do zadań worktree tt z unikalnymi portami na zadanie i szablonami środowiska, wymagając CLI tt.
  • 96flow-next-worktree-kit
    Zarządza drzewami roboczymi git: tworzy je, przełącza i porządkuje, a także kopiuje pliki .env.
  • 96flow-next-worktree-kit
    Zarządza drzewami roboczymi git: tworzy je, przełącza i porządkuje, a także kopiuje pliki .env.
  • 90worktrees
    Tworzy, sprawdza, naprawia i usuwa worktree gita, uzupełniając brakujące zależności, hooki i pliki ignorowane, na przykład .env.
  • 100flux-worktree-kit
    Zarządza git worktree (tworzenie, lista, przełączanie, sprzątanie) i kopiuje pliki .env, co pomaga w równoległej pracy nad funkcjami i izolowanych przeglądach.
  • 100git-worktrees
    Zarządza git worktrees dla równoległego rozwoju zespołu agentów, przy tworzeniu i konfiguracji worktrees oraz podczas dispatchu /delegate.

Uwagi i zgłoszenia

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