원클릭으로
remove-worktree
Remove a git worktree and clean up its directories. Use when: removing a worktree, cleaning up a finished branch workspace.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Remove a git worktree and clean up its directories. Use when: removing a worktree, cleaning up a finished branch workspace.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Scaffold a web repo with pnpm, Astro, and astro-bulma — plus Drizzle when the site needs a database — including package.json scripts for build/lint/test/fmt (and db:migrate when db-backed). Use when: setting up a new Astro project, scaffolding a web repo, initializing the standard web stack. Building block for create-website.
Add a GitHub Actions CI workflow running build, lint, test, and fmt checks with pnpm. Use when: adding CI, setting up GitHub Actions checks, adding a build/lint/test workflow. Building block for create-website.
Create a new website end-to-end: Astro repo with pnpm/astro-bulma; GitHub Pages for static sites, or Turso + Fly.io when the site needs a database; GitHub Actions for CI and deploy. Use when: creating a new website, spinning up a new web project, new site, scaffolding a static or full-stack Astro project.
Create a new app on Fly.io for the current project without deploying it, generating fly.toml and a Dockerfile. Use when: creating a Fly.io app, setting up Fly hosting, fly launch. Building block for create-website.
Add a GitHub Actions workflow that builds a static site and deploys it to GitHub Pages, with an optional custom domain. Use when: deploying a static site, GitHub Pages hosting, static site with a custom domain. Building block for create-website.
Add a GitHub Actions workflow that deploys to Fly.io on merge to main, with db migrations run as a Fly release_command. Use when: adding a deploy workflow, deploying on merge, setting up continuous deployment to Fly.io. Building block for create-website.
| name | remove-worktree |
| description | Remove a git worktree and clean up its directories. Use when: removing a worktree, cleaning up a finished branch workspace. |
| argument-hint | Worktree path or branch name |
Remove a git worktree and clean up the empty parent directories left by the ../worktrees/<repo>/<branch>/<repo> layout.
If the user gives a branch name, resolve it to a path:
git worktree list
Present the path to be removed: "Remove worktree at <path>? This cannot be undone."
Do not proceed until confirmed. Note: the branch is NOT deleted unless --delete-branch is passed — the user keeps their code.
git worktree-rm <path>
If git worktree-rm is not on PATH, fall back to the script via its installed symlink (location-independent):
~/.agents/skills/remove-worktree/scripts/git-worktree-rm <path>
This removes the worktree, cleans up empty parent directories, and optionally deletes the branch with --delete-branch.