Files
chatrebot_aireply_plug/skills/nix-helper/SKILL.md
Claw e1fbd31c64 完整 AgentSkill:词库外部化 + 全部脚本/Skill 脱敏上传
- 高危词库从 process.py 抽到 config.toml [security] section
- process.py 改为 _get_high_risk_words() 动态加载(配置优先)
- 新增 15 个 QQ 操作脚本(已脱敏:QQ号/IP/Token → 占位符)
- 新增 8 个 SKILL.md(qq-messenger/management/resolver/napcat-extras 等)
- 新增 SKILL.md 入口(完整部署方案文档)
- 保留 SDK 框架(plugin_modules.py, file_store_api.py, package.py 等)
2026-05-04 16:23:59 +08:00

830 B

nix-helper Skill

遇到运维、系统、脚本、Linux 等技术问题时,通过 ask_nix.py 向 Nix 求助。

原理

ask_nix.py 通过 Gateway /v1/chat/completions 同步 API 调用 ops-manager agent。Nix 的回复会直接返回,不需要额外桥接。

用法

import subprocess

result = subprocess.run(
    ["python3", "YOUR_WORKSPACE_PATH/scripts/ask_nix.py", "你的问题"],
    timeout=125, capture_output=True, text=True
)
answer = result.stdout.strip() if result.returncode == 0 else result.stderr.strip()

限制

  • 最长等待 120 秒,超时告诉用户 "Nix 没回 超时了 要么他不在线 要么忙着呢 老板稍后再试吧"
  • 禁止用 sessions_spawn 调用 ops-manager,永远通过 ask_nix.py 联系
  • 把 answer 返回给用户时,开头加 [Nix说]