manage-mounts

仓库创建 2026年1月31日最近提交 23 小时前SkillHot 收录 20 天前
▸ 精选理由

便于细化容器对宿主文件系统的访问,提升安全性与可控性。

▸ 风险提示

修改挂载白名单需宿主权限,错误配置可能导致数据泄露或权限问题。

这个 Skill 做什么

配置代理容器可访问的宿主机目录挂载白名单并管理其条目。

配置并管理代理容器可访问的宿主机目录白名单,能查看、添加或删除允许挂载的路径。在给 agent 容器授权目录访问、排查挂载权限或加固运行时安全时用。白名单存成 JSON 文件,操作后能清晰看到哪些目录被允许及其状态,便于审计和回滚。

▸ 展开 SKILL.md 英文原文

Configure which host directories agent containers can access. View, add, or remove mount allowlist entries. Triggers on "mounts", "mount allowlist", "agent access to directories", "container mounts".

开发编程挂载管理宿主访问安全通用
3.0w
Stars
1.3w
Forks
40
仓库内 Skill
+241
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/manage-mounts/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nanocoai/nanoclaw/main/.claude/skills/manage-mounts/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Manage Mounts

Configure which host directories NanoClaw agent containers can access. The mount allowlist lives at `~/.config/nanoclaw/mount-allowlist.json`.

## Show Current Config

```bash
cat ~/.config/nanoclaw/mount-allowlist.json 2>/dev/null || echo "No mount allowlist configured"
```

Show the current config to the user in a readable format: which directories are allowed, and whether each is read-only or read-write.

## Add Directories

Ask which directories the user wants agents to access. For each path:
- Validate the path exists
- Ask if it should be read-write (`allowReadWrite: true`) or read-only (`allowReadWrite: false`, the safer default)

Build the JSON config and write it:

via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有