agentleFS
MorganOnGitHubMorganOnGitHub/tackle/skills/isolating-workspaces/SKILL.md

isolating-workspaces

Skill0 starsChanged 45 days agoMITView on GitHub

Use when starting work that should be kept apart from the current working tree, such as risky changes, parallel features, or long-running plans

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Respect what exists: If the project or its instruction file (CLAUDE.md, AGENTS.md, GEMINI.md) names a worktree location or branch …

    line 21
  2. Very specific:

    Keep project-local worktrees out of version control: Check with git check-ignore.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Isolating Workspaces

Isolation lets you experiment without disturbing the user's current state and makes it easy to throw work away. Pick the lightest option that gives enough separation.

Scale it

OptionUse whenNeeds
NoneTrivial or small changes, or the user is working with you liveNothing
BranchSubstantial work, one line of development at a timegit
WorktreeParallel work, or keeping the main checkout usablegit
Copy / scratch dirNo git, or disposable experimentsDisk space

How

  1. Respect what exists. If the project or its instruction file (CLAUDE.md, AGENTS.md, GEMINI.md) names a worktree location or branch convention, use it. Otherwise ask once, offering a project-local .worktrees/ or a directory outside the repo.
  2. Keep project-local worktrees out of version control. Check with git check-ignore. If the directory isn't ignored, propose adding it to .gitignore instead of committing the change yourself.
  3. Create the workspace, e.g. git worktree add <path> -b <branch>, and work from it.
  4. Set up dependencies using the project's own tooling (lockfile, Makefile, README), not a guessed command.
  5. Record a baseline by running the test suite if it's reasonably fast. Note any tests that already fail so later failures can be told apart. Pre-existing failures are information; don't treat them as blockers unless they touch your work.
  6. Report where the workspace is, what branch it's on, and the baseline result.

Skip or shorten when

  • The change is small and reversible. Work in place.
  • The directory isn't a git repository. Use a copy only if isolation really matters; otherwise work in place and say so.

Done means

You and the user know where the work lives and what state the baseline was in.

Next

  • executing-plans or delegating-to-subagents
  • finishing-work cleans up the workspace afterwards

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.