feat(copilotcli): support skill argument-hint frontmatter and preMcpToolCall hook event#2085
Merged
Merged
Conversation
…oolCall hook event Follow GitHub Copilot CLI upstream updates: - skills: add `argument-hint` frontmatter to CopilotcliSkillFrontmatterSchema and round-trip it through toRulesyncSkill/fromRulesyncSkill, mirroring license/allowed-tools (Copilot CLI v1.0.62, 2026-06-13). - hooks: map the canonical `beforeMCPExecution` event to Copilot CLI's `preMcpToolCall` hook, adding it to COPILOTCLI_HOOK_EVENTS and CANONICAL_TO_COPILOTCLI_EVENT_NAMES (Copilot CLI v1.0.51, 2026-05-20). It is not a matcher event. Closes #2079 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 CLI upstream updates (#2079). Two documented surfaces that were previously dropped are now supported.
Skills —
argument-hintfrontmatter (Copilot CLI v1.0.62, 2026-06-13)Added
argument-hinttoCopilotcliSkillFrontmatterSchema(src/features/skills/copilotcli-skill.ts) and round-tripped it intoRulesyncSkill/fromRulesyncSkill, mirroringlicense/allowed-tools. Also addedargument-hintto thecopilotclisection ofrulesync-skill.ts.Hooks —
preMcpToolCallevent (Copilot CLI v1.0.51, 2026-05-20)Reused the existing canonical event
beforeMCPExecution(already used by Cursor/Devin) rather than adding a new one. AddedbeforeMCPExecutiontoCOPILOTCLI_HOOK_EVENTSandbeforeMCPExecution → preMcpToolCalltoCANONICAL_TO_COPILOTCLI_EVENT_NAMES. Left out of the matcher event set, since onlypreToolUse/postToolUsehonor matchers per the changelog.Tests & docs
argument-hintround-trip test and hookspreMcpToolCallround-trip test; extended the wider-event-surface test.docs/reference/file-formats.mdand syncedskills/rulesync/file-formats.md.Verification
pnpm cicheckfully green: 292 test files, 6565 tests passing; lint/typecheck, sync-skill-docs, gitignore, supported-tools, cspell, secretlint all pass.References
Closes #2079