refactor: centralize agent skills at ~/.agents/skills

This commit is contained in:
sascha.koenig
2026-04-20 08:58:15 +02:00
parent bc41c9a428
commit 35f4821bc5
3 changed files with 48 additions and 39 deletions

View File

@@ -17,8 +17,6 @@ in
'';
modelOverrides = shared.mkModelOverridesOption;
externalSkills = shared.externalSkillsOption;
};
config = mkIf config.coding.agents.opencode.enable {
@@ -34,18 +32,6 @@ in
};
};
# Skills (merged from personal AGENTS repo + optional external skills)
xdg.configFile."opencode/skills" = let
cfg = config.coding.agents.opencode;
in
mkIf (cfg.agentsInput != null) {
source = cfg.agentsInput.lib.mkOpencodeSkills {
inherit pkgs;
customSkills = "${cfg.agentsInput}/skills";
externalSkills = shared.mapExternalSkills cfg.externalSkills;
};
};
# Static config dirs from AGENTS repo
xdg.configFile."opencode/context" = let
cfg = config.coding.agents.opencode;