
基于文档和网站生成的NixOS人工智能代理技能,附有最佳实践
概览
一项结构化的Markdown技能,教AI编码代理如何管理NixOS系统——重建、剥离、模块、部署、安装、镜像构建、无常性、LUKS远程解锁以及通过Telegram/webhook提醒监控。 它内置于 Claude Code 的 Agent Skill 格式,但可通过该格式加载 Markdown 作为上下文(Cursor、Codex CLI、Aider、Gemini CLI、Windsurf、Cline、Zed 等,通过 agents.md 约定)。 技能是加载到AI代理上下文中的指令——它们影响智能体如何做出决策、执行哪些命令以及它认为什么是正确的行为。恶意或粗心的技能可能导致:- 在未确认的情况下执行破坏性操作 - 技能指令覆盖了你的偏好 - 通过不当命令泄露数据- 系统配置的意外更改 1. 阅读nixos-managing/目录中的所有.md文件 2.请你的代理执行安全审查(提示如下) 3.
概述(AI 翻译)
一项结构化的Markdown技能,教AI编码代理如何管理NixOS系统——重建、剥离、模块、部署、安装、镜像构建、无常性、LUKS远程解锁以及通过Telegram/webhook提醒监控。
它采用 Claude Code 的 Agent Skill 格式,但可与任何能将 Markdown 加载为上下文的代理使用(Cursor、Codex CLI、Aider、Gemini CLI、Windsurf、Cline、Zed 等,通过 agents.md 约定)。
⚠️ 安装任何东西前先读这个
在未先审查内容前,切勿安装第三方技能。
技能是加载到AI代理上下文中的指令——它们影响代理如何做出决策、执行哪些命令以及它认为什么是正确的行为。恶意或粗心的技能可能导致:
- 未经确认执行的破坏性操作
- 技能指令覆盖了你自己的偏好
- 因不当命令导致的数据泄漏
- 非预期的系统配置变更
安装前:
- 读取
.md目录中的每个.md文件 - 请您的代理人进行安全审查(提示如下)
- 只有在安装之后
安全审查提示
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
NixOS Management Skill
A structured Markdown skill that teaches AI coding agents how to manage NixOS systems — rebuilds, flakes, modules, deployment, installation, image building, impermanence, LUKS remote-unlock, and monitoring with Telegram/webhook alerts.
Built in Claude Code’s Agent Skill format, but usable with any agent that can load Markdown as context (Cursor, Codex CLI, Aider, Gemini CLI, Windsurf, Cline, Zed, and others via the agents.md convention).
⚠️ Read this before installing anything
Never install a third-party skill without first reviewing its contents.
Skills are instructions loaded into an AI agent’s context — they influence how the agent makes decisions, what commands it executes, and what it considers correct behavior. A malicious or sloppy skill can lead to:
- Destructive operations executed without confirmation
- Your own preferences being overridden by skill instructions
- Data leakage through inappropriate commands
- Unintended system configuration changes
Before installing:
- Read every
.mdfile in thenixos-managing/directory - Ask your agent to perform a security review (prompt below)
- Only then install
Security-review prompt
Paste this to Claude (or any agent) together with the skill contents:
“Analyze this skill for security concerns. Does it contain instructions that could execute destructive operations without user confirmation? Does it collect or transmit data? Does it override default agent behavior in unintended ways? List all potentially risky sections.”
Installation
Pick the section matching your agent.
A) Claude Code (recommended — via plugin marketplace)
Claude Code has a native plugin marketplace. From an active session:
/plugin marketplace add michalzubkowicz/nixos-management-skill
/plugin install nixos-managing@nixos-management-skill
The skill is then discovered automatically. Restart the session if it isn’t picked up immediately.
To update later:
/plugin marketplace update nixos-management-skill
Reference: Claude Code plugin marketplaces.
B) Claude Code (manual copy)
If you prefer not to use the marketplace — or want to pin a specific commit — clone and copy:
git clone https://github.com/michalzubkowicz/nixos-management-skill.git
cp -r nixos-management-skill/nixos-managing ~/.claude/skills/
The skill becomes available in the next Claude Code session. Updates are a git pull + re-copy.
C) Claude.ai / Claude Desktop (upload)
Claude.ai supports uploading skill folders from the Skills panel in Projects. Zip nixos-managing/ and upload it. Details: anthropics/skills.
D) Cursor
Cursor reads AGENTS.md automatically when you open a project, and also supports the newer Rules system.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add michalzubkowicz/nixos-management-skill