Docs & Researchlow risk

httpx-new-worktree

Use when the user wants a new git worktree created for a task. Picks a kebab-case branch name with a fix/feat/chore/docs/refactor prefix, runs `git worktree add` from the configured base branch, and reports the new path.

steph-dove/klaussy-agents·examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree/SKILL.md
38/ 100推薦值

匯入這個 Skill

選擇你的 coding agent,複製專案級或個人級安裝指令。

固定至平台收錄的 commit
匯入目前專案.agents/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a codex -y
匯入個人環境~/.agents/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a codex -g -y
手動放置目錄.agents/skills/httpx-new-worktreeOfficial docs ↗
匯入目前專案.claude/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a claude-code -y
匯入個人環境~/.claude/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a claude-code -g -y
手動放置目錄.claude/skills/httpx-new-worktreeOfficial docs ↗
匯入目前專案.agents/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a github-copilot -y
匯入個人環境~/.copilot/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a github-copilot -g -y
手動放置目錄.agents/skills/httpx-new-worktreeOfficial docs ↗
匯入目前專案.agents/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a cursor -y
匯入個人環境~/.cursor/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a cursor -g -y
手動放置目錄.agents/skills/httpx-new-worktreeOfficial docs ↗
匯入目前專案.agents/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a gemini-cli -y
匯入個人環境~/.gemini/skills/httpx-new-worktree
npx skills add https://github.com/steph-dove/klaussy-agents/tree/cd63ff9bef3ee4714551249748cf9c466f69640f/examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/steph-dove/klaussy-agents.git --scope workspace --path examples/httpx/.gemini/antigravity-cli/plugins/klaussy/skills/httpx-new-worktree
手動放置目錄.agents/skills/httpx-new-worktreeOfficial docs ↗
⚠ 安裝指令使用開源 skills CLI。執行前請檢查來源、腳本與權限。
Create a new git worktree for the task the user described.

1. Read CLAUDE.md to understand the project structure and branching conventions.
2. Create a short, descriptive branch name based on the task (e.g. `fix/login-redirect`, `feat/add-search`).
3. Run `git worktree add ../$(basename $PWD)-<branch-name> -b <branch-name> master` to create the worktree from the configured base branch (the trailing start-point keeps the new branch from inheriting whatever branch the user is currently checked out on).
4. Confirm the worktree was created successfully with `git worktree list`.
5. Tell the user the full path to the new worktree so they can open it.

Rules:
- Always branch from master unless told otherwise.
- Use lowercase kebab-case for branch names.
- Prefix with `fix/`, `feat/`, `chore/`, `docs/`, or `refactor/` as appropriate.
- Do not start work in the worktree — just create it and report the path.

## When NOT to use

- The user just wants a new branch in the current working tree (`git checkout -b`) — worktrees are for parallel checkouts, not branch creation alone.
- A worktree for the same branch already exists — surface the existing path; don't create a duplicate.
- The user is on a non-worktree-friendly hosting setup (some submodule-heavy repos break with worktrees) — flag the risk before creating.