agent-briefing
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when starting feature work that should not touch the current checkout, before executing an implementation plan, or when several agents or sessions will edit the same repository at the same time.
Claude Code
$ npx -y skills add NoobyGains/godmode --skill workspace-isolation --agent claude-code
Codex
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a codex -y
Cursor
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a cursor -y
Gemini CLI
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a gemini-cli -y
GitHub Copilot
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a github-copilot -y
OpenCode
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a opencode -y
Windsurf
$ npx skills add NoobyGains/godmode --skill workspace-isolation -a windsurf -y
name: workspace-isolation description: "Use when starting feature work that should not touch the current checkout, before executing an implementation plan, or when several agents or sessions will edit the same repository at the same time."
A git worktree is a second working directory on its own branch that shares the repository's history. Work in one cannot disturb the files in another, so a plan can run without risking the user's checkout, and parallel agents cannot overwrite each other.
**Core principle: detect existing isolation first, prefer the harness's own worktree mechanism, fall back to plain git, and never start work on a baseline you have not tested.** A worktree created behind the harness's back is state it cannot see or clean up; a worktree started on a red baseline makes every later failure ambiguous.
<!-- Claude Code worktree facts: https://code.claude.com/docs/en/worktrees and https://code.claude.com/docs/en/sub-agents (fetched 2026-10-25). Per-harness actions: skills/using-godmode/references/<harness>-tools.md. -->
NO IMPLEMENTATION WITHOUT AN ISOLATED WORKSPACE AND A KNOWN BASELINE
No exceptions. No workarounds. No shortcuts.
**Required:**
**Skip:**
git_dir=$(cd "$(git rev-parse --git-dir)" && pwd -P) git_common=$(cd "$(git rev-parse --git-common-dir)" && pwd -P) super=$(git rev-parse --show-superproject-working-tree 2>/dev/null) branch=$(git branch --show-current)
If the user's instructions already state a worktree preference, follow it. Otherwise say in one line that you will create a worktree to protect their checkout, and proceed unless they have said to work in place. Choose a short branch name from the work (`feature/csv-export`, `fix/login-race`).
**3a. The harness's own mechanism first.** If the harness can create a worktree itself (a built-in action, a command-line flag, or a per-subagent isolation option), use it: it owns placement, branch creation, cleanup and its own isolation checks. The harness reference names the action. Facts to know on Claude Code:
**3b. Plain git otherwise.** Pick the directory in this order; an explicit preference always beats what you find on disk: 1. A worktree directory the user's instructions declare. 2. An existing `.worktrees/` at the repository root. 3. An existing `worktrees/` at the repository root (if both exist, `.worktrees/` wins). 4. Default: create `.worktrees/`.
Verify a project-local directory is ignored before creating anything inside it:
git check-ignore -q .worktrees || echo "NOT IGNORED"
If it is not ignored, add the directory to `.gitignore`, commit that one-line change on the current branch, and say so. An unignored worktree directory gets committed into the repository wholesale.
base=$(git rev-parse HEAD) # or the branch the plan says to start from git worktree add ".worktrees/$name" -b "$branch" "$base" cd ".worktrees/$name"
If creation fails with a permission or sandbox error, tell the user, and work in the current checkout on a new branch instead.
Detect and run the project's own setup, preferring what its README or contributing guide says over guesses:
| Marker | Setup | |---|---| | `package-lock.json` / `pnpm-lock.yaml` / `yarn.lock` | `npm ci` / `pnpm install --frozen-lockfile` / `yarn install --frozen-lockfile` | | `pyproject.toml` / `requirements.txt` | the project's tool (`uv sync`, `poetry install`, `pip install -r requirements.txt`) in a virtual environment | | `Cargo.toml` | `cargo build` | | `go.mod` | `go mod download` |
Copy any local configuration the tests need (for example `.env.example` to `.env`) only when the project documents it. Never copy secrets into a tracked file. `godmode:environment-awareness` covers shell and package-manager differences.
Run the project's full test command and read the output.
Worktree: <absolute path> (branch <name>, from <base sha>, created by <harness | git>) Setup: <command> ok Baseline: <command> -> <n> passed, <m> failed
This block goes in the plan ledger as well as the message.
Cleanup belongs to `godmod
Engineering discipline for AI coding agents: question the request, verify against current docs, plan, build test-first on the cheapest capable model, review with a second model family, prove it before saying done. One repo for Claude Code, Codex, Antigravity, Cursor, Gemini CLI and OpenCode.
Use when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff…
Use when a task, feature or bug fix is implemented and before it is committed, merged or handed back to the user, and when the…
Use when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration,…
Use when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull…
Use when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second…
Use when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration