feat(skills): support global scope for GitHub Copilot skills#2098
Merged
Conversation
GitHub Copilot auto-discovers personal/global skills from ~/.copilot/skills/ (mirroring the project .github/skills/ layout and Copilot CLI's personal skills location). Previously CopilotSkill.getSettablePaths threw in global mode, so generate --targets copilot --features skills --global emitted nothing. Add COPILOT_SKILLS_GLOBAL_DIR_PATH, implement the global branch in CopilotSkill.getSettablePaths, and flip the skills processor meta supportsGlobal to true for copilot. Update tests (unit + e2e global happy-path matrix) and regenerate the supported-tools tables and synced skill docs. Resolves #2065 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…lot and copilotcli Address PR review (mid DRY): COPILOT_SKILLS_GLOBAL_DIR_PATH and COPILOTCLI_SKILLS_GLOBAL_DIR_PATH held the identical value .copilot/skills. Drop the copilotcli-specific constant and have both adapters import the shared one, matching how the project-scope COPILOT_SKILLS_DIR_PATH is already shared. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Follow-up for GitHub Copilot upstream (#2065). Copilot auto-discovers personal/global skills from ~/.copilot/skills/, but rulesync CopilotSkill threw in global mode, so
generate --targets copilot --features skills --globalemitted nothing.Changes
src/constants/copilot-paths.ts: added COPILOT_SKILLS_GLOBAL_DIR_PATH (.copilot/skills).src/features/skills/copilot-skill.ts: getSettablePaths({ global: true }) now returns the global path instead of throwing.src/features/skills/skills-processor.ts: copilot skills meta supportsGlobal false to true.Out-of-scope minor items (hook cwd/env, new SKILL.md frontmatter) intentionally not touched.
Verification
pnpm cicheck fully green: 298 test files, 6623 tests; cspell, secretlint, supported-tools, gitignore all pass.
References
Closes #2065