Install
$ agentstack add skill-roundpilot-superpowers-antigravity-using-git-worktrees ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Using Git Worktrees
Overview
Ensure work happens in an isolated workspace using Antigravity 2.0's native workspace isolation.
Core principle: Detect existing isolation first. Then use Workspace: "branch" on invoke_subagent. Never use manual git worktree add.
Announce at start: "I'm using the using-git-worktrees skill to set up an isolated workspace."
Step 0: Detect Existing Isolation
Before creating anything, check if you are already in an isolated workspace.
Verify Git Repository Existence:
If not inside a git repository, you cannot use worktrees. Check if you need to run git init first.
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
echo "ERROR: Not inside a Git repository."
exit 1
fi
GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
BRANCH=$(git branch --show-current)
Submodule guard: GIT_DIR != GIT_COMMON is also true inside git submodules. Verify:
git rev-parse --show-superproject-working-tree 2>/dev/null
If GIT_DIR != GIT_COMMON (and not a submodule): Already isolated. Skip to Step 2.
If GIT_DIR == GIT_COMMON (or in a submodule): Normal repo. Proceed to Step 1.
Step 1: Create Isolated Workspace
For subagent tasks: Use Workspace: "branch" parameter on invoke_subagent. This creates an isolated workspace on a new git branch automatically. The platform handles directory placement, branch creation, and cleanup.
For parent orchestrator feature branches: Use git checkout -b directly. No worktree needed — the orchestrator works in place on a feature branch.
Step 2: Project Setup
Auto-detect and run appropriate setup:
# Node.js
if [ -f package.json ]; then npm install; fi
# Rust
if [ -f Cargo.toml ]; then cargo build; fi
# Python
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then poetry install; fi
# Go
if [ -f go.mod ]; then go mod download; fi
Step 3: Verify Clean Baseline
Run tests to ensure workspace starts clean:
npm test / cargo test / pytest / go test ./...
If tests fail: Report failures, ask whether to proceed or investigate. If tests pass: Report ready.
Quick Reference
| Situation | Action | |-----------|--------| | Already in linked worktree | Skip creation (Step 0) | | In a submodule | Treat as normal repo (Step 0 guard) | | Subagent task | Workspace: "branch" on invoke_subagent | | Parent orchestrator | git checkout -b | | Tests fail during baseline | Report failures + ask |
Workspace Mode Decision Table
Antigravity 2.0 supports three workspace modes for subagents. Choose based on the agent's role:
| Mode | Syntax | Use for | Example | |------|--------|---------|----------| | branch | Workspace: "branch" | Agents that need isolated write access | Implementers, fixers | | inherit | Workspace: "inherit" | Read-only agents (default) | Reviewers, analyzers | | share | Workspace: "share" | Agents editing different files in same repo | Parallel fixers on separate test files |
Rules of thumb:
- If the agent writes code →
branch - If the agent only reads and reports →
inherit - If multiple agents edit non-overlapping files →
share
Red Flags
Never:
- Use
git worktree add— useWorkspace: "branch"instead - Create a worktree when Step 0 detects existing isolation
- Skip baseline test verification
- Proceed with failing tests without asking
Always:
- Run Step 0 detection first
- Use native workspace isolation
- Auto-detect and run project setup
- Verify clean test baseline
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: roundpilot
- Source: roundpilot/superpowers-antigravity
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.