This skill provides safe file I/O operations within the session's cwd. It is designed for roles that need to store outputs locally (no cloud sync).
Role needs to:
# Read a file
file-manager --action read --path output.md
# Write content (from stdin or --content)
file-manager --action write --path result.json --content '{"status":"done"}'
# Append to file
file-manager --action append --path log.txt --content "Job completed at $(date)"
# List files in directory
file-manager --action list --dir . --pattern "*.md"
# Create directory
file-manager --action mkdir --dir reports
# Delete file (with confirmation)
file-manager --action delete --path old_file.txt
. or in ../--dry-run shows what would happenIn role config, enable this skill:
plugins:
allow:
- local-file-manager
- doc-parser
Then in the role's system prompt, guide usage:
When you finish analysis, write the result to a file:
file-manager --action write --path summary.md --content "$YOUR_MARKDOWN"
Researcher saving analysis:
file-manager --action write --path analysis_$(date +%Y%m%d).md \
--content "# Analysis\n\n## Summary\n..."
Developer saving code:
file-manager --action write --path src/main.py --content "$CODE"
Automation appending log:
file-manager --action append --path /var/log/automation.log \
--content "[$(date)] Task completed\n"
~/.openclaw/logs/file-manager.logEnvironment variables:
FILE_MANAGER_MAX_SIZE: Max file size in bytes (default 10485760)FILE_MANAGER_LOG: Path to operation log (default ~/.openclaw/logs/file-manager.log)FILE_MANAGER_DRY_RUN: Set to "1" to only simulate operations共 1 个版本