/dev-worktree
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.
$ npx -y skills add codeaholicguy/ai-devkit --skill dev-worktree --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/dev-worktree
Context preview
The summary Claude sees to decide when to auto-load this skill.
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.
SKILL.md
dev-worktree.SKILL.mdname: dev-worktree
description: 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.
Dev Worktree
Set 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.
Phase Contract
1. Propose the exact workspace plan before changing branch or worktree state. 2. Confirm the target branch/worktree with the user before switching contexts. 3. Use `feature-<name>` for branch and worktree names, where `<name>` is normalized kebab-case without the prefix. 4. Prefer a project-local worktree at `<project-root>/.worktrees/feature-<name>`. 5. Use no-worktree mode only when the user explicitly requests it. 6. Run all follow-up commands in the verified target context.
Start Feature Workspace
Use for a new feature start.
1. Normalize feature name to kebab-case `<name>`. 2. Determine the project root, the directory containing `.git`. 3. If the user explicitly requests no worktree:
- Continue in the current repository and branch.
- Call out that branch/workspace isolation is reduced.
- Skip to dependency bootstrap.
4. Otherwise use branch/worktree name `feature-<name>`. 5. Ensure `.worktrees` is listed in the project `.gitignore`; if not, add it. 6. If branch does not exist, run `git worktree add -b feature-<name> .worktrees/feature-<name>`. 7. If branch exists and the target worktree does not, run `git worktree add .worktrees/feature-<name> feature-<name>`. 8. If the target worktree already exists, reuse it after verifying it is clean enough for the requested work. 9. Verify worktree context with `git -C .worktrees/feature-<name> branch --show-current`; it must equal `feature-<name>`. 10. Return the active workdir path for the next phase.
Resume Feature Workspace
Use when continuing an existing feature.
1. Check current branch with `git branch --show-current`. 2. Check available worktrees with `git worktree list`. 3. Prefer `<project-root>/.worktrees/feature-<name>` when it exists. 4. Otherwise use branch `feature-<name>` in the current repository. 5. Include the selected target in the plan and wait for approval before switching. 6. After approval, run future phase commands in the selected context.
Dependency Bootstrap
After selecting the target context:
1. Detect ecosystem from lockfiles, manifests, and tooling configs. 2. Prefer deterministic lockfile-based installs. 3. Use the repository-native command:
- JavaScript/TypeScript: `npm ci`, `pnpm install --frozen-lockfile`, `yarn install --frozen-lockfile`, or `bun install --frozen-lockfile`.
- Python: `uv sync`, `poetry install --no-interaction`, `pipenv sync`, or `pip install -r requirements.txt`.
- Ruby: `bundle install`.
- Rust: `cargo fetch`, or `cargo build` when fetch-only is insufficient.
- Go: `go mod download`.
- Java/Kotlin: `./gradlew dependencies`, `./gradlew build`, or Maven equivalent.
4. If no dependency manager is clearly detectable, continue and state what was checked.
Output
End with:
- Active workdir.
- Branch name.
- Whether worktree or no-worktree mode is active.
- Dependency bootstrap command run, or why it was skipped.
- Any workspace risks or blockers.
Read more
name: dev-worktree description: 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.
Dev Worktree
Set 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.
Phase Contract
1. Propose the exact workspace plan before changing branch or worktree state. 2. Confirm the target branch/worktree with the user before switching contexts. 3. Use `feature-<name>` for branch and worktree names, where `<name>` is normalized kebab-case without the prefix. 4. Prefer a project-local worktree at `<project-root>/.worktrees/feature-<name>`. 5. Use no-worktree mode only when the user explicitly requests it. 6. Run all follow-up commands in the verified target context.
Start Feature Workspace
Use for a new feature start.
1. Normalize feature name to kebab-case `<name>`. 2. Determine the project root, the directory containing `.git`. 3. If the user explicitly requests no worktree:
- Continue in the current repository and branch.
- Call out that branch/workspace isolation is reduced.
- Skip to dependency bootstrap.
4. Otherwise use branch/worktree name `feature-<name>`. 5. Ensure `.worktrees` is listed in the project `.gitignore`; if not, add it. 6. If branch does not exist, run `git worktree add -b feature-<name> .worktrees/feature-<name>`. 7. If branch exists and the target worktree does not, run `git worktree add .worktrees/feature-<name> feature-<name>`. 8. If the target worktree already exists, reuse it after verifying it is clean enough for the requested work. 9. Verify worktree context with `git -C .worktrees/feature-<name> branch --show-current`; it must equal `feature-<name>`. 10. Return the active workdir path for the next phase.
Resume Feature Workspace
Use when continuing an existing feature.
1. Check current branch with `git branch --show-current`. 2. Check available worktrees with `git worktree list`. 3. Prefer `<project-root>/.worktrees/feature-<name>` when it exists. 4. Otherwise use branch `feature-<name>` in the current repository. 5. Include the selected target in the plan and wait for approval before switching. 6. After approval, run future phase commands in the selected context.
Dependency Bootstrap
After selecting the target context:
1. Detect ecosystem from lockfiles, manifests, and tooling configs. 2. Prefer deterministic lockfile-based installs. 3. Use the repository-native command:
- JavaScript/TypeScript: `npm ci`, `pnpm install --frozen-lockfile`, `yarn install --frozen-lockfile`, or `bun install --frozen-lockfile`.
- Python: `uv sync`, `poetry install --no-interaction`, `pipenv sync`, or `pip install -r requirements.txt`.
- Ruby: `bundle install`.
- Rust: `cargo fetch`, or `cargo build` when fetch-only is insufficient.
- Go: `go mod download`.
- Java/Kotlin: `./gradlew dependencies`, `./gradlew build`, or Maven equivalent.
4. If no dependency manager is clearly detectable, continue and state what was checked.
Output
End with:
- Active workdir.
- Branch name.
- Whether worktree or no-worktree mode is active.
- Dependency bootstrap command run, or why it was skipped.
- Any workspace risks or blockers.
The control plane for AI coding agents. AI DevKit gives Claude Code, Codex CLI, Gemini CLI, opencode, Pi, Cursor, GitHub Copilot, Devin, and other coding agents one local-first operating layer: one config, one console, local memory retrieval, cross-agent
Repo: codeaholicguy/ai-devkit
Other skills on ai-devkit.
- /agent-communication
AI DevKit · Exchange information with active Codex, Claude Code, and other AI agents using ai-devkit agent list, detail, and send. Use when an agent needs to find another active agent, read its recent context, send it information, or request information back.
Open skill - /agent-management
AI DevKit · Manage running AI agents with ai-devkit agent commands. Use when an agent needs to identify itself, list agents, start workers, inspect agent detail, assign work, group agents, resume sessions, stop agents, or delegate work to other agents.
Open skill - /agent-orchestration
AI DevKit · Supervise multi-agent workflows over repeated passes: poll progress, unblock waiting agents, coordinate dependencies, relay outputs, resolve conflicts, and verify completion. Use only for ongoing multi-agent coordination, not one-off list/detail/send/start/kill
Open skill - /brainstorm
AI DevKit · Use when the user asks to brainstorm, ideate, generate ideas, expand options, challenge ideas, pressure-test ideas, compare concepts, narrow choices, name something, plan content angles, explore strategy, evaluate product ideas, technical approaches, experiments, or
Open skill - /changelog
AI DevKit · Update CHANGELOG.md Unreleased items from git commits since the latest release. Use when users ask to update changelog/release notes from recent commits, with one concise line per commit and commit/PR links.
Open skill - /dev-commit
AI DevKit · Safe git commit workflow for AI coding agents. Use when the user asks to commit, prepare a commit, stage changes, create a PR-ready checkpoint, or finish work with a conventional commit while avoiding unrelated user changes.
Open skill

