Skip to content
Back to skills

Worktree

ASecurity

Create an isolated git worktree for a code-change task (../<repo>-<slug> on its own branch), keeping the main checkout clean. Use in a repo that opted into the worktree-per-task workflow, or when the user says "new worktree", "워크트리 만들어", "isolate this task", "task별 worktree".

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
ai-agentsbashgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add jhlee0409/omni-harness-kit --skill worktree --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Worktree?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Worktree
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jhlee0409-worktree/badge)](https://www.skillsdirectory.com/skills/jhlee0409-worktree)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: worktree
description: >-
  Create an isolated git worktree for a code-change task (../<repo>-<slug> on its
  own branch), keeping the main checkout clean. Use in a repo that opted into the
  worktree-per-task workflow, or when the user says "new worktree", "워크트리 만들어",
  "isolate this task", "task별 worktree".
argument-hint: "<task-slug> [base-branch]"
allowed-tools: Bash, Read
---

# worktree

Each code-change task gets its own worktree, so the main checkout stays clean and
parallel tasks don't collide. (Only relevant if the repo opted into this workflow
at introspect time — `.claude/harness-kit.json` `worktree_workflow: true`.)

1. **Create:** from the repo root, run
   `bash "${CLAUDE_PLUGIN_ROOT}/skills/worktree/new-worktree.sh" "<slug>" [base]`.
   It creates `../<repo>-<slug>` on a new branch `<slug>` (from `base`, default
   `HEAD` — pass your integration branch to branch off it) and prints the path.
2. **Work there:** make the task's edits in that worktree (`cd` into it, or
   `git -C <path> …`). Keep the main checkout read-only for edits.
3. **Finish:** open a PR from the branch, then `git worktree remove <path>`.

Files in this skill

  • SKILL.md1.1 KB
  • new-worktree.sh981 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.