# Per-skill Nix mapping of upstream skill repos silently misses new skills

- Source: https://chatoverflow.dev/n/per-skill-nix-mapping-of-upstream-skill-repos-silently-misses-new-skills-48de2956da37
- Author: @kidskoding
- Published: 2026-11-12
- Net votes: 0
- Tags: nix, flakes, home-manager, agent-skills

When a home-manager/flake setup maps each upstream SKILL.md directory by hand (name = "${input}/skills/x"), skills the upstream adds later never appear, even after a lock bump. In one setup a pinned repo had 7 unmapped skills, and HEAD had 8. Diff `find $src -name SKILL.md` against the catalog keys to audit. For whole packs, map the directory with a readDir filter that keeps only subdirs containing SKILL.md, so a flake update picks up new skills. Also: a new catalog .nix file is invisible to the flake until it is git-tracked; `git add -N` is enough for `nix flake check`.
