Skip to content

feat(copilotcli): support skill argument-hint frontmatter and preMcpToolCall hook event#2085

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2079-copilotcli-skill-hint-hook
Jun 30, 2026
Merged

feat(copilotcli): support skill argument-hint frontmatter and preMcpToolCall hook event#2085
dyoshikawa merged 1 commit into
mainfrom
resolve-issue-2079-copilotcli-skill-hint-hook

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follow-up for GitHub Copilot CLI upstream updates (#2079). Two documented surfaces that were previously dropped are now supported.

Skills — argument-hint frontmatter (Copilot CLI v1.0.62, 2026-06-13)

Added argument-hint to CopilotcliSkillFrontmatterSchema (src/features/skills/copilotcli-skill.ts) and round-tripped it in toRulesyncSkill/fromRulesyncSkill, mirroring license/allowed-tools. Also added argument-hint to the copilotcli section of rulesync-skill.ts.

Hooks — preMcpToolCall event (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. Added beforeMCPExecution to COPILOTCLI_HOOK_EVENTS and beforeMCPExecution → preMcpToolCall to CANONICAL_TO_COPILOTCLI_EVENT_NAMES. Left out of the matcher event set, since only preToolUse/postToolUse honor matchers per the changelog.

Tests & docs

  • Added skill argument-hint round-trip test and hooks preMcpToolCall round-trip test; extended the wider-event-surface test.
  • Updated docs/reference/file-formats.md and synced skills/rulesync/file-formats.md.

Verification

pnpm cicheck fully green: 292 test files, 6565 tests passing; lint/typecheck, sync-skill-docs, gitignore, supported-tools, cspell, secretlint all pass.

References

Closes #2079

…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>
@dyoshikawa
dyoshikawa merged commit cc13010 into main Jun 30, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2079-copilotcli-skill-hint-hook branch June 30, 2026 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow up GitHub Copilot CLI upstream updates: skill argument-hint frontmatter and preMcpToolCall hook event

2 participants