nixos-config: Skill for Claude Code

.claude/skills/package/SKILL.md

package is a skill for Claude Code from MCB-SMART-BOY/nixos-config. It costs 38 tokens per session (2,281 once invoked), scanned A, original, Apache-2.0.

A software-package management guide for a NixOS computer. It covers where to declare system and user software, how to manage Flatpak apps, and when to use temporary packages.

In plain words
What is it for?
Use it when installing, removing, or changing packages, managing Flatpak applications, or enabling software profiles and overlays.
Why use it?
It reduces confusion about where software settings belong and helps avoid changing the wrong configuration or removing apps unintentionally.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: built for aider.

This is MCB-SMART-BOY/nixos-config's own configuration. It tells Claude Code how to work on nixos-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nixos-config configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/admin/mcbctl/profiles/<name>.nix.

Reuse

Borrowing it

Nothing to install: this file belongs to MCB-SMART-BOY/nixos-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MCB-SMART-BOY/nixos-config/solo/.claude/skills/package/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MCB-SMART-BOY/nixos-config

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for package

README.md
[![agentmods](https://agentmods.dev/badge/skills/mcb-smart-boy/nixos-config/package.svg)](https://agentmods.dev/skills/mcb-smart-boy/nixos-config/package)
Your own site
<a href="https://agentmods.dev/skills/mcb-smart-boy/nixos-config/package"><img src="https://agentmods.dev/badge/skills/mcb-smart-boy/nixos-config/package.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,281 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02281
Opus 5 $0.00019 $0.01141
Sonnet 5 $0.00008 $0.00456
Haiku 4.5 $0.00004 $0.00228

Measured 3d ago against content hash e9003a5be46a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

package scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/package/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Package

决策:包放哪里?

NixOS 系统包与 mcbctl 用户包分属两个项目:

NixOS 系统级服务/守护进程? → modules/packages.nix 或 modules/services/
mcbctl 用户软件?           → /home/admin/mcbctl/profiles/<name>.nix
临时使用?                  → nix shell nixpkgs#pkg(不写配置)
编辑器插件?                → mcbctl nixvim/HM 模块;语言工具按生态归属
Flatpak 应用?              → machines/<machine>/default.nix 的 mcb.flatpak.apps/removeApps

Flatpak 策略

  • mcb.flatpak.apps(默认 [])声明该机器应安装的系统级应用;它不是独占清单,未列出的已安装应用会保留
  • mcb.flatpak.removeApps(默认 [])是卸载系统级应用的唯一授权;仅显式列出的 ID 会移除,且不使用 --delete-data
  • appsremoveApps 必须互斥;冲突会在求值时失败
  • mcb.flatpak.overrides 仍通过 flatpak override --system 全局生效,可能影响未由 apps 管理的应用;“保留”仅指安装成员关系
  • 当前 nixos 机器声明安装 com.tencent.WeChatcom.qq.QQio.github.Predidit.Kazumi,显式移除 Flatpak com.tencent.wemeet;已有 YesPlayMusic 会保留但新机器不会自动安装,Nix 版 Wemeet 保留
  • 协调/更新实现位于 scripts/flatpak-system.shmodules/services/desktop.nix 只用 writeShellApplication 注入 flatpak/jq/flock、生成 JSON policy 并连接 systemd
  • 当前 nixos 机器使用 nixpkgs wemeet,保留 nixpkgs 默认集成的社区 wemeet-wayland-screenshare compatibility hook;modules/desktop.nix 按顺序为 niri 26.04 应用 SHM backport,再应用基于 6c1613c 的 DMA-BUF 协商与 SHM metadata runtime fixes;mcbctl 的 profiles/china-apps.nix 提供 wemeetwemeet-xwaylandwemeet-xwayland-mesa 三条入口,mcbctl 的 home/desktop.nix 默认调用 wemeet-xwayland-mesa
  • wemeet-wayland-screenshare 上游已经归档;当前日志已证明远端视频能接收并解码,但 Native 与普通 XWayland 的 EGL window surface 都返回 error 3005,故默认桌面入口使用 XWayland + Mesa EGL;Native 与普通 XWayland 入口仍保留用于后续 A/B,不能把构建或解码日志等同于最终显示验证

用户桌面 capability

  • mcbctl home/default.nix 声明 mcb.desktop.providers.kazumisteamwemeetclashVergehome/desktop.nix 只为 provider 为真的能力生成对应 desktop entry。
  • profiles/gaming.nix 默认提供 Steam provider,profiles/china-apps.nix 默认提供 WeMeet provider;Kazumi 与 Clash Verge 需由调用方显式提供,NixOS adapter 不从系统选项推断宿主 capability。
  • standalone target 默认只组合 homeModules.default;Linux 调用方通过 desktopEnvironment = "niri" 显式组合 homeModules.linuxhomeModules.niri。Darwin target 不生成这些主机特定入口。需要 NixOS wrapper、nixd host options 或 /run/wrappers 时,额外导入 homeModules.nixos

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · +7 lines e9003a5be46a
  2. 8d ago First seen · 79 lines · 38 tokens per session scan A 7c507d0d10a3

Subscribe to this mod's changes

package is a skill published in the GitHub repository MCB-SMART-BOY/nixos-config (10 stars, last pushed 3d ago), licensed Apache-2.0. It adds 38 tokens to every session and 2,281 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens