Skill isolate
Use when starting feature work that needs isolation from current workspace or before executing implementation plans — creates isolated git worktrees with smart directory selection and safety verification
- Bintang GitHub
- 13
- File
- 1
- Commit terakhir
- 23 Jun 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill isolate?
isolate adalah agent skill. Use when starting feature work that needs isolation from current workspace or before executing implementation plans — creates isolated git worktrees with smart directory selection and safety verification.
Cara install skill isolate
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill isolate di Plugin
/plugin marketplace add devnomad-byte/techneering /plugin install tn@techneering
Install skill isolate di Claude Code
~/.claude/skills/isolate/SKILL.md
$ npx degit devnomad-byte/techneering/skills/isolate ~/.claude/skills/isolateInstall skill isolate di Claude Code (project)
.claude/skills/isolate/SKILL.md
$ npx degit devnomad-byte/techneering/skills/isolate .claude/skills/isolateInstall skill isolate di Codex
~/.agents/skills/isolate/SKILL.md
$ npx degit devnomad-byte/techneering/skills/isolate ~/.agents/skills/isolateInstall skill isolate di Gemini CLI
~/.gemini/skills/isolate/SKILL.md
$ npx degit devnomad-byte/techneering/skills/isolate ~/.gemini/skills/isolateInstall skill isolate di Claude.ai
npx degit devnomad-byte/techneering/skills/isolate isolate && zip -r isolate.zip isolate # claude.ai → Customize → Skills → + → Create skill → Upload a skill → isolate.zip
SKILL.md
Lihat di GitHubUsing Git Worktrees
Create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.
Core Principle
SYSTEMATIC DIRECTORY SELECTION + SAFETY VERIFICATION = RELIABLE ISOLATION.
Never create a worktree without verifying it's gitignored.
Steps
Step 1: Directory Selection
Follow this priority order:
-
Check existing directories:
ls -d .worktrees 2>/dev/null # Preferred (hidden) ls -d worktrees 2>/dev/null # AlternativeIf found: Use that directory.
.worktreeswins if both exist. -
Check CLAUDE.md:
grep -i "worktree.*director" CLAUDE.md 2>/dev/nullIf preference specified: Use it without asking.
-
Ask user (only if no directory exists and no preference):
No worktree directory found. Where should I create worktrees? 1. .worktrees/ (project-local, hidden) 2. ~/.config/tn/worktrees/<project-name>/ (global location)
Step 2: Safety Verification
MUST verify directory is ignored before creating worktree:
git check-ignore -q .worktrees 2>/dev/null
If NOT ignored: Add to .gitignore and commit.
Step 3: Create Worktree
- Detect project name:
project=$(basename "$(git rev-parse --show-toplevel)") - Create worktree:
git worktree add "$path" -b "$BRANCH_NAME" - Run project setup (auto-detect from package.json, Cargo.toml, etc.)
- Verify clean baseline (run tests)
- Record the baseline state (passing test count / suite output) so later
tn:gateortn:auditcan compare against it - Report location
If no test command exists: degrade gracefully — record "no tests; baseline = clean checkout + setup completes" and note it in the report. Do not block isolation on a project that legitimately has no tests.
Red Flags
| Thought | Reality |
|---|---|
| "Directory doesn't need gitignore" | Unignored worktrees pollute version control |
| "Skip baseline tests, just start" | Baseline test failure means environment issues — must resolve first |
| "Develop directly on the current branch" | Unisolated development pollutes the main branch |
| "Worktree is done once created" | Must verify the test baseline passes before starting work |
Quick Reference
| Dimension | Key point |
|---|---|
| Directory priority | .worktrees → worktrees → CLAUDE.md → ask user |
| Safety check | Must verify gitignore |
| Baseline verification | Run tests after creation to ensure clean |
| Cleanup | Handled by tn:ship |
Next Step
When done:
- Normal case → return to caller (usually
tn:assembleortn:forge), continue implementation flow - Baseline tests fail → report failure reason, ask user whether to continue
- User requests stop → end the current flow
Guardrails
- Never create a worktree without verifying the directory is gitignored
- If baseline tests fail, report and ask — don't proceed silently
- Follow existing directory conventions if they exist
- Announce at start: "I'm using the tn:isolate skill to set up an isolated workspace."
- Pairs with
tn:shipfor cleanup after work is complete
Berkas dalam skill ini
1Pertanyaan seputar skill isolate
Bagaimana cara install skill isolate di Claude Code?
Jalankan npx degit devnomad-byte/techneering/skills/isolate ~/.claude/skills/isolate. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill isolate?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.