You may also be interested in the nixpkgs standard of $out/share/skills:
As well as my skills-flake (which I should migrate over to using $out/share/skills) project for installing skills with HM and keeping an up-to-date repository of skills from external sources as packages.
I gave installAgentSkills a try, but it doesn’t work so well for my particular setup. My writeSkill function uses runCommand to run checks and then just copies into $out. runCommand doesn’t run phases, so the hook is executed. I tried calling installSkill manually, but that felt awkward because it assumes a pname for the base and my skills don’t have a pname. Then on the consumer side I had to change to code to match the new layout that installSkill generated. In the end I reverted the change to keep things simple.