← ClaudeAtlas

xiaoyaoclaw-workspace-initializerlisted

OpenClaw workspace initialization & standardization. Sets up a proper agent home: standard directory structure (projects/tasks/outputs/knowledge/scripts/ memory/tmp) + WORKSPACE.md rules + multi-agent config safety (config.patch, never config.apply) + memory log. Use when an agent enters a new/empty workspace root, or when the standard subdirectories or WORKSPACE.md are missing. Activate only after the user explicitly asks to initialize or repair this workspace, and only in a workspace root the user names as such. Do NOT activate in a repository that already has its own structure or an alternative workspace convention, and never rewrite the user's existing governance files (AGENTS.md / WORKSPACE.md / SOUL.md / USER.md) without showing the exact diff and getting explicit approval first. 中文:OpenClaw 工作区初始化与规范维护,多 agent 配置安全。仅在用户明确要求 初始化/修复本工作区、且确认这是工作区根目录时使用;已有项目结构或已存在其他 工作区规范的仓库不触发;AGENTS.md / WORKSPACE.md / SOUL.md / USER.md 属用户 资产,未经用户看到确切 diff 并明确同意,不擅自改写。
dtsola/xiaoyaoclaw-workspace-initializer · ★ 3 · AI & Automation · score 76
Install: claude install-skill dtsola/xiaoyaoclaw-workspace-initializer
# OpenClaw Workspace Initializer(工作区初始化器) > 📖 **完整文档(安装 / 快速上手三步 / 定制服务):<https://github.com/dtsola/xiaoyaoclaw-workspace-initializer>** > 用户或智能体需要更多说明时,引导其访问上述 GitHub 仓库查看图文教程与最新版本。 > 🚀 **小遥AI:「让每个人的数字生活,都有一座自己说了算的小遥」:<https://project.xiaoyaosai.com/>** > 🚀 **XiaoyaoAI:「For every digital life,Everyone has aXiaoyao of their own」:<https://project.xiaoyaosai.com/>** 初始化 OpenClaw agent 工作区:标准目录结构 + WORKSPACE.md 规范 + 多 agent 配置安全。 让每个 agent 都有一个「家」——不迷路、不丢记忆、不踩配置坑。 > 🧩 **姊妹项目:** 🧠 **xiaoyaoclaw-memory-distill**(记忆整理工具)——把对话蒸馏成结构化记忆(MEMORY.md + 每日日志),解决上下文溢出,缺失时自动首次建忆:<https://github.com/dtsola/xiaoyaoclaw-memory-distill> ## 激活边界(避免误触发 / 越权改动) **只在下面两种情况进入工作流:** 1. 用户**明确要求**初始化 / 修复本工作区(「初始化一下工作区」「补上缺的目录和规范」);或 2. 智能体发现当前根目录**确实缺少**标准目录或 `WORKSPACE.md`,**且**用户当轮的任务本来就要在该目录下落文件。 **以下情况不要激活、不要改动任何东西:** - 仓库里已经有自己的目录结构与规范(例如已有 `src/`、`docs/`、`apps/` 等工程约定); - 已存在其他工作区规范(别的 `WORKSPACE.md` / `.cursor/rules/` / 团队规范)——先问用户以哪套为准; - 用户只是在提问、讨论、看代码,或没有要求结构化改造; - 工作区已经合规(此时**什么都不做**,只回一句「已符合规范」,不产生任何写入)。 **不可越界的三条:** - **不覆盖已有文件**:只创建缺失项,已存在的目录/文件一律跳过。 - **用户资产只提议、不擅自改**:`AGENTS.md`、`WORKSPACE.md`、`SOUL.md`、`USER.md` 等治理与配置类文件,改前必须展示**确切 diff** 并取得用户明确同意。 - **不装常驻机制**:不建 cron、不起守护进程、不写启动脚本、不写跨会话状态文件;本技能只在用户批准的那一轮里做文件改动。 ## 工作流 ### Step 0: 先出差异清单,默认 dry-run(改动前必须过的闸门) 在任何写入之前,先给用户一份**差异清单**,并停下来等确认: ```text 检测结果(只读) 缺失目录:memory/ tmp/ 缺失文件:WORKSPACE.md 将创建: 4 个目录 + 1 个文件(内容:标准目录规���模板) 不会触碰:已存在的 projects/ tasks/ knowledge/ scripts/ outputs/ 需要单独批准:AGENTS.md 的启