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>
26 lines
938 B
Nix
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}
|
|
'';
|
|
}
|