Workspace目录清理工具

# workspace-cleaner

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Workspace目录清理工具" with this command: npx skills add jimmieting/workspace-cleaner-jimmie

workspace-cleaner

检查并整理 OpenClaw workspace 目录结构,识别文件位置是否正确,讲清逻辑关系和引用关系。

触发条件

  • "检查workspace"、"清理workspace"、"检查文件位置"

执行步骤

1. 列出workspace根目录所有文件和目录

ls -la ~/.openclaw/workspace/

2. 检查核心文件的引用关系

对每个文件执行:

grep -r "文件名" ~/.openclaw/workspace/*.md
grep -r "文件名" ~/.openclaw/cron/

3. 分类并说明逻辑关系

核心配置层(每次对话自动加载):

文件被引用次数作用
AGENTS.md被OpenClaw加载工作流程定义
SOUL.md被AGENTS.md引用性格设定
USER.md被AGENTS.md引用用户信息
MEMORY.md被AGENTS.md引用长期记忆
HEARTBEAT.md被AGENTS.md引用心跳任务
IDENTITY.md定义外在形象名字、头像
PACT.md被MEMORY.md引用协作公约
top-100.md被AGENTS.md引用常见错误检查

功能层(按需加载):

文件被引用作用
morning-reminder-template.md被cron引用晨间提醒模板
TOOLS.md被文档引用工具配置

记忆层(memory/):

目录内容逻辑
memory/daily/日记每天对话记录
memory/lessons/教训错误总结
memory/根目录文件长期记忆

4. 位置异常识别

应在 memory/ 但在 workspace/ 根目录:

  • logs/ → memory/
  • .learnings/ → memory/
  • memory/ 子目录外的md文件

应在 scripts/ 但在 workspace/ 根目录:

  • bin/ → scripts/

应在 projects/:

  • data/ → projects/

5. 输出报告格式

## 📋 Workspace 文件逻辑关系

### 核心配置(每次对话加载)
- AGENTS.md ← 被系统自动加载
  - → 引用: SOUL.md, USER.md, MEMORY.md, HEARTBEAT.md, top-100.md
- IDENTITY.md ← 定义对外形象
- PACT.md ← 协作公约

### 模板/配置(被cron引用)
- morning-reminder-template.md ← 被cron jobs引用

### ⚠️ 位置异常
| 目录/文件 | 当前位置 | 应在位置 | 被引用 | 建议 |
|-----------|---------|---------|--------|------|
| xxx | workspace/ | memory/ | 是/否 | 移动/删除 |

### ❓ 待确认
- 文件名: 问题描述

6. 询问用户

输出报告后,询问: "以上是检查结果。要清理位置异常的文件吗?"

7. 根据用户反馈执行

  • 用户同意 → 执行移动/删除
  • 用户不同意 → 保持现状
  • 用户有其他指示 → 按用户指示执行

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

地藏经药师经智慧

地藏经药师经智慧 - 佛家孝道与救度思想,涵盖地藏本愿、药师十二愿、因果报应、消灾延寿等核心智慧,适用于道德修养、慈悲精神、身心健康

Registry SourceRecently Updated
General

Precision Oncology Zhcn

综合学术文献、流行病学报告、临床与药物指南及临床试验报告,提供关于癌症及其治疗的报告。 基于癌变机制进行详细的分子生物学和组织学分析。 当查询涉及以下内容时加载本技能: - 癌症或肿瘤 - 癌变机制 - 癌症或肿瘤的治疗 典型查询 - 乳腺癌是如何发生的? - 白血病的一线和二线治疗 - CAR-T 疗法治疗胰腺...

Registry SourceRecently Updated
General

hermes-traffic-guardian

Hermes runtime traffic monitoring baseline for opt-in proxy inspection, egress detection, and attestation-aware traffic posture.

Registry SourceRecently Updated
General

Scp Paradigm

Use when analyzing how industry structure drives firm behavior and market performance, assessing market concentration, entry barriers, or competitive dynamic...

Registry SourceRecently Updated