← 返回 Skills 市场
briandavisbikes-code

File Management by Brian

作者 bgdavisX · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
51
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install file-management-by-brian
功能描述
Organize and maintain AI agent workspaces with structured directories, clear naming, regular audits, dead file detection, and safe cleanup practices.
使用说明 (SKILL.md)

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 .sh for bash, .py for Python, .js for JavaScript
  • Logs: End with .log
  • Configs: End with .json, .yaml, or .md
  • Daily notes: memory/YYYY-MM-DD.md format

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

  1. Never delete immediately — use trash instead of rm
  2. Document before deleting — note what a file did in memory first
  3. Verify before cleanup — confirm no active references
  4. 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
安全使用建议
This skill appears coherent and low-risk, but review before running on sensitive or production workspaces: 1) Inspect audit-workspace.sh yourself (it only lists and reports files) and run it with a test/workspace copy first. 2) Ensure you have backups or git savepoints before deleting anything — the documentation already advises this. 3) Note the SKILL.md references OpenClaw-specific paths and the 'openclaw cron list' command; if that tool isn't present, those checks will fail harmlessly. 4) If you plan automated cleanup, require an explicit manual review step rather than automatic deletes. If you want extra assurance, run the audit script with a non-privileged account and confirm no unexpected commands or network connections occur.
功能分析
Type: OpenClaw Skill Name: file-management-by-brian Version: 1.0.0 The skill bundle provides a framework and a shell script (audit-workspace.sh) for organizing and auditing an OpenClaw workspace. The script performs read-only operations using standard Linux utilities (find, du, grep) to report on file sizes, types, and modification times. There is no evidence of data exfiltration, malicious execution, or harmful prompt injection.
能力评估
Purpose & Capability
Name and description match the provided materials: guidance docs plus a local audit script that inspects workspace directories, file types, modification times, and sizes. Nothing in the repository requests unrelated capabilities (no cloud credentials, no external services).
Instruction Scope
SKILL.md directs local inspection commands (grep, find, du, crontab checks) and conservative cleanup practices (use trash, commit before deleting). It references OpenClaw-specific paths (~/.openclaw/workspace) and commands (openclaw cron list) which are consistent with an agent workspace management skill. Instructions do not instruct sending data to external endpoints or reading unrelated secret files.
Install Mechanism
No install spec is present (instruction-only plus a small shell script), so nothing is downloaded or written by an installer. The included audit script is small, readable, and performs only local filesystem queries.
Credentials
The skill declares no required environment variables, credentials, or config paths. The actions it performs (examining workspace files and crontab) are proportional to a file-management/audit tool.
Persistence & Privilege
The skill is not always-enabled and does not request to modify other skills or system-wide configuration. It runs locally and contains no autonomous installation hooks.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install file-management-by-brian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /file-management-by-brian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish
元数据
Slug file-management-by-brian
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

File Management by Brian 是什么?

Organize and maintain AI agent workspaces with structured directories, clear naming, regular audits, dead file detection, and safe cleanup practices. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 51 次。

如何安装 File Management by Brian?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install file-management-by-brian」即可一键安装,无需额外配置。

File Management by Brian 是免费的吗?

是的,File Management by Brian 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

File Management by Brian 支持哪些平台?

File Management by Brian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 File Management by Brian?

由 bgdavisX(@briandavisbikes-code)开发并维护,当前版本 v1.0.0。

💬 留言讨论