用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/y3owk1n/nix-system-config-v2 --skill add-skill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Create, derive, or update the PRD — the single source of truth every other skill reads.
正在显示 SKILL.md
| name | add-skill |
| description | Add a skill source or local skill to the Nix configuration. |
Two files control all skills:
flake.nix — declares sources as flake inputsmodules/home/packages/skills.nix — configures sources, enables skillsSkills sync to ~/.claude/skills, ~/.agents/skills, ~/.config/opencode/skills on just rebuild.
Clone and list the SKILL.md files:
cd /tmp && git clone --depth 1 <repo-url> && find <repo> -name 'SKILL.md'
subdir is the parent of each skill folder — the directory that contains the SKILL.md files (or directories containing them). Never the skill folder itself. The find output is the source of truth; the table covers common patterns.
If a repo nests skills under multiple subdirectories (e.g. skills/engineering/ and skills/productivity/), create one source per subdirectory — don't try to point a single source at a common ancestor.
| If the tree looks like... | subdir |
|---|---|
skills/foo/SKILL.md | "skills" |
pstack/skills/foo/SKILL.md | "pstack/skills" |
skills/eng/foo/SKILL.md | "skills/eng" |
In flake.nix, under # Agent Skills:
<source-name> = {
url = "github:<owner>/<repo>";
flake = false;
};
In modules/home/packages/skills.nix, under programs.agent-skills.sources:
<source-name> = {
input = "<source-name>"; # must match flake input name
subdir = "<path-to-skills>"; # relative to repo root
idPrefix = "<prefix>"; # namespaces IDs (e.g. "matt-eng", "cursor")
};
Add to programs.agent-skills.skills.enable:
"<idPrefix>_<skill-name>" # e.g. "cursor_unslop"
"<idPrefix>_<category>_<name>" # e.g. "matt-eng_tdd"
Skill ID format: <idPrefix>_<relative-path-from-subdir> (underscores, not slashes).
git add flake.nix modules/home/packages/skills.nix
nix flake update <source-name>
nix build '.#darwinConfigurations.Kyles-MacBook-Air.config.home-manager.users.kylewong.programs.agent-skills.bundlePath' --no-link --print-out-paths
Confirm the skill appears in the output.
skills/<name>/SKILL.md. The frontmatter name: must equal the directory name."<name>" to skills.enable — the local source is pre-configured.AI_NOTES.md, or the skill is invisible to you next month.What goes inside the file — the description, the hierarchy, the completion criterion — is /writing-for-agents. It ships writing-for-agents/CHECKS.md, which catches a name that does not match its directory and an enable list out of step with disk.
Browse at skills.sh or see SOURCES.md for recommended repos.
Done when: the flake input is added, the source is configured in skills.nix, the skill is enabled, and nix build confirms it appears in the output. Checkable: the nix build above succeeds and the skill's id appears in the bundle output.