返回顶部
w

workspace-hygiene

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
163
下载量
0
收藏
概述
安装方式
版本历史

workspace-hygiene

# Workspace Hygiene Maintains clean, RAG-friendly workspaces across all agents. Runs on demand or weekly. ## Quick Start ```bash python3 skills/workspace-hygiene/scripts/hygiene.py --workspace ~/.openclaw/workspace ``` Or for a specific agent: ```bash python3 skills/workspace-hygiene/scripts/hygiene.py --workspace ~/.openclaw/workspace-claire ``` ## What It Does ### 1. Structure Audit Reads `STRUCTURE.md` from the workspace root. Scans for: - Files at root that aren't agent config (AGENTS.md, SOUL.md, etc.) - Folders that don't match the canonical layout - Files in wrong locations (e.g. Claire scripts in Maggie's workspace) ### 2. Memory Health Scans `memory/` for: - Files using timestamp format (YYYY-MM-DD-HHMM.md) instead of date or topic - Daily logs older than 30 days that haven't been distilled into MEMORY.md - Gaps in daily logging (missing dates during active periods) - MEMORY.md line count — flag if over 150 ### 3. Project README Audit Checks every folder in `projects/` for a `README.md`. Missing READMEs degrade RAG retrieval — `memory_search` can't find project context without them. ### 4. Memory Format Check Validates that recent memory entries (last 7 days) use the tagged format: ```markdown [DECISION] What was decided and why [FACT] A durable fact worth retaining [PROJECT] Project name — status update [RULE] A rule or preference established [EVENT] Something that happened ``` Untagged entries are flagged for manual review, not auto-tagged. ### 5. Health Report Writes a report to `projects/system/hygiene-YYYY-MM-DD.md` with: - Structure violations (with suggested fixes) - Memory health score - Missing project READMEs - Untagged memory entries - Recommended actions (prioritized) ## Auto-Fix vs Flag | Issue | Action | |-------|--------| | Timestamp-format memory files | Auto-consolidate into date file | | Missing project README | Flag — agent should write it with project context | | Files in wrong location | Flag with suggested move command | | MEMORY.md over 150 lines | Flag for manual trimming | | Root-level junk files | Flag with suggested archive command | | Untagged memory entries | Flag — don't auto-tag (context needed) | ## Deployment Install to each agent workspace's `skills/` folder, or install to `~/.openclaw/skills/` for global access. Add to `HEARTBEAT.md`: ```markdown ## Weekly Hygiene (Monday) - Run `python3 skills/workspace-hygiene/scripts/hygiene.py --workspace <path>` - Review the report at projects/system/hygiene-YYYY-MM-DD.md - Fix flagged issues or escalate to Steve ``` ## Reference Docs | File | Purpose | |------|---------| | `memory-format.md` | Canonical memory entry format and tagging rules | | `rag-index.md` | How to write project READMEs for optimal RAG retrieval | | `audit.md` | Detailed audit rules and canonical structure |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 workspace-hygiene-publish-1776086285 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 workspace-hygiene-publish-1776086285 技能

通过命令行安装

skillhub install workspace-hygiene-publish-1776086285

下载 Zip 包

⬇ 下载 workspace-hygiene v0.1.0

文件大小: 10.96 KB | 发布时间: 2026-4-15 15:00

v0.1.0 最新 2026-4-15 15:00
Initial release of workspace-hygiene skill.

- Audits workspace file structure, agent memory, and project documentation.
- Checks for improper file placement, memory log issues, and missing project READMEs.
- Validates tagged memory entry formats for recent logs.
- Generates a detailed hygiene report with violations and recommended actions.
- Automatically consolidates timestamped memory files; other issues flagged for manual review.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部