Files
home-manager/tests/modules/programs/github-copilot-cli/directories.nix
Austin Horstman feda41500e github-copilot-cli: add context, agents, and skills
Add support for managing Copilot CLI global instructions via programs.github-copilot-cli.context, written to copilot-instructions.md under COPILOT_HOME.

Also manage custom agents and skills from inline definitions, file paths, and directories, with focused tests and a news entry covering the new options.
2026-05-01 12:06:19 -05:00

38 lines
1.7 KiB
Nix

{
programs.github-copilot-cli = {
enable = true;
agents = ./agents;
skills = ./skills;
};
nmt.script = ''
assertFileExists home-files/.copilot/agents/code-reviewer.agent.md
assertLinkExists home-files/.copilot/agents/code-reviewer.agent.md
assertFileContent home-files/.copilot/agents/code-reviewer.agent.md \
${./agents/code-reviewer.agent.md}
assertFileExists home-files/.copilot/agents/documentation.agent.md
assertLinkExists home-files/.copilot/agents/documentation.agent.md
assertFileContent home-files/.copilot/agents/documentation.agent.md \
${./agents/documentation.agent.md}
assertFileExists home-files/.copilot/skills/data-analysis/SKILL.md
assertFileExists home-files/.copilot/skills/data-analysis/notes.txt
assertLinkExists home-files/.copilot/skills/data-analysis/SKILL.md
assertLinkExists home-files/.copilot/skills/data-analysis/notes.txt
assertFileContent home-files/.copilot/skills/data-analysis/SKILL.md \
${./skills/data-analysis/SKILL.md}
assertFileContent home-files/.copilot/skills/data-analysis/notes.txt \
${./skills/data-analysis/notes.txt}
assertFileExists home-files/.copilot/skills/release-notes/SKILL.md
assertFileExists home-files/.copilot/skills/release-notes/checklist.md
assertLinkExists home-files/.copilot/skills/release-notes/SKILL.md
assertLinkExists home-files/.copilot/skills/release-notes/checklist.md
assertFileContent home-files/.copilot/skills/release-notes/SKILL.md \
${./skills/release-notes/SKILL.md}
assertFileContent home-files/.copilot/skills/release-notes/checklist.md \
${./skills/release-notes/checklist.md}
'';
}