Tooluck logoTooluck
SKILL.md

dev-worktree

Agent skill fromcodeaholicguy/ai-devkit

AI DevKit · Worktree setup and resume guidance for isolated feature work. Use when starting, resuming, switching, or verifying a feature branch/worktree for lifecycle, debugging, implementation, review, or multi-agent workflows.

How to install dev-worktree

install dev-worktree
# install the ai-devkit pack with the skills CLI
npx skills add codeaholicguy/ai-devkit

# or add only this skill to Claude Code: copy the folder

skills/dev-worktree/

# into

~/.claude/skills/dev-worktree/ (all projects)

.claude/skills/dev-worktree/ (one project)

skills/dev-worktree/SKILL.md

Apache-2.0Full file
1# Dev Worktree
2
3Set up or resume the correct workspace before feature work. Keep this skill focused on repository context, worktree isolation, and dependency bootstrap. Do not perform requirements, design, planning, implementation, testing, or review work here.
4
5## Phase Contract
6
71. Propose the exact workspace plan before changing branch or worktree state.
82. Confirm the target branch/worktree with the user before switching contexts.
93. Use `feature-<name>` for branch and worktree names, where `<name>` is normalized kebab-case without the prefix.
104. Prefer a project-local worktree at `<project-root>/.worktrees/feature-<name>`.
115. Use no-worktree mode only when the user explicitly requests it.
126. Run all follow-up commands in the verified target context.
13
14## Start Feature Workspace
15
16Use for a new feature start.
17
181. Normalize feature name to kebab-case `<name>`.
192. Determine the project root, the directory containing `.git`.
203. If the user explicitly requests no worktree:
21 - Continue in the current repository and branch.
22 - Call out that branch/workspace isolation is reduced.
23 - Skip to dependency bootstrap.
244. Otherwise use branch/worktree name `feature-<name>`.
255. Ensure `.worktrees` is listed in the project `.gitignore`; if not, add it.
266. If branch does not exist, run `git worktree add -b feature-<name> .worktrees/feature-<name>`.
277. If branch exists and the target worktree does not, run `git worktree add .worktrees/feature-<name> feature-<name>`.
28…

Excerpt shown under the repository's Apache-2.0 license.

More skills in ai-devkit

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates