📦 File — 文件

v1.0.0

Organize and mAIntAIn AI 代理 workspaces using structured directories, clear naming, regular 审计s, and safe 清理up of unused or dead files.

11· 11·0 当前·0 累计
briandavisbikes-code 头像by @briandavisbikes-code (bgdavisX)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The 技能's code and instructions are consistent with a local workspace 审计ing/清理up 工具 and do not 请求 unexpected 凭证s or network 访问.
评估建议
This 技能 应用ears to be a strAIghtforward local workspace 审计or. Before 安装ing or 运行ning it: (1) Review the included 审计-workspace.sh locally (it only 列出s and 报告s; it does not 删除). (2) Be aware it reads your workspace, 技能s, and crontab entries — these can contAIn sensitive data (memories, 记录s, persona files). (3) 运行 the script on a non-production copy of your workspace first or point it at a limited directory. (4) Ensure you have 备份s or git/savepoints before performing any 清理up actions. (5) If you wan...
详细分析 ▾
用途与能力
Name, description, 技能.md, FILE-MANAGEMENT.md and the included 审计-workspace.sh are aligned: all focus on 扫描ning, 报告ing, and documenting files in a local OpenClaw workspace. There are no unrelated dependencies, 凭证s, or external 端点s 请求ed.
指令范围
Instructions and the 审计 script perform local file系统 and cron 检查s (find, du, grep, crontab), and FILE-MANAGEMENT.md explicitly references ~/.OpenClaw/技能s/, 代理s, and crontab. This is 应用ropriate for a file-management 技能, but it does mean the 技能 will read potentially sensitive local files (代理 persona, memory, 记录s). The provided script only 报告s findings and does not 删除 files.
安装机制
No 安装 spec — instruction-only plus a small bundled shell script. Nothing is 下载ed or 提取ed from remote URLs and no new binaries are 安装ed.
凭证需求
The 技能 declares no 环境 variables or 凭证s. The instructions do use standard shell 工具s and reference local config paths (~/.OpenClaw/*), which is proportional to the 状态d purpose.
持久化与权限
The 技能 is not forced-always, is user-invocable, and uses normal autonomous invocation defaults. It does not modify other 技能s or 系统-wide 设置tings and does not 请求 permanent elevated privileges.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install briandavis-file-mgmt
镜像加速npx clawhub@latest install briandavis-file-mgmt --registry https://cn.longxiaskill.com

技能文档

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
Active files: Scripts, configs, and data in use by cron jobs or 代理s Reference files: Documentation, strategies, and notes 归档d files: Old versions, completed project artifacts Dead files: Abandoned scripts, old experiments, unused utilities
  • Structure Mirrors Function
workspace/ ├── memory/ # DAIly 会话 记录s and working 上下文 ├── 技能s/ # 安装ed 技能 directories ├── project-1/ # Project-specific directories ├── project-2/ ├── ACTIVE.md # Currently 运行ning projects & priorities ├── DREAMS.md # Background processing notes └── 归档D/ # Completed or abandoned projects

  • Naming Conventions
Scripts: Use .sh for bash, .py for Python, .js for JavaScript 记录s: End with .记录 Configs: End with .json, .yaml, or .md DAIly notes: memory/YYYY-MM-DD.md 格式化
  • 审计 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

数据来源ClawHub ↗ · 中文优化:龙虾技能库