Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

branch

/branch

Rozgałęzia działający przebieg agenta badawczego w punkcie kontrolnym, z własnym stanem i worktree, bez zakłócania głównej linii.

Repozytorium
claude-anvil ↗
Licencja
MIT
Ostatnia zmiana repozytorium
21.10.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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 21.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

Rozgałęzia działający przebieg agenta badawczego w punkcie kontrolnym, z własnym stanem i worktree, bez zakłócania głównej linii.

Argumenty

/branch <branch-name> [focus] [budget: N cycles, H hours]
Oryginalny opis (EN)

Fork an in-flight research-agent run at its current checkpoint into a named branch with its own state, log, attempts, and git worktree, sharing the parent's goal and findings read-only. Use to pursue a competing strategy without disturbing the main line; a main-line synthesis compares branches.

Jak działa

  1. Step 1: Parse Arguments
  2. Step 2: Verify the Run and the Name
  3. Step 3: Check Code Isolation
  4. Step 4: Launch the Researcher in Branch Mode
  5. Step 5: Inform the User
Sekcje z nagłówków SKILL.md, w oryginale · 45 linii, 360 słów
Podgląd SKILL.md
---
name: branch
description: >-
  Fork an in-flight research-agent run at its current checkpoint into a named
  branch with its own state, log, attempts, and git worktree, sharing the
  parent's goal and findings read-only. Use to pursue a competing strategy
  without disturbing the main line; a main-line synthesis compares branches.
argument-hint: "<branch-name> [focus] [budget: N cycles, H hours]"
---

# Branch a Research Run

Fork the run per: $ARGUMENTS

## Step 1: Parse Arguments

1. **Branch name** (required): kebab-case identifier, e.g. `induction-proof`, `adversarial-search`. Derive one from the stated strategy if the user did not name it, and confirm it.
2. **Branch focus** (optional): one or two sentences on what this branch should pursue differently from the main line.
3. **Budget** (optional): a cycle cap and/or hours for this branch.

## Step 2: Verify the Run and the Name

- `.research/goal.md` must exist (Read tool); if not, there is nothing to branch: suggest `/research-agent:research`.
- `.research/branches/<name>/` must NOT already exist (Glob tool). If it does, offer `/research-agent:resume <name>` or a different name.

## Step 3: Check Code Isolation

A branch edits and evaluates project code in its own git worktree so it cannot disturb the main line's eval.

- Bash: `git -C <working directory> rev-parse --is-inside-work-tree`. If this is not a git repo, worktree isolation is unavailable: tell the user the branch will keep all code changes inside its own attempts/ directories, and launch without `isolation`.
- If it is a git repo, check `git status --porcelain`. The worktree starts from HEAD, so uncommitted changes (including main-line work in progress) will not be in it. If the output is non-empty, tell the user and ask whether to proceed or commit first (AskUserQuestion).

## Step 4: Launch the Researcher in Branch Mode

Spawn the researcher (Agent tool, `subagent_type: research-agent:researcher`, and `isolation: "worktree"` when Step 3 found a git repo) with:

    <mode>branch</mode>
    <branch>{kebab-case name}</branch>
    <branch-focus>
    {the focus, or "explore an alternative approach to the goal"}
    </branch-focus>
    <budget max_cycles="{N}" max_hours="{H}"/>    (only when given)
    <working_directory>
    {absolute path to current working directory, NOT the worktree}
    </working_directory>

## Step 5: Inform the User

> Branch `{name}` forked from the current checkpoint. Its state lives under `.research/branches/{name}/`; its code changes live in its own git worktree, committed once per cycle. The goal and the parent's confirmed findings are shared read-only.
>
> - `/research-agent:status` shows all branches alongside the main line
> - `/research-agent:resume {name}` continues this branch later (in the same worktree)
> - `/research-agent:synthesize {name}` concludes just this branch; a main-line `/research-agent:synthesize` compares all branches

Wersje

RepozytoriumWynikLicencja
Ta strona · queelius/claude-anvil90MIT
kbluck/agent-resources100MIT
egregore-labs/egregore100MIT
WaterplanAI/agentic-config100MIT
egregore-labs/egregore86MIT

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

Pobrania w ostatnich 30 dniach: 2 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100fork-worktree
    Tworzy nową gałąź autonomii z osobnym worktree, co ułatwia równoległe przepływy pracy agentów.
  • 100worktree-main-sync
    Tworzy worktree i synchronizuje je z najnowszą gałęzią main z repozytorium zdalnego, także gdy jest za origin.
  • 100worktree-merge
    Scala gałąź worktree z inną gałęzią przez git merge, domyślnie z --no-ff, na przykład przed jednym wspólnym PR.
  • 100local-branches-status
    Raportuje stan wszystkich lokalnych gałęzi git: synchronizację ze zdalnymi, różnice względem main, ścieżkę worktree, datę ostatniej aktywności i opis zawartości.
  • 100worktree-per-agent
    Izoluje pracę agenta w osobnym worktree od domyślnej gałęzi, by zmiany agentów nie trafiały w ten sam katalog.
  • 100speclink-worktree-merge
    Scala zatwierdzoną zmianę z gałęzi worktree do głównej gałęzi i po scaleniu sprząta worktree.

Uwagi i zgłoszenia

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