← 返回
未分类

Workspace Guardian

Stop AI from scattering files everywhere. This skill enforces consistent naming and directory structure for all AI outputs — saves tokens, cuts management ti...
阻止AI将文件散落各处。该技能强制所有AI输出使用统一的命名和目录结构,节省Token,减少管理时间。
lujun2508
未分类 clawhub v1.0.9 1 版本 100000 Key: 无需
★ 1
Stars
📥 391
下载
💾 0
安装
1
版本
#latest

概述

Workspace Guardian

> Unless the user explicitly specifies a path, this skill governs where and how files are created.


Core Rules

One Project = One Directory

All files belong to a project. Never scatter files in ~/, desktop, downloads, or timestamped folders.

Naming Standard

{date}_{description}.{ext}

Example: 2026-04-14_report.xlsx

Scripts: {verb}_{object}.py (e.g., generate_report.py)

Directory Structure

{project-root}/
├── output/     ← final deliverables
├── scripts/    ← scripts and tools
├── data/       ← data files
├── docs/       ← documentation
├── temp/       ← temporary files
└── README.md

Special Cases

User Specifies a Path

Follow the user's instruction.

No Clear Project

Output goes to the Agent's own workspace:

  • drafts/ — pending content
  • output/ — approved content
  • temp/ — temporary, clean after use

Agent Workspaces

Files in ~/.openclaw/workspace-*/ are managed by each Agent independently.


Periodic Maintenance

Scheduled Review

Periodically (every few days during normal usage), check for:

  • Old temp files that were never cleaned up
  • Multiple script versions that could be consolidated
  • Empty directories left behind

When found, ask the user: "发现 {issue},是否清理?" — wait for confirmation before taking action.

Do not主动清理大量文件 or run cleanup during busy times.

Maintenance

Rejected Outputs

When the user declines an output: remove the file promptly.

Temporary Files

Clean up temp/ after task completion. Old temp files should not accumulate.

Versioned Scripts

When updating a script, archive the old version with a date suffix (e.g., generate_report_v4_2026-04-09.py).

Empty Directories

Do not leave empty directories behind.


Self-Check

After creating a file, briefly confirm the location:

📁 Saved: {project-dir}/{filename}

版本历史

共 1 个版本

  • v1.0.9 当前
    2026-05-07 13:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Law Exam Trainer

lujun2508
法考复习助手 -整理法考题库,支持刷题练习、错题解析、知识点定位。触发词:法考、刷题、司法考试、法律职业资格考试、练习题、错题整理。
★ 1 📥 436

N8n Operator

lujun2508
n8n 工作流助手 - 使用 REST API 设计、创建、修改和管理工作流。适用:自动化工程师、DevOps、流程编排。
★ 0 📥 466

Weather Cn

lujun2508
国内天气及空气质量查询,支持城市和区县,中文输出,数据来源:wttr.in + Open‑Meteo,无需 API Key。
★ 0 📥 419