Skip to content
Agentmart
Submit a tool

isolating

Create isolated git worktrees for feature work.

Skill by renathoaz

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/renathoaz-isolating

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create isolated git worktrees for feature work.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/isolating

What's inside

Skill name
isolating
Description
Create isolated git worktrees for feature work.
License
MIT
Instructions
80 lines in SKILL.md · view on GitHub

Before installing

  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (2)

  • SKILL.md
  • setup-commands.md · references/

SKILL.md (first lines)

# Isolating

Announce at start: "I'm applying the isolating skill to set up a separate workspace."

## Directory Resolution

Resolve the worktree root in this order — stop at first match:

1. **Existing directory** — check for `.worktrees/` then `worktrees/` in repo root
2. **CLAUDE.md directive** — `grep -i "worktree.*director" CLAUDE.md`
3. **Prompt** — offer `.worktrees/` (project-local, hidden) or `~/.config/arsyn/worktrees/<project>/` (global)

## Gitignore Gate

For project-local directories only:

```bash
git check-ignore -q .worktrees 2>/dev/null
```

If NOT ignored: add to `.gitignore`, commit, then proceed. Worktree contents tracked in git cause nested-repo confusion that is painful to untangle.

Global directories (`~/.config/arsyn/worktrees/`) skip this check entirely.

## Worktree Lifecycle

```bash
# 1. Detect project
project=$(basename "$(git rev-parse --show-toplevel)")

# 2. Create worktree + branch
git worktree add "$WORKTREE_ROOT/$BRANCH_NAME" -b "$BRANCH_NAME"
cd "$WORKTREE_ROOT/$BRANCH_NAME"

# 3. Install dependencies (auto-detect)
# 4. Run test suite for clean baseline
```

See [references/setup-commands.md](references/setup-commands.md) for dependency installation and test commands by ecosystem.

If baseline tests fail: report failures and ask whether to proceed or investigate. Do not silently continue.

Report when ready:

```
Worktree ready at <full-path>
Tests passing (<N> tests, 0 failures)
Ready to implement <feature-name>
```

## Quick Reference

| Situation | Action |
|-----------|--------|
| `.worktrees/` exists | Use it (verify ignored) |
| `worktrees/` exists | Use it (verify ignored) |
| Both exist | Use `.worktrees/` |
| Neither exists | Check CLAUDE.md, then ask |
| Directory not ignored | Add to .gitignore, commit |
| Tests fail at baseline | Report + ask |
| No recognizable build file | Skip dependency install |

## Gotchas

- **Shared database state** — Worktrees share git objects but not app state. A migration in one worktree affects every worktree hitting the same database. Coordinate or use separate databases.
- **Stale worktrees accumulate** — Merged branches leave orphaned worktrees. `git worktree list` to audit; `git worktree remove` to clean.
- **Wrong base branch** — Creating from a stale local ref instead of latest `main`/`develop`. Always `git fetch` and branch from the updated remote tip.
- **Forgetting ignore verification** — The single most common mistake. Project-local worktree directories that aren't gitignored pollute `git status` and risk accidental commits.

## Integration

**Called by:**
- **ideating** (Phase 4) — when design is approved and implementation follows
- **orchestrating** — before dispatching subagent tasks
- **executing** — before running plan batches

**Pairs with:**
- **finalizing** — cleans up the worktree after work completes

From renathoaz/arsyn, MIT.

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Mar 24, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from renathoaz

Cite this page

isolating skill. Agent Mart. https://agentmart.dev/skills/renathoaz-isolating (last updated 2026-10-24)