Install
openclaw skills install file-rulesStop AI from scattering files everywhere. This skill enforces consistent naming and directory structure for all AI outputs — saves tokens, cuts management time, ends the file hunt. Works on Win/Mac/Linux. Essential for anyone running AI agents.
openclaw skills install file-rulesUnless the user explicitly specifies a path, this skill governs where and how files are created.
All files belong to a project. Never scatter files in ~/, desktop, downloads, or timestamped folders.
{date}_{description}.{ext}
Example: 2026-04-14_report.xlsx
Scripts: {verb}_{object}.py (e.g., generate_report.py)
{project-root}/
├── output/ ← final deliverables
├── scripts/ ← scripts and tools
├── data/ ← data files
├── docs/ ← documentation
├── temp/ ← temporary files
└── README.md
Follow the user's instruction.
Output goes to the Agent's own workspace:
drafts/ — pending contentoutput/ — approved contenttemp/ — temporary, clean after useFiles in ~/.openclaw/workspace-*/ are managed by each Agent independently.
Periodically (every few days during normal usage), check for:
When found, ask the user: "发现 {issue},是否清理?" — wait for confirmation before taking action.
Do not主动清理大量文件 or run cleanup during busy times.
When the user declines an output: remove the file promptly.
Clean up temp/ after task completion. Old temp files should not accumulate.
When updating a script, archive the old version with a date suffix (e.g., generate_report_v4_2026-04-09.py).
Do not leave empty directories behind.
After creating a file, briefly confirm the location:
📁 Saved: {project-dir}/{filename}