360 Secure SkillHub
360 安全技能中心

Nix Mode

该 Skill 定义 Clawdbot 在 Nix 模式下的行为规范:识别 CLAWDBOT_NIX_MODE、Nix 安装路径与 CLAWDBOT_CONFIG_PATH/CLAWDBOT_STATE_DIR,说明自动安装与自我修改被禁用的原因,并引导用户通过 Nix 包管理处理依赖与故障排查。

chronicuser21
chronicuser21
热度 96.21
最近更新 2026-05-11 15:50:57
分类:知识依赖:纯提示词应用场景:概念解释 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nix-mode
Metadata
name
nix-mode
description
Handle Clawdbot operations in Nix mode (configuration management, environment detection).
metadata
{"clawdbot":{"emoji":"❄️","requires":{"bins":["nix","bash"],"envs":["CLAWDBOT_NIX_MODE"]},"install":[]}}

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
  2. Direct users to Nix package management instead
  3. Respect the immutable nature of Nix installations
  4. Advise on proper configuration practices for Nix environments