← 返回
未分类

Workspace Guardian

Enforce workspace structure, file placement, naming conventions, memory lifecycle, and safety for AI project organization and cleanup tasks.
强制工作区结构、文件摆放、命名规范、内存生命周期及安全,用于AI项目的组织与清理。
golikegod
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 213
下载
💾 0
安装
1
版本
#latest#memory#naming#organization#productivity#workspace

概述

Workspace Guardian

> Enforce workspace discipline — consistent structure, naming, memory lifecycle, and safety boundaries.


Quick Reference

workspace/
├── projects/   YYYYNNNN_name     — source code only
├── knowledge/  topics|articles|research|assets — knowledge files only
├── output/     wechat|docs|slides|preview — final deliverables
├── memory/     YYYY-MM-DD.md → archive/ (14d+) — never deleted
├── logs/       run-time logs
├── .temp/      temporary files — delete after use
└── slides/     presentations

Core Rules (6 Tenets)

1. System Files Stay Outside

No workspace files in OpenClaw's own directories (~/.openclaw/ except workspace/, ~/.openclaw/canvas/, etc.).

2. Workspace Is the Only Writable Zone

All AI-generated files → workspace/ subtree only. Never write to Desktop/, Downloads/, ~/, or system paths.

3. Scattered Files → Immediate Redirect

Any file not in its designated directory → move to correct location, not delete.

4. One Config Backup Only

Configuration or .json-based projects keep one archived/expired backup, not piles of timestamps.

5. Temp Files → Never Overnight

.temp/ files: delete after task completion. >7 days stale → cleanup on next session start.

6. Skills Source Separation

ClawHub-installed skills in skills/. User-built local skills also in skills/. No double installation.


File Routing Rules

Content TypeDestination
------
Source code/projectsprojects/YYYYNNNN_name/
Knowledge/research`knowledge/topicsarticlesresearchassets/`
WeChat articlesoutput/wechat/
Word/PDF docsoutput/docs/
Presentationsoutput/slides/
Preview filesoutput/preview/ (delete after publish)
Daily logsmemory/YYYY-MM-DD.md
Temp work.temp/temp_* (delete after use)

Naming Standards

RulePattern
------
Project dirsYYYYNNNN_project-name
Output files`{description}_v1\v2\final.{ext}`
Avoidspaces, Chinese characters in dir names
Use- (hyphen) as separator
Temp filestemp_{description}_{uuid}.{ext}

Authorization Levels

LevelAction
------
✅ AutonomousFile reads, scheduling, memory updates, knowledge base management
⚠️ Need AuthExternal sends (email/social), destructive ops (delete/move/cleanup), sub-agent creation
🚫 NeverSystem security changes, private data leaks, impersonation

Red Lines

  • No private data leaks
  • No destructive commands without explicit confirmation
  • No external sends without authorization
  • No safety settings modification

Scripts

  • scripts/workspace-cleanup.py — Scan and clean temp/stale files
  • scripts/validate-workspace.py — Validate workspace structure against these rules

References

  • references/naming-conventions.md — Detailed naming rules
  • references/memory-tiering.md — Memory lifecycle management
  • references/safety-boundaries.md — Detailed safety rules

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-26 18:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

古言 - 中文极简压缩 + 身份模式

golikegod
古言模式,极简中文压缩。绑定龙虾4号,默认古言输出。覆盖语言压缩、角色身份、自动触发、多智能体调度、技术沟通桥接、记忆编写。
★ 0 📥 489

股智Alpha

golikegod
股智Alpha - A股智能选股系统。基于行为金融学(SLSV羊群因子)、技术面(RSI/MACD/MA)、资金流(主力净流入)及舆情情绪,对A股全市场进行多维度评分和筛选。
★ 0 📥 316

WeChat Article Publisher

golikegod
从 Markdown 或 HTML 文件发布图文至微信公众号,支持本地图片自动上传、封面尺寸自动裁剪(2.35:1)、内容图片 CDN 替换、重试机制与草稿创建。适用于文章发布、批量图文生产、内容运营工作流。
★ 0 📥 225