feat: create agent-specific skill symlinks on install/remove#83
Merged
Conversation
- AgentRegistry: add AGENT_SKILLS_DIRS static mapping per agent (claude→.claude/skills, copilot→.github/instructions, cursor→.cursor/rules) - AgentRegistry: add getAgentSkillsDirectory(), createSkillSymlinks(), removeSkillSymlinks() methods - SkillManager: inject agentRegistry; create symlinks in installRemoteSkill(), remove symlinks in removeSkillFromProject() and deleteSkillDir() - changelog.md: document the new feature
Copilot created this pull request from a session on behalf of
lmajano
July 7, 2026 11:23
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Different AI agents expect skills/context files at their own conventional paths. Without symlinks, skills installed to
.agents/skills/are invisible to agents that scan their own directories (e.g. Claude's.claude/skills/, Cursor's.cursor/rules/).Changes
AgentRegistry— agent skill-directory registryAGENT_SKILLS_DIRSstatic mapping of agent → relative skills path:claude.claude/skillscopilot.github/instructionscursor.cursor/rulescodex/gemini/opencode.agents/skills/directly)getAgentSkillsDirectory(directory, agent)— returns absolute path ornullcreateSkillSymlinks(directory, skillName, agents)— creates a relative directory symlink inside each active agent's skills dir pointing back to the canonical path:removeSkillSymlinks(directory, skillName, agents)— only removes genuine symlinks; leaves real directories untouched.SkillManager— symlink lifecycle hooksAgentRegistryinstallRemoteSkill()— callscreateSkillSymlinks()after writingSKILL.md, usingmanifest.agentsas the active agent setremoveSkillFromProject()— callsremoveSkillSymlinks()before deleting the canonical directory (loads manifest first so agents are available)deleteSkillDir()— accepts new optionalagentsparameter;refresh()pruning passesmanifest.agentsthrough so orphaned skills also clean up their symlinks