可信 — 风险评分 5/100
上次扫描:19 小时前 重新扫描
5 /100
file-writer
Safely write or append text content to files ONLY in /home/alfred/.openclaw/workspace/scratch with backup support
A well-scoped, properly documented file writing skill with appropriate safety controls and no malicious indicators.
技能名称file-writer
分析耗时25.6s
引擎pi
可以安装
No action needed. The skill is safe for use within its documented scope.
资源类型声明权限推断权限状态证据
文件系统 WRITE WRITE ✓ 一致 SKILL.md declares 'write' tool; scoped to /home/alfred/.openclaw/workspace/scrat…
文件系统 READ READ ✓ 一致 SKILL.md declares 'read' tool for checks/backups
命令执行 WRITE WRITE ✓ 一致 exec for 'mkdir -p' only; documented in SKILL.md
网络访问 NONE NONE No network calls in any file
环境变量 NONE NONE No environment variable access
剪贴板 NONE NONE No clipboard access
浏览器 NONE NONE No browser access
数据库 NONE NONE No database access

目录结构

3 文件 · 4.0 KB · 84 行
Markdown 2f · 61L Shell 1f · 23L
├─ 📁 references
│ └─ 📝 safety.md Markdown 17L · 607 B
├─ 📁 scripts
│ └─ 🔧 backup_file.sh Shell 23L · 436 B
└─ 📝 SKILL.md Markdown 44L · 2.9 KB

安全亮点

✓ Strong path sanitization: rejects absolute paths, parent escapes (../), and non-text extensions
✓ Well-defined scope: restricted to /home/alfred/.openclaw/workspace/scratch directory only
✓ Backup mechanism prevents data loss before overwrites
✓ Size limit (50k chars) prevents resource exhaustion
✓ Requires user confirmation for sensitive operations
✓ Fallback to user action if tools unavailable - no forced execution
✓ Script backup_file.sh is simple and safe: only uses cp for backups, no network or credential access
✓ Documentation (references/safety.md) provides clear sanitization patterns
✓ No credential access, no data exfiltration, no obfuscation
✓ Clear doc-to-code alignment with no shadow functionality