Persist managed plugins in Claude Code's personal skills directory so strict-parser subcommands do not receive injected --plugin-dir arguments. Retain version-gated legacy behavior for older and unversioned packages.
18 lines
560 B
Nix
18 lines
560 B
Nix
{
|
|
programs.claude-code = {
|
|
enable = true;
|
|
skills = ./skills;
|
|
plugins = [ ./test-plugin ];
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.claude/skills/test-skill/SKILL.md
|
|
assertLinkExists home-files/.claude/skills/test-skill/SKILL.md
|
|
assertFileContent \
|
|
home-files/.claude/skills/test-skill/SKILL.md \
|
|
${./skills/test-skill/SKILL.md}
|
|
assertFileContent \
|
|
home-files/.claude/skills/${baseNameOf (toString ./test-plugin)}/.claude-plugin/plugin.json \
|
|
${./test-plugin/.claude-plugin/plugin.json}
|
|
'';
|
|
}
|