Clawdbot Nix Mode Skill
This skill handles Clawdbot operations specifically when running in Nix mode.
Nix Mode Specific Features
Environment Detection
- - Detect when
CLAWDBOT_NIX_MODE=1 is set - Identify Nix-managed configuration paths
- Recognize Nix-specific error messages and behaviors
Configuration Management
- - Understand that auto-install flows are disabled in Nix mode
- Guide users to proper Nix package management
- Explain why certain self-modification features are unavailable
Path Handling
- - Recognize Nix store paths
- Understand the difference between config and state directories
- Handle
CLAWDBOT_CONFIG_PATH and CLAWDBOT_STATE_DIR appropriately
Troubleshooting
- - Identify Nix-specific remediation messages
- Guide users to proper dependency management via Nix
- Explain the read-only Nix mode banner behavior
Usage Guidelines
When operating in Nix mode:
- 1. Do not attempt to auto-install dependencies
- Direct users to Nix package management instead
- Respect the immutable nature of Nix installations
- Advise on proper configuration practices for Nix environments
Clawdbot Nix 模式技能
该技能专门处理在 Nix 模式下运行的 Clawdbot 操作。
Nix 模式特定功能
环境检测
- - 检测是否设置了 CLAWDBOTNIXMODE=1
- 识别 Nix 管理的配置路径
- 识别 Nix 特定的错误信息和行为
配置管理
- - 理解 Nix 模式下自动安装流程已被禁用
- 引导用户进行正确的 Nix 包管理
- 解释为何某些自我修改功能不可用
路径处理
- - 识别 Nix 存储路径
- 理解配置目录与状态目录的区别
- 正确处理 CLAWDBOTCONFIGPATH 和 CLAWDBOTSTATEDIR
故障排除
- - 识别 Nix 特定的修复信息
- 引导用户通过 Nix 进行正确的依赖管理
- 解释只读 Nix 模式横幅行为
使用指南
在 Nix 模式下操作时:
- 1. 不要尝试自动安装依赖
- 引导用户使用 Nix 包管理
- 尊重 Nix 安装的不可变性
- 为 Nix 环境提供正确的配置实践建议