Programowanie · Budowanie i kod
using-git-worktrees
/using-git-worktrees
Izoluje pracę nad funkcją w osobnym drzewie roboczym gita przed wykonaniem planu wdrożenia.
Dla kogo
- Autor
- PrimeSeeker ↗
- Repozytorium
- crucible ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 07.11.2026
Ocena i bezpieczeństwo
95/ 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ść30 / 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
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Przestarzałość
Brak sygnałów. Repozytorium zmienione 07.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 robi i kiedy
Izoluje pracę nad funkcją w osobnym drzewie roboczym gita przed wykonaniem planu wdrożenia.
Oryginalny opis (EN)
Use when starting feature work that needs isolation from current workspace or before executing implementation plans
Jak działa
- Overview
- Step 0: Detect Existing Isolation
- Step 1: Create Isolated Workspace
- Step 2: Project Setup
- Step 3: Verify Clean Baseline
- Common Rationalizations
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 633 słów
Podgląd SKILL.md
--- name: using-git-worktrees description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans --- # Using Git Worktrees ## Overview Ensure work happens in an isolated workspace: detect existing isolation first, then use native tools, then fall back to git. Never fight the harness. Before the feature's first commit, by whichever step you reach it, read what the repository says shapes a commit (sign-off or DCO, commit-message rules, commit hooks) and follow it from that commit on. Every command in Steps 0–1 and 1b's reference is a single Git invocation: no shell program, no command substitution, no pipes. Run each, read its output or exit code, and do the comparing and branching yourself, so the flow runs the same with or without a POSIX shell. **Stubs.** A reference a section names to read in full binds as if written here. Read it when its step comes, unless read since your last compaction; after compaction, re-read the step in progress's reference first. ## Step 0: Detect Existing Isolation Before creating anything, run these four and keep the results: ``` git rev-parse --absolute-git-dir git rev-parse --path-format=absolute --git-common-dir git branch --show-current git rev-parse --show-superproject-working-tree ``` Compare the first two (both absolute) yourself. The fourth prints nothing outside a submodule; a printed path means a submodule, which counts as a normal checkout. **Paths differ, no submodule:** you are in a linked worktree. If it is another feature's and you are starting a new one, create this feature's own with Step 1b, on the request below. Otherwise skip to Step 2, create no other worktree, and report: - on a branch: "Already in isolated workspace at `<path>` on branch `<name>`." - detached HEAD (`git branch --show-current` printed nothing): "Already in isolated workspace at `<path>` (detached HEAD, externally managed). Branch creation needed at finish time." **Paths equal, or a submodule:** you are in a normal checkout. Create a worktree only on the operator's explicit request. Their approval of a message naming the worktree, or a worktree preference declared in your instructions, is that request: do not ask again. Where neither exists, name the worktree, and its base where Step 1b sets it, in one line and ask. Work in place only where your instructions or the operator say so, and then skip to Step 2. ## Step 1: Create Isolated Workspace ### 1a. Native Worktree Tools (preferred) The user has asked for an isolated workspace (Step 0 consent). If you have a native way to create a worktree (a tool named like `EnterWorktree` or `WorktreeCreate`, a `/worktree` command, a `--worktree` flag), use it and skip to Step 2. Go to Step 1b only if you have no native worktree tool, if brainstorming starts a feature inside another feature's worktree, or if your instructions declare a worktree directory. ### 1b. Git Worktree Fallback Only where Step 0 or Step 1a's last line sends you here, **read `skills/using-git-worktrees/references/git-fallback.md` in full**. ## Step 2: Project Setup Run the project's dependency setup, where it has one. ## Step 3: Verify Clean Baseline Run the project's own test command (`npm test`, `cargo test`, `pytest`, `go test ./...`). If tests fail, report the failures and ask whether to proceed or investigate; if they pass, report ready. ## Common Rationalizations | Excuse | Reality | |---|---| | "`git worktree add` is quicker than hunting for a native tool" | Bypassing a native tool (e.g. `EnterWorktree`) outside Step 1a's last-line cases is the #1 mistake: it creates phantom state the harness can't see or manage. | | "The worktree directory is surely ignored" | Run `git check-ignore`: an unignored worktree directory gets committed into the repo. | | "I checked `.worktrees/` — close enough" | Check the directory you selected: `worktrees/` and `.worktrees/` have different `.gitignore` entries. | | "The trailing slash is cosmetic" | Without it, Git reports an ignored directory that does not exist yet as not ignored. |
Pliki w paczce (3)
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
- references/git-fallback.md 2 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · PrimeSeeker/crucible | 95 | MIT |
| jjuraszek/pi-gauntlet | 100 | MIT |
| event4u-app/agent-config | 100 | MIT |
| yusixian/anjian | 100 | MIT |
| GanyuanRan/Aegis | 100 | MIT |
| sitien173/refract | 100 | MIT |
| innei/ryugi | 100 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| davila7/claude-code-templates | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 8255a35830ea (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
- 100isolate
Tworzy izolowane git worktrees z inteligentnym wyborem katalogu i weryfikacją bezpieczeństwa przed rozpoczęciem pracy nad funkcją lub wykonaniem planu wdrożenia. - 84using_git_worktrees
Tworzy izolowane worktree gita przed pracą nad funkcją lub planem, z wyborem katalogu i sprawdzeniem bezpieczeństwa. - 100sr-using-git-worktrees
Zapewnia odizolowaną przestrzeń roboczą dla nowej funkcji, przez natywne narzędzia albo git worktree, przed wdrożeniem planu. - 100git-worktrees
Tworzy izolowane git worktrees z inteligentnym wyborem katalogu i weryfikacją bezpieczeństwa przy pracy nad funkcją, wykonywaniu planów implementacji lub gdy nad jednym checkoutem pracuje kilka sesji. - 100worktree
Tworzy izolowane worktree gita przed wdrażaniem planu, z wyborem katalogu i sprawdzeniem poprawności. - 100git-worktrees
Tworzy izolowane przestrzenie robocze dla równoległego rozwoju jako worktree Git z odpowiednią konfiguracją i kontrolą bezpieczeństwa, gdy praca nad funkcją wymaga odseparowania od bieżącego workspace.