/install briandavis-file-mgmt
File Management Skill
A battle-tested approach to keeping your AI agent workspace organized and maintainable.
Overview
This skill documents the file management system developed through real-world use of OpenClaw. It covers workspace structure, naming conventions, dead file detection, and cleanup practices.
When to Use This Skill
- Onboarding a new agent or setting up a fresh workspace
- Performing periodic workspace audits
- Before making significant changes to workspace structure
- When workspace feels cluttered or disorganized
Core Principles
1. Every File Has a Purpose
- Active files: Scripts, configs, and data in use by cron jobs or agents
- Reference files: Documentation, strategies, and notes
- Archived files: Old versions, completed project artifacts
- Dead files: Abandoned scripts, old experiments, unused utilities
2. Structure Mirrors Function
workspace/
├── memory/ # Daily session logs and working context
├── skills/ # Installed skill directories
├── project-1/ # Project-specific directories
├── project-2/
├── ACTIVE.md # Currently running projects & priorities
├── DREAMS.md # Background processing notes
└── ARCHIVED/ # Completed or abandoned projects
3. Naming Conventions
- Scripts: Use
.shfor bash,.pyfor Python,.jsfor JavaScript - Logs: End with
.log - Configs: End with
.json,.yaml, or.md - Daily notes:
memory/YYYY-MM-DD.mdformat
4. Audit Regularly
Run workspace audits monthly or after major changes. Use the audit script to identify:
- Dead files (no references from active crons or scripts)
- Large files consuming storage
- Outdated documentation
Quick Audit 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
# Check disk usage by directory
du -sh ~/path/to/workspace/*/
Cleanup Best Practices
- Never delete immediately — use
trashinstead ofrm - Document before deleting — note what a file did in memory first
- Verify before cleanup — confirm no active references
- Commit before major cleanup — create a revert point
Full Documentation
See FILE-MANAGEMENT.md for the complete reference implementation, including:
- Directory structure explainer
- Active vs archived file definitions
- Dead file detection criteria
- Example cleanup checklists
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install briandavis-file-mgmt - 安装完成后,直接呼叫该 Skill 的名称或使用
/briandavis-file-mgmt触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
File Management (Brian) 是什么?
Organize and maintain AI agent workspaces using structured directories, clear naming, regular audits, and safe cleanup of unused or dead files. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 48 次。
如何安装 File Management (Brian)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install briandavis-file-mgmt」即可一键安装,无需额外配置。
File Management (Brian) 是免费的吗?
是的,File Management (Brian) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
File Management (Brian) 支持哪些平台?
File Management (Brian) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 File Management (Brian)?
由 bgdavisX(@briandavisbikes-code)开发并维护,当前版本 v1.0.0。