Working in isolation
Use when you're about to start changing files in a repository — code, docs, config, or content, whether a feature, bugfix, refactor, or docs/config update — to establish an isolated workspace so your work doesn't collide with existing or in-progress work.From its SKILL.md
npx -y skills add slowdini/slow-powers --skill working-in-isolationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 6 commands, including `git branch --show-current` and 5 more.
SKILL.md
2.8 KB, 632 tokens by cl100k_base, as published. Nobody here has run it
Working in Isolation
Before changing anything in a repository — code, docs, config, or other files — make sure your work lands somewhere it won't collide with existing or in-progress work. Decide the workspace based on the git state. When in doubt, pause and ask the user.
Decision: where does this work go?
Check the current state, then take the first matching rule:
git branch --show-current # current branch
git status --porcelain # empty = clean tree
git worktree list # >1 entry = worktrees already exist
- The user named a workspace (explicit command, or a configured preference) → follow it.
- Dirty tree (staged or unstaged changes) OR worktrees already exist → a human or another agent is mid-work here. Use a new worktree so your changes can't collide with theirs.
- On
dev/main/master→ sync with origin and create a new branch using the rule 3 command below. Keeps the base clean and makes the work easy to review. - On any other branch → work in place. The user already isolated this workspace; adding a worktree is needless ceremony.
Hard rule: never make changes while on
dev/main/master. If you find yourself on a base branch, branch (rule 3) or worktree (rule 2) first.
Creating a worktree (rule 2)
Prefer your harness's native git worktree tool if it exists. Note that the tool my be deferred or lazily-loaded Otherwise fall back to a git worktree:
git worktree add .worktrees/<branch-name> -b <branch-name>
cd .worktrees/<branch-name>
Keep the worktree out of version control: if .worktrees/ isn't already
git-ignored, add it to .gitignore and commit that first. If worktree creation
fails (sandbox or permission limits), say so and fall back to checking out a
branch in place (rule 3).
Creating a branch (rule 3)
After syncing the base branch with origin, create the new branch from the
current HEAD with no upstream tracking:
git switch --no-track --create <branch-name>
Do not create the branch from origin/dev, origin/main, or origin/master.
--no-track keeps the new branch without an upstream until the user pushes it
explicitly.
After the workspace is set
Install dependencies and run the existing test suite once, to confirm a clean baseline before you write anything.
Use the project-appropriate commands to verify the baseline is clean - lint, test, build.
If the baseline is already failing, report it before starting — you need to know which failures you introduced.
What ships with it: 14 files
33.4 KB alongside SKILL.md
evals/
- baseline/BASELINE.md828 B
- baseline/benchmark.json1016 B
- baseline/grading/base-branch-checkout__without_skill.json1.1 KB
- baseline/grading/base-branch-checkout__with_skill.json1.6 KB
- baseline/grading/dirty-tree-worktree__without_skill.json899 B
- baseline/grading/dirty-tree-worktree__with_skill.json1.3 KB
- baseline/grading/feature-branch-in-place__without_skill.json593 B
- baseline/grading/feature-branch-in-place__with_skill.json1.0 KB
- baseline/grading/seeded-on-main-momentum__without_skill.json1.0 KB
- baseline/grading/seeded-on-main-momentum__with_skill.json1.3 KB
- baseline/grading/typo-no-worktree__without_skill.json606 B
- baseline/grading/typo-no-worktree__with_skill.json917 B
- baseline/NOTES.md4.1 KB
- evals.json17.2 KB