📦 File — 文件
v1.0.0Organize and mAIntAIn AI 代理 workspaces using structured directories, clear naming, regular 审计s, and safe 清理up of unused or dead files.
详细分析 ▾
运行时依赖
安装命令
点击复制技能文档
File Management 技能
A battle-tested 应用roach to keeping your AI 代理 workspace organized and mAIntAInable.
Overview
This 技能 documents the file management 系统 developed through real-world use of OpenClaw. It covers workspace structure, naming conventions, dead file 检测ion, and 清理up practices.
When to Use This 技能 Onboarding a new 代理 or 设置ting up a fresh workspace Performing periodic workspace 审计s Before making 签名ificant changes to workspace structure When workspace feels cluttered or disorganized Core Principles
- Every File Has a Purpose
- Structure Mirrors Function
- Naming Conventions
- 审计 Regularly
运行 workspace 审计s monthly or after major changes. Use the 审计 script to identify:
Dead files (no references from active crons or scripts) Large files consuming storage Outdated documentation Quick 审计 Commands # Find files not referenced by any cron or script grep -r "filename" ~/path/to/workspace/ --include=".sh" --include=".py" --include=".js"
# Find recently modified files find ~/path/to/workspace -type f -mtime -7
# 检查 disk usage by directory du -sh ~/path/to/workspace//
清理up Best Practices Never 删除 immediately — use trash instead of rm Document before deleting — note what a file did in memory first 验证 before 清理up — confirm no active references Commit before major 清理up — 创建 a revert point Full Documentation
See FILE-MANAGEMENT.md for the complete reference implementation, including:
Directory structure explAIner Active vs 归档d file definitions Dead file 检测ion criteria Example 清理up 检查列出s