opencode: add agent skills support
Adds support for OpenCode Agent Skills by managing skill definitions under "/opencode/skill/<name>/SKILL.md" via `programs.opencode.skills`. Documentation: https://opencode.ai/docs/skills/
This commit is contained in:
parent
3e87b442b5
commit
1cfa305fba
12 changed files with 181 additions and 0 deletions
14
tests/modules/programs/opencode/skills-path.nix
Normal file
14
tests/modules/programs/opencode/skills-path.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
programs.opencode = {
|
||||
enable = true;
|
||||
skills = {
|
||||
pdf-processing = ./pdf-processing-SKILL.md;
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/opencode/skill/pdf-processing/SKILL.md
|
||||
assertFileContent home-files/.config/opencode/skill/pdf-processing/SKILL.md \
|
||||
${./pdf-processing-SKILL.md}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue