Shared functionality goes into its own skill, just as in code
I’m building skills that publish entries of my work to the timeline on my personal site. The AI agent proposed one shared skill for everything, from the interview with me to the git push; I split it into log-to-site, which does only the publishing routine, and work-in-public, which interviews me.
Just as in software development, functionality shared by different cases is better extracted into a separate agent skill, for reuse and to avoid all the problems that come with duplication. The different cases here are: 1) work in public (explanations and advice can come up in literally any work with an agent); 2) my work in my Second Brain project, where insights and shared ideas can appear.
Besides, log-to-site can then be replaced with log-to-something-else, while the core logic of cases 1 and 2 stays the same.