Skip to content
Back to skills

Workspace Health

ASecurity

检测并修复OpenClaw工作目录嵌套问题

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolsshell

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill workspace-health --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Workspace Health?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Workspace Health
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-workspace-health/badge)](https://www.skillsdirectory.com/skills/lord1egypt-workspace-health)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: workspace-health
displayName: 工作目录健康检测
description: 检测并修复OpenClaw工作目录嵌套问题
version: 1.0.0
type: skill
tags: [openclaw, workspace, health, directory, nested]
release: published
---

检测并修复OpenClaw工作目录嵌套问题。

## 触发条件

用户提到以下任意关键词时激活:
- 工作目录异常
- 嵌套目录
- .openclawworkspace
- workspace问题
- 路径错误
- openclaw doctor
- openclaw init

## 功能

### 1. 检测嵌套目录
扫描 `.openclawworkspace` 递归嵌套目录

### 2. 校验工作目录
- 检查配置文件中的工作目录
- 检查当前工作目录
- 验证路径有效性

### 3. 修复功能
- 删除嵌套目录
- 修复配置文件中的工作目录路径

## 使用方法

```powershell
# 检测嵌套目录
.\detect-nested-workspace.ps1

# 校验工作目录
.\validate-workspace.ps1

# 修复(演练模式)
.\fix-nested-workspace.ps1 -DryRun:$true

# 修复(执行)
.\fix-nested-workspace.ps1 -DryRun:$false
```

## 脚本位置

- `E:\.openclaw\workspace\scripts\detect-nested-workspace.ps1`
- `E:\.openclaw\workspace\scripts\validate-workspace.ps1`
- `E:\.openclaw\workspace\scripts\fix-nested-workspace.ps1`

## 注意事项

- 修复前建议先运行演练模式
- 确保配置文件有备份
- 修复后需要重启OpenClaw Gateway

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.