Xpersona
I

Isolated Workspace

CLAWHUB · Unverified

Use when starting feature work that needs isolation from current workspace - creates isolated git branches with clean setup and safety verification, adapted... Skill: Isolated Workspace Owner: axelhu Summary: Use when starting feature work that needs isolation from current workspace - creates isolated git branches with clean setup and safety verification, adapted... Tags: latest:1.0.1 Version history: v1.0.1 | 2026-03-26T09:05:33.417Z | user OpenClaw-adapted skill for Superpowers development methodology. v1.0.0 | 2026-03-26T06:25:22.732Z | user Initial release: OpenClaw-ada

62
Rank
84
Safety
963
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 963 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s172yaxxd2drm0sc92554g9aq983hegj:superpowers-isolated-workspace
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-axelhu-superpowers-isolated-workspace/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,051 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: superpowers-isolated-workspace
description: Use when starting feature work that needs isolation from current workspace - creates isolated git branches with clean setup and safety verification, adapted for OpenClaw environments
---

# Superpowers Isolated Workspace(OpenClaw 适配版)

## 概述

为新功能工作创建隔离的 git 分支环境。在 OpenClaw 环境中,用 git branch 做隔离比 worktree 更稳定可靠。

**核心原则:** 系统化目录选择 + 安全验证 = 可靠隔离。

**开始时宣布:** "我正在用 isolated-workspace 技能设置隔离工作环境。"

## 目录选择流程

按优先级检查:

### 1. 检查现有目录

```bash
# 按优先级检查
ls -d .isolated 2>/dev/null || ls -d worktrees 2>/dev/null || ls -d .worktrees 2>/dev/null
```

**如果找到:** 使用该目录。

### 2. 检查 AGENTS.md 或项目文档

```bash
grep -i "workspace.*director\|worktree.*director\|isolated.*path" AGENTS.md 2>/dev/null
```

**如果指定了偏好:** 无需询问直接使用。

### 3. 询问主人

如果没有目录且无偏好指定:

```
没有找到隔离工作区目录。在哪里创建?

1. .isolated/ (项目内,隐藏)
2. ~/.openclaw/workspace-<project-name>/ (全局位置)

选择哪个?
```

## 安全验证

### 对于项目内目录

**创建分支前必须验证目录未被跟踪:**

```bash
# 检查目录是否被 git 忽略
git check-ignore -q .isolated 2>/dev/null || git check-ignore -q worktrees 2>/dev/null
```

**如果没有被忽略:**

立刻修复:
1. 添加到 .gitignore
2. Commit 变更
3. 继续创建隔离分支

## 创建步骤

### 1. 检测项目名

```bash
project=$(basename "$(git rev-parse --show-toplevel)")
```

### 2. 创建特性分支

```bash
# 确定分支名
BRANCH_NAME="feature/<feature-name>"

# 从当前分支创建新分支
git checkout -b "$BRANCH_NAME"

# 确认在正确分支上
git branch --show-current
```

### 3. 运行项目设置

自动检测并运行适当的设置:

```bash
# Node.js
if [ -f package.json ]; then npm install; fi

# Python
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then pip install -e .; fi

# Rust
if [ -f Cargo.toml ]; then cargo build; fi

# Go
if [ -f go.mod ]; then go mod download; fi
```

### 4. 验证干净基线

运行测试确保起点干净:

```bash
# 使用项目对应的测试命令
npm test / pytest / cargo test / go test ./...
```

**如果测试失败:** 报告失败,询问是继续还是调查。

**如果测试通过:** 报告就绪。

### 5. 报告位置

```
隔离分支 ready: $BRANCH_NAME
测试通过 (<N> 测试,0 失败)
准备实现 <feature-name>
```

## 快速参考

| 情况 | 行动 |
|------|------|
| `.isolated/` 存在 | 使用它(验证被忽略) |
| `worktrees/` 存在 | 使用它(验证被忽略) |
| 都存在 | 使用 `.isolated/` |
| 都不存在 | 检查 AGENTS.md → 询问主人 |
| 目录未被忽略 | 添加到 .gitignore + commit |
| 基线测试失败 | 报告失败 + 询问 |
| 无 package.json | 跳过依赖安装 |

## 常见错误

**跳过忽略验证**
- 问题:工作区内容被跟踪,污染 git 状态
- 修复:创建项目内目录前总是用 `git check-ignore`

**假设目录位置**
- 问题:造成不一致,违反项目约定
- 修复:遵循优先级:现有 > AGENTS.md > 询问

**不确认就开始**
- 问题:无法区分新 bug 和已有问题
- 修复:报告失败,获得明确许可再继续

**硬编码设置命令**
- 问题:在使用不同工具的项目上失败
- 修复:从项目文件自动检测(package.json 等)

## 与 Brainstorming 的集成

```
用户请求新功能
  → brainstorming 技能(探索设计)
  → 主人批准设计
  → isolated-workspace(创建隔离分支)← 当前技能
  → writing-plans(写实现计划)
  → subagent-dev 或 顺序执行
  → finishing-branch(完成并清理)
```

## OpenClaw 环境说明

在 OpenClaw 环境中(WSL):
- `git worktree` 命令可用,但与 OpenClaw session 模型不完全兼容
- 使用 `git branch` + 独立工作目录更稳定
- 分支命名约定:`feature/<name>` / `fix/<name>` / `refactor/<name>`
- 完成后通过 `finishing-branch` 技能处理 merge/PR/清理

_meta.json

{
  "ownerId": "kn7bcaearb90wwcjbr9gpv32s5831k39",
  "slug": "superpowers-isolated-workspace",
  "version": "1.0.1",
  "publishedAt": 1774515933417
}

skill-card.md

## Description:

Use when starting feature work that needs isolation from the current workspace; it creates isolated git branches with clean setup and safety verification for OpenClaw environments.

This skill is ready for commercial/non-commercial use.

## Publisher:

[axelhu](https://clawhub.ai/user/axelhu)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering agents use this skill at the start of feature work to create a separate feature branch, select or prepare a workspace path, install project dependencies, and verify a clean baseline before implementation.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can run package-manager and build commands in the current checkout, which may execute project-controlled code.

Mitigation: Use it only in repositories you trust and review dependency or build setup before allowing those commands to run.

Risk: The skill can create branches and alter or commit .gitignore, changing repository state.

Mitigation: Confirm the intended branch and ignore-file changes before proceeding, then inspect git status afterward.

Risk: The skill describes isolation while relying on git branches and workspace selection, which may not provide a fully separate working tree.

Mitigation: Treat it as branch and workspace preparation rather than strong filesystem isolation; use a real separate workspace when that isolation is required.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/axelhu/skills/superpowers-isolated-workspace)

## Skill Output:

**Output Type(s):** [Shell commands, Configuration, Guidance, Markdown]

**Output Format:** [Markdown guidance with bash command blocks and status-report text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May propose repository state changes such as branch creation, .gitignore updates, dependency setup, and baseline test execution.]

## Skill Version(s):

1.0.1 (source: release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Isolated Workspace and adjacent AI workflows.