2.home-manager/tests/modules/programs/claude-code/skills-subdir.nix
Austin Horstman 91be7cce76 claude-code: fix skills implementation
Claude skills are only found when using `SKILL.md` entrypoints.
Attribute names should be used for the directory structure, not the
filename.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-02-19 14:00:06 -06:00

26 lines
938 B
Nix

{
programs.claude-code = {
enable = true;
skills = {
data-processing = ./skill-subdir;
};
};
nmt.script = ''
assertFileExists home-files/.claude/skills/data-processing/SKILL.md
assertFileExists home-files/.claude/skills/data-processing/extract.md
assertFileExists home-files/.claude/skills/data-processing/convert.md
assertLinkExists home-files/.claude/skills/data-processing/SKILL.md
assertLinkExists home-files/.claude/skills/data-processing/extract.md
assertLinkExists home-files/.claude/skills/data-processing/convert.md
assertFileContent \
home-files/.claude/skills/data-processing/SKILL.md \
${./skill-subdir/SKILL.md}
assertFileContent \
home-files/.claude/skills/data-processing/extract.md \
${./skill-subdir/extract.md}
assertFileContent \
home-files/.claude/skills/data-processing/convert.md \
${./skill-subdir/convert.md}
'';
}