# Worktree

> Create a new git worktree on a fresh branch and switch into it before starting work. Use when the user asks to start a task in a new worktree, work in isolation from the main checkout, or invokes "/worktree" — phrases like "워크트리 만들어줘", "새 브랜치 파서 작업해줘", "worktree에서 작업 시작". Do NOT use for removing or cleaning up an existing worktree.

- **Type:** Skill
- **Install:** `agentstack add skill-dkmqflx-git-workflow-plugin-worktree`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dkmqflx](https://agentstack.voostack.com/s/dkmqflx)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dkmqflx](https://github.com/dkmqflx)
- **Source:** https://github.com/dkmqflx/git-workflow-plugin/tree/main/plugins/git-workflow/skills/worktree

## Install

```sh
agentstack add skill-dkmqflx-git-workflow-plugin-worktree
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Worktree

Create a sibling worktree on a fresh branch, then continue the user's task inside it.

Heavy lifting → `scripts/create.sh` (handles uniqueness, error checks).

## When to apply

Start a task in an isolated worktree. **Do not apply** for removal — that is `/worktree-done`.

## Steps

1. Derive a kebab-case branch name (≤ 4 words) from the user's task description.
   If no description was given (bare `/worktree`), ask one short question first.
2. Run from the repo root:
   ```bash
   bash /scripts/create.sh 
   ```
   The script's **stdout is the new worktree path** (stderr is progress).
   If it exits non-zero, stop and surface the error.
3. `cd` into that path (separate Bash call — child shells can't change parent cwd).
4. Confirm in one line: `Worktree ready:  (branch: )`
5. Begin the user's task.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dkmqflx](https://github.com/dkmqflx)
- **Source:** [dkmqflx/git-workflow-plugin](https://github.com/dkmqflx/git-workflow-plugin)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dkmqflx-git-workflow-plugin-worktree
- Seller: https://agentstack.voostack.com/s/dkmqflx
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
